Salome HOME
refs #1327: debug of scaling operations
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_LandCoverMapOp.h
index 1a33bf25a6c2b81388991e1088831bbba576bce9..b34d2f422b1c66e9c68bc7cbc73c27be63d2279f 100644 (file)
@@ -25,6 +25,9 @@
 
 #include <AIS_InteractiveContext.hxx>
 
+class SUIT_ViewWindow;
+class QMouseEvent;
+
 class HYDROGUI_LandCoverMapOp : public HYDROGUI_Operation
 {
   Q_OBJECT
@@ -45,23 +48,34 @@ protected:
 
   virtual HYDROGUI_Shape*        getPreviewShape() const { return myPreviewPrs; };
 
+signals:
+  void                           selectionChanged();
+  void                           deselection();
+
 protected slots:
   void                           onLandCoverMapChanged( const QString& theName );
+  void                           onPolylineFaceChanged();
   void                           onCreatePreview();
   void                           onViewerSelectionChanged();
+  void                           onMousePress(SUIT_ViewWindow*, QMouseEvent*);
+  void                           onMouseRelease(SUIT_ViewWindow*, QMouseEvent*);
 
 private:
   void                           closePreview();
 
   Handle(AIS_InteractiveContext) getInteractiveContext();
-  void                           getSelectedShapes( TopTools_ListOfShape& theSelectedShapes,
-                                                    Handle(AIS_InteractiveContext)& theCtx );
+  void                           getSelectedShapes( TopTools_ListOfShape& theSelectedShapes );
+  int                            getNbSelected();
+  void                           selectLandCoverInPreview();
 
 private:
   int                             myOperationId;
   Handle(HYDROData_LandCoverMap)  myEditedObject;
 
   HYDROGUI_Shape*                 myPreviewPrs;
+  HYDROGUI_Shape*                 myPolylineFacePreviewPrs;
+
+  QPoint                          myStartPnt, myEndPnt;
 };
 
 #endif