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.

Member Function Documentation

◆ checkComplexAttribute()

◆ destroy()

void GNEFrameAttributesModuls::AttributesCreatorRow::destroy ( )

destroy AttributesCreatorRow (but don't delete)

Definition at line 216 of file GNEFrameAttributesModuls.cpp.

◆ disableAttributesCreatorRow()

void GNEFrameAttributesModuls::AttributesCreatorRow::disableAttributesCreatorRow ( )

disable row

Definition at line 341 of file GNEFrameAttributesModuls.cpp.

◆ enableAttributesCreatorRow()

void GNEFrameAttributesModuls::AttributesCreatorRow::enableAttributesCreatorRow ( )

enable row

Definition at line 327 of file GNEFrameAttributesModuls.cpp.

◆ getAttributeCheckButtonCheck()

bool GNEFrameAttributesModuls::AttributesCreatorRow::getAttributeCheckButtonCheck ( ) const

return status of label checkbox button

Definition at line 286 of file GNEFrameAttributesModuls.cpp.

◆ getAttributeRadioButtonCheck()

bool GNEFrameAttributesModuls::AttributesCreatorRow::getAttributeRadioButtonCheck ( ) const

return status of radio button

Definition at line 245 of file GNEFrameAttributesModuls.cpp.

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

◆ getAttributesCreatorParent()

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

get AttributesCreator parent

Definition at line 377 of file GNEFrameAttributesModuls.cpp.

◆ getAttrProperties()

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

◆ getValue()

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

return value

Definition at line 231 of file GNEFrameAttributesModuls.cpp.

◆ isAttributesCreatorRowEnabled()

bool GNEFrameAttributesModuls::AttributesCreatorRow::isAttributesCreatorRowEnabled ( ) const

check if row is enabled

Definition at line 355 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 371 of file GNEFrameAttributesModuls.cpp.

◆ onCmdSelectCheckButton()

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

called when user press a check button

Definition at line 509 of file GNEFrameAttributesModuls.cpp.

◆ onCmdSelectColorButton()

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

called when user press the "Color" button

Definition at line 528 of file GNEFrameAttributesModuls.cpp.

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

◆ onCmdSelectRadioButton()

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

called when user press a radio button

Definition at line 547 of file GNEFrameAttributesModuls.cpp.

References WRITE_DEBUG.

◆ onCmdSetAttribute()

◆ setAttributeCheckButtonCheck()

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

enable or disable label checkbox button for optional attributes

Definition at line 296 of file GNEFrameAttributesModuls.cpp.

◆ setAttributeRadioButtonCheck()

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

enable or disable radio button for disjoint attributes

Definition at line 255 of file GNEFrameAttributesModuls.cpp.

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

Field Documentation

◆ myAttributeCheckButton

FXCheckButton* GNEFrameAttributesModuls::AttributesCreatorRow::myAttributeCheckButton
private

check button to enable/disable Label attribute

Definition at line 135 of file GNEFrameAttributesModuls.h.

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

◆ myAttributesCreatorParent

AttributesCreator* GNEFrameAttributesModuls::AttributesCreatorRow::myAttributesCreatorParent
private

pointer to AttributesCreator

Definition at line 120 of file GNEFrameAttributesModuls.h.

◆ myAttrProperties

const GNEAttributeCarrier::AttributeProperties 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
private

check button to enable/disable the value of boolean parameters

Definition at line 150 of file GNEFrameAttributesModuls.h.

◆ myValueTextFieldInt

FXTextField* GNEFrameAttributesModuls::AttributesCreatorRow::myValueTextFieldInt
private

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

Definition at line 141 of file GNEFrameAttributesModuls.h.

◆ myValueTextFieldReal

FXTextField* GNEFrameAttributesModuls::AttributesCreatorRow::myValueTextFieldReal
private

textField to modify the default value of real/times parameters

Definition at line 144 of file GNEFrameAttributesModuls.h.

◆ myValueTextFieldStrings

FXTextField* GNEFrameAttributesModuls::AttributesCreatorRow::myValueTextFieldStrings
private

textField to modify the default value of string parameters

Definition at line 147 of file GNEFrameAttributesModuls.h.


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