1#ifndef Isis_GuiParameter_h
2#define Isis_GuiParameter_h
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;
93 QList<QWidget *> p_widgetList;
102 void HelperTrigger(
const QString &);
void Update()
Update the value on the GUI with the value in the UI.
bool IsEnabled() const
Is the parameter enabled.
virtual bool IsModified()
Return if the parameter value is different from the default value.
void RememberWidget(QWidget *w)
Add widgets to a list for enabling/disabling.
void SetToDefault()
Change the parameter to the default value.
virtual std::vector< QString > Exclusions()
Return list of current exclusions.
void SetEnabled(bool enabled, bool isParentCombo=false)
Enable or disable the parameter.
GuiParameter(QGridLayout *grid, UserInterface &ui, int group, int param)
Constructor.
void SetToCurrent()
Change the parameter to the current user interface value.
QString Name() const
Return the name of the parameter.
QWidget * AddHelpers(QObject *lo)
Sets up helper button.
virtual ~GuiParameter()
Destructor.
Command Line and Xml loader, validation, and access.
This is free and unencumbered software released into the public domain.