X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_SplitPolylinesDlg.h;h=bd42a88265f3b8eab5537eb9e49282449884f1bc;hb=282328072477a3e3cde6d02204129828c4c7ac23;hp=3dca4fba869b43615d28ecef1558273cf4166e5d;hpb=c46fa6f178bf824f147f41ca3bc8bc98b8def0ef;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_SplitPolylinesDlg.h b/src/HYDROGUI/HYDROGUI_SplitPolylinesDlg.h index 3dca4fba..bd42a882 100644 --- a/src/HYDROGUI/HYDROGUI_SplitPolylinesDlg.h +++ b/src/HYDROGUI/HYDROGUI_SplitPolylinesDlg.h @@ -20,14 +20,57 @@ #define HYDROGUI_SplitPolylinesDlg_H #include "HYDROGUI_InputPanel.h" +#include + +class QTabWidget; +class QtxDoubleSpinBox; +class HYDROGUI_ObjComboBox; +class HYDROGUI_ObjListBox; +class gp_Pnt2d; +class OCCViewer_Viewer; +class SUIT_ViewWindow; +class OCCViewer_ViewPort3d; class HYDROGUI_SplitPolylinesDlg : public HYDROGUI_InputPanel { Q_OBJECT +public: + enum Mode { ByPoint, ByTool, Split }; + public: HYDROGUI_SplitPolylinesDlg( HYDROGUI_Module* theModule, const QString& theTitle ); virtual ~HYDROGUI_SplitPolylinesDlg(); + + Mode GetMode() const; + Handle( HYDROData_PolylineXY ) GetMainPolyline() const; + Handle( HYDROData_PolylineXY ) GetToolPolyline() const; + gp_Pnt2d GetPoint() const; + HYDROData_SequenceOfObjects GetPolylines() const; + + void setPolylinesFromSelection(); + void setOCCViewer( OCCViewer_Viewer* theViewer ); + +signals: + void modeChanged(); + void pointMoved(); + void selectionChanged(); + +private slots: + void onMousePress( SUIT_ViewWindow*, QMouseEvent* ); + +private: + OCCViewer_ViewPort3d* getViewPort() const; + +private: + QTabWidget* myTab; + QtxDoubleSpinBox* myX; + QtxDoubleSpinBox* myY; + HYDROGUI_ObjComboBox* myMainPolyline1; + HYDROGUI_ObjComboBox* myMainPolyline2; + HYDROGUI_ObjComboBox* myToolPolyline; + HYDROGUI_ObjListBox* myPolylines; + OCCViewer_Viewer* myOCCViewer; }; #endif