- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/TextUI/TextWindow.cpp
r326bbe rb2531f 25 25 #include "Views/StreamStringView.hpp" 26 26 #include "Views/MethodStringView.hpp" 27 #include "Helpers/MemDebug.hpp" 27 28 28 29 #include "defs.hpp" … … 70 71 new ActionMenuItem('a',"set molecule (in)active",main_menu,setMoleculeAction); 71 72 72 TextMenu *AnalysisMenu = new TextMenu(Log() << Verbose(0), "Analysis"); 73 NametoTextMenuMap.insert( pair <std::string, TextMenu *> ("analysis", AnalysisMenu) ); 74 new SubMenuItem('A',"Analysis (pair correlation, volume)",main_menu,AnalysisMenu); 75 76 TextMenu *CommandMenu = new TextMenu(Log() << Verbose(0), "Configuration"); 77 NametoTextMenuMap.insert( pair <std::string, TextMenu *> ("command", CommandMenu) ); 78 new SubMenuItem('c',"configuration",main_menu,CommandMenu); 79 80 TextMenu *AtomMenu = new TextMenu(Log() << Verbose(0), "Atoms"); 81 NametoTextMenuMap.insert( pair <std::string, TextMenu *> ("atom", AtomMenu) ); 82 new SubMenuItem('e',"edit atoms",main_menu,AtomMenu); 83 84 TextMenu *FragmentationMenu = new TextMenu(Log() << Verbose(0), "Fragmentation"); 85 NametoTextMenuMap.insert( pair <std::string, TextMenu *> ("fragmentation", FragmentationMenu) ); 86 new SubMenuItem('f',"fragmentation",main_menu,FragmentationMenu); 87 88 TextMenu *ParserMenu = new TextMenu(Log() << Verbose(0), "Parse files"); 89 NametoTextMenuMap.insert( pair <std::string, TextMenu *> ("parser", ParserMenu) ); 90 new SubMenuItem('p',"parse files into system",main_menu,ParserMenu); 91 92 TextMenu *MoleculesMenu = new TextMenu(Log() << Verbose(0), "Edit Molecules"); 93 NametoTextMenuMap.insert( pair <std::string, TextMenu *> ("analysis", AnalysisMenu) ); 94 new SubMenuItem('m',"edit molecules (load, parse, save)",main_menu,MoleculesMenu); 95 96 TextMenu *TesselationMenu = new TextMenu(Log() << Verbose(0), "Tesselate Molecules"); 97 NametoTextMenuMap.insert( pair <std::string, TextMenu *> ("tesselation", TesselationMenu) ); 98 new SubMenuItem('t',"tesselate molecules",main_menu,TesselationMenu); 99 100 TextMenu *WorldMenu = new TextMenu(Log() << Verbose(0), "World"); 101 NametoTextMenuMap.insert( pair <std::string, TextMenu *> ("world", WorldMenu) ); 102 new SubMenuItem('w',"edit world",main_menu,WorldMenu); 73 TextMenu *Menu = NULL; 74 std::set <char> ShortcutList; 75 for(map<std::string, pair<std::string,std::string> >::iterator iter = MapOfActions::getInstance().MenuDescription.begin(); iter != MapOfActions::getInstance().MenuDescription.end(); ++iter) { 76 Menu = new TextMenu(Log() << Verbose(0), iter->second.second); 77 NametoTextMenuMap.insert( pair <std::string, TextMenu *> (iter->first, Menu) ); 78 new SubMenuItem(getSuitableShortForm(ShortcutList,iter->first),iter->second.first.c_str(),main_menu,Menu); 79 } 103 80 104 81 new SeperatorItem(main_menu);
Note:
See TracChangeset
for help on using the changeset viewer.