Isis 3 Programmer Reference
Isis::GuiComboBoxParameter Class Reference

#include <GuiComboBoxParameter.h>

Inheritance diagram for Isis::GuiComboBoxParameter:
Inheritance graph
Collaboration diagram for Isis::GuiComboBoxParameter:
Collaboration graph

Public Types

enum  ParameterType {
  IntegerWidget, DoubleWidget, StringWidget, ListWidget,
  FileNameWidget, CubeWidget, BooleanWidget, ComboWidget
}
 

Signals

void ValueChanged ()
 
void HelperTrigger (const QString &)
 

Public Member Functions

 GuiComboBoxParameter (QGridLayout *grid, UserInterface &ui, int group, int param)
 
QString Value ()
 
void Set (QString newValue)
 
virtual std::vector< QString > Exclusions ()
 Return list of current exclusions. 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...
 
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 Slots

void setOption (int option)
 

Private Attributes

QComboBoxp_combo
 
QMenup_helperMenu
 

Detailed Description

Author
????-??-?? Unknown
History:
2012-11-20 Janet Barrett - Fixed the Set method so that it doesn't stop searching for a matched string until an exact match is found or it has gone through the entire list. Fixes #554.

Definition at line 26 of file GuiComboBoxParameter.h.

Member Function Documentation

◆ AddHelpers()

◆ Exclusions()

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

Return list of current exclusions.

Reimplemented from Isis::GuiParameter.

Definition at line 81 of file GuiComboBoxParameter.cpp.

References IsisAml::ParamListExclude(), and IsisAml::ParamListExcludeSize().

◆ IsEnabled()

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

◆ IsModified()

bool Isis::GuiParameter::IsModified ( )
virtualinherited

◆ Name()

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

◆ RememberWidget()

void Isis::GuiParameter::RememberWidget ( QWidget w)
inherited

Add widgets to a list for enabling/disabling.

Definition at line 212 of file GuiParameter.cpp.

Referenced by Isis::GuiParameter::AddHelpers(), and Isis::GuiFileNameParameter::GuiFileNameParameter().

◆ SetEnabled()

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

Enable or disable the parameter.

Definition at line 217 of file GuiParameter.cpp.

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

◆ SetToCurrent()

void Isis::GuiParameter::SetToCurrent ( )
inherited

Change the parameter to the current user interface value.

Definition at line 171 of file GuiParameter.cpp.

References IsisAml::GetAsString(), Isis::GuiParameter::SetToDefault(), and IsisAml::WasEntered().

◆ SetToDefault()

void Isis::GuiParameter::SetToDefault ( )
inherited

Change the parameter to the default value.

Definition at line 158 of file GuiParameter.cpp.

References IsisAml::ParamDefault(), and IsisAml::ParamInternalDefault().

Referenced by Isis::GuiParameter::SetToCurrent().

◆ Update()

void Isis::GuiParameter::Update ( )
inherited

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