Isis 3 Programmer 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. | |
virtual | ~GuiParameter () |
Destructor. | |
QString | Name () const |
Return the name of the parameter. | |
void | SetToDefault () |
Change the parameter to the default value. | |
void | SetToCurrent () |
Change the parameter to the current user interface value. | |
virtual QString | Value ()=0 |
virtual void | Set (QString newValue)=0 |
void | SetEnabled (bool enabled, bool isParentCombo=false) |
Enable or disable the parameter. | |
bool | IsEnabled () const |
Is the parameter enabled. | |
virtual bool | IsModified () |
Return if the parameter value is different from the default value. | |
void | Update () |
Update the value on the GUI with the value in the UI. | |
void | RememberWidget (QWidget *w) |
Add widgets to a list for enabling/disabling. | |
QWidget * | AddHelpers (QObject *lo) |
Sets up helper button. | |
virtual std::vector< QString > | Exclusions () |
Return list of current exclusions. | |
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 |
Private Attributes | |
QMenu * | p_helperMenu |
2009-11-10 Mackenzie Boyd - Refactored to reduce code duplication in children GuiCubeParameter and GuiFileNameParameter, specifically, SelectFile method.
2009-12-15 Travis Addair - Moved the SelectFile method back to children.
Definition at line 34 of file GuiParameter.h.
enum Isis::GuiParameter::ParameterType |
Definition at line 73 of file GuiParameter.h.
Isis::GuiParameter::GuiParameter | ( | QGridLayout * | grid, |
UserInterface & | ui, | ||
int | group, | ||
int | param ) |
Constructor.
Definition at line 26 of file GuiParameter.cpp.
References 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.
Definition at line 148 of file GuiParameter.cpp.
Sets up helper button.
Definition at line 245 of file GuiParameter.cpp.
References Isis::FileName::expanded(), IsisAml::HelperBrief(), IsisAml::HelperButtonName(), IsisAml::HelperDescription(), IsisAml::HelperFunction(), IsisAml::HelperIcon(), IsisAml::HelpersSize(), Isis::IException::Programmer, and RememberWidget().
Referenced by Isis::GuiFileNameParameter::GuiFileNameParameter().
|
virtual |
Return list of current exclusions.
Reimplemented in Isis::GuiBooleanParameter, Isis::GuiComboBoxParameter, and Isis::GuiListParameter.
Definition at line 239 of file GuiParameter.cpp.
Referenced by Isis::Gui::UpdateExclusions().
|
inline |
|
virtual |
Return if the parameter value is different from the default value.
Reimplemented in Isis::GuiBooleanParameter.
Definition at line 181 of file GuiParameter.cpp.
References IsEnabled(), IsisAml::ParamDefault(), and IsisAml::ParamInternalDefault().
Referenced by Isis::GuiCubeParameter::ViewCube(), and Isis::GuiCubeParameter::ViewLabel().
|
inline |
Return the name of the parameter.
Definition at line 44 of file GuiParameter.h.
Referenced by Isis::Gui::UpdateCommandLine(), and Isis::Gui::UpdateExclusions().
void Isis::GuiParameter::RememberWidget | ( | QWidget * | w | ) |
Add widgets to a list for enabling/disabling.
Definition at line 212 of file GuiParameter.cpp.
Referenced by AddHelpers(), and Isis::GuiFileNameParameter::GuiFileNameParameter().
|
pure virtual |
Implemented in Isis::GuiFileNameParameter.
void Isis::GuiParameter::SetEnabled | ( | bool | enabled, |
bool | isParentCombo = false ) |
Enable or disable the parameter.
Definition at line 217 of file GuiParameter.cpp.
Referenced by Isis::Gui::UpdateExclusions().
void Isis::GuiParameter::SetToCurrent | ( | ) |
Change the parameter to the current user interface value.
Definition at line 171 of file GuiParameter.cpp.
References IsisAml::GetAsString(), SetToDefault(), and IsisAml::WasEntered().
void Isis::GuiParameter::SetToDefault | ( | ) |
Change the parameter to the default value.
Definition at line 158 of file GuiParameter.cpp.
References IsisAml::ParamDefault(), and IsisAml::ParamInternalDefault().
Referenced by SetToCurrent().
|
inline |
Definition at line 77 of file GuiParameter.h.
void Isis::GuiParameter::Update | ( | ) |
Update the value on the GUI with the value in the UI.
Definition at line 196 of file GuiParameter.cpp.
References IsisAml::GetAsString(), IsisAml::ParamDefault(), IsisAml::ParamInternalDefault(), and IsisAml::WasEntered().
Referenced by Isis::Gui::ResetParameters(), Isis::Gui::StartProcess(), Isis::Gui::UpdateHistory(), and Isis::Gui::UpdateParameters().
|
pure virtual |
Implemented in Isis::GuiFileNameParameter.
|
protected |
Definition at line 83 of file GuiParameter.h.
|
protected |
Definition at line 86 of file GuiParameter.h.
|
private |
Definition at line 98 of file GuiParameter.h.
|
protected |
Definition at line 91 of file GuiParameter.h.
|
protected |
Definition at line 84 of file GuiParameter.h.
|
protected |
Definition at line 88 of file GuiParameter.h.
|
protected |
Definition at line 87 of file GuiParameter.h.
|
protected |
Definition at line 95 of file GuiParameter.h.
|
protected |
Definition at line 89 of file GuiParameter.h.
Definition at line 93 of file GuiParameter.h.