Go to the documentation of this file. 1 #ifndef GRAPH_ANALYSIS_GUI_ICON_MANAGER_HPP
2 #define GRAPH_ANALYSIS_GUI_ICON_MANAGER_HPP
4 #include <base-logging/Singleton.hpp>
26 typedef std::map <std::string, QIcon>
IconMap;
29 const QIcon*
getIcon(
const std::string& key);
37 void loadIcon(QIcon& icon,
const std::string& file);
44 #endif // GRAPH_ANALYSIS_GUI_ICON_MANAGER_HPP
Singleton to load and store handles on all GUI icons.
Definition: IconManager.hpp:18
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
std::map< std::string, QIcon > IconMap
maps specific access keywords to loaded qt icons
Definition: IconManager.hpp:26
IconManager()
constructor
Definition: IconManager.cpp:20
static std::string getIconRootPath()
Definition: IconManager.cpp:9
const QIcon * getIcon(const std::string &key)
getter method - retrieves a qt icon registered at the given keyword in the icons map
Definition: IconManager.cpp:104