]> SALOME platform Git repositories - modules/shaper.git/blob - src/PartSet/PartSet_IconFactory.h
Salome HOME
#1371 Using auxilliary Sketch elements in any Feature: code improvement to separate...
[modules/shaper.git] / src / PartSet / PartSet_IconFactory.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        PartSet_IconFactory.h
4 // Created:     28 Jul 2015
5 // Author:      Vitaly SMETANNIKOV
6
7 #ifndef PartSet_IconFactory_H
8 #define PartSet_IconFactory_H
9
10 #include "PartSet.h"
11 #include <ModuleBase_IconFactory.h>
12 #include <Events_Listener.h>
13
14 #include <QMap>
15
16
17 /**\class PartSet_IconFactory
18  * \ingroup GUI
19  * \brief This is a class is redefined in order to provide
20  * icons of objects for object browser specific for PartSetModule
21  */
22 class PARTSET_EXPORT PartSet_IconFactory : public ModuleBase_IconFactory, public Events_Listener
23 {
24 public:
25   /// Constructor
26   PartSet_IconFactory();
27
28   /// Returns Icon for the given object
29   /// \param theObj an object
30   virtual QIcon getIcon(ObjectPtr theObj);
31
32   /// Event Listener method
33   /// \param theMessage an event message
34   virtual void processEvent(const std::shared_ptr<Events_Message>& theMessage);
35
36 private:
37   static QMap<QString, QString> myIcons;
38 };
39
40 #endif