Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEAttributeCarrierDialog::AttributeTextField Class Reference

attribute text field More...

#include <GNEAttributeCarrierDialog.h>

Inheritance diagram for GNEAttributeCarrierDialog::AttributeTextField:
[legend]
Collaboration diagram for GNEAttributeCarrierDialog::AttributeTextField:
[legend]

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

GNEAttributeCarrierDialogmyACDialogParent = nullptr
 FOX needs this.
MFXButtonTooltipmyAttributeButton = nullptr
 attribute button (color or allow)
const GNEAttributePropertiesmyAttrProperty = nullptr
 attribute property
FXCheckButton * myCheckButton = nullptr
 check button for true/false
MFXTextFieldIconmyTextField = nullptr
 text field for attribute

Private Member Functions

 AttributeTextField (const AttributeTextField &)=delete
 Invalidated copy constructor.
AttributeTextFieldoperator= (const AttributeTextField &)=delete
 Invalidated assignment operator.

Detailed Description

attribute text field

Definition at line 40 of file GNEAttributeCarrierDialog.h.

Constructor & Destructor Documentation

◆ AttributeTextField() [1/2]

GNEAttributeCarrierDialog::AttributeTextField::AttributeTextField ( GNEAttributeCarrierDialog * ACDialog,
FXVerticalFrame * verticalFrame,
const GNEAttributeProperties * attrProperty )

constructor

Definition at line 55 of file GNEAttributeCarrierDialog.cpp.

References AttributeTextField(), GNEAttributeCarrierDialog::GNEAttributeCarrierDialog(), GUIDesignAuxiliarHorizontalFrame, myACDialogParent, myAttrProperty, and SUMO_ATTR_DISALLOW.

Referenced by AttributeTextField(), AttributeTextField(), and operator=().

Here is the caller graph for this function:

◆ AttributeTextField() [2/2]

GNEAttributeCarrierDialog::AttributeTextField::AttributeTextField ( const AttributeTextField & )
privatedelete

Invalidated copy constructor.

References AttributeTextField().

Member Function Documentation

◆ onCmdOpenColorDialog()

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, GNEAttributeCarrier::canParse(), myACDialogParent, myAttrProperty, myTextField, GNEAttributeCarrier::parse(), and toString().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdOpenVClassDialog()

long GNEAttributeCarrierDialog::AttributeTextField::onCmdOpenVClassDialog ( FXObject * ,
FXSelector ,
void *  )

called when user press vClass dialog

Definition at line 150 of file GNEAttributeCarrierDialog.cpp.

References GNEDialog::ACCEPT, myACDialogParent, myAttrProperty, and myTextField.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetAttribute()

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, GUIDesignBackgroundColorRed, GUIDesignBackgroundColorWhite, GUIDesignTextColorBlack, GUIDesignTextColorRed, myACDialogParent, myAttrProperty, myCheckButton, myTextField, TL, and GNEAttributeCarrier::TRUE_STR.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

Field Documentation

◆ myACDialogParent

GNEAttributeCarrierDialog* GNEAttributeCarrierDialog::AttributeTextField::myACDialogParent = nullptr
protected

FOX needs this.

pointer to ACDialog parent

Definition at line 68 of file GNEAttributeCarrierDialog.h.

Referenced by AttributeTextField(), onCmdOpenColorDialog(), onCmdOpenVClassDialog(), and onCmdSetAttribute().

◆ myAttributeButton

MFXButtonTooltip* GNEAttributeCarrierDialog::AttributeTextField::myAttributeButton = nullptr
protected

attribute button (color or allow)

Definition at line 74 of file GNEAttributeCarrierDialog.h.

◆ myAttrProperty

const GNEAttributeProperties* GNEAttributeCarrierDialog::AttributeTextField::myAttrProperty = nullptr
protected

attribute property

Definition at line 71 of file GNEAttributeCarrierDialog.h.

Referenced by AttributeTextField(), onCmdOpenColorDialog(), onCmdOpenVClassDialog(), and onCmdSetAttribute().

◆ myCheckButton

FXCheckButton* GNEAttributeCarrierDialog::AttributeTextField::myCheckButton = nullptr
protected

check button for true/false

Definition at line 80 of file GNEAttributeCarrierDialog.h.

Referenced by onCmdSetAttribute().

◆ myTextField

MFXTextFieldIcon* GNEAttributeCarrierDialog::AttributeTextField::myTextField = nullptr
protected

text field for attribute

Definition at line 77 of file GNEAttributeCarrierDialog.h.

Referenced by onCmdOpenColorDialog(), onCmdOpenVClassDialog(), and onCmdSetAttribute().


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