32 #ifndef pqPresetDialog_h 33 #define pqPresetDialog_h 37 #include <QModelIndex> 38 #include <QScopedPointer> 56 typedef QDialog Superclass;
67 SHOW_NON_INDEXED_COLORS_ONLY
76 void setMode(
Modes mode);
81 void setCurrentPreset(
const char* presetName);
86 const Json::Value& currentPreset();
91 bool loadColors()
const;
97 bool loadOpacities()
const;
103 bool loadAnnotations()
const;
108 QRegularExpression regularExpression();
115 bool usePresetRange()
const;
120 void setCustomizableLoadColors(
bool state,
bool defaultValue =
true);
125 void setCustomizableLoadAnnotations(
bool state,
bool defaultValue =
true);
130 void setCustomizableAnnotationsRegexp(
bool state,
bool defaultValue =
false);
135 void setCustomizableLoadOpacities(
bool state,
bool defaultValue =
true);
140 void setCustomizableUsePresetRange(
bool state,
bool defaultValue =
false);
143 void applyPreset(
const Json::Value& preset);
146 void updateEnabledStateForSelection();
147 void updateForSelectedIndex(
const QModelIndex& proxyIndex);
148 void triggerApply(
const QModelIndex& proxyIndex = QModelIndex());
149 void removePreset(
const QModelIndex& idx = QModelIndex());
150 void importPresets();
151 void exportPresets();
153 void setPresetIsAdvanced(
int newState);
157 void updateFiltering();
162 const QScopedPointer<pqInternals> Internals;
#define PQCOMPONENTS_EXPORT
pqPresetDialog is the dialog used by to show the user with a choice of color maps/opacity maps/preset...
Modes
Used to control what kinds of presets are shown in the dialog.