Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEParametersDialog::ParametersValues::ParameterRow Class Reference

FOX need this. More...

Public Member Functions

void copyValues (const ParameterRow &other)
 copy values of other parameter Row
void disableRow ()
 disable row
void enableRow (const std::string &parameter, const std::string &value) const
 enable row
bool isButtonInAddMode () const
 check if remove button is in mode "add"
 ParameterRow (ParametersValues *ParametersValues, FXVerticalFrame *verticalFrameParent)
 constructor
void toggleAddButton ()
 toggle add button
 ~ParameterRow ()
 destructor

Data Fields

FXButton * button
 Button for add or remove row.
FXTextField * keyField
 TextField for parameter.
FXTextField * valueField
 TextField for value.

Private Attributes

FXHorizontalFrame * horizontalFrame
 frame in which elements of ParameterRow are placed

Detailed Description

FOX need this.

class for parameters Row

Definition at line 102 of file GNEParametersDialog.h.

Constructor & Destructor Documentation

◆ ParameterRow()

GNEParametersDialog::ParametersValues::ParameterRow::ParameterRow ( ParametersValues * ParametersValues,
FXVerticalFrame * verticalFrameParent )

constructor

Definition at line 209 of file GNEParametersDialog.cpp.

References GUIDesigns::buildFXButton(), button, disableRow(), GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonIcon, GUIDesignTextField, GUIDesignTextFieldNCol, horizontalFrame, keyField, MID_GNE_REMOVE_ATTRIBUTE, MID_GNE_SET_ATTRIBUTE, GNEParametersDialog::ParametersValues::ParametersValues(), REMOVE, and valueField.

Referenced by copyValues().

Here is the caller graph for this function:

◆ ~ParameterRow()

GNEParametersDialog::ParametersValues::ParameterRow::~ParameterRow ( )

destructor

Definition at line 223 of file GNEParametersDialog.cpp.

References horizontalFrame.

Member Function Documentation

◆ copyValues()

void GNEParametersDialog::ParametersValues::ParameterRow::copyValues ( const ParameterRow & other)

copy values of other parameter Row

Definition at line 281 of file GNEParametersDialog.cpp.

References keyField, ParameterRow(), and valueField.

◆ disableRow()

void GNEParametersDialog::ParametersValues::ParameterRow::disableRow ( )

disable row

Definition at line 230 of file GNEParametersDialog.cpp.

References button, GUIIconSubSys::getIcon(), keyField, REMOVE, and valueField.

Referenced by ParameterRow().

Here is the caller graph for this function:

◆ enableRow()

void GNEParametersDialog::ParametersValues::ParameterRow::enableRow ( const std::string & parameter,
const std::string & value ) const

◆ isButtonInAddMode()

bool GNEParametersDialog::ParametersValues::ParameterRow::isButtonInAddMode ( ) const

check if remove button is in mode "add"

Definition at line 275 of file GNEParametersDialog.cpp.

References ADD, button, and GUIIconSubSys::getIcon().

◆ toggleAddButton()

void GNEParametersDialog::ParametersValues::ParameterRow::toggleAddButton ( )

toggle add button

Definition at line 261 of file GNEParametersDialog.cpp.

References ADD, button, GUIIconSubSys::getIcon(), keyField, and valueField.

Field Documentation

◆ button

FXButton* GNEParametersDialog::ParametersValues::ParameterRow::button

Button for add or remove row.

Definition at line 133 of file GNEParametersDialog.h.

Referenced by disableRow(), enableRow(), isButtonInAddMode(), ParameterRow(), and toggleAddButton().

◆ horizontalFrame

FXHorizontalFrame* GNEParametersDialog::ParametersValues::ParameterRow::horizontalFrame
private

frame in which elements of ParameterRow are placed

Definition at line 136 of file GNEParametersDialog.h.

Referenced by ParameterRow(), and ~ParameterRow().

◆ keyField

FXTextField* GNEParametersDialog::ParametersValues::ParameterRow::keyField

TextField for parameter.

Definition at line 127 of file GNEParametersDialog.h.

Referenced by copyValues(), disableRow(), enableRow(), ParameterRow(), and toggleAddButton().

◆ valueField

FXTextField* GNEParametersDialog::ParametersValues::ParameterRow::valueField

TextField for value.

Definition at line 130 of file GNEParametersDialog.h.

Referenced by copyValues(), disableRow(), enableRow(), ParameterRow(), and toggleAddButton().


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