X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_Workshop.h;h=8a96cfa803fd838891e70dad003e90cf6974a787;hb=8259f38e8a93b8a65d5c4ec88a39c211c7ae9c4d;hp=0f0c350fd4cd455a1662df74bce6472c3e2881c8;hpb=87b6a30a3afb8fb32e7e43ade8d9c947d9eb1684;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_Workshop.h b/src/XGUI/XGUI_Workshop.h index 0f0c350fd..8a96cfa80 100755 --- a/src/XGUI/XGUI_Workshop.h +++ b/src/XGUI/XGUI_Workshop.h @@ -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.