SUMO - Simulation of Urban MObility
GNEFrame::ACAttributeRow Class Reference

#include <GNEFrame.h>

Inheritance diagram for GNEFrame::ACAttributeRow:
Inheritance graph
Collaboration diagram for GNEFrame::ACAttributeRow:
Collaboration graph

Public Member Functions

 ACAttributeRow (ACAttributes *ACAttributesParent)
 FOX-declaration. More...
 
ACAttributesgetACAttributesParent () const
 get ACAttributes parent More...
 
SumoXMLAttr getAttr () const
 return Attr More...
 
std::string getValue () const
 return value More...
 
void hideParameter ()
 hide all parameters More...
 
const std::string & isAttributeValid () const
 returns a empty string if current value is valid, a string with information about invalid value in other case More...
 
void showParameter (SumoXMLAttr const attr, const GNEAttributeCarrier::AttributeProperties &attrProperties, const std::string &value)
 show name and value of attribute of type string More...
 
 ~ACAttributeRow ()
 destructor More...
 
FOX-callbacks

called when user set the value of an attribute of type int/float/string

long onCmdSetAttribute (FXObject *, FXSelector, void *)
 
long onCmdSetBooleanAttribute (FXObject *, FXSelector, void *)
 called when user change the value of myBoolCheckButton More...
 
long onCmdSetColorAttribute (FXObject *, FXSelector, void *)
 called when user press the "Color" button More...
 

Protected Member Functions

 ACAttributeRow ()
 FOX needs this. More...
 

Private Attributes

ACAttributesmyACAttributesParent
 pointer to ACAttributes More...
 
GNEAttributeCarrier::AttributeProperties myAttrProperties
 attribute properties More...
 
FXCheckButton * myBoolCheckButton
 check button to enable/disable the value of boolean parameters More...
 
FXButton * myColorEditor
 Button for open color editor. More...
 
std::string myInvalidValue
 string which indicates the reason due current value is invalid More...
 
FXLabel * myLabel
 lael with the name of the parameter More...
 
FXTextField * myTextFieldInt
 textField to modify the default value of int/float/string parameters More...
 
FXTextField * myTextFieldReal
 textField to modify the default value of real/times parameters More...
 
FXTextField * myTextFieldStrings
 textField to modify the default value of string parameters More...
 
SumoXMLAttr myXMLAttr
 current XML attribute More...
 

Detailed Description

Definition at line 100 of file GNEFrame.h.

Constructor & Destructor Documentation

◆ ACAttributeRow() [1/2]

◆ ~ACAttributeRow()

GNEFrame::ACAttributeRow::~ACAttributeRow ( )

destructor

Definition at line 229 of file GNEFrame.cpp.

◆ ACAttributeRow() [2/2]

GNEFrame::ACAttributeRow::ACAttributeRow ( )
inlineprotected

FOX needs this.

Definition at line 143 of file GNEFrame.h.

Member Function Documentation

◆ getACAttributesParent()

GNEFrame::ACAttributes * GNEFrame::ACAttributeRow::getACAttributesParent ( ) const

get ACAttributes parent

Definition at line 312 of file GNEFrame.cpp.

References myACAttributesParent.

◆ getAttr()

SumoXMLAttr GNEFrame::ACAttributeRow::getAttr ( ) const

return Attr

Definition at line 286 of file GNEFrame.cpp.

References myXMLAttr.

◆ getValue()

◆ hideParameter()

void GNEFrame::ACAttributeRow::hideParameter ( )

◆ isAttributeValid()

const std::string & GNEFrame::ACAttributeRow::isAttributeValid ( ) const

returns a empty string if current value is valid, a string with information about invalid value in other case

Definition at line 306 of file GNEFrame.cpp.

References myInvalidValue.

◆ onCmdSetAttribute()

◆ onCmdSetBooleanAttribute()

long GNEFrame::ACAttributeRow::onCmdSetBooleanAttribute ( FXObject *  ,
FXSelector  ,
void *   
)

called when user change the value of myBoolCheckButton

Definition at line 415 of file GNEFrame.cpp.

References myBoolCheckButton.

◆ onCmdSetColorAttribute()

long GNEFrame::ACAttributeRow::onCmdSetColorAttribute ( FXObject *  ,
FXSelector  ,
void *   
)

◆ showParameter()

Field Documentation

◆ myACAttributesParent

ACAttributes* GNEFrame::ACAttributeRow::myACAttributesParent
private

pointer to ACAttributes

Definition at line 147 of file GNEFrame.h.

Referenced by getACAttributesParent(), and onCmdSetAttribute().

◆ myAttrProperties

GNEAttributeCarrier::AttributeProperties GNEFrame::ACAttributeRow::myAttrProperties
private

attribute properties

Definition at line 150 of file GNEFrame.h.

Referenced by getValue(), onCmdSetAttribute(), onCmdSetColorAttribute(), and showParameter().

◆ myBoolCheckButton

FXCheckButton* GNEFrame::ACAttributeRow::myBoolCheckButton
private

check button to enable/disable the value of boolean parameters

Definition at line 168 of file GNEFrame.h.

Referenced by ACAttributeRow(), getValue(), hideParameter(), onCmdSetBooleanAttribute(), and showParameter().

◆ myColorEditor

FXButton* GNEFrame::ACAttributeRow::myColorEditor
private

Button for open color editor.

Definition at line 171 of file GNEFrame.h.

Referenced by ACAttributeRow(), hideParameter(), and showParameter().

◆ myInvalidValue

std::string GNEFrame::ACAttributeRow::myInvalidValue
private

string which indicates the reason due current value is invalid

Definition at line 174 of file GNEFrame.h.

Referenced by isAttributeValid(), onCmdSetAttribute(), and showParameter().

◆ myLabel

FXLabel* GNEFrame::ACAttributeRow::myLabel
private

lael with the name of the parameter

Definition at line 156 of file GNEFrame.h.

Referenced by ACAttributeRow(), hideParameter(), and showParameter().

◆ myTextFieldInt

FXTextField* GNEFrame::ACAttributeRow::myTextFieldInt
private

textField to modify the default value of int/float/string parameters

Definition at line 159 of file GNEFrame.h.

Referenced by ACAttributeRow(), getValue(), hideParameter(), onCmdSetAttribute(), and showParameter().

◆ myTextFieldReal

FXTextField* GNEFrame::ACAttributeRow::myTextFieldReal
private

textField to modify the default value of real/times parameters

Definition at line 162 of file GNEFrame.h.

Referenced by ACAttributeRow(), getValue(), hideParameter(), onCmdSetAttribute(), and showParameter().

◆ myTextFieldStrings

FXTextField* GNEFrame::ACAttributeRow::myTextFieldStrings
private

textField to modify the default value of string parameters

Definition at line 165 of file GNEFrame.h.

Referenced by ACAttributeRow(), getValue(), hideParameter(), onCmdSetAttribute(), onCmdSetColorAttribute(), and showParameter().

◆ myXMLAttr

SumoXMLAttr GNEFrame::ACAttributeRow::myXMLAttr
private

current XML attribute

Definition at line 153 of file GNEFrame.h.

Referenced by getAttr(), hideParameter(), onCmdSetAttribute(), and showParameter().


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