Ignore:
Timestamp:
Mar 26, 2010, 3:13:31 PM (15 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
0f7883, 71910a, abd4a1
Parents:
cbc639
Message:

Added mechanism that deactivates undo and redo menupoint if not applicable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Actions/ActionHistory.hpp

    rcbc639 r770138  
    3737    virtual bool shouldUndo();
    3838
     39    virtual bool isActive();
     40
    3941  private:
    4042    virtual Action::state_ptr performCall();
     
    5355    virtual bool shouldUndo();
    5456
     57    virtual bool isActive();
     58
    5559  private:
    5660    virtual Action::state_ptr performCall();
     
    6569  void undoLast();
    6670  void redoLast();
     71
     72  bool hasUndo();
     73  bool hasRedo();
    6774
    6875  void addElement(Action*,Action::state_ptr);
Note: See TracChangeset for help on using the changeset viewer.