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