X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCalc%2Fgui%2FWorkspaceController.hxx;h=5c69607673f702dcbb5a80bcbdbf7ddf97c57871;hb=d3c583650bcc9d95c88d904800a481ede33049d4;hp=cfbcb8d21b36daa09d6ba9608d8f640e295d2584;hpb=9b22259ac4215aa288b5b35790277d9717c042f4;p=modules%2Fmed.git diff --git a/src/MEDCalc/gui/WorkspaceController.hxx b/src/MEDCalc/gui/WorkspaceController.hxx index cfbcb8d21..5c6960767 100644 --- a/src/MEDCalc/gui/WorkspaceController.hxx +++ b/src/MEDCalc/gui/WorkspaceController.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2015 CEA/DEN, EDF R&D +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -26,6 +26,8 @@ #include "MEDEventListener_i.hxx" #include "XmedConsoleDriver.hxx" #include "DatasourceController.hxx" +#include "PresentationController.hxx" +#include "ProcessingController.hxx" #include "MEDCALCGUI.hxx" #include @@ -46,7 +48,7 @@ class MEDCALCGUI_EXPORT WorkspaceController: public TreeGuiManager { Q_OBJECT public: - WorkspaceController(MEDModule * salomeModule); + WorkspaceController(MEDModule* salomeModule); ~WorkspaceController(); void createActions(); @@ -56,30 +58,34 @@ public slots: void processItemList(QStringList itemNameIdList, int actionId); // Internal slots - void processMedEvent(const MEDCALC::MedEvent * event); - void processDatasourceEvent(const DatasourceEvent * event); + void processMedEvent(const MEDCALC::MedEvent* event); + void processDatasourceEvent(const DatasourceEvent* event); + void processPresentationEvent(const PresentationEvent* event); + void processProcessingEvent(const ProcessingEvent* event); void OnSaveWorkspace(); void OnCleanWorkspace(); signals: - void workspaceSignal(const MEDCALC::MedEvent * event); + void workspaceSignal(const MEDCALC::MedEvent* event); private: void _importItem(QString itemNameId); void _importItemList(QStringList itemNameIdList); - void _importFieldIntoConsole(MEDCALC::FieldHandler * fieldHandler, + void _importFieldIntoConsole(MEDCALC::FieldHandler* fieldHandler, bool askForOptions, - const char * alias=NULL); + const char* alias=NULL); void _exportItemList(QStringList itemNameIdList); void _saveItemList(QStringList itemNameIdList); void _removeItemList(QStringList itemNameIdList); void _viewItemList(QStringList itemNameIdList); + QString _getViewMode(); + QString _getColorMap(); private: - XmedConsoleDriver * _consoleDriver; - MEDModule * _salomeModule; - MEDEventListener_i * _medEventListener; + XmedConsoleDriver* _consoleDriver; + MEDModule* _salomeModule; + MEDEventListener_i* _medEventListener; // This structure is intended to memorized in a bundle the whole set // of integers identifying the actions of the popup menu associated