2 // Author : Guillaume Boulant (EDF)
4 #ifndef _WORKSPACE_CONTROLLER_HXX
5 #define _WORKSPACE_CONTROLLER_HXX
7 #include "TreeGuiManager.hxx"
8 #include "MEDEventListener_i.hxx"
9 #include "XmedConsoleDriver.hxx"
10 #include "DatasourceController.hxx"
11 #include "MEDOPGUI.hxx"
13 #include <SALOMEconfig.h>
14 #include CORBA_CLIENT_HEADER(MEDDataManager)
15 #include <StandardApp_Module.hxx>
20 * This class defines a DockWidget plugged in the SALOME application,
21 * and containing a tree view for rendering a hierarchical data
22 * model. This datamodel contains the objects used in the workspace.
24 class MEDOPGUI_EXPORT WorkspaceController: public TreeGuiManager {
29 WorkspaceController(StandardApp_Module * salomeModule);
30 ~WorkspaceController();
35 // Slots overiding TreeGuiManager
36 void processItemList(QStringList itemNameIdList, int actionId);
39 void processMedEvent(const MEDOP::MedEvent * event);
40 void processDatasourceEvent(const DatasourceEvent * event);
41 void OnSaveWorkspace();
42 void OnCleanWorkspace();
45 XmedConsoleDriver * _consoleDriver;
46 StandardApp_Module * _salomeModule;
47 void _importItem(QString itemNameId);
48 void _importItemList(QStringList itemNameIdList);
49 void _importFieldIntoConsole(MEDOP::FieldHandler * fieldHandler,
51 const char * alias=NULL);
53 void _exportItemList(QStringList itemNameIdList);
54 void _saveItemList(QStringList itemNameIdList);
55 void _viewItemList(QStringList itemNameIdList);
57 MEDEventListener_i * _medEventListener;
59 // This structure is intended to memorized in a bundle the whole set
60 // of integers identifying the actions of the popup menu associated
61 // to the TreeView embedded in this TreeGuiManager
70 ActionIdentifiers _actionIds;
74 #endif // _WORKSPACE_CONTROLLER_HXX