//--------------------------------------------------------- bool CWKSP_Module_Manager::On_Command(int Cmd_ID) { switch( Cmd_ID ) { default: return( CWKSP_Base_Manager::On_Command(Cmd_ID) ); case ID_CMD_MODULES_OPEN: Open(); break; case ID_CMD_MODULES_SEARCH: { CWKSP_Base_Item *pItem = g_pModule_Ctrl->Search_Item(_TL("Run Tool"), WKSP_ITEM_Module); if( pItem && pItem->GetId().IsOk() && pItem->Get_Type() == WKSP_ITEM_Module ) { ((CWKSP_Module *)pItem)->Execute(true); } } break; case ID_CMD_MODULES_SAVE_DOCS: { wxString Path; if( DLG_Directory(Path, _TL("Create Tool Description Files")) ) { MSG_General_Add(wxString::Format(SG_T("%s..."), _TL("Create Tool Description Files")), true, true); SG_Get_Module_Library_Manager().Get_Summary(&Path); MSG_General_Add(_TL("okay"), false, false, SG_UI_MSG_STYLE_SUCCESS); } } break; } return( true ); }
bool DLG_Directory(wxString &Directory, const wxString &Caption) { return( DLG_Directory(Directory, Caption, SG_File_Get_Path(Directory).w_str()) ); }