SHAPER
9.12.0
|
This is a class is redefined in order to provide icons of objects for object browser specific for PartSetModule. More...
Public Member Functions | |
PartSet_IconFactory (PartSet_Module *theModule) | |
Constructor. More... | |
virtual QIcon | getIcon (ObjectPtr theObj) |
Returns Icon for the given object. More... | |
virtual void | processEvent (const std::shared_ptr< Events_Message > &theMessage) |
Event Listener method. More... | |
virtual EVENTS_EXPORT bool | groupMessages () |
Listener that needs mostly grouped messages received returns true in this method. 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... | |
Protected Member Functions | |
void | groupWhileFlush (const std::shared_ptr< Events_Message > &theMessage) |
Allows to group messages while they are flushed (for flush for groupMessages=true listeners) More... | |
EVENTS_EXPORT void | flushGrouped (const Events_ID &theID) |
Sends myGroups on flush finish. More... | |
Static Protected Member Functions | |
static void | setFactory (ModuleBase_IconFactory *theFactory) |
Set the current icons factory instance. More... | |
This is a class is redefined in order to provide icons of objects for object browser specific for PartSetModule.
PartSet_IconFactory::PartSet_IconFactory | ( | PartSet_Module * | theModule | ) |
Constructor.
|
virtual |
Returns Icon for the given object.
theObj | an object |
Reimplemented from ModuleBase_IconFactory.
|
virtual |
|
staticinherited |
Returns icons factory instance.
|
staticinherited |
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 |
|
staticinherited |
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 |
|
staticinherited |
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 |
|
staticprotectedinherited |
Set the current icons factory instance.
theFactory | a new factory |
|
inlinevirtualinherited |
Listener that needs mostly grouped messages received returns true in this method.
In this case during the message is flushed, all the new messages are grouped, not sended immideately and then sent in the end of flush.
Reimplemented in SketchSolver_Manager, and SketchPlugin_OverConstraintsResolver.
|
protectedinherited |
Allows to group messages while they are flushed (for flush for groupMessages=true listeners)
|
protectedinherited |
Sends myGroups on flush finish.