![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEPolygonFrame.h>


Public Member Functions | |
| SumoXMLAttr | getAttr () const |
| return Attr More... | |
| ShapeAttributes * | getShapeAttributesParent () const |
| get shape attributes parent 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 (ShapeAttributes *shapeAttributesParent) | |
| FOX-declaration. More... | |
| void | showParameter (SumoXMLAttr shapeAttr, std::string value) |
| show name and value of attribute of type string 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... | |
| ShapeAttributes * | myShapeAttributesParent |
| pointer to ShapeAttributes 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... | |
Definition at line 103 of file GNEPolygonFrame.h.
| GNEPolygonFrame::ShapeAttributeSingle::ShapeAttributeSingle | ( | ShapeAttributes * | shapeAttributesParent | ) |
FOX-declaration.
constructor
Definition at line 184 of file GNEPolygonFrame.cpp.
References GUIDesignButtonAttribute, GUIDesignCheckButtonAttribute, GUIDesignLabelAttribute, GUIDesignTextField, GUIDesignTextFieldInt, GUIDesignTextFieldNCol, GUIDesignTextFieldReal, hideParameter(), MID_GNE_SET_ATTRIBUTE_BOOL, MID_GNE_SET_ATTRIBUTE_DIALOG, MID_GNE_SET_ATTRIBUTE_TEXT, myBoolCheckButton, myColorEditor, myLabel, myTextFieldInt, myTextFieldReal, and myTextFieldStrings.
| GNEPolygonFrame::ShapeAttributeSingle::~ShapeAttributeSingle | ( | ) |
destructor
Definition at line 200 of file GNEPolygonFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 146 of file GNEPolygonFrame.h.
| SumoXMLAttr GNEPolygonFrame::ShapeAttributeSingle::getAttr | ( | ) | const |
| GNEPolygonFrame::ShapeAttributes * GNEPolygonFrame::ShapeAttributeSingle::getShapeAttributesParent | ( | ) | const |
get shape attributes parent
Definition at line 286 of file GNEPolygonFrame.cpp.
References myShapeAttributesParent.
| std::string GNEPolygonFrame::ShapeAttributeSingle::getValue | ( | ) | const |
return value
Definition at line 264 of file GNEPolygonFrame.cpp.
References GNEPolygonFrame::ShapeSelector::getCurrentShapeType(), GNEPolygonFrame::ShapeAttributes::getPolygonFrameParent(), GNEPolygonFrame::getShapeSelector(), GNEAttributeCarrier::getTagProperties(), myBoolCheckButton, myShapeAttr, myShapeAttributesParent, myTextFieldInt, myTextFieldReal, and myTextFieldStrings.
| void GNEPolygonFrame::ShapeAttributeSingle::hideParameter | ( | ) |
hide all parameters
Definition at line 245 of file GNEPolygonFrame.cpp.
References GNEFrame::hide(), myBoolCheckButton, myColorEditor, myLabel, myShapeAttr, myTextFieldInt, myTextFieldReal, myTextFieldStrings, and SUMO_ATTR_NOTHING.
Referenced by ShapeAttributeSingle().
| 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 280 of file GNEPolygonFrame.cpp.
References myInvalidValue.
| long GNEPolygonFrame::ShapeAttributeSingle::onCmdSetAttribute | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 292 of file GNEPolygonFrame.cpp.
References GNEPolygonFrame::ShapeSelector::getCurrentShapeType(), GNEPolygonFrame::ShapeAttributes::getPolygonFrameParent(), GNEPolygonFrame::getShapeSelector(), GNEAttributeCarrier::getTagProperties(), GUITexturesHelper::getTextureID(), SUMOXMLDefinitions::isValidFilename(), myInvalidValue, myShapeAttr, myShapeAttributesParent, myTextFieldInt, myTextFieldReal, myTextFieldStrings, SUMO_ATTR_IMGFILE, and toString().
Referenced by onCmdSetColorAttribute().
| long GNEPolygonFrame::ShapeAttributeSingle::onCmdSetBooleanAttribute | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when user change the value of myBoolCheckButton
Definition at line 375 of file GNEPolygonFrame.cpp.
References myBoolCheckButton.
| long GNEPolygonFrame::ShapeAttributeSingle::onCmdSetColorAttribute | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when user press the "Color" button
Definition at line 385 of file GNEPolygonFrame.cpp.
References GNEPolygonFrame::ShapeSelector::getCurrentShapeType(), MFXUtils::getFXColor(), GNEPolygonFrame::ShapeAttributes::getPolygonFrameParent(), MFXUtils::getRGBColor(), GNEPolygonFrame::getShapeSelector(), GNEAttributeCarrier::getTagProperties(), myShapeAttr, myShapeAttributesParent, myTextFieldStrings, onCmdSetAttribute(), RGBColor::parseColor(), and toString().
| void GNEPolygonFrame::ShapeAttributeSingle::showParameter | ( | SumoXMLAttr | shapeAttr, |
| std::string | value | ||
| ) |
show name and value of attribute of type string
Definition at line 204 of file GNEPolygonFrame.cpp.
References GNEPolygonFrame::ShapeSelector::getCurrentShapeType(), GNEPolygonFrame::ShapeAttributes::getPolygonFrameParent(), GNEAttributeCarrier::getTagProperties(), myBoolCheckButton, myColorEditor, myInvalidValue, myLabel, myShapeAttr, myShapeAttributesParent, GNEPolygonFrame::myShapeSelector, myTextFieldInt, myTextFieldReal, myTextFieldStrings, GNEPolygonFrame::show(), and toString().
|
private |
check button to enable/disable the value of boolean parameters
Definition at line 168 of file GNEPolygonFrame.h.
Referenced by getValue(), hideParameter(), onCmdSetBooleanAttribute(), ShapeAttributeSingle(), and showParameter().
|
private |
Button for open color editor.
Definition at line 171 of file GNEPolygonFrame.h.
Referenced by hideParameter(), ShapeAttributeSingle(), and showParameter().
|
private |
string which indicates the reason due current value is invalid
Definition at line 174 of file GNEPolygonFrame.h.
Referenced by isAttributeValid(), onCmdSetAttribute(), and showParameter().
|
private |
lael with the name of the parameter
Definition at line 156 of file GNEPolygonFrame.h.
Referenced by hideParameter(), ShapeAttributeSingle(), and showParameter().
|
private |
current XML attribute
Definition at line 153 of file GNEPolygonFrame.h.
Referenced by getAttr(), getValue(), hideParameter(), onCmdSetAttribute(), onCmdSetColorAttribute(), and showParameter().
|
private |
pointer to ShapeAttributes
Definition at line 150 of file GNEPolygonFrame.h.
Referenced by getShapeAttributesParent(), getValue(), onCmdSetAttribute(), onCmdSetColorAttribute(), and showParameter().
|
private |
textField to modify the default value of int/float/string parameters
Definition at line 159 of file GNEPolygonFrame.h.
Referenced by getValue(), hideParameter(), onCmdSetAttribute(), ShapeAttributeSingle(), and showParameter().
|
private |
textField to modify the default value of real/times parameters
Definition at line 162 of file GNEPolygonFrame.h.
Referenced by getValue(), hideParameter(), onCmdSetAttribute(), ShapeAttributeSingle(), and showParameter().
|
private |
textField to modify the default value of string parameters
Definition at line 165 of file GNEPolygonFrame.h.
Referenced by getValue(), hideParameter(), onCmdSetAttribute(), onCmdSetColorAttribute(), ShapeAttributeSingle(), and showParameter().