Isis 3 Developer Reference
|
#include <GuiParameter.h>
Public Types | |
enum | ParameterType { IntegerWidget, DoubleWidget, StringWidget, ListWidget, FileNameWidget, CubeWidget, BooleanWidget, ComboWidget } |
Signals | |
void | ValueChanged () |
void | HelperTrigger (const QString &) |
Public Member Functions | |
GuiParameter (QGridLayout *grid, UserInterface &ui, int group, int param) | |
Constructor. More... | |
virtual | ~GuiParameter () |
Destructor. More... | |
QString | Name () const |
Return the name of the parameter. More... | |
void | SetToDefault () |
Change the parameter to the default value. More... | |
void | SetToCurrent () |
Change the parameter to the current user interface value. More... | |
virtual QString | Value ()=0 |
virtual void | Set (QString newValue)=0 |
void | SetEnabled (bool enabled, bool isParentCombo=false) |
Enable or disable the parameter. More... | |
bool | IsEnabled () const |
Is the parameter enabled. More... | |
virtual bool | IsModified () |
Return if the parameter value is different from the default value. More... | |
void | Update () |
Update the value on the GUI with the value in the UI. More... | |
void | RememberWidget (QWidget *w) |
Add widgets to a list for enabling/disabling. More... | |
QWidget * | AddHelpers (QObject *lo) |
Sets up helper button. More... | |
virtual std::vector< QString > | Exclusions () |
Return list of current exclusions. More... | |
ParameterType | Type () |
Protected Attributes | |
QToolButton * | p_fileButton |
QLineEdit * | p_lineEdit |
int | p_group |
int | p_param |
QString | p_name |
UserInterface * | p_ui |
QLabel * | p_label |
QList< QWidget * > | p_widgetList |
ParameterType | p_type |
Isis::GuiParameter::GuiParameter | ( | QGridLayout * | grid, |
UserInterface & | ui, | ||
int | group, | ||
int | param | ||
) |
Constructor.
References p_fileButton, p_group, p_label, p_lineEdit, p_name, p_param, p_ui, IsisAml::ParamBrief(), IsisAml::ParamDefault(), IsisAml::ParamExclude(), IsisAml::ParamExcludeSize(), IsisAml::ParamGreaterThan(), IsisAml::ParamGreaterThanOrEqual(), IsisAml::ParamGreaterThanOrEqualSize(), IsisAml::ParamGreaterThanSize(), IsisAml::ParamInclude(), IsisAml::ParamIncludeSize(), IsisAml::ParamInternalDefault(), IsisAml::ParamLessThan(), IsisAml::ParamLessThanOrEqual(), IsisAml::ParamLessThanOrEqualSize(), IsisAml::ParamLessThanSize(), IsisAml::ParamMaximum(), IsisAml::ParamMaximumInclusive(), IsisAml::ParamMinimum(), IsisAml::ParamMinimumInclusive(), IsisAml::ParamName(), IsisAml::ParamNotEqual(), IsisAml::ParamNotEqualSize(), IsisAml::ParamOdd(), IsisAml::ParamType(), and IsisAml::PixelType().
|
virtual |
Destructor.
References p_widgetList.
Sets up helper button.
References _FILEINFO_, IsisAml::HelperBrief(), IsisAml::HelperButtonName(), IsisAml::HelperDescription(), IsisAml::HelperFunction(), IsisAml::HelperIcon(), IsisAml::HelpersSize(), HelperTrigger(), p_group, p_param, p_ui, Isis::IException::Programmer, and RememberWidget().
Referenced by Isis::GuiBooleanParameter::GuiBooleanParameter(), Isis::GuiDoubleParameter::GuiDoubleParameter(), Isis::GuiFileNameParameter::GuiFileNameParameter(), Isis::GuiIntegerParameter::GuiIntegerParameter(), Isis::GuiListParameter::GuiListParameter(), and Isis::GuiStringParameter::GuiStringParameter().
|
virtual |
Return list of current exclusions.
Reimplemented in Isis::GuiComboBoxParameter, Isis::GuiListParameter, and Isis::GuiBooleanParameter.
|
signal |
Referenced by AddHelpers().
|
inline |
Is the parameter enabled.
References p_label.
Referenced by Isis::GuiBooleanParameter::IsModified(), and IsModified().
|
virtual |
Return if the parameter value is different from the default value.
Reimplemented in Isis::GuiBooleanParameter.
References IsEnabled(), p_group, p_param, p_ui, IsisAml::ParamDefault(), IsisAml::ParamInternalDefault(), and Value().
|
inline |
Return the name of the parameter.
References p_name.
void Isis::GuiParameter::RememberWidget | ( | QWidget * | w | ) |
Add widgets to a list for enabling/disabling.
References p_widgetList.
Referenced by AddHelpers(), Isis::GuiBooleanParameter::GuiBooleanParameter(), Isis::GuiComboBoxParameter::GuiComboBoxParameter(), Isis::GuiDoubleParameter::GuiDoubleParameter(), Isis::GuiFileNameParameter::GuiFileNameParameter(), Isis::GuiIntegerParameter::GuiIntegerParameter(), Isis::GuiListParameter::GuiListParameter(), and Isis::GuiStringParameter::GuiStringParameter().
|
pure virtual |
Implemented in Isis::GuiFileNameParameter, Isis::GuiComboBoxParameter, Isis::GuiListParameter, Isis::GuiIntegerParameter, Isis::GuiDoubleParameter, Isis::GuiStringParameter, and Isis::GuiBooleanParameter.
Referenced by SetToCurrent(), SetToDefault(), and Update().
void Isis::GuiParameter::SetEnabled | ( | bool | enabled, |
bool | isParentCombo = false |
||
) |
Enable or disable the parameter.
References ComboWidget, p_label, p_type, and p_widgetList.
void Isis::GuiParameter::SetToCurrent | ( | ) |
Change the parameter to the current user interface value.
References IsisAml::GetAsString(), p_name, p_ui, Set(), SetToDefault(), and IsisAml::WasEntered().
void Isis::GuiParameter::SetToDefault | ( | ) |
Change the parameter to the default value.
References p_group, p_param, p_ui, IsisAml::ParamDefault(), IsisAml::ParamInternalDefault(), and Set().
Referenced by SetToCurrent().
|
inline |
References p_type.
void Isis::GuiParameter::Update | ( | ) |
Update the value on the GUI with the value in the UI.
References IsisAml::GetAsString(), p_group, p_name, p_param, p_ui, IsisAml::ParamDefault(), IsisAml::ParamInternalDefault(), Set(), and IsisAml::WasEntered().
Referenced by Isis::Gui::Gui().
|
pure virtual |
Implemented in Isis::GuiFileNameParameter, Isis::GuiComboBoxParameter, Isis::GuiListParameter, Isis::GuiIntegerParameter, Isis::GuiDoubleParameter, Isis::GuiStringParameter, and Isis::GuiBooleanParameter.
Referenced by IsModified().
|
signal |
Referenced by Isis::GuiBooleanParameter::GuiBooleanParameter(), Isis::GuiComboBoxParameter::GuiComboBoxParameter(), Isis::GuiDoubleParameter::GuiDoubleParameter(), Isis::GuiFileNameParameter::GuiFileNameParameter(), Isis::GuiIntegerParameter::GuiIntegerParameter(), Isis::GuiListParameter::GuiListParameter(), Isis::GuiStringParameter::GuiStringParameter(), Isis::GuiBooleanParameter::Set(), Isis::GuiListParameter::Set(), and Isis::GuiComboBoxParameter::Set().
|
protected |
|
protected |
Referenced by AddHelpers(), Isis::GuiBooleanParameter::Exclusions(), Isis::GuiListParameter::Exclusions(), Isis::GuiComboBoxParameter::Exclusions(), GuiParameter(), Isis::GuiBooleanParameter::IsModified(), IsModified(), Isis::GuiFileNameParameter::SelectFile(), Isis::GuiComboBoxParameter::Set(), Isis::GuiListParameter::Set(), SetToDefault(), Update(), Isis::GuiComboBoxParameter::Value(), and Isis::GuiListParameter::Value().
|
protected |
|
protected |
|
protected |
Referenced by GuiParameter(), Name(), SetToCurrent(), and Update().
|
protected |
Referenced by AddHelpers(), Isis::GuiBooleanParameter::Exclusions(), Isis::GuiListParameter::Exclusions(), Isis::GuiComboBoxParameter::Exclusions(), GuiParameter(), Isis::GuiBooleanParameter::IsModified(), IsModified(), Isis::GuiFileNameParameter::SelectFile(), Isis::GuiComboBoxParameter::Set(), Isis::GuiListParameter::Set(), SetToDefault(), Update(), Isis::GuiComboBoxParameter::Value(), and Isis::GuiListParameter::Value().
|
protected |
Referenced by Isis::GuiBooleanParameter::GuiBooleanParameter(), Isis::GuiComboBoxParameter::GuiComboBoxParameter(), Isis::GuiCubeParameter::GuiCubeParameter(), Isis::GuiDoubleParameter::GuiDoubleParameter(), Isis::GuiFileNameParameter::GuiFileNameParameter(), Isis::GuiIntegerParameter::GuiIntegerParameter(), Isis::GuiListParameter::GuiListParameter(), Isis::GuiStringParameter::GuiStringParameter(), SetEnabled(), and Type().
|
protected |
Referenced by AddHelpers(), Isis::GuiBooleanParameter::Exclusions(), Isis::GuiListParameter::Exclusions(), Isis::GuiComboBoxParameter::Exclusions(), Isis::GuiBooleanParameter::GuiBooleanParameter(), Isis::GuiDoubleParameter::GuiDoubleParameter(), Isis::GuiFileNameParameter::GuiFileNameParameter(), Isis::GuiIntegerParameter::GuiIntegerParameter(), Isis::GuiListParameter::GuiListParameter(), GuiParameter(), Isis::GuiStringParameter::GuiStringParameter(), Isis::GuiBooleanParameter::IsModified(), IsModified(), Isis::GuiFileNameParameter::SelectFile(), Isis::GuiBooleanParameter::Set(), Isis::GuiListParameter::Set(), Isis::GuiComboBoxParameter::Set(), SetToCurrent(), SetToDefault(), Update(), Isis::GuiComboBoxParameter::Value(), and Isis::GuiListParameter::Value().
Referenced by RememberWidget(), SetEnabled(), and ~GuiParameter().