SUMO - Simulation of Urban MObility
GNEInspectorFrame::AttributesEditor::AttributeInput Class Reference

FOX-declaration. More...

#include <GNEInspectorFrame.h>

Inheritance diagram for GNEInspectorFrame::AttributesEditor::AttributeInput:
Inheritance graph
Collaboration diagram for GNEInspectorFrame::AttributesEditor::AttributeInput:
Collaboration graph

Public Member Functions

 AttributeInput (GNEInspectorFrame::AttributesEditor *attributeEditorParent)
 FOX-declaration. More...
 
void hideAttribute ()
 show attribute More...
 
bool isCurrentAttributeValid () const
 check if current attribute of TextField/ComboBox is valid More...
 
void refreshAttributeInput (const std::string &value, bool forceRefresh)
 refresh current attribute input More...
 
void showAttribute (SumoXMLTag ACTag, SumoXMLAttr ACAttribute, const std::string &value)
 show attribute of ac More...
 
FOX-callbacks
long onCmdSetAttribute (FXObject *, FXSelector, void *)
 try to set new attribute value More...
 
long onCmdOpenAttributeDialog (FXObject *, FXSelector, void *)
 open model dialog for more comfortable attribute editing More...
 

Protected Member Functions

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

Private Member Functions

void disableAttributeInputElements ()
 disable attribute input elements More...
 
void enableAttributeInputElements ()
 enable attribute input elements More...
 

Private Attributes

SumoXMLAttr myAttr
 current Attr More...
 
GNEInspectorFrame::AttributesEditormyAttributesEditorParent
 pointer to AttributesEditor parent More...
 
FXCheckButton * myBoolCheckButton
 pointer to menu check More...
 
FXButton * myButtonCombinableChoices
 pointer to buttonCombinableChoices More...
 
FXComboBox * myChoicesCombo
 pointer to combo box choices More...
 
FXButton * myColorEditor
 Button for open color editor. More...
 
FXLabel * myLabel
 pointer to attribute label More...
 
bool myMultiple
 flag to check if input element contains multiple values More...
 
SumoXMLTag myTag
 current tag More...
 
FXTextField * myTextFieldInt
 textField to modify the value of int attributes More...
 
FXTextField * myTextFieldReal
 textField to modify the value of real/Time attributes More...
 
FXTextField * myTextFieldStrings
 textField to modify the value of string attributes More...
 

Detailed Description

FOX-declaration.

Definition at line 129 of file GNEInspectorFrame.h.

Constructor & Destructor Documentation

◆ AttributeInput() [1/2]

◆ AttributeInput() [2/2]

GNEInspectorFrame::AttributesEditor::AttributeInput::AttributeInput ( )
inlineprotected

FOX needs this.

Definition at line 161 of file GNEInspectorFrame.h.

Member Function Documentation

◆ disableAttributeInputElements()

void GNEInspectorFrame::AttributesEditor::AttributeInput::disableAttributeInputElements ( )
private

disable attribute input elements

Definition at line 999 of file GNEInspectorFrame.cpp.

References myBoolCheckButton, myChoicesCombo, myTextFieldInt, myTextFieldReal, and myTextFieldStrings.

◆ enableAttributeInputElements()

void GNEInspectorFrame::AttributesEditor::AttributeInput::enableAttributeInputElements ( )
private

enable attribute input elements

Definition at line 989 of file GNEInspectorFrame.cpp.

References myBoolCheckButton, myChoicesCombo, myTextFieldInt, myTextFieldReal, and myTextFieldStrings.

Referenced by showAttribute().

◆ hideAttribute()

void GNEInspectorFrame::AttributesEditor::AttributeInput::hideAttribute ( )

◆ isCurrentAttributeValid()

bool GNEInspectorFrame::AttributesEditor::AttributeInput::isCurrentAttributeValid ( ) const

check if current attribute of TextField/ComboBox is valid

Definition at line 780 of file GNEInspectorFrame.cpp.

