 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
19 #ifndef GUIDialog_GLObjChooser_h
20 #define GUIDialog_GLObjChooser_h
64 const std::vector<GUIGlID>& ids,
94 long onChgText(FXObject*, FXSelector,
void*);
97 long onCmdText(FXObject*, FXSelector,
void*);
bool myLocateByName
whether to locate by object name instead of id
FXList * myList
The list that holds the ids.
A storage for of displayed objects via their numerical id.
GUIGlObject * mySelected
The chosen id.
virtual ~GUIDialog_GLObjChooser()
Destructor.
long onCmdClose(FXObject *, FXSelector, void *)
Callback: The dialog shall be closed.
long onCmdToggleSelection(FXObject *, FXSelector, void *)
Callback: Toggle selection status of current object.
long onListKeyPress(FXObject *, FXSelector, void *)
Callback: Selects to current item if enter is pressed.
long onCmdCenter(FXObject *, FXSelector, void *)
Callback: The selected item shall be centered within the calling view.
long onChgText(FXObject *, FXSelector, void *)
Callback: Something has been typed into the the field.
virtual std::string getObjectName(GUIGlObject *o) const
@bbrief retrieve name for the given object
long onCmdFilter(FXObject *, FXSelector, void *)
Callback: Hides unselected items if pressed.
long onCmdLocateByName(FXObject *, FXSelector, void *)
Callback: Toggle locator by name.
GUIGlChildWindow * myParent
The parent window.
FXTextField * myTextEntry
The text field.
FXButton * myTrackButton
The button that triggers tracking on the select vehicle.
virtual void toggleSelection(int listIndex)
toggle selection (handled differently in NETEDIT)
GUIDialog_GLObjChooser()
FOX needs this.
FXButton * myCenterButton
The button that triggers centering on the select object.
long onCmdText(FXObject *, FXSelector, void *)
Callback: Selects to current item if enter is pressed.
long onCmdTrack(FXObject *, FXSelector, void *)
Callback: The selected vehicle shall be tracked within the calling view.
std::set< GUIGlID > myIDs
myList contains (void) pointers to elements of myIDs instead of the more
GUIGlObject * getObject() const
Returns the chosen (selected) object.
void show()
sets the focus after the window is created to work-around bug in libfox
void refreshList(const std::vector< GUIGlID > &ids)
update the list with the given ids