64 FXIcon* icon,
const FXString& title,
const std::vector<GUIGlID>& ids,
80 long onKeyPress(FXObject* o, FXSelector sel,
void* data);
93 long onChgText(FXObject*, FXSelector,
void*);
96 long onCmdText(FXObject*, FXSelector,
void*);
99 long onChgList(FXObject*, FXSelector,
void*);
136 using FXMainWindow::show;
150 virtual void select(
int listIndex);
153 virtual void deselect(
int listIndex);
156 virtual void filterACs(
const std::vector<GUIGlID>& GLIDs);
bool locateByName() const
whether locate by name is active
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 onCmdClose(FXObject *, FXSelector, void *)
Callback: The dialog shall be closed.
FXButton * myDeselectAllButton
The button to deselect all items in list.
void refreshList(const std::vector< GUIGlID > &ids)
update the list with the given ids
long onCmdCenter(FXObject *, FXSelector, void *)
Callback: The selected item shall be centered within the calling view.
int myNumSelectedItems
number of selected items currently displayed in myList
FXCheckButton * myCaseSensitive
Whether search is case sensitive.
int myMessageId
the object type being chosen
FXCheckButton * myHideUnselected
whether to hide unselected items
long onUpdAddListSelection(FXObject *, FXSelector, void *)
Callback: Update "Select all" button.
virtual ~GUIDialog_ChooserAbstract()
Destructor.
long onCmdFilter(FXObject *, FXSelector, void *)
Callback: Hides/shows unselected items.
long onCmdFilterSubstr(FXObject *, FXSelector, void *)
Callback: Filters list by substring.
long onKeyPress(FXObject *o, FXSelector sel, void *data)
keyboard functions
virtual void deselect(int listIndex)
unset selection (handled differently in netedit)
virtual void select(int listIndex)
set selection (handled differently in netedit)
void show()
sets the focus after the window is created to work-around bug in libfox
long onCmdTrack(FXObject *, FXSelector, void *)
Callback: The selected vehicle shall be tracked within the calling view.
long onCmdLocateByName(FXObject *, FXSelector, void *)
Callback: Toggle locator by name.
FXLabel * myCountLabel
label for declaring list size
long onChgText(FXObject *, FXSelector, void *)
Callback: Something has been typed into the field.
long onCmdAutoCenter(FXObject *, FXSelector, void *)
Callback: Toggle auto center.
GUIGlChildWindow * myWindowsParent
window parent
long onCmdUpdate(FXObject *, FXSelector, void *)
Callback: Update list.
FXCheckButton * myLocateByName
whether to locate by object name instead of id
std::set< GUIGlID > myIDs
myList contains (void) pointers to elements of myIDs instead of the more volatile pointers to GUIGlOb...
long onChgListSel(FXObject *, FXSelector, void *)
Callback: Current list item selection has changed.
GUIGlObject * mySelected
The chosen id.
FXButton * mySelectAllButton
The button to select all items in list.
long onCmdClearListSelection(FXObject *, FXSelector, void *)
long onCmdAddListSelection(FXObject *, FXSelector, void *)
virtual void toggleSelection(int listIndex)
fox need this
long onCmdCaseSensitive(FXObject *, FXSelector, void *)
Callback: Toggle case sensitive search.
FXButton * myTrackButton
The button that triggers tracking on the select vehicle.
virtual std::string getObjectName(GUIGlObject *o) const
retrieve name for the given object
void applyFilters()
apply current filters and update list
virtual void filterACs(const std::vector< GUIGlID > &GLIDs)
filter ACs (needed in netedit)
void updateSelectionButtons()
update "Select all" and "Deselect all" buttons status
FXTextField * myTextEntry
The text field.
long onUpdClearListSelection(FXObject *, FXSelector, void *)
Callback: Update "Deselect all" button.
long onCmdToggleSelection(FXObject *, FXSelector, void *)
Callback: Toggle selection status of current object / list.
FXCheckButton * myFilterSubstring
whether to filter by substring
FXCheckButton * myInstantCenter
Whether each change in the list should re-center the view.
long onChgList(FXObject *, FXSelector, void *)
Callback: Current list item has changed.
GUIGlObject * getObject() const
Returns the chosen (selected) object.
FXList * myList
The list that holds the ids.
std::vector< GUIGlID > myAllIDs
all object IDs available for choosing
A storage for of displayed objects via their numerical id.
Persists window position in the registry.