Salome HOME
427ddd9379de4d10f368720b580ed6074aade76a
[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   QString GetName() const;
20
21 protected:
22   virtual void paintEvent( QPaintEvent* );
23   virtual bool hitButton( const QPoint& thePnt ) const;
24
25 protected slots:
26   void OnToggled( bool );
27   void OnSelectionChanged();
28
29 private:
30   HYDROGUI_Module* myModule;
31   QToolButton* myBtn;
32   QLineEdit* myObjName;
33 };
34
35 #endif