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:
twanvl
2006-10-20 14:24:36 +00:00
parent 44b516036d
commit 20f0efacd7
17 changed files with 93 additions and 55 deletions
+7 -7
View File
@@ -40,8 +40,8 @@ class AddCardAction : public CardListAction {
virtual String getName(bool to_undo) const;
virtual void perform(bool to_undo);
private:
CardP card; ///< The new card
//private:
const CardP card; ///< The new card
};
// ----------------------------------------------------------------------------- : Remove card
@@ -54,9 +54,9 @@ class RemoveCardAction : public CardListAction {
virtual String getName(bool to_undo) const;
virtual void perform(bool to_undo);
private:
CardP card; ///< The removed card
size_t card_id; ///< Position of the card in the set
//private:
const CardP card; ///< The removed card
const size_t card_id; ///< Position of the card in the set
};
// ----------------------------------------------------------------------------- : Reorder cards
@@ -69,8 +69,8 @@ class ReorderCardsAction : public CardListAction {
virtual String getName(bool to_undo) const;
virtual void perform(bool to_undo);
private:
size_t card_id1, card_id2; ///< Positions of the two cards to swap
//private:
const size_t card_id1, card_id2; ///< Positions of the two cards to swap
};
// ----------------------------------------------------------------------------- : EOF