4 #ifndef pqPresetDialog_h 5 #define pqPresetDialog_h 10 #include <QScopedPointer> 28 typedef QDialog Superclass;
39 SHOW_NON_INDEXED_COLORS_ONLY
48 void setMode(
Modes mode);
53 void setCurrentPreset(
const char* presetName);
58 const Json::Value& currentPreset();
63 bool loadColors()
const;
69 bool loadOpacities()
const;
75 bool loadAnnotations()
const;
80 QRegularExpression regularExpression();
87 bool usePresetRange()
const;
92 void setCustomizableLoadColors(
bool state,
bool defaultValue =
true);
97 void setCustomizableLoadAnnotations(
bool state,
bool defaultValue =
true);
102 void setCustomizableAnnotationsRegexp(
bool state,
bool defaultValue =
false);
107 void setCustomizableLoadOpacities(
bool state,
bool defaultValue =
true);
112 void setCustomizableUsePresetRange(
bool state,
bool defaultValue =
false);
115 void applyPreset(
const Json::Value& preset);
118 void updateEnabledStateForSelection();
119 void updateForSelectedIndex(
const QModelIndex& proxyIndex);
120 void triggerApply(
const QModelIndex& proxyIndex = QModelIndex());
121 void removePreset(
const QModelIndex& idx = QModelIndex());
122 void importPresets();
123 void exportPresets();
125 void setPresetIsAdvanced(
int newState);
129 void updateFiltering();
134 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.