SUMO - Simulation of Urban MObility
GNEAdditionalFrame::singleAdditionalParameter Class Reference

FOX-declaration. More...

#include <GNEAdditionalFrame.h>

Inheritance diagram for GNEAdditionalFrame::singleAdditionalParameter:
Inheritance graph
Collaboration diagram for GNEAdditionalFrame::singleAdditionalParameter:
Collaboration graph

Public Member Functions

SumoXMLAttr getAttr () const
 return Attr More...
 
SumoXMLTag getTag () const
 return tag More...
 
std::string getValue () const
 return value More...
 
void hideParameter ()
 hide all parameters More...
 
bool isCurrentValueValid () const
 check if the current value is valid More...
 
void showParameter (SumoXMLTag additionalTag, SumoXMLAttr additionalAttr, std::string value)
 show name and value of attribute of type string More...
 
void showParameter (SumoXMLTag additionalTag, SumoXMLAttr additionalAttr, int value)
 show name and value of parameters of type int More...
 
void showParameter (SumoXMLTag additionalTag, SumoXMLAttr additionalAttr, SUMOReal value, bool isTime=false)
 show name and value of parameters of type float/real/time More...
 
void showParameter (SumoXMLTag additionalTag, SumoXMLAttr additionalAttr, bool value)
 show name and value of parameters of type bool More...
 
 singleAdditionalParameter (FXComposite *parent)
 FOX-declaration. More...
 
 ~singleAdditionalParameter ()
 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 myMenuCheck More...
 

Protected Member Functions

 singleAdditionalParameter ()
 FOX needs this. More...
 

Private Attributes

SumoXMLAttr myAdditionalAttr
 current XML attribute More...
 
SumoXMLTag myAdditionalTag
 current XML attribute More...
 
bool myCurrentValueValid
 Flag which indicates that the current value is correct. More...
 
FXLabel * myLabel
 lael with the name of the parameter More...
 
FXMenuCheck * myMenuCheck
 menuCheck to enable/disable the value of boolean parameters More...
 
FXTextField * myTextField
 textField to modify the value of int/float/string parameters More...
 
FXSpinner * myTimeSpinDial
 spindial to modify the value of time parameters More...
 

Detailed Description

FOX-declaration.

Definition at line 59 of file GNEAdditionalFrame.h.

Constructor & Destructor Documentation

GNEAdditionalFrame::singleAdditionalParameter::~singleAdditionalParameter ( )

destructor

Definition at line 564 of file GNEAdditionalFrame.cpp.

GNEAdditionalFrame::singleAdditionalParameter::singleAdditionalParameter ( )
inlineprotected

FOX needs this.

Definition at line 108 of file GNEAdditionalFrame.h.

Member Function Documentation

SumoXMLAttr GNEAdditionalFrame::singleAdditionalParameter::getAttr ( ) const

return Attr

Definition at line 647 of file GNEAdditionalFrame.cpp.

References myAdditionalAttr.

SumoXMLTag GNEAdditionalFrame::singleAdditionalParameter::getTag ( ) const

return tag

Definition at line 641 of file GNEAdditionalFrame.cpp.

References myAdditionalTag.

std::string GNEAdditionalFrame::singleAdditionalParameter::getValue ( ) const
void GNEAdditionalFrame::singleAdditionalParameter::hideParameter ( )
bool GNEAdditionalFrame::singleAdditionalParameter::isCurrentValueValid ( ) const

check if the current value is valid

Definition at line 665 of file GNEAdditionalFrame.cpp.

References myCurrentValueValid.

long GNEAdditionalFrame::singleAdditionalParameter::onCmdSetBooleanAttribute ( FXObject *  ,
FXSelector  ,
void *   
)

called when user change the value of myMenuCheck

Definition at line 716 of file GNEAdditionalFrame.cpp.

References myMenuCheck.

void GNEAdditionalFrame::singleAdditionalParameter::showParameter ( SumoXMLTag  additionalTag,
SumoXMLAttr  additionalAttr,
std::string  value 
)

show name and value of attribute of type string

Definition at line 568 of file GNEAdditionalFrame.cpp.

References myAdditionalAttr, myAdditionalTag, myLabel, myTextField, GNEAdditionalFrame::show(), and toString().

void GNEAdditionalFrame::singleAdditionalParameter::showParameter ( SumoXMLTag  additionalTag,
SumoXMLAttr  additionalAttr,
int  value 
)

show name and value of parameters of type int

Definition at line 580 of file GNEAdditionalFrame.cpp.

References myAdditionalAttr, myAdditionalTag, myLabel, myTextField, GNEAdditionalFrame::show(), and toString().

void GNEAdditionalFrame::singleAdditionalParameter::showParameter ( SumoXMLTag  additionalTag,
SumoXMLAttr  additionalAttr,
SUMOReal  value,
bool  isTime = false 
)

show name and value of parameters of type float/real/time

Definition at line 592 of file GNEAdditionalFrame.cpp.

References myAdditionalAttr, myAdditionalTag, myLabel, myTextField, myTimeSpinDial, GNEAdditionalFrame::show(), and toString().

void GNEAdditionalFrame::singleAdditionalParameter::showParameter ( SumoXMLTag  additionalTag,
SumoXMLAttr  additionalAttr,
bool  value 
)

show name and value of parameters of type bool

Definition at line 609 of file GNEAdditionalFrame.cpp.

References myAdditionalAttr, myAdditionalTag, myCurrentValueValid, myLabel, myMenuCheck, myTextField, GNEAdditionalFrame::show(), and toString().

Field Documentation

SumoXMLAttr GNEAdditionalFrame::singleAdditionalParameter::myAdditionalAttr
private

current XML attribute

Definition at line 115 of file GNEAdditionalFrame.h.

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

SumoXMLTag GNEAdditionalFrame::singleAdditionalParameter::myAdditionalTag
private

current XML attribute

Definition at line 112 of file GNEAdditionalFrame.h.

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

bool GNEAdditionalFrame::singleAdditionalParameter::myCurrentValueValid
private

Flag which indicates that the current value is correct.

Definition at line 130 of file GNEAdditionalFrame.h.

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

FXLabel* GNEAdditionalFrame::singleAdditionalParameter::myLabel
private

lael with the name of the parameter

Definition at line 118 of file GNEAdditionalFrame.h.

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

FXMenuCheck* GNEAdditionalFrame::singleAdditionalParameter::myMenuCheck
private

menuCheck to enable/disable the value of boolean parameters

Definition at line 127 of file GNEAdditionalFrame.h.

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

FXTextField* GNEAdditionalFrame::singleAdditionalParameter::myTextField
private

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

Definition at line 121 of file GNEAdditionalFrame.h.

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

FXSpinner* GNEAdditionalFrame::singleAdditionalParameter::myTimeSpinDial
private

spindial to modify the value of time parameters

Definition at line 124 of file GNEAdditionalFrame.h.

Referenced by getValue(), hideParameter(), showParameter(), and singleAdditionalParameter().


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