Changes in src/UIElements/TextWindow.cpp [0188ea:f6bbc6]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/TextWindow.cpp
r0188ea rf6bbc6 39 39 #include "Actions/MethodAction.hpp" 40 40 #include "Actions/ErrorAction.hpp" 41 #include "Actions/ActionRegistry.hpp" 41 42 #include "Views/StreamStringView.hpp" 42 43 #include "Views/MethodStringView.hpp" … … 56 57 moleculeView = new StreamStringView(boost::bind(&MoleculeListClass::Enumerate,molecules,_1)); 57 58 new DisplayMenuItem(main_menu,moleculeView,"Molecule List"); 59 60 new SeperatorItem(main_menu); 61 62 Action* undoAction = ActionRegistry::getInstance().getActionByName("Undo"); 63 new ActionMenuItem('u',"Undo last operation",main_menu,undoAction); 64 65 Action* redoAction = ActionRegistry::getInstance().getActionByName("Redo"); 66 new ActionMenuItem('r',"Redo last operation",main_menu,redoAction); 58 67 59 68 new SeperatorItem(main_menu); … … 94 103 populaters.MakeEditMoleculesMenu(editMoleculesMenu,molecules,configuration,periode); 95 104 96 returnFromEditMoleculeAction = new MethodAction("returnAction",boost::bind(&TextMenu::doQuit,editMoleculesMenu),false);105 Action *returnFromEditMoleculeAction = new TextMenu::LeaveAction(editMoleculesMenu); 97 106 MenuItem *returnItem = new ActionMenuItem('q',"return to Main menu",editMoleculesMenu,returnFromEditMoleculeAction); 98 107 … … 108 117 delete old_menu; 109 118 delete quitAction; 110 delete returnFromEditMoleculeAction;111 119 delete moleculeView; 112 120 delete statusIndicator;
Note:
See TracChangeset
for help on using the changeset viewer.