mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
added 'undone' parameter to onAction
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@43 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -47,7 +47,8 @@ class Action {
|
||||
/// Base class/interface for objects that listen to actions
|
||||
class ActionListener {
|
||||
public:
|
||||
virtual void onAction(const Action& a) = 0;
|
||||
/// Notification that an action a has been performed or undone
|
||||
virtual void onAction(const Action& a, bool undone) = 0;
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : Action stack
|
||||
@@ -98,7 +99,7 @@ class ActionStack {
|
||||
/// Remove an action listener
|
||||
void removeListener(ActionListener* listener);
|
||||
/// Tell all listeners about an action
|
||||
void tellListeners(const Action&);
|
||||
void tellListeners(const Action&, bool undone);
|
||||
|
||||
private:
|
||||
/// Actions to be undone
|
||||
|
||||
Reference in New Issue
Block a user