+ void salomeViewerSelectionChanged();
+
+signals:
+ void salomeViewerSelection();
+
+public slots:
+ void updateCommandStatus();
+
+ void onNew();
+ void onOpen();
+ void onSave();
+ void onSaveAs();
+ void onExit();
+ void onUndo();
+ void onRedo();
+
+ void showPropertyPanel();
+ void hidePropertyPanel();
+ void showObjectBrowser();
+ void hideObjectBrowser();
+
+ void onFeatureTriggered();
+ void changeCurrentDocument();
+
+signals:
+ void errorOccurred(const QString&);
+
+protected:
+ //Event-loop processing methods:
+ void addFeature(const Config_FeatureMessage*);
+ void connectWithOperation(ModuleBase_Operation* theOperation);
+ void saveDocument(QString theName);
+
+protected 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.
+ void onOperationStarted();
+ /// SLOT, that is called after the operation is stopped. Update workshop state, e.g.
+ /// hides the property panel and udpate the command status.
+ /// \param theOpertion a stopped operation
+ void onOperationStopped(ModuleBase_Operation* theOperation);
+
+private:
+ void initMenu();
+
+ XGUI_Module* loadModule(const QString& theModule);
+ bool activateModule();
+
+ QDockWidget* createObjectBrowser(QWidget* theParent);
+ QDockWidget* createPropertyPanel(QWidget* theParent);
+
+ // Creates Dock widgets: Object browser and Property panel
+ void createDockWidgets();
+ void setPropertyPannelTitle(const QString& theTitle);
+
+ QString myCurrentFile;
+ XGUI_MainWindow* myMainWindow;
+ XGUI_Module* myPartSetModule;
+ XGUI_ObjectsBrowser* myObjectBrowser;
+ QDockWidget* myPropertyPanelDock;
+ XGUI_SelectionMgr* mySelector;
+ XGUI_Displayer* myDisplayer;
+ XGUI_OperationMgr* myOperationMgr; ///< manager to manipulate through the operations
+ XGUI_ActionsMgr* myActionsMgr;
+ XGUI_SalomeConnector* mySalomeConnector;
+ XGUI_ErrorDialog* myErrorDlg;