Isis 3 Developer Reference
Isis::GuiCubeParameter Class Reference

#include <GuiCubeParameter.h>

Inheritance diagram for Isis::GuiCubeParameter:
Inheritance graph
Collaboration diagram for Isis::GuiCubeParameter:
Collaboration graph

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. More...
 
 ~GuiCubeParameter ()
 Destructor of GuiCubeParameter object. More...
 
QString Value ()
 Gets the value found in the line edit text box. More...
 
void Set (QString newValue)
 Sets the line edit text box to value passed in by this method. 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...
 
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 Slots

virtual void SelectFile ()
 Gets an input/output file from a GUI filechooser or typed in filename. More...
 

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
 

Detailed Description

Author
2006-10-31 ???

Member Enumeration Documentation

◆ ParameterType

Enumerator
IntegerWidget 
DoubleWidget 
StringWidget 
ListWidget 
FileNameWidget 
CubeWidget 
BooleanWidget 
ComboWidget 

Constructor & Destructor Documentation

◆ GuiCubeParameter()

Isis::GuiCubeParameter::GuiCubeParameter ( QGridLayout *  grid,
UserInterface ui,
int  group,
int  param 
)

Constructs GuiCubeParameter object.

Parameters
gridPointer to QGridLayout
uiUser interface object
groupIndex of group
paramIndex of parameter

References Isis::GuiParameter::CubeWidget, Isis::GuiParameter::p_fileButton, Isis::GuiParameter::p_type, and Isis::GuiFileNameParameter::SelectFile().

◆ ~GuiCubeParameter()

Isis::GuiCubeParameter::~GuiCubeParameter ( )

Destructor of GuiCubeParameter object.

Member Function Documentation

◆ AddHelpers()

◆ Exclusions()

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

Return list of current exclusions.

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

◆ HelperTrigger

void Isis::GuiParameter::HelperTrigger ( const QString &  )
signalinherited

◆ IsEnabled()

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

◆ IsModified()

bool Isis::GuiParameter::IsModified ( )
virtualinherited

◆ Name()

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

Return the name of the parameter.

References Isis::GuiParameter::p_name.

◆ RememberWidget()

◆ SelectFile

void Isis::GuiFileNameParameter::SelectFile ( )
protectedvirtualslotinherited

◆ Set()

void Isis::GuiFileNameParameter::Set ( QString  newValue)
virtualinherited

Sets the line edit text box to value passed in by this method.

Parameters
newValue

Implements Isis::GuiParameter.

References Isis::GuiParameter::p_lineEdit.

Referenced by Isis::GuiFileNameParameter::SelectFile().

◆ SetEnabled()

void Isis::GuiParameter::SetEnabled ( bool  enabled,
bool  isParentCombo = false 
)
inherited

◆ SetToCurrent()

void Isis::GuiParameter::SetToCurrent ( )
inherited

◆ SetToDefault()

void Isis::GuiParameter::SetToDefault ( )
inherited

◆ Type()

ParameterType Isis::GuiParameter::Type ( )
inlineinherited

◆ Update()

◆ Value()

QString Isis::GuiFileNameParameter::Value ( )
virtualinherited

Gets the value found in the line edit text box.

Returns
IString Value found in line edit text box

Implements Isis::GuiParameter.

References Isis::GuiParameter::p_lineEdit.

◆ ValueChanged

Member Data Documentation

◆ p_fileButton

◆ p_group

◆ p_label

◆ p_lineEdit

◆ p_name

◆ p_param

◆ p_type

◆ p_ui

◆ p_widgetList

QList<QWidget *> Isis::GuiParameter::p_widgetList
protectedinherited

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