Salome HOME
Feature #86: The hierarchy in the Object Browser (T 19).
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_PolylineOp.h
index 28667125ae145d5422d481d5cb0bcd7d0474130d..aebd8be05d6e912378811ef172d53e739292b261 100755 (executable)
@@ -28,9 +28,7 @@
 #include <HYDROData_Polyline.h>
 
 class OCCViewer_ViewManager;
-class SUIT_ViewManager;
 class CurveCreator_Curve;
-class HYDROGUI_AISCurve;
 
 class HYDROGUI_PolylineOp : public HYDROGUI_Operation
 {
@@ -40,6 +38,9 @@ public:
   HYDROGUI_PolylineOp( HYDROGUI_Module* theModule, bool isEdit );
   virtual ~HYDROGUI_PolylineOp();
 
+  void                       deleteSelected();
+  bool                       deleteEnabled();
+
 protected:
   virtual void               startOperation();
   virtual void               abortOperation();
@@ -49,25 +50,19 @@ protected:
 
   virtual bool               processApply( int& theUpdateFlags, QString& theErrorMsg );
 
-  void                       onCreatePreview();
-
 protected slots:
   void                       onEditorSelectionChanged();
 
-  void                       onLastViewClosed( SUIT_ViewManager* );
-
 private:
-  void                       closePreview();
+  void                       displayPreview();
+  void                       erasePreview();
 
 private:
-  SUIT_ViewManager*          myActiveViewManager;
-
-  OCCViewer_ViewManager*     myPreviewViewManager;
+  OCCViewer_ViewManager*     myViewManager;
 
   bool                       myIsEdit;
   Handle(HYDROData_Polyline) myEditedObject;
   CurveCreator_Curve*        myCurve;
-  HYDROGUI_AISCurve*         myAISCurve;
 };
 
 #endif