32 #ifndef pqPresetDialog_h 33 #define pqPresetDialog_h 35 #include "pqComponentsModule.h" 37 #include <QModelIndex> 38 #include <QScopedPointer> 57 typedef QDialog Superclass;
65 SHOW_NON_INDEXED_COLORS_ONLY
72 void setCurrentPreset(
const char* presetName);
75 const Json::Value& currentPreset();
79 bool loadColors()
const;
83 bool loadOpacities()
const;
87 bool loadAnnotations()
const;
92 bool usePresetRange()
const;
95 void setCustomizableLoadColors(
bool state,
bool defaultValue=
true);
98 void setCustomizableLoadAnnotations(
bool state,
bool defaultValue=
true);
101 void setCustomizableLoadOpacities(
bool state,
bool defaultValue=
true);
104 void setCustomizableUsePresetRange(
bool state,
bool defaultValue=
false);
107 void applyPreset(
const Json::Value& preset);
110 void updateEnabledStateForSelection();
111 void updateForSelectedIndex(
const QModelIndex& proxyIndex);
112 void triggerApply(
const QModelIndex& proxyIndex=QModelIndex());
113 void removePreset(
const QModelIndex& idx=QModelIndex());
114 void importPresets();
115 void exportPresets();
120 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.