X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_Workshop.h;h=5a557db2bc5ddeb883d478c46bdbf98291ec483a;hb=19bc85698899d6bee8704e7b0953ee045b0eb66f;hp=f129faddff2d287e58e0a0ed2d6344d9b30b2fae;hpb=3f72c7b7d52e711cffe94d336d669c60dda1df1c;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_Workshop.h b/src/XGUI/XGUI_Workshop.h index f129faddf..5a557db2b 100644 --- a/src/XGUI/XGUI_Workshop.h +++ b/src/XGUI/XGUI_Workshop.h @@ -104,7 +104,7 @@ Q_OBJECT XGUI_Workbench* addWorkbench(const QString& theName); //! Redefinition of Events_Listener method - virtual void processEvent(const Events_Message* theMessage); + virtual void processEvent(const boost::shared_ptr& theMessage); //! Returns an object which provides interface to Salome Module (LightApp_Module) XGUI_SalomeConnector* salomeConnector() const @@ -157,6 +157,8 @@ Q_OBJECT //! Show the given features in 3d Viewer void showOnlyObjects(const QList& theList); + void setDisplayMode(const QList& theList, int theMode); + ModuleBase_IModule* module() const { return myModule; @@ -198,6 +200,7 @@ signals: void onExit(); void onUndo(); void onRedo(); + void onRebuild(); void onPreferences(); void showPropertyPanel(); @@ -211,14 +214,15 @@ signals: void activateLastPart(); protected: + bool event(QEvent * theEvent); //Event-loop processing methods: - void addFeature(const Config_FeatureMessage*); + void addFeature(const boost::shared_ptr&); void connectWithOperation(ModuleBase_Operation* theOperation); - void onFeatureUpdatedMsg(const ModelAPI_ObjectUpdatedMessage* theMsg); - void onFeatureCreatedMsg(const ModelAPI_ObjectUpdatedMessage* theMsg); - void onFeatureRedisplayMsg(const ModelAPI_ObjectUpdatedMessage* theMsg); - void onObjectDeletedMsg(const ModelAPI_ObjectDeletedMessage* theMsg); + void onFeatureUpdatedMsg(const boost::shared_ptr& theMsg); + void onFeatureCreatedMsg(const boost::shared_ptr& theMsg); + void onFeatureRedisplayMsg(const boost::shared_ptr& theMsg); + void onObjectDeletedMsg(const boost::shared_ptr& theMsg); void validateOperation(const QString& theOperationId); @@ -275,6 +279,9 @@ signals: static QMap myIcons; bool myUpdatePrefs; + + // Flag to check that part document is in process of activating + bool myPartActivating; }; #endif