37 bool load(
const QString &path);
43 QString findKeyByPos(
const int pos)
const;
44 QStringList defaultIds()
const;
45 QStringList keys()
const;
46 QString key(
const int pos);
47 QStringList toolIds()
const;
48 QString toolId(
const QString &key)
const;
49 void removeAllNotExistIds(
const QStringList &ids);
50 int position(
const QString &key)
const;
51 bool contains(
const QString &key)
const;
52 bool isExistTheId(
const QString &
id)
const;
53 int spacingSize()
const;
55 void move(
const QString &key,
const int pos);
56 QString add(
const QString &
id);
57 QString insert(
const QString &
id,
const int pos);
58 void remove(
const QString &key);
59 void remove(
const int pos);
61 bool isFixed(
const QString &key)
const;
62 bool isFixed(
const int pos)
const;
67 ToolInstance *createInstance(
const QString &
id,
const QString &key);
69 bool isInvalid()
const;
70 QStringList positionsFromToolMeta(
const QJsonObject &root)
const;
71 QList<ToolInstance> toolInstancesFromToolMeta(
const QJsonObject &root)
const;
72 bool fixedFromToolMeta(
const QJsonObject &root,
const int index)
const;
73 int countFromToolMeta(
const QJsonObject &root,
const int index)
const;
74 QString alignmentFromToolMeta(
const QJsonObject &root)
const;
75 QStringList positionsFromToolMeta()
const;
76 QJsonObject metaRoot()
const;
77 QVariantList positionsFromCache();
78 void savePositionsToCache();
80 bool acceptCountField(
const QString &
id)
const;
83 QString m_settingsGroupName;
84 QString m_settingsGroupNameSubGroup;
85 QVector<ToolInstance *> m_instances;
86 int m_spacingSize = -1;
87 bool m_isValid =
false;