32 #ifndef pqPresetDialog_h 33 #define pqPresetDialog_h 35 #include "pqComponentsModule.h" 37 #include <QModelIndex> 38 #include <QScopedPointer> 59 typedef QDialog Superclass;
70 SHOW_NON_INDEXED_COLORS_ONLY
79 void setCurrentPreset(
const char* presetName);
84 const Json::Value& currentPreset();
90 bool loadColors()
const;
96 bool loadOpacities()
const;
102 bool loadAnnotations()
const;
109 bool usePresetRange()
const;
114 void setCustomizableLoadColors(
bool state,
bool defaultValue =
true);
119 void setCustomizableLoadAnnotations(
bool state,
bool defaultValue =
true);
124 void setCustomizableLoadOpacities(
bool state,
bool defaultValue =
true);
129 void setCustomizableUsePresetRange(
bool state,
bool defaultValue =
false);
132 void applyPreset(
const Json::Value& preset);
135 void updateEnabledStateForSelection();
136 void updateForSelectedIndex(
const QModelIndex& proxyIndex);
137 void triggerApply(
const QModelIndex& proxyIndex = QModelIndex());
138 void removePreset(
const QModelIndex& idx = QModelIndex());
139 void importPresets();
140 void exportPresets();
145 const QScopedPointer<pqInternals> Internals;
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.