5 #ifndef pqPresetGroupsManager_h 6 #define pqPresetGroupsManager_h 8 #include "pqComponentsModule.h" 66 typedef QObject Superclass;
83 int numberOfPresetsInGroup(
const QString& groupName);
88 QList<QString> presetsInGroup(
const QString& groupName);
94 int presetRankInGroup(
const QString& presetName,
const QString& groupName);
98 QList<QString> groupNames();
102 QString groupName(
int i);
111 void loadGroups(
const QString& json);
118 void replaceGroups(
const QString& json);
124 bool loadGroupsFromSettings();
130 void addToGroup(
const QString& groupName,
const QString& presetName);
135 void removeFromGroup(
const QString& groupName,
const QString& presetName);
140 void removeFromAllGroups(
const QString& presetName);
145 static QString getPresetGroupsJson();
151 void saveGroupsToSettings();
158 void groupsUpdated();
161 QList<QString> GroupNames;
162 QMap<QString, QList<QString>> Groups;
pqPresetGroupsManager is an object to manage the groups of color map presets displayed in the pqPrese...