From: gonzalez <> Date: Thu, 11 Oct 2012 14:10:02 +0000 (+0000) Subject: Feature #1681 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=bbtkGEditor.git;a=commitdiff_plain;h=29e2cbfd540787fdf4ee0eb6ce04f424b49722d1 Feature #1681 Edit bbtk config file - DFGO --- diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx index 08a1b07..36014fa 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx @@ -1032,7 +1032,16 @@ void wxGUIEditorGraphicBBS::OnPlugPackage(wxCommandEvent& event) { } //========================================================================= void wxGUIEditorGraphicBBS::OnEditConfig(wxCommandEvent& event) { - printf("EED wxGUIEditorGraphicBBS::OnEditConfig ... not implemented ..\n"); + std::string commandStr; + std::string configFile = ConfigurationFile::GetInstance().Get_config_xml_full_path(); + #ifdef WIN32 + commandStr = "notepad.exe "; + #else + commandStr = "gedit "; + #endif + commandStr = commandStr + configFile; + std::cout << "system: " << commandStr << std::endl; + system ( commandStr.c_str() ); } //=========================================================================