Bulk card modification

This commit is contained in:
GenevensiS
2025-12-04 15:44:04 +01:00
committed by GitHub
parent f22046d77b
commit 2932d0007d
12 changed files with 527 additions and 24 deletions
+30
View File
@@ -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