]> SALOME platform Git repositories - modules/gui.git/blob - src/LightApp/LightApp_ModuleDlg.h
Salome HOME
135e58c40aad967bd8a6df194e147c03bb78c36e
[modules/gui.git] / src / LightApp / LightApp_ModuleDlg.h
1 //  SALOME SALOMEGUI : implementation of desktop and GUI kernel
2 //
3 //  Copyright (C) 2005  CEA/DEN, EDF R&D
4 //
5 //
6 //
7 //  File   : LightApp_ModuleDlg.h
8 //  Author : Michael ZORIN (mzn)
9 //  Module : SALOME
10
11 #ifndef LIGHTAPP_MODULEDLG_H
12 #define LIGHTAPP_MODULEDLG_H
13
14 #include "LightApp.h"
15 #include <qdialog.h> 
16 #include <qpixmap.h>
17
18 class QFrame;
19 class QLabel;
20 class QPushButton;
21
22 /*!
23   \class LightApp_ModuleDlg
24   Dialog allows to choose action on module activation when there is no document.
25   It is possible to create new document, to open existing or to cancel module activation
26 */
27 class LIGHTAPP_EXPORT LightApp_ModuleDlg : public QDialog
28 {
29   Q_OBJECT
30
31 public:
32   LightApp_ModuleDlg ( QWidget* parent, const QString& component, const QPixmap icon = QPixmap() ) ;
33   ~LightApp_ModuleDlg ( ) { };
34
35 private slots:
36   void onButtonClicked();
37
38 private:
39     QFrame*      myComponentFrame;
40     QLabel*      myComponentLab;
41     QLabel*      myComponentIcon;
42     QLabel*      myInfoLabel;
43     QPushButton* myNewBtn;
44     QPushButton* myOpenBtn;
45     QPushButton* myLoadBtn;
46     QPushButton* myCancelBtn;
47 };
48
49 #endif
50