 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
18 #ifndef GUIDialog_GLObjChooser_h
19 #define GUIDialog_GLObjChooser_h
63 const std::vector<GUIGlID>& ids,
93 long onChgText(FXObject*, FXSelector,
void*);
96 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 onCmdFilterSubstr(FXObject *, FXSelector, void *)
Callback: Hides unmatched items if 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.
#define FOX_CONSTRUCTOR(classname)
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)
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.
GUIDialog_GLObjChooser(GUIGlChildWindow *parent, FXIcon *icon, const FXString &title, const std::vector< GUIGlID > &ids, GUIGlObjectStorage &glStorage)
Constructor.
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