Eclipse SUMO - Simulation of Urban MObility
GNESelectorFrame::MatchAttribute Class Reference

#include <GNESelectorFrame.h>

Inheritance diagram for GNESelectorFrame::MatchAttribute:
[legend]
Collaboration diagram for GNESelectorFrame::MatchAttribute:
[legend]

Public Member Functions

void disableMatchAttribute ()
 disable match attributes More...
 
void enableMatchAttribute ()
 enable match attributes More...
 
void hideMatchAttribute ()
 hide match attributes More...
 
 MatchAttribute (GNESelectorFrame *selectorFrameParent)
 FOX-declaration. More...
 
void showMatchAttribute ()
 show match attributes More...
 
 ~MatchAttribute ()
 destructor More...
 
FOX-callbacks
long onCmdSelMBTag (FXObject *, FXSelector, void *)
 Called when the user selectes a tag in the match box. More...
 
long onCmdSelMBAttribute (FXObject *, FXSelector, void *)
 Called when the user selectes a tag in the match box. More...
 
long onCmdSelMBString (FXObject *, FXSelector, void *)
 Called when the user enters a new selection expression. More...
 
long onCmdHelp (FXObject *, FXSelector, void *)
 Called when the user clicks the help button. More...
 

Private Attributes

SumoXMLAttr myCurrentAttribute
 current SumoXMLTag Attribute More...
 
SumoXMLTag myCurrentTag
 current SumoXMLTag tag More...
 
FXComboBox * myMatchAttrComboBox
 attributes of the match box More...
 
FXTextField * myMatchString
 string of the match More...
 
FXButton * myMatchStringButton
 match string button More...
 
FXComboBox * myMatchTagComboBox
 tag of the match box More...
 
GNESelectorFramemySelectorFrameParent
 pointer to Selector Frame Parent More...
 

Detailed Description

Definition at line 244 of file GNESelectorFrame.h.

Constructor & Destructor Documentation

◆ MatchAttribute()

◆ ~MatchAttribute()

GNESelectorFrame::MatchAttribute::~MatchAttribute ( )

destructor

Definition at line 472 of file GNESelectorFrame.cpp.

Member Function Documentation

◆ disableMatchAttribute()

void GNESelectorFrame::MatchAttribute::disableMatchAttribute ( )

disable match attributes

Definition at line 512 of file GNESelectorFrame.cpp.

◆ enableMatchAttribute()

void GNESelectorFrame::MatchAttribute::enableMatchAttribute ( )

enable match attributes

Definition at line 476 of file GNESelectorFrame.cpp.

References GNESelectorFrame::ElementSet::ADDITIONALELEMENT, GNESelectorFrame::ElementSet::DEMANDELEMENT, GNEAttributeCarrier::getAllowedTagsByCategory(), GNESelectorFrame::ElementSet::NETWORKELEMENT, GNESelectorFrame::ElementSet::SHAPE, and GNESelectorFrame::ElementSet::TAZELEMENT.

Referenced by MatchAttribute().

Here is the caller graph for this function:

◆ hideMatchAttribute()

void GNESelectorFrame::MatchAttribute::hideMatchAttribute ( )

hide match attributes

Definition at line 532 of file GNESelectorFrame.cpp.

References GNESelectorFrame::hide().

◆ onCmdHelp()

long GNESelectorFrame::MatchAttribute::onCmdHelp ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user clicks the help button.

Note
pop up help window

Definition at line 737 of file GNESelectorFrame.cpp.

References ACCEPT, GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonOK, GUIDesignDialogBox, GUIDesignHorizontalSeparator, GUIDesignLabelFrameInformation, MODEADDITIONAL, and WRITE_DEBUG.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSelMBAttribute()

long GNESelectorFrame::MatchAttribute::onCmdSelMBAttribute ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user selectes a tag in the match box.

Note
updates the attr listbox and repaints itself

Definition at line 615 of file GNESelectorFrame.cpp.

References GNEAttributeCarrier::getTagProperties(), GNE_ATTR_BLOCK_MOVEMENT, GNE_ATTR_BLOCK_SHAPE, GNE_ATTR_CLOSE_SHAPE, GNE_ATTR_PARAMETERS, GNE_ATTR_PARENT, and SUMO_ATTR_NOTHING.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSelMBString()

long GNESelectorFrame::MatchAttribute::onCmdSelMBString ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user enters a new selection expression.

Note
validates expression and modifies current selection

Definition at line 683 of file GNESelectorFrame.cpp.

References GNEAttributeCarrier::getTagProperties().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSelMBTag()

long GNESelectorFrame::MatchAttribute::onCmdSelMBTag ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user selectes a tag in the match box.

Note
updates the attr listbox and repaints itself

Definition at line 538 of file GNESelectorFrame.cpp.

References GNESelectorFrame::ElementSet::ADDITIONALELEMENT, GNESelectorFrame::ElementSet::DEMANDELEMENT, GNEAttributeCarrier::getAllowedTagsByCategory(), GNEAttributeCarrier::getTagProperties(), GNE_ATTR_BLOCK_MOVEMENT, GNE_ATTR_BLOCK_SHAPE, GNE_ATTR_CLOSE_SHAPE, GNE_ATTR_PARAMETERS, GNE_ATTR_PARENT, GNESelectorFrame::ElementSet::NETWORKELEMENT, GNESelectorFrame::ElementSet::SHAPE, SUMO_TAG_NOTHING, GNESelectorFrame::ElementSet::TAZELEMENT, and toString().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ showMatchAttribute()

void GNESelectorFrame::MatchAttribute::showMatchAttribute ( )

show match attributes

Definition at line 526 of file GNESelectorFrame.cpp.

References GNESelectorFrame::show().

Field Documentation

◆ myCurrentAttribute

SumoXMLAttr GNESelectorFrame::MatchAttribute::myCurrentAttribute
private

current SumoXMLTag Attribute

Definition at line 309 of file GNESelectorFrame.h.

Referenced by MatchAttribute().

◆ myCurrentTag

SumoXMLTag GNESelectorFrame::MatchAttribute::myCurrentTag
private

current SumoXMLTag tag

Definition at line 306 of file GNESelectorFrame.h.

◆ myMatchAttrComboBox

FXComboBox* GNESelectorFrame::MatchAttribute::myMatchAttrComboBox
private

attributes of the match box

Definition at line 303 of file GNESelectorFrame.h.

Referenced by MatchAttribute().

◆ myMatchString

FXTextField* GNESelectorFrame::MatchAttribute::myMatchString
private

string of the match

Definition at line 312 of file GNESelectorFrame.h.

Referenced by MatchAttribute().

◆ myMatchStringButton

FXButton* GNESelectorFrame::MatchAttribute::myMatchStringButton
private

match string button

Definition at line 315 of file GNESelectorFrame.h.

Referenced by MatchAttribute().

◆ myMatchTagComboBox

FXComboBox* GNESelectorFrame::MatchAttribute::myMatchTagComboBox
private

tag of the match box

Definition at line 300 of file GNESelectorFrame.h.

Referenced by MatchAttribute().

◆ mySelectorFrameParent

GNESelectorFrame* GNESelectorFrame::MatchAttribute::mySelectorFrameParent
private

pointer to Selector Frame Parent

Definition at line 297 of file GNESelectorFrame.h.


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