SUMO - Simulation of Urban MObility
GNEPolygonFrame::ShapeAttributeSingle Class Reference

#include <GNEPolygonFrame.h>

Inheritance diagram for GNEPolygonFrame::ShapeAttributeSingle:
Inheritance graph
Collaboration diagram for GNEPolygonFrame::ShapeAttributeSingle:
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...
 
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...
 
 ShapeAttributeSingle (FXComposite *parent)
 FOX-declaration. 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, double value)
 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...
 
void showParameter (SumoXMLTag additionalTag, SumoXMLAttr additionalAttr, RGBColor value)
 show name and value of parameters of type Color More...
 
 ~ShapeAttributeSingle ()
 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

 ShapeAttributeSingle ()
 FOX needs this. More...
 

Private Attributes

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...
 
SumoXMLAttr myShapeAttr
 current XML attribute More...
 
SumoXMLTag myShapeTag
 current XML attribute 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...
 

Detailed Description

Definition at line 67 of file GNEPolygonFrame.h.

Constructor & Destructor Documentation

GNEPolygonFrame::ShapeAttributeSingle::~ShapeAttributeSingle ( )

destructor

Definition at line 514 of file GNEPolygonFrame.cpp.

GNEPolygonFrame::ShapeAttributeSingle::ShapeAttributeSingle ( )
inlineprotected

FOX needs this.

Definition at line 122 of file GNEPolygonFrame.h.

Member Function Documentation

SumoXMLAttr GNEPolygonFrame::ShapeAttributeSingle::getAttr ( ) const

return Attr

Definition at line 613 of file GNEPolygonFrame.cpp.

References myShapeAttr.

SumoXMLTag GNEPolygonFrame::ShapeAttributeSingle::getTag ( ) const

return tag

Definition at line 607 of file GNEPolygonFrame.cpp.

References myShapeTag.

std::string GNEPolygonFrame::ShapeAttributeSingle::getValue ( ) const
void GNEPolygonFrame::ShapeAttributeSingle::hideParameter ( )
const std::string & GNEPolygonFrame::ShapeAttributeSingle::isAttributeValid ( ) const

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

Definition at line 633 of file GNEPolygonFrame.cpp.

References myInvalidValue.

long GNEPolygonFrame::ShapeAttributeSingle::onCmdSetBooleanAttribute ( FXObject *  ,
FXSelector  ,
void *   
)

called when user change the value of myBoolCheckButton

Definition at line 720 of file GNEPolygonFrame.cpp.

References myBoolCheckButton.

long GNEPolygonFrame::ShapeAttributeSingle::onCmdSetColorAttribute ( FXObject *  ,
FXSelector  ,
void *   
)

called when user press the "Color" button

Definition at line 730 of file GNEPolygonFrame.cpp.

References MFXUtils::getFXColor(), MFXUtils::getRGBColor(), myTextFieldStrings, RGBColor::parseColor(), and toString().

void GNEPolygonFrame::ShapeAttributeSingle::showParameter ( SumoXMLTag  additionalTag,
SumoXMLAttr  additionalAttr,
std::string  value 
)

show name and value of attribute of type string

Definition at line 518 of file GNEPolygonFrame.cpp.

References myInvalidValue, myLabel, myShapeAttr, myShapeTag, myTextFieldStrings, GNEPolygonFrame::show(), and toString().

void GNEPolygonFrame::ShapeAttributeSingle::showParameter ( SumoXMLTag  additionalTag,
SumoXMLAttr  additionalAttr,
int  value 
)

show name and value of parameters of type int

Definition at line 532 of file GNEPolygonFrame.cpp.

References myInvalidValue, myLabel, myShapeAttr, myShapeTag, myTextFieldInt, GNEPolygonFrame::show(), and toString().

void GNEPolygonFrame::ShapeAttributeSingle::showParameter ( SumoXMLTag  additionalTag,
SumoXMLAttr  additionalAttr,
double  value 
)

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

Definition at line 546 of file GNEPolygonFrame.cpp.

References myInvalidValue, myLabel, myShapeAttr, myShapeTag, myTextFieldReal, GNEPolygonFrame::show(), and toString().

void GNEPolygonFrame::ShapeAttributeSingle::showParameter ( SumoXMLTag  additionalTag,
SumoXMLAttr  additionalAttr,
bool  value 
)

show name and value of parameters of type bool

Definition at line 560 of file GNEPolygonFrame.cpp.

References myBoolCheckButton, myInvalidValue, myLabel, myShapeAttr, myShapeTag, GNEPolygonFrame::show(), and toString().

void GNEPolygonFrame::ShapeAttributeSingle::showParameter ( SumoXMLTag  additionalTag,
SumoXMLAttr  additionalAttr,
RGBColor  value 
)

show name and value of parameters of type Color

Definition at line 579 of file GNEPolygonFrame.cpp.

References mycolorEditor, myInvalidValue, myShapeAttr, myShapeTag, myTextFieldStrings, GNEPolygonFrame::show(), and toString().

Field Documentation

FXCheckButton* GNEPolygonFrame::ShapeAttributeSingle::myBoolCheckButton
private

check button to enable/disable the value of boolean parameters

Definition at line 144 of file GNEPolygonFrame.h.

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

FXButton* GNEPolygonFrame::ShapeAttributeSingle::mycolorEditor
private

Button for open color editor.

Definition at line 147 of file GNEPolygonFrame.h.

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

std::string GNEPolygonFrame::ShapeAttributeSingle::myInvalidValue
private

string which indicates the reason due current value is invalid

Definition at line 150 of file GNEPolygonFrame.h.

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

FXLabel* GNEPolygonFrame::ShapeAttributeSingle::myLabel
private

lael with the name of the parameter

Definition at line 132 of file GNEPolygonFrame.h.

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

SumoXMLAttr GNEPolygonFrame::ShapeAttributeSingle::myShapeAttr
private

current XML attribute

Definition at line 129 of file GNEPolygonFrame.h.

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

SumoXMLTag GNEPolygonFrame::ShapeAttributeSingle::myShapeTag
private

current XML attribute

Definition at line 126 of file GNEPolygonFrame.h.

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

FXTextField* GNEPolygonFrame::ShapeAttributeSingle::myTextFieldInt
private

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

Definition at line 135 of file GNEPolygonFrame.h.

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

FXTextField* GNEPolygonFrame::ShapeAttributeSingle::myTextFieldReal
private

textField to modify the default value of real/times parameters

Definition at line 138 of file GNEPolygonFrame.h.

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

FXTextField* GNEPolygonFrame::ShapeAttributeSingle::myTextFieldStrings
private

textField to modify the default value of string parameters

Definition at line 141 of file GNEPolygonFrame.h.

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


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