Salome HOME
PR: quadtree
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ObjSelector.h
index e44ba07a2e3faad9b78a7d76febb95941fb2e805..63cf857d6a491f94cf2a19aa59de82f68ee89449 100644 (file)
@@ -35,10 +35,17 @@ class HYDROGUI_ObjSelector : public QAbstractButton
 {
   Q_OBJECT
 
+public:
+  enum ObjectFlags {
+    NoFlags        = 0x00000000,
+    ClosedPolyline = 0x00000001
+  };
+
 public:
   HYDROGUI_ObjSelector( HYDROGUI_Module* theModule,
                         const ObjectKind theObjectKind,
-                        QWidget* theParent );
+                        QWidget* theParent, 
+                        const int theObjectFlags = NoFlags );
   virtual ~HYDROGUI_ObjSelector();
 
   void Clear();
@@ -54,6 +61,8 @@ signals:
    */
   void alreadySelected( const QString& theName );
 
+  void selectionChanged();
+
 protected:
   virtual void paintEvent( QPaintEvent* );
   virtual bool hitButton( const QPoint& thePnt ) const;
@@ -68,6 +77,8 @@ private:
 
   QToolButton* myBtn;
   QLineEdit* myObjName;
+
+  int myObjectFlags;
 };
 
 #endif