Eclipse SUMO - Simulation of Urban MObility
GNEFrameAttributesModuls::AttributesEditorRow Class Reference

#include <GNEFrameAttributesModuls.h>

Inheritance diagram for GNEFrameAttributesModuls::AttributesEditorRow:
Collaboration diagram for GNEFrameAttributesModuls::AttributesEditorRow:

Public Member Functions

 AttributesEditorRow (AttributesEditor *attributeEditorParent, const GNEAttributeCarrier::AttributeProperties &ACAttr, const std::string &value, bool attributeEnabled)
 FOX-declaration. More...
 
void destroy ()
 destroy AttributesCreatorRow (but don't delete) More...
 
bool isAttributesEditorRowValid () const
 check if current attribute of TextField/ComboBox is valid More...
 
void refreshAttributesEditorRow (const std::string &value, bool forceRefresh, bool disjointAttributeEnabled)
 refresh current row More...
 
FOX-callbacks
long onCmdSetAttribute (FXObject *, FXSelector, void *)
 try to set new attribute value More...
 
long onCmdSelectCheckButton (FXObject *, FXSelector, void *)
 called when user press a check button More...
 
long onCmdSelectRadioButton (FXObject *, FXSelector, void *)
 set new disjoint attribute More...
 
long onCmdOpenAttributeDialog (FXObject *, FXSelector, void *)
 open model dialog for more comfortable attribute editing More...
 

Protected Member Functions

 AttributesEditorRow ()
 FOX needs this. More...
 
std::string stripWhitespaceAfterComma (const std::string &stringValue)
 removed invalid spaces of Positions and shapes More...
 

Private Attributes

const GNEAttributeCarrier::AttributeProperties myACAttr
 current AC Attribute More...
 
FXButton * myAttributeButtonCombinableChoices
 pointer to buttonCombinableChoices More...
 
FXCheckButton * myAttributeCheckButton
 pointer to attribute menu check More...
 
FXButton * myAttributeColorButton
 Button for open color editor. More...
 
FXLabel * myAttributeLabel
 pointer to attribute label More...
 
FXRadioButton * myAttributeRadioButton
 Radio button for disjoint attributes. More...
 
AttributesEditormyAttributesEditorParent
 pointer to AttributesEditor parent More...
 
const bool myMultiple
 flag to check if input element contains multiple values More...
 
FXCheckButton * myValueCheckButton
 pointer to menu check More...
 
FXComboBox * myValueComboBoxChoices
 pointer to combo box choices More...
 
FXTextField * myValueTextFieldInt
 textField to modify the value of int attributes More...
 
FXTextField * myValueTextFieldReal
 textField to modify the value of real/Time attributes More...
 
FXTextField * myValueTextFieldStrings
 textField to modify the value of string attributes More...
 

Detailed Description

Definition at line 220 of file GNEFrameAttributesModuls.h.

Constructor & Destructor Documentation

◆ AttributesEditorRow() [1/2]

GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow ( GNEFrameAttributesModuls::AttributesEditor attributeEditorParent,
const GNEAttributeCarrier::AttributeProperties ACAttr,
const std::string &  value,
bool  attributeEnabled 
)

FOX-declaration.

constructor

Definition at line 839 of file GNEFrameAttributesModuls.cpp.

References GNEAttributeCarrier::canParse(), GNEViewNetHelper::EditModes::currentSupermode, DEFAULT_BIKETYPE_ID, DEFAULT_PEDTYPE_ID, DEFAULT_VTYPE_ID, GNEAttributeCarrier::AttributeProperties::getAttr(), GNEAttributeCarrier::AttributeProperties::getAttrStr(), GNEAttributeCarrier::AttributeProperties::getDiscreteValues(), GNEViewNet::getEditModes(), GNEFrameAttributesModuls::AttributesEditor::getFrameParent(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::AttributeProperties::getTagPropertyParent(), GNE_SUPERMODE_DEMAND, GNE_SUPERMODE_NETWORK, GUIDesignButtonAttribute, GUIDesignCheckButton, GUIDesignCheckButtonAttribute, GUIDesignComboBoxAttribute, GUIDesignComboBoxNCol, GUIDesignLabelAttribute, GUIDesignRadioButtonAttribute, GUIDesignTextField, GUIDesignTextFieldInt, GUIDesignTextFieldNCol, GUIDesignTextFieldReal, GNEAttributeCarrier::AttributeProperties::isBool(), GNEAttributeCarrier::AttributeProperties::isColor(), GNEAttributeCarrier::AttributeProperties::isCombinable(), GNEAttributeCarrier::TagProperties::isDemandElement(), GNEAttributeCarrier::AttributeProperties::isDiscrete(), GNEAttributeCarrier::AttributeProperties::isEnablitable(), GNEAttributeCarrier::AttributeProperties::isFloat(), GNEAttributeCarrier::AttributeProperties::isInt(), GNEAttributeCarrier::AttributeProperties::isNonEditable(), GNEAttributeCarrier::AttributeProperties::isOptional(), GNEAttributeCarrier::TagProperties::isPersonStop(), GNEAttributeCarrier::TagProperties::isStop(), GNEAttributeCarrier::AttributeProperties::isSUMOTime(), MID_GNE_SET_ATTRIBUTE, MID_GNE_SET_ATTRIBUTE_BOOL, MID_GNE_SET_ATTRIBUTE_DIALOG, MID_GNE_SET_ATTRIBUTE_RADIOBUTTON, myACAttr, myAttributeButtonCombinableChoices, myAttributeCheckButton, myAttributeColorButton, myAttributeLabel, myAttributeRadioButton, myAttributesEditorParent, myMultiple, myValueCheckButton, myValueComboBoxChoices, myValueTextFieldInt, myValueTextFieldReal, myValueTextFieldStrings, GNEFrame::myViewNet, SUMO_ATTR_BUS_STOP, SUMO_ATTR_CHARGING_STATION, SUMO_ATTR_CONTAINER_STOP, SUMO_ATTR_ID, SUMO_ATTR_PARKING_AREA, SUMO_ATTR_TLID, SUMO_ATTR_TLLINKINDEX, SUMO_TAG_CONNECTION, SUMO_TAG_JUNCTION, and SUMO_TAG_VTYPE.

◆ AttributesEditorRow() [2/2]

GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow ( )
protected

FOX needs this.

Definition at line 1399 of file GNEFrameAttributesModuls.cpp.

Member Function Documentation

◆ destroy()

void GNEFrameAttributesModuls::AttributesEditorRow::destroy ( )

destroy AttributesCreatorRow (but don't delete)

Definition at line 1051 of file GNEFrameAttributesModuls.cpp.

◆ isAttributesEditorRowValid()

bool GNEFrameAttributesModuls::AttributesEditorRow::isAttributesEditorRowValid ( ) const

check if current attribute of TextField/ComboBox is valid

Definition at line 1169 of file GNEFrameAttributesModuls.cpp.

References myValueComboBoxChoices, myValueTextFieldInt, myValueTextFieldReal, and myValueTextFieldStrings.

◆ onCmdOpenAttributeDialog()

◆ onCmdSelectCheckButton()

long GNEFrameAttributesModuls::AttributesEditorRow::onCmdSelectCheckButton ( FXObject *  ,
FXSelector  ,
void *   
)

called when user press a check button

Definition at line 1363 of file GNEFrameAttributesModuls.cpp.

References myAttributeCheckButton, myValueCheckButton, myValueTextFieldInt, myValueTextFieldReal, and myValueTextFieldStrings.

◆ onCmdSelectRadioButton()

◆ onCmdSetAttribute()

long GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute ( FXObject *  ,
FXSelector  ,
void *   
)

◆ refreshAttributesEditorRow()

◆ stripWhitespaceAfterComma()

std::string GNEFrameAttributesModuls::AttributesEditorRow::stripWhitespaceAfterComma ( const std::string &  stringValue)
protected

removed invalid spaces of Positions and shapes

Definition at line 1405 of file GNEFrameAttributesModuls.cpp.

References StringUtils::replace().

Referenced by onCmdSetAttribute().

Field Documentation

◆ myACAttr

const GNEAttributeCarrier::AttributeProperties GNEFrameAttributesModuls::AttributesEditorRow::myACAttr
private

◆ myAttributeButtonCombinableChoices

FXButton* GNEFrameAttributesModuls::AttributesEditorRow::myAttributeButtonCombinableChoices
private

pointer to buttonCombinableChoices

Definition at line 280 of file GNEFrameAttributesModuls.h.

Referenced by AttributesEditorRow(), onCmdOpenAttributeDialog(), and refreshAttributesEditorRow().

◆ myAttributeCheckButton

FXCheckButton* GNEFrameAttributesModuls::AttributesEditorRow::myAttributeCheckButton
private

pointer to attribute menu check

Definition at line 277 of file GNEFrameAttributesModuls.h.

Referenced by AttributesEditorRow(), onCmdSelectCheckButton(), and refreshAttributesEditorRow().

◆ myAttributeColorButton

FXButton* GNEFrameAttributesModuls::AttributesEditorRow::myAttributeColorButton
private

Button for open color editor.

Definition at line 283 of file GNEFrameAttributesModuls.h.

Referenced by AttributesEditorRow(), onCmdOpenAttributeDialog(), and refreshAttributesEditorRow().

◆ myAttributeLabel

FXLabel* GNEFrameAttributesModuls::AttributesEditorRow::myAttributeLabel
private

pointer to attribute label

Definition at line 271 of file GNEFrameAttributesModuls.h.

Referenced by AttributesEditorRow().

◆ myAttributeRadioButton

FXRadioButton* GNEFrameAttributesModuls::AttributesEditorRow::myAttributeRadioButton
private

Radio button for disjoint attributes.

Definition at line 274 of file GNEFrameAttributesModuls.h.

Referenced by AttributesEditorRow(), and refreshAttributesEditorRow().

◆ myAttributesEditorParent

AttributesEditor* GNEFrameAttributesModuls::AttributesEditorRow::myAttributesEditorParent
private

◆ myMultiple

const bool GNEFrameAttributesModuls::AttributesEditorRow::myMultiple
private

flag to check if input element contains multiple values

Definition at line 268 of file GNEFrameAttributesModuls.h.

Referenced by AttributesEditorRow(), and onCmdSetAttribute().

◆ myValueCheckButton

FXCheckButton* GNEFrameAttributesModuls::AttributesEditorRow::myValueCheckButton
private

◆ myValueComboBoxChoices

FXComboBox* GNEFrameAttributesModuls::AttributesEditorRow::myValueComboBoxChoices
private

pointer to combo box choices

Definition at line 295 of file GNEFrameAttributesModuls.h.

Referenced by AttributesEditorRow(), isAttributesEditorRowValid(), onCmdSetAttribute(), and refreshAttributesEditorRow().

◆ myValueTextFieldInt

FXTextField* GNEFrameAttributesModuls::AttributesEditorRow::myValueTextFieldInt
private

textField to modify the value of int attributes

Definition at line 286 of file GNEFrameAttributesModuls.h.

Referenced by AttributesEditorRow(), isAttributesEditorRowValid(), onCmdSelectCheckButton(), onCmdSetAttribute(), and refreshAttributesEditorRow().

◆ myValueTextFieldReal

FXTextField* GNEFrameAttributesModuls::AttributesEditorRow::myValueTextFieldReal
private

textField to modify the value of real/Time attributes

Definition at line 289 of file GNEFrameAttributesModuls.h.

Referenced by AttributesEditorRow(), isAttributesEditorRowValid(), onCmdSelectCheckButton(), onCmdSetAttribute(), and refreshAttributesEditorRow().

◆ myValueTextFieldStrings

FXTextField* GNEFrameAttributesModuls::AttributesEditorRow::myValueTextFieldStrings
private

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