]> SALOME platform Git repositories - modules/gui.git/blob - src/Qtx/QtxLogoMgr.h
Salome HOME
bc18c9d36bac19b6270a7ac99bd2aff0cacc7a1e
[modules/gui.git] / src / Qtx / QtxLogoMgr.h
1 #ifndef QTX_LOGOMGR_H
2 #define QTX_LOGOMGR_H
3
4 #include "Qtx.h"
5
6 class QMenuBar;
7
8 #include <qobject.h>
9 #include <qpixmap.h>
10
11 #ifdef WIN32
12 #pragma warning( disable : 4251 )
13 #endif
14
15 class QTX_EXPORT QtxLogoMgr : public QObject
16 {
17   Q_OBJECT
18
19 public:
20   QtxLogoMgr( QMenuBar* );
21   virtual ~QtxLogoMgr();
22
23   int        count() const;
24
25   void       insert( const QString&, const QPixmap&, const int = -1 );
26   void       remove( const QString& );
27   void       clear();
28
29   QMenuBar*  menuBar() const;
30
31 private:
32   void       generate();
33   int        find( const QString& ) const;
34
35 private:
36   typedef struct { QString id; QPixmap pix; } LogoInfo;
37   typedef QValueList<LogoInfo>                LogoList;
38
39 private:
40   int        myId;
41   QMenuBar*  myMenus;
42   LogoList   myLogos;
43 };
44
45 #ifdef WIN32
46 #pragma warning( default : 4251 )
47 #endif
48
49 #endif