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

FOX-declaration. More...

#include <GNEInspectorFrame.h>

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

Public Member Functions

 AttributeInput (FXComposite *parent, GNEInspectorFrame *inspectorFrameParent)
 FOX-declaration. More...
 
SumoXMLAttr getAttr () const
 get current Attr More...
 
SumoXMLTag getTag () const
 get current tag More...
 
void hideAttribute ()
 show attribute More...
 
void refreshAttribute ()
 refresh attribute More...
 
void showAttribute (SumoXMLTag ACTag, SumoXMLAttr ACAttribute, const std::string &value)
 show attribute of ac More...
 
FOX-callbacks

try to set new attribute value

long onCmdSetAttribute (FXObject *, FXSelector, void *)
 
long onCmdOpenAllowDisallowEditor (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 hide ()
 set hide as private function More...
 
void show ()
 set show as private function More...
 

Private Attributes

SumoXMLAttr myAttr
 current Attr More...
 
FXCheckButton * myBoolCheckButton
 pointer to menu check More...
 
FXButton * myButtonCombinableChoices
 pointer to buttonCombinableChoices More...
 
FXComboBox * myChoicesCombo
 pointer to combo box choices More...
 
GNEInspectorFramemyInspectorFrameParent
 pointer to GNEInspectorFrame parent More...
 
FXLabel * myLabel
 pointer to label 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 58 of file GNEInspectorFrame.h.

Constructor & Destructor Documentation

◆ AttributeInput() [1/2]

◆ AttributeInput() [2/2]

GNEInspectorFrame::AttributeInput::AttributeInput ( )
inlineprotected

FOX needs this.

Definition at line 92 of file GNEInspectorFrame.h.

References stripWhitespaceAfterComma().

Member Function Documentation

◆ getAttr()

SumoXMLAttr GNEInspectorFrame::AttributeInput::getAttr ( ) const

get current Attr

Definition at line 867 of file GNEInspectorFrame.cpp.

References myAttr.

◆ getTag()

SumoXMLTag GNEInspectorFrame::AttributeInput::getTag ( ) const

get current tag

Definition at line 861 of file GNEInspectorFrame.cpp.

References myTag.

◆ hide()

void GNEInspectorFrame::AttributeInput::hide ( )
private

set hide as private function

Definition at line 1025 of file GNEInspectorFrame.cpp.

Referenced by hideAttribute().

◆ hideAttribute()

void GNEInspectorFrame::AttributeInput::hideAttribute ( )

◆ onCmdOpenAllowDisallowEditor()

long GNEInspectorFrame::AttributeInput::onCmdOpenAllowDisallowEditor ( FXObject *  ,
FXSelector  ,
void *   
)

open model dialog for more comfortable attribute editing

Definition at line 873 of file GNEInspectorFrame.cpp.

References canParseVehicleClasses(), getVehicleClassNames(), myAttr, myTextFieldStrings, onCmdSetAttribute(), SUMO_ATTR_ALLOW, and SVCAll.

◆ onCmdSetAttribute()

◆ refreshAttribute()

void GNEInspectorFrame::AttributeInput::refreshAttribute ( )

refresh attribute

Definition at line 841 of file GNEInspectorFrame.cpp.

References GNEInspectorFrame::getACs(), myAttr, myInspectorFrameParent, myTag, and showAttribute().

◆ show()

void GNEInspectorFrame::AttributeInput::show ( )
private

set show as private function

Definition at line 1019 of file GNEInspectorFrame.cpp.

Referenced by showAttribute().

◆ showAttribute()

◆ stripWhitespaceAfterComma()

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

removed invalid spaces of Positions and shapes

Definition at line 1031 of file GNEInspectorFrame.cpp.

References StringUtils::replace().

Referenced by AttributeInput(), and onCmdSetAttribute().

Field Documentation

◆ myAttr

SumoXMLAttr GNEInspectorFrame::AttributeInput::myAttr
private

◆ myBoolCheckButton

FXCheckButton* GNEInspectorFrame::AttributeInput::myBoolCheckButton
private

pointer to menu check

Definition at line 123 of file GNEInspectorFrame.h.

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

◆ myButtonCombinableChoices

FXButton* GNEInspectorFrame::AttributeInput::myButtonCombinableChoices
private

pointer to buttonCombinableChoices

Definition at line 126 of file GNEInspectorFrame.h.

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

◆ myChoicesCombo

FXComboBox* GNEInspectorFrame::AttributeInput::myChoicesCombo
private

pointer to combo box choices

Definition at line 120 of file GNEInspectorFrame.h.

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

◆ myInspectorFrameParent

GNEInspectorFrame* GNEInspectorFrame::AttributeInput::myInspectorFrameParent
private

pointer to GNEInspectorFrame parent

Definition at line 99 of file GNEInspectorFrame.h.

Referenced by onCmdSetAttribute(), and refreshAttribute().

◆ myLabel

FXLabel* GNEInspectorFrame::AttributeInput::myLabel
private

pointer to label

Definition at line 108 of file GNEInspectorFrame.h.

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

◆ myTag

SumoXMLTag GNEInspectorFrame::AttributeInput::myTag
private

current tag

Definition at line 102 of file GNEInspectorFrame.h.

Referenced by getTag(), onCmdSetAttribute(), refreshAttribute(), and showAttribute().

◆ myTextFieldInt

FXTextField* GNEInspectorFrame::AttributeInput::myTextFieldInt
private

textField to modify the value of int attributes

Definition at line 111 of file GNEInspectorFrame.h.

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

◆ myTextFieldReal

FXTextField* GNEInspectorFrame::AttributeInput::myTextFieldReal
private

textField to modify the value of real/Time attributes

Definition at line 114 of file GNEInspectorFrame.h.

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

◆ myTextFieldStrings

FXTextField* GNEInspectorFrame::AttributeInput::myTextFieldStrings
private

textField to modify the value of string attributes

Definition at line 117 of file GNEInspectorFrame.h.

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


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