25 #ifndef WICONMANAGER_H
26 #define WICONMANAGER_H
31 #include <boost/filesystem/path.hpp>
35 #include "core/graphicsEngine/WGEImage.h"
48 QIcon
getIcon(
const std::string name );
57 QIcon
getIcon(
const std::string name,
const QIcon& defaultIcon );
67 void addMapping(
const std::string& newName,
const std::string& mapToThis );
std::shared_ptr< WGEImage > SPtr
Convenience typedef for a std::shared_ptr< WGEImage >.
void addMapping(const std::string &newName, const std::string &mapToThis)
Add a mapping for icons.
std::map< std::string, std::string > m_iconMappingList
A map storing icons and the names used to identify them.
static QIcon getNoIconDefault()
Return an icon representing a default "No Icon" icon.
static QIcon convertToIcon(WGEImage::SPtr image)
Convert a WGEImage to an QIcon.
QIcon getIcon(const std::string name)
Searches icons in the internal map and all modules for the given icon name.