Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/TextWindow.cpp

    rf6bbc6 r0188ea  
    3939#include "Actions/MethodAction.hpp"
    4040#include "Actions/ErrorAction.hpp"
    41 #include "Actions/ActionRegistry.hpp"
    4241#include "Views/StreamStringView.hpp"
    4342#include "Views/MethodStringView.hpp"
     
    5756  moleculeView = new StreamStringView(boost::bind(&MoleculeListClass::Enumerate,molecules,_1));
    5857  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);
    6758
    6859  new SeperatorItem(main_menu);
     
    10394  populaters.MakeEditMoleculesMenu(editMoleculesMenu,molecules,configuration,periode);
    10495
    105   Action *returnFromEditMoleculeAction = new TextMenu::LeaveAction(editMoleculesMenu);
     96  returnFromEditMoleculeAction = new MethodAction("returnAction",boost::bind(&TextMenu::doQuit,editMoleculesMenu),false);
    10697  MenuItem *returnItem = new ActionMenuItem('q',"return to Main menu",editMoleculesMenu,returnFromEditMoleculeAction);
    10798
     
    117108  delete old_menu;
    118109  delete quitAction;
     110  delete returnFromEditMoleculeAction;
    119111  delete moleculeView;
    120112  delete statusIndicator;
Note: See TracChangeset for help on using the changeset viewer.