AutoNum: a lot of changes

Schemas now get saved with a UUID and do not have to be looked up according to the form. They can be renamed and it gets reflected in existing elements. The GUI for
editing them is now much easier, e.g. forms can be reshuffled. A formula can be applied. Many options now also for conductors and sheets.
This commit is contained in:
Andre Rummler
2026-10-03 17:53:27 +02:00
parent 389fd454da
commit d76f3528ae
52 changed files with 6040 additions and 382 deletions
+7 -1
View File
@@ -51,11 +51,17 @@ public:
QVector<ElementChange> changes,
QHash<QString, NumerotationContext> old_ctx,
QHash<QString, NumerotationContext> new_ctx,
const QString &text);
const QString &text,
QUndoCommand *parent = nullptr);
const QVector<ElementChange> &changes() const { return changes_; }
void undo() override;
void redo() override;
/// Apply one change's old (@p use_new false) or new state.
static void applyChange(const ElementChange &change, bool use_new);
private:
void apply(bool use_new);