]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
[MEDCalc] selecting a presentation activates the proper view.
authorabn <adrien.bruneton@cea.fr>
Thu, 7 Jul 2016 09:24:22 +0000 (11:24 +0200)
committerabn <adrien.bruneton@cea.fr>
Wed, 27 Jul 2016 10:35:24 +0000 (12:35 +0200)
src/MEDCalc/cmp/MEDPresentationManager_i.cxx
src/MEDCalc/cmp/MEDPresentationManager_i.hxx
src/MEDCalc/gui/MEDModule.cxx
src/MEDCalc/gui/MEDModule.hxx

index 920d0e060e2d92ddadbd893dafb224e0bd38eee9..e88e77cfb59e0e810e0fe3600cd6f7145d41468b 100644 (file)
@@ -194,7 +194,7 @@ MEDPresentationManager_i::activateView(MEDPresentation::TypeID presentationID)
 {
   std::map<MEDPresentation::TypeID, MEDPresentation*>::const_iterator citr = _presentations.find(presentationID);
   if (citr == _presentations.end()) {
-    std::cerr << "getPresentationPyViewId(): presentation not found!!" << std::endl;
+    std::cerr << "activateView(): presentation not found!!" << std::endl;
     return false;
   }
   MEDPresentation* presentation = (*citr).second;
index 4d455d20de4ac817d2b90d4b202b5886d37c67af..16c587583c355b7da86858d3e04df9b4d7be7b7f 100644 (file)
@@ -62,6 +62,8 @@ class MEDPresentationManager_i: public POA_MEDCALC::MEDPresentationManager,
 
   MEDCALC_EXPORT MEDCALC::MEDPresentationViewMode getPresentationViewMode(MEDPresentation::TypeID);
 
+  MEDCALC_EXPORT CORBA::Boolean activateView(MEDPresentation::TypeID presentationID);
+
  private:
   MEDPresentationManager_i();
   virtual ~MEDPresentationManager_i();
index f316d7d774582d55f1167e235f491fea592b0f9d..1a48312bec4bfde059c2135b118a07a1836b163f 100644 (file)
@@ -45,7 +45,6 @@
 #include "PVViewer_GUIElements.h"
 #endif
 
-
 #include "MEDFactoryClient.hxx"
 #include "MEDPresentationManager_i.hxx"
 #include <QTimer>
@@ -427,7 +426,6 @@ MEDModule::onClick(const QModelIndex & index)
     return;
 
   STDLOG("Presentation selection (activate view)");
-  STDLOG("  Presention infos:");
   std::ostringstream oss;
   oss << fieldId << " / " << presId;
   STDLOG("    - Field id / pres id:   " + oss.str());
index 9c6b27348922e52375ff828dbabde5a4e70cc5dd..d32a1c93cd5737a8a0431a96f45aa37cedb57043 100644 (file)
@@ -121,6 +121,7 @@ private:
 #ifdef MED_HAS_QTTESTING
   TestController * _testController;
 #endif
+
 };
 
 #endif