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

#include <GNEFrameAttributesModuls.h>

Inheritance diagram for GNEFrameAttributesModuls::AttributesCreatorRow:
[legend]
Collaboration diagram for GNEFrameAttributesModuls::AttributesCreatorRow:
[legend]

Public Member Functions

 AttributesCreatorRow (AttributesCreator *AttributesCreatorParent, const GNEAttributeProperties &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...
 
AttributesCreatorgetAttributesCreatorParent () const
 get AttributesCreator parent More...
 
const GNEAttributePropertiesgetAttrProperties () 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 refreshRow () const
 refresh row More...
 
void setAttributeCheckButtonCheck (bool value)
 enable or disable label checkbox button for optional 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...
 

Protected Member Functions

std::string checkComplexAttribute (const std::string &value)
 check if given complex attribute is valid More...
 
std::string generateID () const
 generate ID More...
 
bool isValidID () const
 check if current ID placed in myValueTextField is valid More...
 

Private Attributes

FXCheckButton * myAttributeCheckButton = nullptr
 check button to enable/disable Label attribute More...
 
FXButton * myAttributeColorButton = nullptr
 Button for open color editor. More...
 
FXLabel * myAttributeLabel = nullptr
 Label with the name of the attribute. More...
 
AttributesCreatormyAttributesCreatorParent = nullptr
 pointer to AttributesCreator More...
 
const GNEAttributeProperties myAttrProperties
 attribute properties More...
 
std::string myInvalidValue
 string which indicates the reason due current value is invalid More...
 
FXCheckButton * myValueCheckButton = nullptr
 check button to enable/disable the value of boolean parameters More...
 
FXTextField * myValueTextField = nullptr
 textField to modify the default value of string parameters More...
 

Detailed Description

Definition at line 53 of file GNEFrameAttributesModuls.h.

Constructor & Destructor Documentation

◆ AttributesCreatorRow()

GNEFrameAttributesModuls::AttributesCreatorRow::AttributesCreatorRow ( AttributesCreator AttributesCreatorParent,
const GNEAttributeProperties attrProperties 
)

Member Function Documentation

◆ checkComplexAttribute()

◆ destroy()

void GNEFrameAttributesModuls::AttributesCreatorRow::destroy ( )

destroy AttributesCreatorRow (but don't delete)

Definition at line 205 of file GNEFrameAttributesModuls.cpp.

◆ disableAttributesCreatorRow()

void GNEFrameAttributesModuls::AttributesCreatorRow::disableAttributesCreatorRow ( )

disable row

Definition at line 273 of file GNEFrameAttributesModuls.cpp.

◆ enableAttributesCreatorRow()

void GNEFrameAttributesModuls::AttributesCreatorRow::enableAttributesCreatorRow ( )

enable row

Definition at line 263 of file GNEFrameAttributesModuls.cpp.

◆ generateID()

std::string GNEFrameAttributesModuls::AttributesCreatorRow::generateID ( ) const
protected

generate ID

Definition at line 568 of file GNEFrameAttributesModuls.cpp.

◆ getAttributeCheckButtonCheck()

bool GNEFrameAttributesModuls::AttributesCreatorRow::getAttributeCheckButtonCheck ( ) const

return status of label checkbox button

Definition at line 230 of file GNEFrameAttributesModuls.cpp.

◆ getAttributesCreatorParent()

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

get AttributesCreator parent

Definition at line 310 of file GNEFrameAttributesModuls.cpp.

◆ getAttrProperties()

const GNEAttributeProperties & GNEFrameAttributesModuls::AttributesCreatorRow::getAttrProperties ( ) const

return Attr

Definition at line 214 of file GNEFrameAttributesModuls.cpp.

◆ getValue()

std::string GNEFrameAttributesModuls::AttributesCreatorRow::getValue ( ) const

return value

Definition at line 220 of file GNEFrameAttributesModuls.cpp.

◆ isAttributesCreatorRowEnabled()

bool GNEFrameAttributesModuls::AttributesCreatorRow::isAttributesCreatorRowEnabled ( ) const

check if row is enabled

Definition at line 283 of file GNEFrameAttributesModuls.cpp.

◆ 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 304 of file GNEFrameAttributesModuls.cpp.

◆ isValidID()

bool GNEFrameAttributesModuls::AttributesCreatorRow::isValidID ( ) const
protected

check if current ID placed in myValueTextField is valid

Definition at line 582 of file GNEFrameAttributesModuls.cpp.

◆ onCmdSelectCheckButton()

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

called when user press a check button

Definition at line 473 of file GNEFrameAttributesModuls.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSelectColorButton()

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

called when user press the "Color" button

Definition at line 490 of file GNEFrameAttributesModuls.cpp.

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

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetAttribute()

◆ refreshRow()

void GNEFrameAttributesModuls::AttributesCreatorRow::refreshRow ( ) const

refresh row

Definition at line 295 of file GNEFrameAttributesModuls.cpp.

References SUMO_ATTR_ID.

◆ setAttributeCheckButtonCheck()

void GNEFrameAttributesModuls::AttributesCreatorRow::setAttributeCheckButtonCheck ( bool  value)

enable or disable label checkbox button for optional attributes

Definition at line 240 of file GNEFrameAttributesModuls.cpp.

Field Documentation

◆ myAttributeCheckButton

FXCheckButton* GNEFrameAttributesModuls::AttributesCreatorRow::myAttributeCheckButton = nullptr
private

check button to enable/disable Label attribute

Definition at line 132 of file GNEFrameAttributesModuls.h.

◆ myAttributeColorButton

FXButton* GNEFrameAttributesModuls::AttributesCreatorRow::myAttributeColorButton = nullptr
private

Button for open color editor.

Definition at line 135 of file GNEFrameAttributesModuls.h.

◆ myAttributeLabel

FXLabel* GNEFrameAttributesModuls::AttributesCreatorRow::myAttributeLabel = nullptr
private

Label with the name of the attribute.

Definition at line 129 of file GNEFrameAttributesModuls.h.

◆ myAttributesCreatorParent

AttributesCreator* GNEFrameAttributesModuls::AttributesCreatorRow::myAttributesCreatorParent = nullptr
private

pointer to AttributesCreator

Definition at line 120 of file GNEFrameAttributesModuls.h.

◆ myAttrProperties

const GNEAttributeProperties GNEFrameAttributesModuls::AttributesCreatorRow::myAttrProperties
private

attribute properties

Definition at line 123 of file GNEFrameAttributesModuls.h.

◆ 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.

◆ myValueCheckButton

FXCheckButton* GNEFrameAttributesModuls::AttributesCreatorRow::myValueCheckButton = nullptr
private

check button to enable/disable the value of boolean parameters

Definition at line 141 of file GNEFrameAttributesModuls.h.

◆ myValueTextField

FXTextField* GNEFrameAttributesModuls::AttributesCreatorRow::myValueTextField = nullptr
private

textField to modify the default value of string parameters

Definition at line 138 of file GNEFrameAttributesModuls.h.


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