X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCalc%2Fgui%2FMEDModule.hxx;h=c53e6458a93e641367a016acdb9986db4143e8aa;hb=51ed503edb7d4390ce4078ba445128995d70ed9c;hp=4c783a6bc06ce9c05428915d0437cc91cbb3a923;hpb=7ddbc150b72576b70905f223e46abe7778ed7b57;p=modules%2Fmed.git diff --git a/src/MEDCalc/gui/MEDModule.hxx b/src/MEDCalc/gui/MEDModule.hxx index 4c783a6bc..c53e6458a 100644 --- a/src/MEDCalc/gui/MEDModule.hxx +++ b/src/MEDCalc/gui/MEDModule.hxx @@ -32,6 +32,7 @@ #include "DatasourceController.hxx" #include "PresentationController.hxx" #include "ProcessingController.hxx" +#include "TestController.hxx" #include #include CORBA_CLIENT_HEADER(MED_Gen) @@ -79,10 +80,15 @@ public: const QString& menus="", const QString& rule="client='ObjectBrowser'"); - MEDCALC::MEDPresentationViewMode getSelectedViewMode(); - MEDCALC::MEDPresentationColorMap getSelectedColorMap(); +// MEDCALC::ViewModeType getSelectedViewMode() const; +// MEDCALC::ColorMapType getSelectedColorMap() const; +// MEDCALC::ScalarBarRangeType getSelectedScalarBarRange() const; inline SALOME_AppStudyEditor* getStudyEditor() { return _studyEditor; } + void requestSALOMETermination() const; + +signals: + void presentationSelected(int presId, const QString& presType, const QString& presName); public slots: virtual bool activateModule(SUIT_Study* theStudy); @@ -90,13 +96,13 @@ public slots: virtual void onDblClick(const QModelIndex& index); virtual void onClick(const QModelIndex& index); - - private: void createModuleWidgets(); void createModuleActions(); void initToolbars(); - bool itemClickGeneric(const QModelIndex & index, std::string & name, int & fieldId, int & presId) const; + + bool itemClickGeneric(const QModelIndex & index, std::string & name, + std::string & type, int & fieldId, int & presId) const; static void init(); @@ -107,12 +113,17 @@ private: XmedDataModel* _xmedDataModel; PresentationController* _presentationController; ProcessingController* _processingController; + PVViewer_GUIElements* _pvGuiElements; static MED_ORB::MED_Gen_var _MED_engine; // GUI needs to talk directly to the pres manager to activate a view, get some params, etc ...: static MEDCALC::MEDPresentationManager_ptr _presManager; + +#ifdef MED_HAS_QTTESTING + TestController * _testController; +#endif }; #endif