Eclipse SUMO - Simulation of Urban MObility
GNEAttributesCreatorRow Class Reference

#include <GNEAttributesCreatorRow.h>

Inheritance diagram for GNEAttributesCreatorRow:
[legend]
Collaboration diagram for GNEAttributesCreatorRow:
[legend]

Public Member Functions

void destroy ()
 destroy GNEAttributesCreatorRow (but don't delete) More...
 
void disableAttributesCreatorRow ()
 disable row More...
 
void disableRow ()
 disable Rows More...
 
void enableAttributesCreatorRow ()
 enable row More...
 
bool getAttributeCheckButtonCheck () const
 return status of label checkbox button More...
 
GNEAttributesCreatorgetAttributesCreatorParent () const
 get GNEAttributesCreator parent More...
 
const GNEAttributePropertiesgetAttrProperties () const
 return Attr More...
 
std::string getValue () const
 return value More...
 
 GNEAttributesCreatorRow (GNEAttributesCreator *AttributesCreatorParent, const GNEAttributeProperties &attrProperties)
 FOX-declaration. More...
 
bool isAttributesCreatorRowEnabled () const
 check if row is enabled More...
 
bool isAttributeValid () const
 check if current attribute is valid More...
 
void refreshRow ()
 refresh row More...
 
void setAttributeCheckButtonCheck (bool value)
 enable or disable label checkbox button for Terminatel 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 onCmdOpenColorDialog (FXObject *, FXSelector, void *)
 called when user press the color dialog button More...
 
long onCmdOpenAllowDialog (FXObject *, FXSelector, void *)
 called when user press the allow dialog button More...
 

Protected Member Functions

std::string generateID () const
 FOX needs this. More...
 
bool isValidID () const
 check if current ID placed in myValueTextField is valid More...
 

Private Attributes

FXButton * myAttributeAllowButton = nullptr
 Button for open allow editor. More...
 
FXButton * myAttributeColorButton = nullptr
 Button for open color editor. More...
 
MFXLabelTooltipmyAttributeLabel = nullptr
 Label with the name of the attribute. More...
 
GNEAttributesCreatormyAttributesCreatorParent = nullptr
 pointer to GNEAttributesCreator More...
 
const GNEAttributeProperties myAttrProperties
 attribute properties More...
 
FXCheckButton * myEnableAttributeCheckButton = nullptr
 check button to enable/disable Label attribute 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...
 
MFXComboBoxIconmyValueComboBox = nullptr
 comboBox for discrete vaues More...
 
FXTextField * myValueTextField = nullptr
 textField to modify the default value of string parameters More...
 

Detailed Description

Definition at line 37 of file GNEAttributesCreatorRow.h.

Constructor & Destructor Documentation

◆ GNEAttributesCreatorRow()

Member Function Documentation

◆ destroy()

void GNEAttributesCreatorRow::destroy ( )

destroy GNEAttributesCreatorRow (but don't delete)

Definition at line 92 of file GNEAttributesCreatorRow.cpp.

◆ disableAttributesCreatorRow()

void GNEAttributesCreatorRow::disableAttributesCreatorRow ( )

◆ disableRow()

◆ enableAttributesCreatorRow()

void GNEAttributesCreatorRow::enableAttributesCreatorRow ( )

◆ generateID()

std::string GNEAttributesCreatorRow::generateID ( ) const
protected

◆ getAttributeCheckButtonCheck()

bool GNEAttributesCreatorRow::getAttributeCheckButtonCheck ( ) const

return status of label checkbox button

Definition at line 119 of file GNEAttributesCreatorRow.cpp.

References myEnableAttributeCheckButton.

◆ getAttributesCreatorParent()

GNEAttributesCreator * GNEAttributesCreatorRow::getAttributesCreatorParent ( ) const

get GNEAttributesCreator parent

Definition at line 327 of file GNEAttributesCreatorRow.cpp.

References myAttributesCreatorParent.

◆ getAttrProperties()

const GNEAttributeProperties & GNEAttributesCreatorRow::getAttrProperties ( ) const

return Attr

Definition at line 101 of file GNEAttributesCreatorRow.cpp.

References myAttrProperties.

◆ getValue()

std::string GNEAttributesCreatorRow::getValue ( ) const

◆ isAttributesCreatorRowEnabled()

bool GNEAttributesCreatorRow::isAttributesCreatorRowEnabled ( ) const

◆ isAttributeValid()

bool GNEAttributesCreatorRow::isAttributeValid ( ) const

check if current attribute is valid

Definition at line 320 of file GNEAttributesCreatorRow.cpp.

References MFXComboBoxIcon::getTextColor(), myValueComboBox, and myValueTextField.

◆ isValidID()

◆ onCmdOpenAllowDialog()

long GNEAttributesCreatorRow::onCmdOpenAllowDialog ( FXObject *  ,
FXSelector  ,
void *   
)

called when user press the allow dialog button

Definition at line 456 of file GNEAttributesCreatorRow.cpp.

References GNEAttributesCreator::getFrameParent(), GNEFrame::getViewNet(), myAttributesCreatorParent, and myValueTextField.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdOpenColorDialog()

long GNEAttributesCreatorRow::onCmdOpenColorDialog ( FXObject *  ,
FXSelector  ,
void *   
)

called when user press the color dialog button

Definition at line 436 of file GNEAttributesCreatorRow.cpp.

References COLORWHEEL, GNEAttributeProperties::getDefaultValue(), MFXUtils::getFXColor(), GUIIconSubSys::getIcon(), MFXUtils::getRGBColor(), myAttrProperties, myValueTextField, TL, and toString().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetAttribute()

◆ refreshRow()

◆ setAttributeCheckButtonCheck()

void GNEAttributesCreatorRow::setAttributeCheckButtonCheck ( bool  value)

Field Documentation

◆ myAttributeAllowButton

FXButton* GNEAttributesCreatorRow::myAttributeAllowButton = nullptr
private

Button for open allow editor.

Definition at line 123 of file GNEAttributesCreatorRow.h.

Referenced by disableRow(), and refreshRow().

◆ myAttributeColorButton

FXButton* GNEAttributesCreatorRow::myAttributeColorButton = nullptr
private

Button for open color editor.

Definition at line 120 of file GNEAttributesCreatorRow.h.

Referenced by disableRow(), and refreshRow().

◆ myAttributeLabel

MFXLabelTooltip* GNEAttributesCreatorRow::myAttributeLabel = nullptr
private

Label with the name of the attribute.

Definition at line 114 of file GNEAttributesCreatorRow.h.

Referenced by disableRow(), and refreshRow().

◆ myAttributesCreatorParent

GNEAttributesCreator* GNEAttributesCreatorRow::myAttributesCreatorParent = nullptr
private

◆ myAttrProperties

◆ myEnableAttributeCheckButton

FXCheckButton* GNEAttributesCreatorRow::myEnableAttributeCheckButton = nullptr
private

check button to enable/disable Label attribute

Definition at line 117 of file GNEAttributesCreatorRow.h.

Referenced by disableRow(), getAttributeCheckButtonCheck(), onCmdSetAttribute(), refreshRow(), and setAttributeCheckButtonCheck().

◆ myInvalidValue

std::string GNEAttributesCreatorRow::myInvalidValue
private

string which indicates the reason due current value is invalid

Definition at line 111 of file GNEAttributesCreatorRow.h.

Referenced by refreshRow().

◆ myValueCheckButton

FXCheckButton* GNEAttributesCreatorRow::myValueCheckButton = nullptr
private

◆ myValueComboBox

MFXComboBoxIcon* GNEAttributesCreatorRow::myValueComboBox = nullptr
private

◆ myValueTextField

FXTextField* GNEAttributesCreatorRow::myValueTextField = nullptr
private

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