Isis 3.0 Object Programmers' Reference |
Home |
#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 |
Definition at line 48 of file GuiFilenameParameter.h.
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 |
Definition at line 45 of file GuiFilenameParameter.cpp.
References Isis::GuiParameter::AddHelpers(), IsisAml::HelpersSize(), Isis::GuiParameter::RememberWidget(), and SelectFile().
Isis::GuiFileNameParameter::~GuiFileNameParameter | ( | ) |
Destructor of GuiFileNameParameter object.
Definition at line 80 of file GuiFilenameParameter.cpp.
Sets up helper button.
Definition at line 261 of file GuiParameter.cpp.
References _FILEINFO_, IsisAml::HelperBrief(), IsisAml::HelperButtonName(), IsisAml::HelperDescription(), IsisAml::HelperFunction(), IsisAml::HelperIcon(), IsisAml::HelpersSize(), Isis::IException::Programmer, and Isis::GuiParameter::RememberWidget().
Referenced by GuiFileNameParameter().
|
virtualinherited |
Return list of current exclusions.
Reimplemented in Isis::GuiComboBoxParameter, Isis::GuiListParameter, and Isis::GuiBooleanParameter.
Definition at line 255 of file GuiParameter.cpp.
Referenced by Isis::Gui::UpdateExclusions().
|
inlineinherited |
Is the parameter enabled.
Definition at line 75 of file GuiParameter.h.
Referenced by Isis::Gui::InvokeHelper(), Isis::GuiBooleanParameter::IsModified(), Isis::GuiParameter::IsModified(), Isis::Gui::StartProcess(), and Isis::Gui::UpdateCommandLine().
|
virtualinherited |
Return if the parameter value is different from the default value.
Reimplemented in Isis::GuiBooleanParameter.
Definition at line 197 of file GuiParameter.cpp.
References Isis::GuiParameter::IsEnabled(), IsisAml::ParamDefault(), and IsisAml::ParamInternalDefault().
Referenced by Isis::Gui::InvokeHelper(), Isis::Gui::StartProcess(), Isis::Gui::UpdateCommandLine(), Isis::GuiCubeParameter::ViewCube(), and Isis::GuiCubeParameter::ViewLabel().
|
inlineinherited |
Return the name of the parameter.
Definition at line 60 of file GuiParameter.h.
Referenced by Isis::Gui::InvokeHelper(), Isis::Gui::ResetParameters(), Isis::Gui::StartProcess(), Isis::Gui::UpdateCommandLine(), and Isis::Gui::UpdateExclusions().
|
inherited |
Add widgets to a list for enabling/disabling.
Definition at line 228 of file GuiParameter.cpp.
Referenced by Isis::GuiParameter::AddHelpers(), and GuiFileNameParameter().
|
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.
Definition at line 121 of file GuiFilenameParameter.cpp.
References 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.
Definition at line 88 of file GuiFilenameParameter.cpp.
Referenced by SelectFile().
|
inherited |
Enable or disable the parameter.
Definition at line 233 of file GuiParameter.cpp.
Referenced by Isis::Gui::UpdateExclusions().
|
inherited |
Change the parameter to the current user interface value.
Definition at line 187 of file GuiParameter.cpp.
References IsisAml::GetAsString(), Isis::GuiParameter::SetToDefault(), and IsisAml::WasEntered().
|
inherited |
Change the parameter to the default value.
Definition at line 174 of file GuiParameter.cpp.
References IsisAml::ParamDefault(), and IsisAml::ParamInternalDefault().
Referenced by Isis::GuiParameter::SetToCurrent().
|
inherited |
Update the value on the GUI with the value in the UI.
Definition at line 212 of file GuiParameter.cpp.
References IsisAml::GetAsString(), IsisAml::ParamDefault(), IsisAml::ParamInternalDefault(), and IsisAml::WasEntered().
Referenced by Isis::Gui::Gui(), Isis::Gui::ResetParameters(), Isis::Gui::StartProcess(), Isis::Gui::UpdateHistory(), and Isis::Gui::UpdateParameters().
|
virtual |
Gets the value found in the line edit text box.
Implements Isis::GuiParameter.
Definition at line 98 of file GuiFilenameParameter.cpp.
Referenced by Isis::GuiCubeParameter::ViewCube(), and Isis::GuiCubeParameter::ViewLabel().