11 #ifndef smtk_view_ObjectIcons_h
12 #define smtk_view_ObjectIcons_h
14 #include "smtk/CoreExports.h"
15 #include "smtk/SystemConfig.h"
28 class PersistentObject;
51 using IconConstructor =
55 template<
typename ResourceType>
56 bool registerIconConstructor(IconConstructor&&);
60 bool registerIconConstructor(
const std::string&, IconConstructor&&);
64 bool registerDefaultIconConstructor(IconConstructor&&);
67 template<
typename ResourceType>
68 bool unregisterIconConstructor();
72 bool unregisterIconConstructor(
const std::string&);
81 std::map<std::string, IconConstructor> m_iconConstructors;
84 template<
typename ResourceType>
88 smtk::common::typeName<ResourceType>(), std::forward<IconConstructor>(iconConstructor));
91 template<
typename ResourceType>