// }
//}
-char*
+char *
MEDPresentationManager_i::getParavisDump(MEDPresentation::TypeID presentationID)
{
MEDPresentation* pres = _getPresentation(presentationID);
if (pres) {
- return (char*) pres->paravisDump().c_str();
+ return CORBA::string_dup(pres->paravisDump().c_str());
}
else
throw KERNEL::createSalomeException("getParavisDump(): presentation not found!!");
MEDCALC_EXPORT CORBA::Boolean activateView(MEDPresentation::TypeID);
MEDCALC_EXPORT CORBA::Long getActiveViewPythonId();
// MEDCALC_EXPORT MEDCALC::ViewModeType getPresentationViewMode(MEDPresentation::TypeID);
- MEDCALC_EXPORT char* getParavisDump(MEDPresentation::TypeID presentationID);
+ MEDCALC_EXPORT char * getParavisDump(MEDPresentation::TypeID presentationID);
MEDCALC_EXPORT MEDCALC::PresentationsList* getAllPresentations();
private:
<source>ICO_WORKSPACE_SAVE</source>
<translation>workspace_save.png</translation>
</message>
+ <message>
+ <source>ICO_ICO_DELETE_PRESENTATION</source>
+ <translation>delete.png</translation>
+ </message>
<!-- Presentation toolbar icons (default theme)-->
<message>
<source>ICO_PRESENTATION_MESH_VIEW_DEFAULT</source>
<message>
<source>TIP_DELETE_PRESENTATION</source>
<translation>Delete selected presentation</translation>
+ </message>
+ <message>
+ <source>LAB_PARAVIS_DUMP</source>
+ <translation>Dump pipeline</translation>
+ </message>
+ <message>
+ <source>TIP_PARAVIS_DUMP</source>
+ <translation>Dump the low level Python commands of the presentation</translation>
</message>
<message>
<source>MENU_PRESENTATIONS</source>
label = tr("LAB_DELETE_PRESENTATION");
tooltip = tr("TIP_DELETE_PRESENTATION");
- icon = tr(_getIconName("ICO_DELETE_PRESENTATION").c_str());
+ icon = tr("ICO_DELETE_PRESENTATION");
actionId = _salomeModule->createStandardAction(label,this, SLOT(onDeletePresentation()),icon,tooltip);
// _salomeModule->createTool(actionId, presentationToolbarId);
// _salomeModule->action(actionId)->setIconVisibleInMenu(true);
_salomeModule->createMenu(actionId, presentationMenuId);
- //
- // Actions for popup menu only
- //
// Low level PARAVIS dump
label = tr("LAB_PARAVIS_DUMP");
- //icon = tr("ICO_DATASOURCE_EXPAND_FIELD");
+ tooltip = tr("TIP_PARAVIS_DUMP");
actionId = _salomeModule->createStandardAction(label,this,SLOT(onParavisDump()),"");
- _salomeModule->addActionInPopupMenu(actionId);
+ _salomeModule->createMenu(actionId, presentationMenuId);
+ //
+ // Actions for popup menu only
+ //
}
continue;
std::string dump(_presManager->getParavisDump(presId));
- std::cerr << "#====== ParaVis dump =============== " << std::endl;
+ std::cerr << "#====== ParaVis dump (presentation " << presId << ") =====" << std::endl;
std::cerr << dump;
- std::cerr << "#====== End of ParaVis dump ======== " << std::endl;
+ std::cerr << "#====== End of ParaVis dump =============== " << std::endl;
break; // stop at the first one
}