mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
Bulk card modification
This commit is contained in:
@@ -147,8 +147,38 @@ public:
|
||||
Set& set; ///< The set to copy styling from
|
||||
CardP card; ///< The affected card
|
||||
IndexMap<FieldP,ValueP> styling_data; ///< The old styling of the card
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : Change notes
|
||||
|
||||
/// Changing the notes of a card
|
||||
class ChangeCardNotesAction : public Action {
|
||||
public:
|
||||
ChangeCardNotesAction(const CardP& card, const String& notes);
|
||||
|
||||
String getName(bool to_undo) const override;
|
||||
void perform(bool to_undo) override;
|
||||
|
||||
//private:
|
||||
CardP card; ///< The affected card
|
||||
String notes; ///< Its old notes
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : Change uid
|
||||
|
||||
/// Changing the uid of a card
|
||||
class ChangeCardUIDAction : public CardListAction {
|
||||
public:
|
||||
ChangeCardUIDAction(Set& set, const CardP& card, const String& id);
|
||||
|
||||
String getName(bool to_undo) const override;
|
||||
void perform(bool to_undo) override;
|
||||
|
||||
//private:
|
||||
CardP card; ///< The affected card
|
||||
String uid; ///< Its old uid
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : Pack types
|
||||
|
||||
/// An Action the changes the pack types of a set
|
||||
|
||||
Reference in New Issue
Block a user