Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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)
 
void disableAttributesCreatorRow ()
 disable row
 
void disableRow ()
 disable Rows
 
void enableAttributesCreatorRow ()
 enable row
 
bool getAttributeCheckButtonCheck () const
 return status of label checkbox button
 
GNEAttributesCreatorgetAttributesCreatorParent () const
 get GNEAttributesCreator parent
 
const GNEAttributePropertiesgetAttrProperties () const
 return Attr
 
std::string getValue () const
 return value
 
 GNEAttributesCreatorRow (GNEAttributesCreator *AttributesCreatorParent, const GNEAttributeProperties &attrProperties)
 FOX-declaration.
 
bool isAttributesCreatorRowEnabled () const
 check if row is enabled
 
bool isAttributeValid () const
 check if current attribute is valid
 
void refreshRow ()
 refresh row
 
void setAttributeCheckButtonCheck (bool value)
 enable or disable label checkbox button for Terminatel attributes
 
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
 
long onCmdOpenAllowDialog (FXObject *, FXSelector, void *)
 called when user press the allow dialog button
 

Protected Member Functions

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

Private Attributes

FXButton * myAttributeAllowButton = nullptr
 Button for open allow editor.
 
FXButton * myAttributeColorButton = nullptr
 Button for open color editor.
 
MFXLabelTooltipmyAttributeLabel = nullptr
 Label with the name of the attribute.
 
GNEAttributesCreatormyAttributesCreatorParent = nullptr
 pointer to GNEAttributesCreator
 
const GNEAttributeProperties myAttrProperties
 attribute properties
 
FXCheckButton * myEnableAttributeCheckButton = nullptr
 check button to enable/disable Label attribute
 
std::string myInvalidValue
 string which indicates the reason due current value is invalid
 
FXCheckButton * myValueCheckButton = nullptr
 check button to enable/disable the value of boolean parameters
 
MFXComboBoxIconmyValueComboBox = nullptr
 comboBox for discrete vaues
 
FXTextField * myValueTextField = nullptr
 textField to modify the default value of string parameters
 

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 GNEAttributeProperties::getAttr(), GNEAttributesCreator::getFrameParent(), GNEFrame::getViewNet(), myAttributesCreatorParent, myAttrProperties, 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: