![]() |
Eclipse SUMO - Simulation of Urban MObility
|
attribute text field More...
#include <GNEAttributeCarrierDialog.h>
Public Member Functions | |
| AttributeTextField (GNEAttributeCarrierDialog *ACDialog, FXVerticalFrame *verticalFrame, const GNEAttributeProperties *attrProperty) | |
| constructor | |
FOX-callbacks | |
| long | onCmdSetAttribute (FXObject *obj, FXSelector, void *) |
| event after edit text field | |
| long | onCmdOpenColorDialog (FXObject *sender, FXSelector, void *arg) |
| called when user press "edit color" dialog | |
| long | onCmdOpenVClassDialog (FXObject *, FXSelector, void *) |
| called when user press vClass dialog | |
Protected Attributes | |
| GNEAttributeCarrierDialog * | myACDialogParent = nullptr |
| FOX needs this. | |
| MFXButtonTooltip * | myAttributeButton = nullptr |
| attribute button (color or allow) | |
| const GNEAttributeProperties * | myAttrProperty = nullptr |
| attribute property | |
| FXCheckButton * | myCheckButton = nullptr |
| check button for true/false | |
| MFXTextFieldIcon * | myTextField = nullptr |
| text field for attribute | |
Private Member Functions | |
| AttributeTextField (const AttributeTextField &)=delete | |
| Invalidated copy constructor. | |
| AttributeTextField & | operator= (const AttributeTextField &)=delete |
| Invalidated assignment operator. | |
attribute text field
Definition at line 40 of file GNEAttributeCarrierDialog.h.
| GNEAttributeCarrierDialog::AttributeTextField::AttributeTextField | ( | GNEAttributeCarrierDialog * | ACDialog, |
| FXVerticalFrame * | verticalFrame, | ||
| const GNEAttributeProperties * | attrProperty | ||
| ) |
constructor
Definition at line 55 of file GNEAttributeCarrierDialog.cpp.
References COLORWHEEL, EMPTY, GUIIconSubSys::getIcon(), GUIDesignButtonAttribute, GUIDesignCheckButton, GUIDesignLabelThickedFixed, GUIDesignTextField, MID_GNE_ATTRIBUTESEDITORROW_OPENDIALOG_ALLOW, MID_GNE_ATTRIBUTESEDITORROW_OPENDIALOG_COLOR, MID_GNE_ATTRIBUTESEDITORROW_SETATTRIBUTE, SUMO_ATTR_DISALLOW, TL, and GNEAttributeCarrier::TRUE_STR.
|
privatedelete |
Invalidated copy constructor.
| long GNEAttributeCarrierDialog::AttributeTextField::onCmdOpenColorDialog | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | arg | ||
| ) |
called when user press "edit color" dialog
Definition at line 131 of file GNEAttributeCarrierDialog.cpp.
References GNEDialog::ACCEPT, RGBColor::BLACK, and toString().
Referenced by FXDEFMAP().
| long GNEAttributeCarrierDialog::AttributeTextField::onCmdOpenVClassDialog | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when user press vClass dialog
Definition at line 150 of file GNEAttributeCarrierDialog.cpp.
References GNEDialog::ACCEPT.
Referenced by FXDEFMAP().
| long GNEAttributeCarrierDialog::AttributeTextField::onCmdSetAttribute | ( | FXObject * | obj, |
| FXSelector | , | ||
| void * | |||
| ) |
event after edit text field
Definition at line 97 of file GNEAttributeCarrierDialog.cpp.
References GNEAttributeCarrier::FALSE_STR, GNEAttributeProperties::getAttr(), GNETemplateElementDialog< T >::getElement(), GNEAttributeCarrier::getNet(), MFXTextFieldIcon::getText(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GUIDesignBackgroundColorRed, GUIDesignBackgroundColorWhite, GUIDesignTextColorBlack, GUIDesignTextColorRed, GNEAttributeCarrier::isValid(), MFXTextFieldIcon::killFocus(), myACDialogParent, myAttrProperty, myCheckButton, myTextField, GNEAttributeCarrier::setAttribute(), MFXTextFieldIcon::setTextColor(), TL, and GNEAttributeCarrier::TRUE_STR.
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
|
protected |
FOX needs this.
pointer to ACDialog parent
Definition at line 68 of file GNEAttributeCarrierDialog.h.
Referenced by onCmdSetAttribute().
|
protected |
attribute button (color or allow)
Definition at line 74 of file GNEAttributeCarrierDialog.h.
|
protected |
attribute property
Definition at line 71 of file GNEAttributeCarrierDialog.h.
Referenced by onCmdSetAttribute().
|
protected |
check button for true/false
Definition at line 80 of file GNEAttributeCarrierDialog.h.
Referenced by onCmdSetAttribute().
|
protected |
text field for attribute
Definition at line 77 of file GNEAttributeCarrierDialog.h.
Referenced by onCmdSetAttribute().