#include <IconLibrary.hpp>
Public Member Functions | |
const QPixmap * | findIcon (unsigned int val) const |
const QPixmap * | findMiniIcon (unsigned int val) const |
Static Public Member Functions | |
static IconLibrary & | Instance () |
If the class in not instantiated, this call will instantiate it. (So don't ever worry about it, just call Instance when you want to use the class) More... | |
This class is a simple singleton that maps IddObjectType.value() to QPixmaps
Pretty straightforward. The class stores pointers, there is no real advantage to using pointers over by value semantics since Qt is doing internal reference counting in QPixMap anyway. Just check the pointer when you do a find operation on it, because it might return NULL.
const QPixmap* openstudio::IconLibrary::findIcon | ( | unsigned int | val | ) | const |
gets an Icon
val | should be an IddObjectType.value() |
const QPixmap* openstudio::IconLibrary::findMiniIcon | ( | unsigned int | val | ) | const |
gets a MiniIcon
val | should be an IddObjectType.value() |
|
static |
If the class in not instantiated, this call will instantiate it. (So don't ever worry about it, just call Instance when you want to use the class)