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 attributeEnabled)
 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 onCmdOpenAttributeDialog (FXObject *, FXSelector, void *)
 open model dialog for more comfortable attribute editing More...
 

Protected Member Functions

 AttributesEditorRow ()
 
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 = nullptr
 pointer to buttonCombinableChoices More...
 
FXCheckButton * myAttributeCheckButton = nullptr
 pointer to attribute menu check More...
 
FXButton * myAttributeColorButton = nullptr
 Button for open color editor. More...
 
FXLabel * myAttributeLabel = nullptr
 pointer to attribute label More...
 
AttributesEditormyAttributesEditorParent = nullptr
 pointer to AttributesEditor parent More...
 
const bool myMultiple
 flag to check if input element contains multiple values More...
 
FXCheckButton * myValueCheckButton = nullptr
 pointer to menu check More...
 
FXComboBox * myValueComboBoxChoices = nullptr
 pointer to combo box choices More...
 
FXTextField * myValueTextField = nullptr
 textField to modify the value of string attributes More...
 

Detailed Description

Definition at line 302 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 
)

◆ AttributesEditorRow() [2/2]

GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow ( )
protected

Definition at line 1427 of file GNEFrameAttributesModuls.cpp.

Member Function Documentation

◆ destroy()

void GNEFrameAttributesModuls::AttributesEditorRow::destroy ( )

destroy AttributesCreatorRow (but don't delete)

Definition at line 1163 of file GNEFrameAttributesModuls.cpp.

◆ isAttributesEditorRowValid()

bool GNEFrameAttributesModuls::AttributesEditorRow::isAttributesEditorRowValid ( ) const

check if current attribute of TextField/ComboBox is valid

Definition at line 1231 of file GNEFrameAttributesModuls.cpp.

◆ onCmdOpenAttributeDialog()

long GNEFrameAttributesModuls::AttributesEditorRow::onCmdOpenAttributeDialog ( FXObject *  obj,
FXSelector  ,
void *   
)

◆ onCmdSelectCheckButton()

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

called when user press a check button

Definition at line 1413 of file GNEFrameAttributesModuls.cpp.

Referenced by FXDEFMAP().

◆ onCmdSetAttribute()

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

try to set new attribute value

Definition at line 1295 of file GNEFrameAttributesModuls.cpp.

References SUMO_ATTR_ANGLE, SUMO_ATTR_ID, SUMO_ATTR_POSITION, SUMO_ATTR_SHAPE, toString(), and WRITE_DEBUG.

Referenced by FXDEFMAP().

◆ refreshAttributesEditorRow()

void GNEFrameAttributesModuls::AttributesEditorRow::refreshAttributesEditorRow ( const std::string &  value,
bool  forceRefresh,
bool  attributeEnabled 
)

refresh current row

Definition at line 1172 of file GNEFrameAttributesModuls.cpp.

References GNE_SUPERMODE_DEMAND, GNE_SUPERMODE_NETWORK, and SUMO_ATTR_NOTHING.

◆ stripWhitespaceAfterComma()

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

removed invalid spaces of Positions and shapes

Definition at line 1433 of file GNEFrameAttributesModuls.cpp.

References StringUtils::replace().

Field Documentation

◆ myACAttr

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

current AC Attribute

Definition at line 343 of file GNEFrameAttributesModuls.h.

Referenced by AttributesEditorRow().

◆ myAttributeButtonCombinableChoices

FXButton* GNEFrameAttributesModuls::AttributesEditorRow::myAttributeButtonCombinableChoices = nullptr
private

pointer to buttonCombinableChoices

Definition at line 355 of file GNEFrameAttributesModuls.h.

Referenced by AttributesEditorRow().

◆ myAttributeCheckButton

FXCheckButton* GNEFrameAttributesModuls::AttributesEditorRow::myAttributeCheckButton = nullptr
private

pointer to attribute menu check

Definition at line 352 of file GNEFrameAttributesModuls.h.

Referenced by AttributesEditorRow().

◆ myAttributeColorButton

FXButton* GNEFrameAttributesModuls::AttributesEditorRow::myAttributeColorButton = nullptr
private

Button for open color editor.

Definition at line 358 of file GNEFrameAttributesModuls.h.

Referenced by AttributesEditorRow().

◆ myAttributeLabel

FXLabel* GNEFrameAttributesModuls::AttributesEditorRow::myAttributeLabel = nullptr
private

pointer to attribute label

Definition at line 349 of file GNEFrameAttributesModuls.h.

Referenced by AttributesEditorRow().

◆ myAttributesEditorParent

AttributesEditor* GNEFrameAttributesModuls::AttributesEditorRow::myAttributesEditorParent = nullptr
private

pointer to AttributesEditor parent

Definition at line 340 of file GNEFrameAttributesModuls.h.

Referenced by AttributesEditorRow().

◆ myMultiple

const bool GNEFrameAttributesModuls::AttributesEditorRow::myMultiple
private

flag to check if input element contains multiple values

Definition at line 346 of file GNEFrameAttributesModuls.h.

Referenced by AttributesEditorRow().

◆ myValueCheckButton

FXCheckButton* GNEFrameAttributesModuls::AttributesEditorRow::myValueCheckButton = nullptr
private

pointer to menu check

Definition at line 367 of file GNEFrameAttributesModuls.h.

Referenced by AttributesEditorRow().

◆ myValueComboBoxChoices

FXComboBox* GNEFrameAttributesModuls::AttributesEditorRow::myValueComboBoxChoices = nullptr
private

pointer to combo box choices

Definition at line 364 of file GNEFrameAttributesModuls.h.

Referenced by AttributesEditorRow().

◆ myValueTextField

FXTextField* GNEFrameAttributesModuls::AttributesEditorRow::myValueTextField = nullptr
private

textField to modify the value of string attributes

Definition at line 361 of file GNEFrameAttributesModuls.h.

Referenced by AttributesEditorRow().


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