Salome HOME
Issue #2159 Hide all incomplete behavior
[modules/shaper.git] / src / XGUI / XGUI_Workshop.h
index 81f6d7a91b35cd8064ab06d1bed82386718e6bf1..9d67d191ec84944b7384f3addbbcaaecda90d759 100755 (executable)
@@ -58,7 +58,7 @@ class XGUI_EXPORT XGUI_Workshop : public QObject
 Q_OBJECT
  public:
   /// Constructor
-  /// \param theConnector a Salome connector object. 
+  /// \param theConnector a Salome connector object.
   /// Used only if the workshop is launched in Salome environment
   XGUI_Workshop(XGUI_SalomeConnector* theConnector = 0);
   virtual ~XGUI_Workshop();
@@ -176,7 +176,7 @@ Q_OBJECT
   void deleteObjects();
 
   //! Searches for selected features unused in other (not selected) features. If one or several
-  //! selected features are found, a warning message proposes to delete them. It contains 
+  //! selected features are found, a warning message proposes to delete them. It contains
   //! the list of features to be deleted.
   void cleanHistory();
 
@@ -196,11 +196,20 @@ Q_OBJECT
   //! \return boolean value
   bool canChangeColor() const;
 
-  //! Change color of the features if it is possible
+  //! Change color of the results if it is possible
   //! The operation is available for construction, body and group results
   //! theObjects a list of selected objects
   void changeColor(const QObjectPtrList& theObjects);
 
+  //! Returns true if there is at least one selected body/construction/group result
+  //! \return boolean value
+  bool canChangeDeflection() const;
+
+  //! Change deflection of the results if it is possible
+  //! The operation is available for construction, body and group results
+  //! theObjects a list of selected objects
+  void changeDeflection(const QObjectPtrList& theObjects);
+
   //! Show the given features in 3d Viewer
   void showObjects(const QObjectPtrList& theList, bool isVisible);
 
@@ -274,11 +283,14 @@ Q_OBJECT
   /// Has to be called in order to display objects with visibility status = true
   void synchronizeViewer();
 
-  /// Has to be called in order to display objects from a cpecifed group with visibility status = true
+  /// Has to be called in order to display objects from a specifed group
+  /// with visibility status = true
   /// \param theDoc the document for objects synchronisation
   /// \param theGroup the group name
   /// \param theUpdateViewer update viewer flag
-  void synchronizeGroupInViewer(const DocumentPtr& theDoc, const std::string& theGroup, bool theUpdateViewer);
+  void synchronizeGroupInViewer(const DocumentPtr& theDoc,
+                                const std::string& theGroup,
+                                bool theUpdateViewer);
 
   /// Update the property panel content by the XML description of the operation and set the panel
   /// into the operation
@@ -300,7 +312,7 @@ Q_OBJECT
   /// features found in the given list
   void highlightFeature(const QObjectPtrList& theObjects);
 
-  /// Returns Data Model XML reader which contains information about 
+  /// Returns Data Model XML reader which contains information about
   /// Data structure configuration
   const Config_DataModelReader* dataModelXMLReader() const { return myDataModelXMLReader; }