Isis 3 Programmer Reference
Isis::GuiParameter Class Referenceabstract

#include <GuiParameter.h>

Inheritance diagram for Isis::GuiParameter:
Inheritance graph
Collaboration diagram for Isis::GuiParameter:
Collaboration graph

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...
 
QWidgetAddHelpers (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
 
UserInterfacep_ui
 
QLabel * p_label
 
QList< QWidget * > p_widgetList
 
ParameterType p_type
 

Private Attributes

QMenup_helperMenu
 

Detailed Description

Author
2006-10-31 ???
History:
2009-11-10 Mackenzie Boyd - Refactored to reduce code duplication in children GuiCubeParameter and GuiFileNameParameter, specifically, SelectFile method.
History:
2009-12-15 Travis Addair - Moved the SelectFile method back to children.

Definition at line 34 of file GuiParameter.h.

Constructor & Destructor Documentation

◆ GuiParameter()

◆ ~GuiParameter()

Isis::GuiParameter::~GuiParameter ( )
virtual

Destructor.

Definition at line 148 of file GuiParameter.cpp.

Member Function Documentation

◆ AddHelpers()

◆ Exclusions()

std::vector< QString > Isis::GuiParameter::Exclusions ( )
virtual

Return list of current exclusions.

Reimplemented in Isis::GuiListParameter, Isis::GuiComboBoxParameter, and Isis::GuiBooleanParameter.

Definition at line 239 of file GuiParameter.cpp.

Referenced by Isis::Gui::UpdateExclusions().

◆ IsEnabled()

bool Isis::GuiParameter::IsEnabled ( ) const
inline

◆ IsModified()

bool Isis::GuiParameter::IsModified ( )
virtual

◆ Name()

QString Isis::GuiParameter::Name ( ) const
inline

◆ RememberWidget()

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().

◆ SetEnabled()

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().

◆ SetToCurrent()

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().

◆ SetToDefault()

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().

◆ Update()

void Isis::GuiParameter::Update ( )

The documentation for this class was generated from the following files: