|
Isis Developer Reference
|
Go to the documentation of this file. 1 #ifndef Isis_GuiParameter_h
2 #define Isis_GuiParameter_h
11 #include <QGridLayout>
17 #include <QToolButton>
54 virtual void Set(QString newValue) = 0;
56 void SetEnabled(
bool enabled,
bool isParentCombo=
false);
void RememberWidget(QWidget *w)
Add widgets to a list for enabling/disabling.
Definition: GuiParameter.cpp:212
QString HelperIcon(const int &group, const int ¶m, const int &helper) const
Returns the name of the icon for the helper button.
Definition: IsisAml.cpp:1824
void Update()
Update the value on the GUI with the value in the UI.
Definition: GuiParameter.cpp:196
void SetToDefault()
Change the parameter to the default value.
Definition: GuiParameter.cpp:158
QString HelperDescription(const int &group, const int ¶m, const int &helper) const
Returns the long description of the helper button.
Definition: IsisAml.cpp:1810
bool IsEnabled() const
Is the parameter enabled.
Definition: GuiParameter.h:59
GuiParameter(QGridLayout *grid, UserInterface &ui, int group, int param)
Constructor.
Definition: GuiParameter.cpp:26
@ BooleanWidget
Definition: GuiParameter.h:75
QString GetAsString(const QString ¶mName) const
Allows the retrieval of a value for a parameter of any type.
Definition: IsisAml.cpp:537
@ CubeWidget
Definition: GuiParameter.h:74
@ ComboWidget
Definition: GuiParameter.h:75
void HelperTrigger(const QString &)
QString ParamMinimumInclusive(const int &group, const int ¶m) const
Returns whether the minimum value is inclusive or not.
Definition: IsisAml.cpp:1284
virtual ~GuiParameter()
Destructor.
Definition: GuiParameter.cpp:148
File name manipulation and expansion.
Definition: FileName.h:100
QLabel * p_label
Definition: GuiParameter.h:91
QString ParamBrief(const int &group, const int ¶m) const
Returns the brief description of a parameter in a specified group.
Definition: IsisAml.cpp:1232
QString ParamGreaterThanOrEqual(const int &group, const int ¶m, const int &great) const
Returns the name of the specified greaterThanOrEqual parameter.
Definition: IsisAml.cpp:1402
int p_group
Definition: GuiParameter.h:86
int HelpersSize(const int &group, const int ¶m) const
Returns the number of helpers the parameter has.
Definition: IsisAml.cpp:1755
@ IntegerWidget
Definition: GuiParameter.h:73
void SetEnabled(bool enabled, bool isParentCombo=false)
Enable or disable the parameter.
Definition: GuiParameter.cpp:217
QString ParamMaximum(const int &group, const int ¶m) const
Returns the maximum value of a parameter in a specified group.
Definition: IsisAml.cpp:1271
QString HelperFunction(const int &group, const int ¶m, const int &helper) const
Returns the name of the helper function.
Definition: IsisAml.cpp:1782
ParameterType p_type
Definition: GuiParameter.h:95
QString ParamGreaterThan(const int &group, const int ¶m, const int &great) const
Returns the name of the specified greaterThan parameter.
Definition: IsisAml.cpp:1387
virtual bool IsModified()
Return if the parameter value is different from the default value.
Definition: GuiParameter.cpp:181
QString ParamDefault(const int &group, const int ¶m) const
Returns the default for a parameter in a specified group.
Definition: IsisAml.cpp:1505
int ParamIncludeSize(const int &group, const int ¶m) const
Returns the number of parameters included in this parameter's inclusions.
Definition: IsisAml.cpp:1731
QString ParamType(const int &group, const int ¶m) const
Returns the parameter type of a parameter in a specified group.
Definition: IsisAml.cpp:1492
Definition: GuiParameter.h:34
QString ParamInternalDefault(const int &group, const int ¶m) const
Returns the internal default for a parameter in a specified group.
Definition: IsisAml.cpp:1524
virtual QString Value()=0
QString Name() const
Return the name of the parameter.
Definition: GuiParameter.h:44
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
int ParamNotEqualSize(const int &group, const int ¶m) const
Returns the number of values in the not equal list.
Definition: IsisAml.cpp:1374
@ StringWidget
Definition: GuiParameter.h:73
@ DoubleWidget
Definition: GuiParameter.h:73
QString HelperBrief(const int &group, const int ¶m, const int &helper) const
Returns the brief description of the helper button.
Definition: IsisAml.cpp:1796
QString p_name
Definition: GuiParameter.h:88
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
virtual std::vector< QString > Exclusions()
Return list of current exclusions.
Definition: GuiParameter.cpp:239
QString ParamExclude(const int &group, const int ¶m, const int &exclude) const
Returns the name of the specified excluded parameter.
Definition: IsisAml.cpp:1462
QString ParamNotEqual(const int &group, const int ¶m, const int ¬Eq) const
Returns the name of the specified notEqual parameter.
Definition: IsisAml.cpp:1447
QString ParamMinimum(const int &group, const int ¶m) const
Returns the minimum value of a parameter in a specified group.
Definition: IsisAml.cpp:1258
int ParamExcludeSize(const int &group, const int ¶m) const
Returns the number of parameters excluded in this parameter's exclusions.
Definition: IsisAml.cpp:1719
UserInterface * p_ui
Definition: GuiParameter.h:89
QString ParamInclude(const int &group, const int ¶m, const int &include) const
Returns the name of the specified included parameter.
Definition: IsisAml.cpp:1477
void SetToCurrent()
Change the parameter to the current user interface value.
Definition: GuiParameter.cpp:171
Definition: GuiHelperAction.h:16
Isis exception class.
Definition: IException.h:91
QString PixelType(const int &group, const int ¶m) const
Returns the default pixel type from the XML.
Definition: IsisAml.cpp:1743
int ParamGreaterThanOrEqualSize(const int &group, const int ¶m) const
Returns the number of values in the parameters greater than or equal list.
Definition: IsisAml.cpp:1336
int ParamGreaterThanSize(const int &group, const int ¶m) const
Returns the number of values in the parameters greater than list.
Definition: IsisAml.cpp:1324
QLineEdit * p_lineEdit
Definition: GuiParameter.h:84
QToolButton * p_fileButton
Definition: GuiParameter.h:79
QString ParamLessThan(const int &group, const int ¶m, const int &great) const
Returns the name of the specified lessThan parameter.
Definition: IsisAml.cpp:1417
bool WasEntered(const QString ¶mName) const
Returns a true if the parameter has a value, and false if it does not.
Definition: IsisAml.cpp:1836
int ParamLessThanSize(const int &group, const int ¶m) const
Returns the number of values in the parameters less than list.
Definition: IsisAml.cpp:1349
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
int ParamLessThanOrEqualSize(const int &group, const int ¶m) const
Returns the number of values in the parameters less than or equal list.
Definition: IsisAml.cpp:1361
Command Line and Xml loader, validation, and access.
Definition: UserInterface.h:140
QString HelperButtonName(const int &group, const int ¶m, const int &helper) const
Returns the name of the helper button.
Definition: IsisAml.cpp:1768
int p_param
Definition: GuiParameter.h:87
QString ParamLessThanOrEqual(const int &group, const int ¶m, const int &les) const
Returns the name of the specified lessThanOrEqual parameter.
Definition: IsisAml.cpp:1432
QList< QWidget * > p_widgetList
Definition: GuiParameter.h:93
ParameterType Type()
Definition: GuiParameter.h:77
QString ParamMaximumInclusive(const int &group, const int ¶m) const
Returns whether the maximum value is inclusive or not.
Definition: IsisAml.cpp:1297
ParameterType
Definition: GuiParameter.h:73
@ ListWidget
Definition: GuiParameter.h:74
QString ParamOdd(const int &group, const int ¶m) const
Returns whether the selected parameter has a restriction on odd values or not.
Definition: IsisAml.cpp:1311
QString ParamName(const int &group, const int ¶m) const
Returns the parameter name.
Definition: IsisAml.cpp:1219
virtual void Set(QString newValue)=0
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
@ FileNameWidget
Definition: GuiParameter.h:74
QWidget * AddHelpers(QObject *lo)
Sets up helper button.
Definition: GuiParameter.cpp:245