]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx
Feature #1681
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / bbtkwxGUIEditorGraphicBBS.cxx
index b7fb989f9145d65c2075d126c8b34d9c5de0dd95..36014fa6e33b89ed3344916f898106d3218289b8 100644 (file)
@@ -150,7 +150,10 @@ void wxGUIEditorGraphicBBS::initToolbar() {
        toolbar->AddTool(ID_ADDCOMPLEXBOXOUTPUT, _T("Add output to Complex box"),
                        bmp_complexoutputport, wxNullBitmap, wxITEM_NORMAL,
                        _T("Add output Complex box"), _T("Add output Complex box"));
-       toolbar->EnableTool(ID_ADDCOMPLEXBOXINPUT, false);
+
+       // toolbar->EnableTool(ID_ADDCOMPLEXBOXINPUT, false); RaC2012 2nd HackFest
+       toolbar->EnableTool(ID_ADDCOMPLEXBOXINPUT, true);
+
        toolbar->EnableTool(ID_ADDCOMPLEXBOXOUTPUT, false);
        toolbar->AddSeparator();
        toolbar->AddTool(ID_UNDO, _T("Undo"),bmp_undo, wxNullBitmap, wxITEM_NORMAL,     _T("Undo"), _T("Undo"));
@@ -1029,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() );
     }
     //=========================================================================