Salome HOME
table de Strickler complete
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_SplitPolylinesOp.h
index e2454a54307810ba6560e53a305fd1eb2d95e63f..c81a69ab44a5df848e35149313ed8daa6b763478 100644 (file)
 
 #include "HYDROGUI_Operation.h"
 
+class SUIT_ViewWindow;
+
+class AIS_Shape;
+
+class QMouseEvent;
+
 class HYDROGUI_SplitPolylinesOp : public HYDROGUI_Operation
 {
   Q_OBJECT
@@ -31,11 +37,24 @@ public:
 
 protected:
   virtual void startOperation();
+  virtual void abortOperation();
+  virtual void commitOperation();
 
   virtual HYDROGUI_InputPanel* createInputPanel() const;
 
   virtual bool processApply( int& theUpdateFlags, QString& theErrorMsg,
                              QStringList& theBrowseObjectsEntries );
+
+  virtual HYDROGUI_Shape*      getPreviewShape() const { return myPreviewPrs; };
+
+protected slots:
+  void OnUpdatePreview();
+  void erasePreview();
+  void onMousePress(SUIT_ViewWindow*, QMouseEvent*);
+
+private:
+  HYDROGUI_Shape* myPreviewPrs;
+  AIS_Shape*      mySplitPointPreview;
 };
 
 #endif