Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/ActionHistory.cpp

    r047878 r446bc1  
    6767
    6868/****************** Contained actions *******************/
     69
     70const char ActionHistory::UndoAction::NAME[] = "undo";
     71
    6972ActionHistory::UndoAction::UndoAction(ActionHistory *_hist) :
    70   Action("Undo"),
     73  Action(NAME),
    7174  hist(_hist)
    7275{}
     
    9295
    9396Action::state_ptr ActionHistory::UndoAction::performCall(){
     97  std::cout << "Undo" << std::endl;
    9498  hist->undoLast();
    9599  return Action::success;
     
    106110}
    107111
     112const char ActionHistory::RedoAction::NAME[] = "redo";
     113
    108114ActionHistory::RedoAction::RedoAction(ActionHistory *_hist) :
    109     Action("Redo"),
     115    Action(NAME),
    110116    hist(_hist)
    111117{}
     
    122128
    123129bool ActionHistory::RedoAction::isActive(){
     130  std::cout << "Redo" << std::endl;
    124131  return hist->hasRedo();
    125132}
Note: See TracChangeset for help on using the changeset viewer.