Salome HOME
Compilation by CMake.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_InputPanel.h
1
2 #ifndef HYDROGUI_DIALOG_HEADER
3 #define HYDROGUI_DIALOG_HEADER
4
5 #include <HYDROGUI.h>
6 #include <QDockWidget>
7
8 class HYDROGUI_Module;
9 class QFrame;
10 class QPushButton;
11
12 /**\class HYDROGUI_Dialog
13  *\brief The base class representing base input panel for all HYDROGUI panels
14  */
15 class HYDROGUI_InputPanel : public QDockWidget
16 {
17   Q_OBJECT
18
19 public:
20   HYDROGUI_InputPanel( HYDROGUI_Module* theModule, const QString& theTitle );
21   virtual ~HYDROGUI_InputPanel();
22
23   void addWidget( const QString& theLabel, QWidget* theWidget );
24
25 protected slots:
26   void OnApply();
27   void OnCancel();
28   void OnHelp();
29
30 private:
31   HYDROGUI_Module* myModule;
32   QFrame* myMainFrame;
33   QFrame* myBtnFrame;
34   QPushButton* myApply;
35   QPushButton* myCancel;
36   QPushButton* myHelp;
37 };
38
39 #endif