Salome HOME
basic implementation of images operations support
[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   void addSeparator();
25   void setRowStretch();
26
27   HYDROGUI_Module* module() const;
28
29 signals:
30   void panelApply();
31   void panelCancel();
32
33 protected slots:
34   void OnApply();
35   void OnCancel();
36   void OnHelp();
37
38 private:
39   HYDROGUI_Module* myModule;
40   QFrame* myMainFrame;
41   QFrame* myBtnFrame;
42   QPushButton* myApply;
43   QPushButton* myCancel;
44   QPushButton* myHelp;
45 };
46
47 #endif