USGS

Isis 3.0 Developer's Reference (API)

Home

Isis::GuiFileNameParameter Class Reference

#include <GuiFilenameParameter.h>

Inherits Isis::GuiParameter.

Inherited by Isis::GuiCubeParameter.

List of all members.

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

Detailed Description

Author:
2006-10-31 ???

Member Enumeration Documentation

Enumerator:
IntegerWidget 
DoubleWidget 
StringWidget 
ListWidget 
FileNameWidget 
CubeWidget 
BooleanWidget 
ComboWidget 

Constructor & Destructor Documentation

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

Destructor of GuiFileNameParameter object.


Member Function Documentation

QWidget * Isis::GuiParameter::AddHelpers ( QObject lo  )  [inherited]
std::vector< QString > Isis::GuiParameter::Exclusions (  )  [virtual, inherited]

Return list of current exclusions.

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

void Isis::GuiParameter::HelperTrigger ( const QString &   )  [signal, inherited]
bool Isis::GuiParameter::IsEnabled (  )  const [inline, inherited]
bool Isis::GuiParameter::IsModified (  )  [virtual, inherited]
QString Isis::GuiParameter::Name (  )  const [inline, inherited]

Return the name of the parameter.

References Isis::GuiParameter::p_name.

void Isis::GuiParameter::RememberWidget ( QWidget w  )  [inherited]
void Isis::GuiFileNameParameter::SelectFile (  )  [protected, virtual, slot]
void Isis::GuiFileNameParameter::Set ( QString  newValue  )  [virtual]

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

void Isis::GuiParameter::SetEnabled ( bool  enabled,
bool  isParentCombo = false 
) [inherited]
void Isis::GuiParameter::SetToCurrent (  )  [inherited]
void Isis::GuiParameter::SetToDefault (  )  [inherited]
ParameterType Isis::GuiParameter::Type (  )  [inline, inherited]
void Isis::GuiParameter::Update (  )  [inherited]
QString Isis::GuiFileNameParameter::Value (  )  [virtual]

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.

void Isis::GuiParameter::ValueChanged (  )  [signal, inherited]

Member Data Documentation

QToolButton* Isis::GuiParameter::p_fileButton [protected, inherited]
int Isis::GuiParameter::p_group [protected, inherited]
QLabel* Isis::GuiParameter::p_label [protected, inherited]
QLineEdit* Isis::GuiParameter::p_lineEdit [protected, inherited]
QString Isis::GuiParameter::p_name [protected, inherited]
int Isis::GuiParameter::p_param [protected, inherited]
ParameterType Isis::GuiParameter::p_type [protected, inherited]
UserInterface* Isis::GuiParameter::p_ui [protected, inherited]
QList<QWidget *> Isis::GuiParameter::p_widgetList [protected, inherited]

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