References myChoicesCombo, myTextFieldInt, myTextFieldReal, and myTextFieldStrings.

◆ onCmdOpenAttributeDialog()

long GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdOpenAttributeDialog ( FXObject *  obj,
FXSelector  ,
void *   
)

◆ onCmdSetAttribute()

◆ refreshAttributeInput()

void GNEInspectorFrame::AttributesEditor::AttributeInput::refreshAttributeInput ( const std::string &  value,
bool  forceRefresh 
)

refresh current attribute input

Definition at line 748 of file GNEInspectorFrame.cpp.

References myBoolCheckButton, myChoicesCombo, myTextFieldInt, myTextFieldReal, and myTextFieldStrings.

◆ showAttribute()

◆ stripWhitespaceAfterComma()

std::string GNEInspectorFrame::AttributesEditor::AttributeInput::stripWhitespaceAfterComma ( const std::string &  stringValue)
protected

removed invalid spaces of Positions and shapes

Definition at line 979 of file GNEInspectorFrame.cpp.

References StringUtils::replace().

Referenced by onCmdSetAttribute().

Field Documentation

◆ myAttr

SumoXMLAttr GNEInspectorFrame::AttributesEditor::AttributeInput::myAttr
private

current Attr

Definition at line 180 of file GNEInspectorFrame.h.

Referenced by onCmdOpenAttributeDialog(), onCmdSetAttribute(), and showAttribute().

◆ myAttributesEditorParent

GNEInspectorFrame::AttributesEditor* GNEInspectorFrame::AttributesEditor::AttributeInput::myAttributesEditorParent
private

pointer to AttributesEditor parent

Definition at line 174 of file GNEInspectorFrame.h.

Referenced by onCmdOpenAttributeDialog(), and onCmdSetAttribute().

◆ myBoolCheckButton

FXCheckButton* GNEInspectorFrame::AttributesEditor::AttributeInput::myBoolCheckButton
private

◆ myButtonCombinableChoices

FXButton* GNEInspectorFrame::AttributesEditor::AttributeInput::myButtonCombinableChoices
private

pointer to buttonCombinableChoices

Definition at line 204 of file GNEInspectorFrame.h.

Referenced by AttributeInput(), hideAttribute(), onCmdOpenAttributeDialog(), and showAttribute().

◆ myChoicesCombo

FXComboBox* GNEInspectorFrame::AttributesEditor::AttributeInput::myChoicesCombo
private

◆ myColorEditor

FXButton* GNEInspectorFrame::AttributesEditor::AttributeInput::myColorEditor
private

Button for open color editor.

Definition at line 207 of file GNEInspectorFrame.h.

Referenced by AttributeInput(), hideAttribute(), onCmdOpenAttributeDialog(), and showAttribute().

◆ myLabel

FXLabel* GNEInspectorFrame::AttributesEditor::AttributeInput::myLabel
private

pointer to attribute label

Definition at line 186 of file GNEInspectorFrame.h.

Referenced by AttributeInput(), hideAttribute(), and showAttribute().

◆ myMultiple

bool GNEInspectorFrame::AttributesEditor::AttributeInput::myMultiple
private

flag to check if input element contains multiple values

Definition at line 183 of file GNEInspectorFrame.h.

Referenced by onCmdSetAttribute(), and showAttribute().

◆ myTag

SumoXMLTag GNEInspectorFrame::AttributesEditor::AttributeInput::myTag
private

current tag

Definition at line 177 of file GNEInspectorFrame.h.

Referenced by onCmdSetAttribute(), and showAttribute().

◆ myTextFieldInt

FXTextField* GNEInspectorFrame::AttributesEditor::AttributeInput::myTextFieldInt
private

◆ myTextFieldReal

FXTextField* GNEInspectorFrame::AttributesEditor::AttributeInput::myTextFieldReal
private

◆ myTextFieldStrings

FXTextField* GNEInspectorFrame::AttributesEditor::AttributeInput::myTextFieldStrings
private

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