]> SALOME platform Git repositories - modules/hydro.git/blob - src/HYDROGUI/HYDROGUI_ObjSelector.h
Salome HOME
Compilation by CMake.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ObjSelector.h
1
2 #ifndef HYDROGUI_OBJ_SELECTOR_HEADER
3 #define HYDROGUI_OBJ_SELECTOR_HEADER
4
5 #include <QAbstractButton>
6
7 class QToolButton;
8 class QLineEdit;
9 class HYDROGUI_Module;
10
11 class HYDROGUI_ObjSelector : public QAbstractButton
12 {
13   Q_OBJECT
14
15 public:
16   HYDROGUI_ObjSelector( HYDROGUI_Module* theModule, QWidget* theParent );
17   virtual ~HYDROGUI_ObjSelector();
18
19 protected:
20   virtual void paintEvent( QPaintEvent* );
21   virtual bool hitButton( const QPoint& thePnt ) const;
22
23 protected slots:
24   void OnToggled( bool );
25   void OnSelectionChanged();
26
27 private:
28   HYDROGUI_Module* myModule;
29   QToolButton* myBtn;
30   QLineEdit* myObjName;
31 };
32
33 #endif