1 #ifndef Isis_GuiParameter_h 2 #define Isis_GuiParameter_h 27 #include <QGridLayout> 33 #include <QToolButton> 68 virtual QString Value() = 0;
70 virtual void Set(QString newValue) = 0;
72 void SetEnabled(
bool enabled,
bool isParentCombo=
false);
76 return p_label->isEnabled();
89 enum ParameterType { IntegerWidget, DoubleWidget, StringWidget,
90 ListWidget, FileNameWidget, CubeWidget,
91 BooleanWidget, ComboWidget
93 ParameterType Type() {
99 QToolButton *p_fileButton;
100 QLineEdit *p_lineEdit;
111 ParameterType p_type;
118 void HelperTrigger(
const QString &);
virtual ~GuiParameter()
Destructor.
void SetEnabled(bool enabled, bool isParentCombo=false)
Enable or disable the parameter.
QWidget * AddHelpers(QObject *lo)
Sets up helper button.
QString Name() const
Return the name of the parameter.
bool IsEnabled() const
Is the parameter enabled.
void Update()
Update the value on the GUI with the value in the UI.
void SetToDefault()
Change the parameter to the default value.
GuiParameter(QGridLayout *grid, UserInterface &ui, int group, int param)
Constructor.
virtual bool IsModified()
Return if the parameter value is different from the default value.
void SetToCurrent()
Change the parameter to the current user interface value.
Namespace for ISIS/Bullet specific routines.
virtual std::vector< QString > Exclusions()
Return list of current exclusions.
Command Line and Xml loader, validation, and access.
void RememberWidget(QWidget *w)
Add widgets to a list for enabling/disabling.