Salome HOME
A revision of documentation changes in the new version. Very minor corrections.
[modules/gui.git] / src / OCCViewer / OCCViewer_ClippingDlg.h
index 4a6aced3626b4bd1c23d80cff6c494ca51dafa64..13a293f525b476320b84ab46b1c6cca32d2b62bf 100644 (file)
@@ -37,6 +37,8 @@ class QPushButton;
 class QComboBox;
 class QCheckBox;
 class QtxDoubleSpinBox;
+class QtxDoubleSpinSlider;
+class QtxIntSpinSlider;
 class QStackedLayout;
 class QSlider;
 class QMenu;
@@ -66,6 +68,7 @@ private :
   virtual void showEvent ( QShowEvent * );
   virtual void hideEvent ( QHideEvent * );
   void initParam();
+  void setPlaneParam( OCCViewer_ClipPlane& thePlane );
   void displayPreview();
   void erasePreview();
   void updatePreview();
@@ -76,6 +79,10 @@ private :
   OCCViewer_ClipPlane& getClipPlane( int );
   int clipPlanesCount();
 
+  OCCViewer_ClipPlane::PlaneMode currentPlaneMode() const;
+
+private:
+
   QComboBox* ComboBoxPlanes;
   QCheckBox* isActivePlane;
   QPushButton* buttonNew;
@@ -109,12 +116,9 @@ private :
   QLabel* TextLabelDistance;
   QLabel* TextLabelRotation1;
   QLabel* TextLabelRotation2;
-  QLabel* TLValueDistance;
-  QLabel* TLValueRotation1;
-  QLabel* TLValueRotation2;
-  QSlider* SliderDistance;
-  QSlider* SliderRotation1;
-  QSlider* SliderRotation2;
+  QtxDoubleSpinSlider* SpinSliderDistance;
+  QtxIntSpinSlider* SpinSliderRotation1;
+  QtxIntSpinSlider* SpinSliderRotation2;
   QComboBox* CBRelativeOrientation;
 
   QCheckBox* PreviewCheckBox;
@@ -127,7 +131,6 @@ private :
   OCCViewer_Viewer* myModel;
   Handle(V3d_View) myView3d;
 
-  Standard_Integer myCurrentClipPlaneMode;
   std::vector<Handle(AIS_Plane)> myPreviewPlaneVector;
 
   bool myIsSelectPlane;
@@ -166,10 +169,6 @@ private slots:
   void onPreview( bool on );
   void onAutoApply(bool);
 
-  void SliderDistanceHasMoved(int);
-  void SliderRotation1HasMoved(int);
-  void SliderRotation2HasMoved(int);
-
   void onPlaneClicked( const Handle_AIS_Plane& thePlane );
   void onPlaneDragged( const Handle_AIS_Plane& thePlane );
 };