An official website of the United States government
Here’s how you know
Official websites use .gov
A
.gov website belongs to an official government
organization in the United States.
Secure .gov websites use HTTPS
A
lock
( ) or https:// means you’ve safely connected to
the .gov website. Share sensitive information only on official,
secure websites.
Isis Developer Reference
|
#include <GuiCubeParameter.h>
Public Types | |
enum | ParameterType { IntegerWidget , DoubleWidget , StringWidget , ListWidget , FileNameWidget , CubeWidget , BooleanWidget , ComboWidget } |
Signals | |
void | ValueChanged () |
void | HelperTrigger (const QString &) |
Public Member Functions | |
GuiCubeParameter (QGridLayout *grid, UserInterface &ui, int group, int param) | |
Constructs GuiCubeParameter object. | |
~GuiCubeParameter () | |
Destructor of GuiCubeParameter 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::GuiCubeParameter::GuiCubeParameter | ( | QGridLayout * | grid, |
UserInterface & | ui, | ||
int | group, | ||
int | param ) |
Constructs GuiCubeParameter object.
grid | Pointer to QGridLayout |
ui | User interface object |
group | Index of group |
param | Index of parameter |
References Isis::GuiParameter::CubeWidget, Isis::GuiFileNameParameter::GuiFileNameParameter(), Isis::GuiParameter::p_fileButton, Isis::GuiParameter::p_type, and Isis::GuiFileNameParameter::SelectFile().
Isis::GuiCubeParameter::~GuiCubeParameter | ( | ) |
Destructor of GuiCubeParameter object.
Sets up helper button.
References _FILEINFO_, Isis::FileName::expanded(), 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().
|
virtualinherited |
Return list of current exclusions.
Reimplemented in Isis::GuiBooleanParameter, Isis::GuiComboBoxParameter, and Isis::GuiListParameter.
|
signalinherited |
Referenced by AddHelpers().
|
inlineinherited |
Is the parameter enabled.
References p_label.
Referenced by Isis::GuiBooleanParameter::IsModified(), and IsModified().
|
virtualinherited |
Return if the parameter value is different from the default value.
Reimplemented in Isis::GuiBooleanParameter.
References IsEnabled(), p_group, p_param, p_ui, and Value().
|
inlineinherited |
Return the name of the parameter.
References p_name.
|
inherited |
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().
|
protectedvirtualslotinherited |
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::FileName::dir(), Isis::FileName::expanded(), Isis::FileName::name(), Isis::GuiParameter::p_fileButton, Isis::GuiParameter::p_group, Isis::GuiParameter::p_lineEdit, Isis::GuiParameter::p_param, Isis::GuiParameter::p_ui, and Set().
Referenced by Isis::GuiCubeParameter::GuiCubeParameter(), and GuiFileNameParameter().
|
virtualinherited |
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 ComboWidget, p_label, p_type, and p_widgetList.
|
inherited |
Change the parameter to the current user interface value.
References p_name, p_ui, Set(), and SetToDefault().
|
inherited |
Change the parameter to the default value.
References p_group, p_param, p_ui, and Set().
Referenced by SetToCurrent().
|
inlineinherited |
References p_type.
|
inherited |
|
virtualinherited |
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(), Isis::GuiFileNameParameter::GuiFileNameParameter(), Isis::GuiIntegerParameter::GuiIntegerParameter(), Isis::GuiListParameter::GuiListParameter(), Isis::GuiStringParameter::GuiStringParameter(), Isis::GuiBooleanParameter::Set(), Isis::GuiComboBoxParameter::Set(), and Isis::GuiListParameter::Set().
|
protectedinherited |
|
protectedinherited |
Referenced by AddHelpers(), Isis::GuiBooleanParameter::Exclusions(), Isis::GuiComboBoxParameter::Exclusions(), Isis::GuiListParameter::Exclusions(), GuiParameter(), Isis::GuiBooleanParameter::IsModified(), IsModified(), Isis::GuiFileNameParameter::SelectFile(), Isis::GuiComboBoxParameter::Set(), Isis::GuiListParameter::Set(), SetToDefault(), Update(), Isis::GuiComboBoxParameter::Value(), and Isis::GuiListParameter::Value().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Referenced by GuiParameter(), Name(), SetToCurrent(), and Update().
|
protectedinherited |
Referenced by AddHelpers(), Isis::GuiBooleanParameter::Exclusions(), Isis::GuiComboBoxParameter::Exclusions(), Isis::GuiListParameter::Exclusions(), GuiParameter(), Isis::GuiBooleanParameter::IsModified(), IsModified(), Isis::GuiFileNameParameter::SelectFile(), Isis::GuiComboBoxParameter::Set(), Isis::GuiListParameter::Set(), SetToDefault(), Update(), Isis::GuiComboBoxParameter::Value(), and Isis::GuiListParameter::Value().
|
protectedinherited |
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().
|
protectedinherited |
Referenced by AddHelpers(), Isis::GuiBooleanParameter::Exclusions(), Isis::GuiComboBoxParameter::Exclusions(), Isis::GuiListParameter::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::GuiComboBoxParameter::Set(), Isis::GuiListParameter::Set(), SetToCurrent(), SetToDefault(), Update(), Isis::GuiComboBoxParameter::Value(), and Isis::GuiListParameter::Value().
Referenced by RememberWidget(), SetEnabled(), and ~GuiParameter().