Isis Developer Reference
|
#include <GuiFilenameParameter.h>
Public Types | |
enum | ParameterType { IntegerWidget , DoubleWidget , StringWidget , ListWidget , FileNameWidget , CubeWidget , BooleanWidget , ComboWidget } |
Signals | |
void | ValueChanged () |
void | HelperTrigger (const QString &) |
Public Member Functions | |
GuiFileNameParameter (QGridLayout *grid, UserInterface &ui, int group, int param) | |
Construct a GuiFileNameParameter object. | |
~GuiFileNameParameter () | |
Destructor of GuiFileNameParameter object. | |
QString | Value () |
Gets the value found in the line edit text box. | |
void | Set (QString newValue) |
Sets the line edit text box to value passed in by this method. | |
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. | |
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 Slots | |
virtual void | SelectFile () |
Gets an input/output file from a GUI filechooser or typed in filename. | |
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 |
|
inherited |
Isis::GuiFileNameParameter::GuiFileNameParameter | ( | QGridLayout * | grid, |
UserInterface & | ui, | ||
int | group, | ||
int | param ) |
Construct a GuiFileNameParameter object.
grid | Pointer to QGridLayout |
ui | User interface object |
group | Index of group |
param | Index of parameter |
References Isis::GuiParameter::AddHelpers(), Isis::FileName::expanded(), Isis::GuiParameter::FileNameWidget, IsisAml::HelpersSize(), Isis::GuiParameter::p_fileButton, Isis::GuiParameter::p_lineEdit, Isis::GuiParameter::p_type, Isis::GuiParameter::p_ui, Isis::GuiParameter::RememberWidget(), SelectFile(), and Isis::GuiParameter::ValueChanged().
Isis::GuiFileNameParameter::~GuiFileNameParameter | ( | ) |
Destructor of GuiFileNameParameter object.
Sets up helper button.
References _FILEINFO_, Isis::FileName::expanded(), IsisAml::HelperBrief(), IsisAml::HelperButtonName(), IsisAml::HelperDescription(), IsisAml::HelperFunction(), IsisAml::HelperIcon(), IsisAml::HelpersSize(), Isis::GuiParameter::HelperTrigger(), Isis::GuiParameter::p_group, Isis::GuiParameter::p_param, Isis::GuiParameter::p_ui, Isis::IException::Programmer, and Isis::GuiParameter::RememberWidget().
Referenced by Isis::GuiBooleanParameter::GuiBooleanParameter(), Isis::GuiDoubleParameter::GuiDoubleParameter(), GuiFileNameParameter(), Isis::GuiIntegerParameter::GuiIntegerParameter(), Isis::GuiListParameter::GuiListParameter(), and Isis::GuiStringParameter::GuiStringParameter().
|
virtualinherited |
Return list of current exclusions.
Reimplemented in Isis::GuiBooleanParameter, Isis::GuiComboBoxParameter, and Isis::GuiListParameter.
|
signalinherited |
Referenced by Isis::GuiParameter::AddHelpers().
|
inlineinherited |
Is the parameter enabled.
References Isis::GuiParameter::p_label.
Referenced by Isis::GuiBooleanParameter::IsModified(), and Isis::GuiParameter::IsModified().
|
virtualinherited |
Return if the parameter value is different from the default value.
Reimplemented in Isis::GuiBooleanParameter.
References Isis::GuiParameter::IsEnabled(), Isis::GuiParameter::p_group, Isis::GuiParameter::p_param, Isis::GuiParameter::p_ui, IsisAml::ParamDefault(), IsisAml::ParamInternalDefault(), and Isis::GuiParameter::Value().
|
inlineinherited |
Return the name of the parameter.
References Isis::GuiParameter::p_name.
|
inherited |
Add widgets to a list for enabling/disabling.
References Isis::GuiParameter::p_widgetList.
Referenced by Isis::GuiParameter::AddHelpers(), Isis::GuiBooleanParameter::GuiBooleanParameter(), Isis::GuiComboBoxParameter::GuiComboBoxParameter(), Isis::GuiDoubleParameter::GuiDoubleParameter(), GuiFileNameParameter(), Isis::GuiIntegerParameter::GuiIntegerParameter(), Isis::GuiListParameter::GuiListParameter(), and Isis::GuiStringParameter::GuiStringParameter().
|
protectedvirtualslot |
Gets an input/output file from a GUI filechooser or typed in filename.
This method determines which directory to look in, sets up extension filters, and gets the filename.
References Isis::GuiParameter::p_fileButton, Isis::GuiParameter::p_group, Isis::GuiParameter::p_lineEdit, Isis::GuiParameter::p_param, Isis::GuiParameter::p_ui, IsisAml::ParamFileMode(), IsisAml::ParamFilter(), IsisAml::ParamInternalDefault(), IsisAml::ParamPath(), and Set().
Referenced by Isis::GuiCubeParameter::GuiCubeParameter(), and GuiFileNameParameter().
|
virtual |
Sets the line edit text box to value passed in by this method.
newValue |
Implements Isis::GuiParameter.
References Isis::GuiParameter::p_lineEdit.
Referenced by SelectFile().
|
inherited |
Enable or disable the parameter.
References Isis::GuiParameter::ComboWidget, Isis::GuiParameter::p_label, Isis::GuiParameter::p_type, and Isis::GuiParameter::p_widgetList.
|
inherited |
Change the parameter to the current user interface value.
References IsisAml::GetAsString(), Isis::GuiParameter::p_name, Isis::GuiParameter::p_ui, Isis::GuiParameter::Set(), Isis::GuiParameter::SetToDefault(), and IsisAml::WasEntered().
|
inherited |
Change the parameter to the default value.
References Isis::GuiParameter::p_group, Isis::GuiParameter::p_param, Isis::GuiParameter::p_ui, IsisAml::ParamDefault(), IsisAml::ParamInternalDefault(), and Isis::GuiParameter::Set().
Referenced by Isis::GuiParameter::SetToCurrent().
|
inlineinherited |
References Isis::GuiParameter::p_type.
|
inherited |
Update the value on the GUI with the value in the UI.
References IsisAml::GetAsString(), Isis::GuiParameter::p_group, Isis::GuiParameter::p_name, Isis::GuiParameter::p_param, Isis::GuiParameter::p_ui, IsisAml::ParamDefault(), IsisAml::ParamInternalDefault(), Isis::GuiParameter::Set(), and IsisAml::WasEntered().
|
virtual |
Gets the value found in the line edit text box.
Implements Isis::GuiParameter.
References Isis::GuiParameter::p_lineEdit.
|
signalinherited |
Referenced by Isis::GuiBooleanParameter::GuiBooleanParameter(), Isis::GuiComboBoxParameter::GuiComboBoxParameter(), Isis::GuiDoubleParameter::GuiDoubleParameter(), GuiFileNameParameter(), Isis::GuiIntegerParameter::GuiIntegerParameter(), Isis::GuiListParameter::GuiListParameter(), Isis::GuiStringParameter::GuiStringParameter(), Isis::GuiBooleanParameter::Set(), Isis::GuiComboBoxParameter::Set(), and Isis::GuiListParameter::Set().
|
protectedinherited |
|
protectedinherited |
Referenced by Isis::GuiParameter::AddHelpers(), Isis::GuiBooleanParameter::Exclusions(), Isis::GuiComboBoxParameter::Exclusions(), Isis::GuiListParameter::Exclusions(), Isis::GuiParameter::GuiParameter(), Isis::GuiBooleanParameter::IsModified(), Isis::GuiParameter::IsModified(), SelectFile(), Isis::GuiComboBoxParameter::Set(), Isis::GuiListParameter::Set(), Isis::GuiParameter::SetToDefault(), Isis::GuiParameter::Update(), Isis::GuiComboBoxParameter::Value(), and Isis::GuiListParameter::Value().
|
protectedinherited |
|
protectedinherited |
Referenced by GuiFileNameParameter(), Isis::GuiParameter::GuiParameter(), SelectFile(), Set(), and Value().
|
protectedinherited |
|
protectedinherited |
Referenced by Isis::GuiParameter::AddHelpers(), Isis::GuiBooleanParameter::Exclusions(), Isis::GuiComboBoxParameter::Exclusions(), Isis::GuiListParameter::Exclusions(), Isis::GuiParameter::GuiParameter(), Isis::GuiBooleanParameter::IsModified(), Isis::GuiParameter::IsModified(), SelectFile(), Isis::GuiComboBoxParameter::Set(), Isis::GuiListParameter::Set(), Isis::GuiParameter::SetToDefault(), Isis::GuiParameter::Update(), Isis::GuiComboBoxParameter::Value(), and Isis::GuiListParameter::Value().
|
protectedinherited |
Referenced by Isis::GuiBooleanParameter::GuiBooleanParameter(), Isis::GuiComboBoxParameter::GuiComboBoxParameter(), Isis::GuiCubeParameter::GuiCubeParameter(), Isis::GuiDoubleParameter::GuiDoubleParameter(), GuiFileNameParameter(), Isis::GuiIntegerParameter::GuiIntegerParameter(), Isis::GuiListParameter::GuiListParameter(), Isis::GuiStringParameter::GuiStringParameter(), Isis::GuiParameter::SetEnabled(), and Isis::GuiParameter::Type().
|
protectedinherited |
Referenced by Isis::GuiParameter::AddHelpers(), Isis::GuiBooleanParameter::Exclusions(), Isis::GuiComboBoxParameter::Exclusions(), Isis::GuiListParameter::Exclusions(), Isis::GuiBooleanParameter::GuiBooleanParameter(), Isis::GuiDoubleParameter::GuiDoubleParameter(), GuiFileNameParameter(), Isis::GuiIntegerParameter::GuiIntegerParameter(), Isis::GuiListParameter::GuiListParameter(), Isis::GuiParameter::GuiParameter(), Isis::GuiStringParameter::GuiStringParameter(), Isis::GuiBooleanParameter::IsModified(), Isis::GuiParameter::IsModified(), SelectFile(), Isis::GuiBooleanParameter::Set(), Isis::GuiComboBoxParameter::Set(), Isis::GuiListParameter::Set(), Isis::GuiParameter::SetToCurrent(), Isis::GuiParameter::SetToDefault(), Isis::GuiParameter::Update(), Isis::GuiComboBoxParameter::Value(), and Isis::GuiListParameter::Value().