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...
 
GNEInspectorFrame * myInspectorFrameParent
 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 59 of file GNEInspectorFrame.h.

Constructor & Destructor Documentation

GNEInspectorFrame::AttributeInput::AttributeInput ( )
inlineprotected

FOX needs this.

Definition at line 93 of file GNEInspectorFrame.h.

References stripWhitespaceAfterComma().

Member Function Documentation

SumoXMLAttr GNEInspectorFrame::AttributeInput::getAttr ( ) const

get current Attr

Definition at line 839 of file GNEInspectorFrame.cpp.

References myAttr.

SumoXMLTag GNEInspectorFrame::AttributeInput::getTag ( ) const

get current tag

Definition at line 833 of file GNEInspectorFrame.cpp.

References myTag.

void GNEInspectorFrame::AttributeInput::hide ( )
private

set hide as private function

Definition at line 995 of file GNEInspectorFrame.cpp.

Referenced by hideAttribute().

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

open model dialog for more comfortable attribute editing

Definition at line 845 of file GNEInspectorFrame.cpp.

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

void GNEInspectorFrame::AttributeInput::refreshAttribute ( )

refresh attribute

Definition at line 813 of file GNEInspectorFrame.cpp.

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

void GNEInspectorFrame::AttributeInput::show ( )
private

set show as private function

Definition at line 989 of file GNEInspectorFrame.cpp.

Referenced by showAttribute().

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

removed invalid spaces of Positions and shapes

Definition at line 1001 of file GNEInspectorFrame.cpp.

References StringUtils::replace().

Referenced by AttributeInput(), and onCmdSetAttribute().

Field Documentation

SumoXMLAttr GNEInspectorFrame::AttributeInput::myAttr
private
FXCheckButton* GNEInspectorFrame::AttributeInput::myBoolCheckButton
private

pointer to menu check

Definition at line 124 of file GNEInspectorFrame.h.

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

FXButton* GNEInspectorFrame::AttributeInput::myButtonCombinableChoices
private

pointer to buttonCombinableChoices

Definition at line 127 of file GNEInspectorFrame.h.

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

FXComboBox* GNEInspectorFrame::AttributeInput::myChoicesCombo
private

pointer to combo box choices

Definition at line 121 of file GNEInspectorFrame.h.

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

GNEInspectorFrame* GNEInspectorFrame::AttributeInput::myInspectorFrameParent
private

pointer to GNEInspectorFrame parent

Definition at line 100 of file GNEInspectorFrame.h.

Referenced by onCmdSetAttribute(), and refreshAttribute().

FXLabel* GNEInspectorFrame::AttributeInput::myLabel
private

pointer to label

Definition at line 109 of file GNEInspectorFrame.h.

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

SumoXMLTag GNEInspectorFrame::AttributeInput::myTag
private

current tag

Definition at line 103 of file GNEInspectorFrame.h.

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

FXTextField* GNEInspectorFrame::AttributeInput::myTextFieldInt
private

textField to modify the value of int attributes

Definition at line 112 of file GNEInspectorFrame.h.

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

FXTextField* GNEInspectorFrame::AttributeInput::myTextFieldReal
private

textField to modify the value of real/Time attributes

Definition at line 115 of file GNEInspectorFrame.h.

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

FXTextField* GNEInspectorFrame::AttributeInput::myTextFieldStrings
private

textField to modify the value of string attributes

Definition at line 118 of file GNEInspectorFrame.h.

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


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