Salome HOME
Issue #1933:Set auxiliary presentation style
[modules/shaper.git] / src / PartSet / PartSet_WidgetSketchLabel.h
index 30efc49ec353e0f177d660dc41f78b4277d0f884..b4606e57af194d664e0b7a5d4baf850695388e07 100644 (file)
@@ -27,6 +27,7 @@ class XGUI_OperationMgr;
 class XGUI_Workshop;
 class QCheckBox;
 class QStackedWidget;
+class QLineEdit;
 
 /**
 * \ingroup Modules
@@ -73,8 +74,13 @@ public:
   virtual void setHighlighted(bool) { /*do nothing*/ };
   virtual void enableFocusProcessing();
 
+  /// Returns True if the selected presentation can be used for plane definition
+  /// \param thePrs a presentation
   static bool canFillSketch(const std::shared_ptr<ModuleBase_ViewerPrs>& thePrs);
 
+  /// Set sketch plane from selected object
+  /// \param theFeature a feature of sketch
+  /// \param thePrs a presentation
   static bool fillSketchPlaneBySelection(const FeaturePtr& theFeature,
                                          const std::shared_ptr<ModuleBase_ViewerPrs>& thePrs);
 
@@ -108,7 +114,7 @@ protected:
 
   /// Saves the internal parameters to the given feature
   /// \return True in success
-  virtual bool storeValueCustom() const
+  virtual bool storeValueCustom()
   {
     return true;
   }
@@ -124,8 +130,9 @@ protected:
   /// Block the model flush of update and intialization of attribute
   /// In additional to curstom realization it blocks initialization for all feature attributes
   /// as the current attribute is selection but its modification leads to other attributes change
+  /// \param theAttribute an attribute
   /// \param theToBlock flag whether the model is blocked or unblocked
-  /// \param isActive out value if model is blocked, in value if model is unblocked
+  /// \param isFlushesActived out value if model is blocked, in value if model is unblocked
   /// to be used to restore flush state when unblocked
   /// \param isAttributeSetInitializedBlocked out value if model is blocked
   /// in value if model is unblocked to be used to restore previous state when unblocked
@@ -176,6 +183,8 @@ private:
 
   QMap<PartSet_Tools::ConstraintVisibleState, QCheckBox*> myShowConstraints;
 
+  QWidget* mySizeOfViewWidget; ///< Size of view widget, visualized if preview planes are shown
+  QLineEdit* mySizeOfView; ///< Value of square of size of View
   QStackedWidget* myStackWidget;
 };