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"));
}
//=========================================================================
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() );
}
//=========================================================================