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

#include <GNESelectorFrame.h>

Inheritance diagram for GNESelectorFrame::MatchAttribute:
Inheritance graph
Collaboration diagram for GNESelectorFrame::MatchAttribute:
Collaboration graph

Public Member Functions

void disableMatchAttribute ()
 disable match attributes More...
 
void enableMatchAttribute ()
 enable match attributes More...
 
 MatchAttribute (GNESelectorFrame *selectorFrameParent)
 FOX-declaration. 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...
 

Protected Member Functions

 MatchAttribute ()
 FOX needs this. 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...
 
FXComboBox * myMatchTagComboBox
 tag of the match box More...
 
GNESelectorFramemySelectorFrameParent
 pointer to Selector Frame Parent More...
 

Detailed Description

Definition at line 221 of file GNESelectorFrame.h.

Constructor & Destructor Documentation

◆ MatchAttribute() [1/2]

◆ ~MatchAttribute()

GNESelectorFrame::MatchAttribute::~MatchAttribute ( )

destructor

Definition at line 529 of file GNESelectorFrame.cpp.

◆ MatchAttribute() [2/2]

GNESelectorFrame::MatchAttribute::MatchAttribute ( )
inlineprotected

FOX needs this.

Definition at line 265 of file GNESelectorFrame.h.

Member Function Documentation

◆ disableMatchAttribute()

void GNESelectorFrame::MatchAttribute::disableMatchAttribute ( )

disable match attributes

Definition at line 564 of file GNESelectorFrame.cpp.

References myMatchAttrComboBox, myMatchString, and myMatchTagComboBox.

Referenced by GNESelectorFrame::ElementSet::onCmdSelectElementSet().

◆ enableMatchAttribute()

◆ onCmdHelp()

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

◆ 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 643 of file GNESelectorFrame.cpp.

References GNEAttributeCarrier::getTagProperties(), GNE_ATTR_BLOCK_MOVEMENT, GNE_ATTR_BLOCK_SHAPE, GNE_ATTR_CLOSE_SHAPE, GNE_ATTR_GENERIC, GNE_ATTR_PARENT, myCurrentAttribute, myCurrentTag, myMatchAttrComboBox, myMatchString, SUMO_ATTR_NOTHING, and toString().

Referenced by onCmdSelMBTag().

◆ 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 690 of file GNESelectorFrame.cpp.

References GNESelectorFrame::getMatches(), GNEAttributeCarrier::getTagProperties(), GNESelectorFrame::handleIDs(), myCurrentAttribute, myCurrentTag, myMatchString, and mySelectorFrameParent.

◆ onCmdSelMBTag()

Field Documentation

◆ myCurrentAttribute

SumoXMLAttr GNESelectorFrame::MatchAttribute::myCurrentAttribute
private

current SumoXMLTag Attribute

Definition at line 281 of file GNESelectorFrame.h.

Referenced by MatchAttribute(), onCmdSelMBAttribute(), and onCmdSelMBString().

◆ myCurrentTag

SumoXMLTag GNESelectorFrame::MatchAttribute::myCurrentTag
private

current SumoXMLTag tag

Definition at line 278 of file GNESelectorFrame.h.

Referenced by onCmdSelMBAttribute(), onCmdSelMBString(), and onCmdSelMBTag().

◆ myMatchAttrComboBox

FXComboBox* GNESelectorFrame::MatchAttribute::myMatchAttrComboBox
private

attributes of the match box

Definition at line 275 of file GNESelectorFrame.h.

Referenced by disableMatchAttribute(), enableMatchAttribute(), MatchAttribute(), onCmdSelMBAttribute(), and onCmdSelMBTag().

◆ myMatchString

FXTextField* GNESelectorFrame::MatchAttribute::myMatchString
private

◆ myMatchTagComboBox

FXComboBox* GNESelectorFrame::MatchAttribute::myMatchTagComboBox
private

tag of the match box

Definition at line 272 of file GNESelectorFrame.h.

Referenced by disableMatchAttribute(), enableMatchAttribute(), MatchAttribute(), and onCmdSelMBTag().

◆ mySelectorFrameParent

GNESelectorFrame* GNESelectorFrame::MatchAttribute::mySelectorFrameParent
private

pointer to Selector Frame Parent

Definition at line 269 of file GNESelectorFrame.h.

Referenced by enableMatchAttribute(), onCmdSelMBString(), and onCmdSelMBTag().


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