X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_WorkshopListener.h;h=cf611cb264680e099968938df799dfa85ffb36c5;hb=95eee6723538599e290922329bb5b2653ebaab20;hp=fa41577cc5e2d42db19ac595e6902e9d0f916e8e;hpb=8873182f935a9f77cdb25a770d4c8780b7669773;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_WorkshopListener.h b/src/XGUI/XGUI_WorkshopListener.h index fa41577cc..cf611cb26 100755 --- a/src/XGUI/XGUI_WorkshopListener.h +++ b/src/XGUI/XGUI_WorkshopListener.h @@ -28,9 +28,8 @@ class XGUI_EXPORT XGUI_WorkshopListener : public QObject, public Events_Listener { Q_OBJECT public: - /// Constructor - /// \param theConnector a Salome connector object. - /// Used only if the workshop is launched in Salome environment + /// Constructor. Used only if the workshop is launched in Salome environment + /// \param theWorkshop a reference to workshop. XGUI_WorkshopListener(ModuleBase_IWorkshop* theWorkshop); virtual ~XGUI_WorkshopListener(); @@ -44,12 +43,6 @@ signals: /// Emitted when error in applivation happens void errorOccurred(const QString&); -protected slots: - /// Updates Apply All button state of the feature to the state if the feature has the button - /// \param theFeatureId an index of the feature, the action is searched, which state is to be changed - /// \param theState an action enable state - void onNestedStateChanged(const std::string& theFeatureId, const bool theState); - protected: /// Procedure to process postponed events bool event(QEvent * theEvent); @@ -69,8 +62,10 @@ protected: /// Displaus object and fit all viewer if the object is first (update viewer will not be called) /// Asks the module whether the object can be displayed /// \param theObj an object + /// \param theFirstVisualizedBody an output state whether there are not object displayed in the view + /// and the displayed object is a body /// \return true if the object is displayed - bool displayObject(ObjectPtr theObj); + bool displayObject(ObjectPtr theObj, bool& theFirstVisualizedBody); /// Calls the module method of cusomize object for the feature of the current operation /// \return true if the object is modified