Salome HOME
Implement folder operations for sub document
[modules/shaper.git] / src / XGUI / XGUI_Workshop.h
index 0f0c350fd4cd455a1662df74bce6472c3e2881c8..8a96cfa803fd838891e70dad003e90cf6974a787 100755 (executable)
@@ -211,23 +211,25 @@ Q_OBJECT
   bool canBeShaded(const ObjectPtr& theObject) const;
 
   //! Returns true if there is at least one selected body/construction/group result
+  //! \param theActionName text of the checked action
   //! \return boolean value
-  bool canChangeColor() const;
+  bool canChangeProperty(const QString& theActionName) const;
 
   //! 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);
 
+  //! Change transparency of the results if it is possible
+  //! The operation is available for construction, body and group results
+  //! theObjects a list of selected objects
+  void changeTransparency(const QObjectPtrList& theObjects);
+
   //! Show the given features in 3d Viewer
   void showObjects(const QObjectPtrList& theList, bool isVisible);
 
@@ -423,6 +425,11 @@ signals:
   /// Activates/deactivates the trihedron in the viewer AIS context
   void onTrihedronVisibilityChanged(bool theState);
 
+  /// Apply the current transparency value if preview in transparency dialog is switched on
+  void onTransparencyValueChanged();
+
+  /// Switch on/off preview of transparency change
+  void onPreviewStateChanged();
 
  protected:
   /// Sets the granted operations for the parameter operation. Firstly, it finds the nested features
@@ -441,6 +448,15 @@ private:
   /// Display results from a group
   void displayGroupResults(DocumentPtr theDoc, std::string theGroup);
 
+  /// Insert folder object before currently selected feature
+  void insertFeatureFolder();
+
+  /// Insert an object to a folder above or below
+  void insertToFolder(bool isBefore);
+
+  /// Insert an object to a folder above or below
+  void moveOutFolder(bool isBefore);
+
  private slots:
   /// SLOT, that is called after the operation is started. Update workshop state according to
   /// the started operation, e.g. visualizes the property panel and connect to it.