Loading [MathJax]/jax/output/NativeMML/config.js
 |
Isis 3 Programmer Reference
|
1 #ifndef Isis_GuiParameter_h
2 #define Isis_GuiParameter_h
11 #include <QGridLayout>
17 #include <QToolButton>
52 virtual QString Value() = 0;
54 virtual void Set(QString newValue) = 0;
56 void SetEnabled(
bool enabled,
bool isParentCombo=
false);
60 return p_label->isEnabled();
73 enum ParameterType { IntegerWidget, DoubleWidget, StringWidget,
74 ListWidget, FileNameWidget, CubeWidget,
75 BooleanWidget, ComboWidget
77 ParameterType Type() {
83 QToolButton *p_fileButton;
84 QLineEdit *p_lineEdit;
102 void HelperTrigger(
const QString &);
void RememberWidget(QWidget *w)
Add widgets to a list for enabling/disabling.
void Update()
Update the value on the GUI with the value in the UI.
void SetToDefault()
Change the parameter to the default value.
bool IsEnabled() const
Is the parameter enabled.
GuiParameter(QGridLayout *grid, UserInterface &ui, int group, int param)
Constructor.
virtual ~GuiParameter()
Destructor.
void SetEnabled(bool enabled, bool isParentCombo=false)
Enable or disable the parameter.
virtual bool IsModified()
Return if the parameter value is different from the default value.
QString Name() const
Return the name of the parameter.
virtual std::vector< QString > Exclusions()
Return list of current exclusions.
void SetToCurrent()
Change the parameter to the current user interface value.
Command Line and Xml loader, validation, and access.
This is free and unencumbered software released into the public domain.
QWidget * AddHelpers(QObject *lo)
Sets up helper button.