Eclipse SUMO - Simulation of Urban MObility
GNEFrameAttributesModuls::AttributesCreatorRow Class Reference

#include <GNEFrameAttributesModuls.h>

Inheritance diagram for GNEFrameAttributesModuls::AttributesCreatorRow:
Collaboration diagram for GNEFrameAttributesModuls::AttributesCreatorRow:

Public Member Functions

 AttributesCreatorRow (AttributesCreator *AttributesCreatorParent, const GNEAttributeCarrier::AttributeProperties &attrProperties)
 FOX-declaration. More...
 
void destroy ()
 destroy AttributesCreatorRow (but don't delete) More...
 
void disableAttributesCreatorRow ()
 disable row More...
 
void enableAttributesCreatorRow ()
 enable row More...
 
bool getAttributeCheckButtonCheck () const
 return status of label checkbox button More...
 
bool getAttributeRadioButtonCheck () const
 return status of radio button More...
 
AttributesCreatorgetAttributesCreatorParent () const
 get AttributesCreator parent More...
 
const GNEAttributeCarrier::AttributePropertiesgetAttrProperties () const
 return Attr More...
 
std::string getValue () const
 return value More...
 
bool isAttributesCreatorRowEnabled () const
 check if row is enabled 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 setAttributeCheckButtonCheck (bool value)
 enable or disable label checkbox button for optional attributes More...
 
void setAttributeRadioButtonCheck (bool value)
 enable or disable radio button for disjoint attributes More...
 
FOX-callbacks

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

long onCmdSetAttribute (FXObject *, FXSelector, void *)
 
long onCmdSelectCheckButton (FXObject *, FXSelector, void *)
 called when user press a check button More...
 
long onCmdSelectColorButton (FXObject *, FXSelector, void *)
 called when user press the "Color" button More...
 
long onCmdSelectRadioButton (FXObject *, FXSelector, void *)
 called when user press a radio button More...
 

Protected Member Functions

 AttributesCreatorRow ()
 FOX needs this. More...
 
std::string checkComplexAttribute (const std::string &value)
 check if given complex attribute is valid More...
 

Private Attributes

FXCheckButton * myAttributeCheckButton
 check button to enable/disable Label attribute More...
 
FXButton * myAttributeColorButton
 Button for open color editor. More...
 
FXLabel * myAttributeLabel
 Label with the name of the attribute. More...
 
FXRadioButton * myAttributeRadioButton
 Radio button for disjoint attributes. More...
 
AttributesCreatormyAttributesCreatorParent
 pointer to AttributesCreator More...
 
const GNEAttributeCarrier::AttributeProperties myAttrProperties
 attribute properties More...
 
std::string myInvalidValue
 string which indicates the reason due current value is invalid More...
 
FXCheckButton * myValueCheckButton
 check button to enable/disable the value of boolean parameters More...
 
FXTextField * myValueTextFieldInt
 textField to modify the default value of int/float/string parameters More...
 
FXTextField * myValueTextFieldReal
 textField to modify the default value of real/times parameters More...
 
FXTextField * myValueTextFieldStrings
 textField to modify the default value of string parameters More...
 

Detailed Description

Definition at line 52 of file GNEFrameAttributesModuls.h.

Constructor & Destructor Documentation

◆ AttributesCreatorRow() [1/2]

◆ AttributesCreatorRow() [2/2]

GNEFrameAttributesModuls::AttributesCreatorRow::AttributesCreatorRow ( )
inlineprotected

FOX needs this.

Definition at line 113 of file GNEFrameAttributesModuls.h.

References checkComplexAttribute().

Member Function Documentation

◆ checkComplexAttribute()

◆ destroy()

void GNEFrameAttributesModuls::AttributesCreatorRow::destroy ( )

destroy AttributesCreatorRow (but don't delete)

Definition at line 216 of file GNEFrameAttributesModuls.cpp.

◆ disableAttributesCreatorRow()

◆ enableAttributesCreatorRow()

◆ getAttributeCheckButtonCheck()

bool GNEFrameAttributesModuls::AttributesCreatorRow::getAttributeCheckButtonCheck ( ) const

return status of label checkbox button

Definition at line 286 of file GNEFrameAttributesModuls.cpp.

References myAttributeCheckButton.

◆ getAttributeRadioButtonCheck()

bool GNEFrameAttributesModuls::AttributesCreatorRow::getAttributeRadioButtonCheck ( ) const

return status of radio button

Definition at line 245 of file GNEFrameAttributesModuls.cpp.

References myAttributeRadioButton.

Referenced by GNEFrameAttributesModuls::AttributesCreator::updateDisjointAttributes().

◆ getAttributesCreatorParent()

GNEFrameAttributesModuls::AttributesCreator * GNEFrameAttributesModuls::AttributesCreatorRow::getAttributesCreatorParent ( ) const

get AttributesCreator parent

Definition at line 377 of file GNEFrameAttributesModuls.cpp.

References myAttributesCreatorParent.

◆ getAttrProperties()

const GNEAttributeCarrier::AttributeProperties & GNEFrameAttributesModuls::AttributesCreatorRow::getAttrProperties ( ) const

◆ getValue()

◆ isAttributesCreatorRowEnabled()

◆ isAttributeValid()

const std::string & GNEFrameAttributesModuls::AttributesCreatorRow::isAttributeValid ( ) const

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

Definition at line 371 of file GNEFrameAttributesModuls.cpp.

References myInvalidValue.

◆ onCmdSelectCheckButton()

long GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSelectCheckButton ( FXObject *  ,
FXSelector  ,
void *   
)

called when user press a check button

Definition at line 509 of file GNEFrameAttributesModuls.cpp.

References myAttributeCheckButton, myValueCheckButton, myValueTextFieldInt, myValueTextFieldReal, and myValueTextFieldStrings.

◆ onCmdSelectColorButton()

long GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSelectColorButton ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdSelectRadioButton()

long GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSelectRadioButton ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdSetAttribute()

long GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute ( FXObject *  obj,
FXSelector  ,
void *   
)

Definition at line 383 of file GNEFrameAttributesModuls.cpp.

References checkComplexAttribute(), GNEAttributeCarrier::AttributeProperties::getAttr(), GNEAttributeCarrier::AttributeProperties::getAttrStr(), GNEFrameAttributesModuls::AttributesCreator::getCurrentTagProperties(), GNEAttributeCarrier::AttributeProperties::getMaximumRange(), GNEAttributeCarrier::AttributeProperties::getMinimumRange(), GNEAttributeCarrier::TagProperties::getTag(), GUITexturesHelper::getTextureID(), GNEAttributeCarrier::AttributeProperties::hasAttrRange(), GNEAttributeCarrier::AttributeProperties::isColor(), GNEAttributeCarrier::AttributeProperties::isComplex(), GNEAttributeCarrier::AttributeProperties::isFilename(), GNEAttributeCarrier::AttributeProperties::isFloat(), GNEAttributeCarrier::AttributeProperties::isInt(), GNEAttributeCarrier::AttributeProperties::isPositive(), GNEAttributeCarrier::AttributeProperties::isProbability(), GNEAttributeCarrier::AttributeProperties::isSUMOTime(), SUMOXMLDefinitions::isValidAttribute(), SUMOXMLDefinitions::isValidFilename(), SUMOXMLDefinitions::isValidListOfTypeID(), SUMOXMLDefinitions::isValidVehicleID(), myAttributesCreatorParent, myAttrProperties, myInvalidValue, myValueCheckButton, myValueTextFieldInt, myValueTextFieldReal, myValueTextFieldStrings, SUMO_ATTR_ACTTYPE, SUMO_ATTR_EXPECTED, SUMO_ATTR_EXPECTED_CONTAINERS, SUMO_ATTR_IMGFILE, SUMO_ATTR_INDEX, SUMO_ATTR_LENGTH, SUMO_ATTR_NAME, SUMO_ATTR_TRIP_ID, SUMO_ATTR_VTYPES, SUMO_TAG_E2DETECTOR, toString(), and GNEFrameAttributesModuls::AttributesCreator::updateDisjointAttributes().

Referenced by onCmdSelectColorButton().

◆ setAttributeCheckButtonCheck()

◆ setAttributeRadioButtonCheck()

Field Documentation

◆ myAttributeCheckButton

FXCheckButton* GNEFrameAttributesModuls::AttributesCreatorRow::myAttributeCheckButton
private

check button to enable/disable Label attribute

Definition at line 135 of file GNEFrameAttributesModuls.h.

Referenced by getAttributeCheckButtonCheck(), onCmdSelectCheckButton(), and setAttributeCheckButtonCheck().

◆ myAttributeColorButton

FXButton* GNEFrameAttributesModuls::AttributesCreatorRow::myAttributeColorButton
private

Button for open color editor.

Definition at line 138 of file GNEFrameAttributesModuls.h.

◆ myAttributeLabel

FXLabel* GNEFrameAttributesModuls::AttributesCreatorRow::myAttributeLabel
private

Label with the name of the attribute.

Definition at line 129 of file GNEFrameAttributesModuls.h.

◆ myAttributeRadioButton

FXRadioButton* GNEFrameAttributesModuls::AttributesCreatorRow::myAttributeRadioButton
private

Radio button for disjoint attributes.

Definition at line 132 of file GNEFrameAttributesModuls.h.

Referenced by getAttributeRadioButtonCheck(), and setAttributeRadioButtonCheck().

◆ myAttributesCreatorParent

AttributesCreator* GNEFrameAttributesModuls::AttributesCreatorRow::myAttributesCreatorParent
private

◆ myAttrProperties

◆ myInvalidValue

std::string GNEFrameAttributesModuls::AttributesCreatorRow::myInvalidValue
private

string which indicates the reason due current value is invalid

Definition at line 126 of file GNEFrameAttributesModuls.h.

Referenced by isAttributeValid(), and onCmdSetAttribute().

◆ myValueCheckButton

FXCheckButton* GNEFrameAttributesModuls::AttributesCreatorRow::myValueCheckButton
private

◆ myValueTextFieldInt

FXTextField* GNEFrameAttributesModuls::AttributesCreatorRow::myValueTextFieldInt
private

◆ myValueTextFieldReal

FXTextField* GNEFrameAttributesModuls::AttributesCreatorRow::myValueTextFieldReal
private

◆ myValueTextFieldStrings

FXTextField* GNEFrameAttributesModuls::AttributesCreatorRow::myValueTextFieldStrings
private

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