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
+6
View File
@@ -523,9 +523,15 @@ class QetScriptApi : public QObject
Q_INVOKABLE QStringList autoNums(const QString &kind) const;
Q_INVOKABLE bool addAutoNum(const QString &kind, const QString &name, const QStringList &parts);
Q_INVOKABLE bool removeAutoNum(const QString &kind, const QString &name);
Q_INVOKABLE bool renameAutoNum(const QString &kind, const QString &name, const QString &newName);
Q_INVOKABLE bool useConductorAutoNum(int folioIndex, const QString &name);
Q_INVOKABLE bool useElementAutoNum(const QString &name);
Q_INVOKABLE bool numberElement(int folioIndex, const QString &elementUuid);
Q_INVOKABLE int renumberElementAutoNum(const QString &name);
Q_INVOKABLE QVariantList freeElementNumbers(int folioIndex, const QString &elementUuid);
Q_INVOKABLE bool assignElementNumber(int folioIndex, const QString &elementUuid, int number);
Q_INVOKABLE bool assignElementAutoNum(const QString &name, int folioIndex,
const QString &elementUuid, bool overwrite);
// -- images, embedded in the project --
Q_INVOKABLE QStringList images(int folioIndex) const;