|
SHAPER
9.15.0
|
This is a class which provides icons of objects for object browser. More...
Public Member Functions | |
| virtual QIcon | getIcon (ObjectPtr theObj) |
| Returns Icon for the given object. More... | |
Static Public Member Functions | |
| static ModuleBase_IconFactory * | get () |
| Returns icons factory instance. More... | |
| static QIcon | loadIcon (const QString &theValue) |
| Finds an icon for the given value. More... | |
| static QPixmap | loadPixmap (const QString &theValue) |
| Finds a pixmap for the given value. More... | |
| static QImage | loadImage (const QString &theValue) |
| Finds an image for the given value. More... | |
Static Protected Member Functions | |
| static void | setFactory (ModuleBase_IconFactory *theFactory) |
| Set the current icons factory instance. More... | |
This is a class which provides icons of objects for object browser.
|
static |
Returns icons factory instance.
|
virtual |
|
static |
Finds an icon for the given value.
The icon is loaded: firstly from qrc file, then by the icon path. If the path contains ":" , it will be treated as absolute path to the icon, or relative path from the plugin library
| theValue | an icon information |
|
static |
Finds a pixmap for the given value.
It is loaded: firstly from qrc file, then by the absolute path. If the pixmap is not loaded, it is searched in relative plugin path
| theValue | a pixmap information |
|
static |
Finds an image for the given value.
It is loaded: firstly from qrc file, then by the absolute path. If the image is not loaded, it is searched in relative plugin path
| theValue | a image information |
|
staticprotected |
Set the current icons factory instance.
| theFactory | a new factory |