Eclipse SUMO - Simulation of Urban MObility
GUIDialog_GLChosenEditor.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2022 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials are made available under the
5 // terms of the Eclipse Public License 2.0 which is available at
6 // https://www.eclipse.org/legal/epl-2.0/
7 // This Source Code may also be made available under the following Secondary
8 // Licenses when the conditions for such availability set forth in the Eclipse
9 // Public License 2.0 are satisfied: GNU General Public License, version 2
10 // or later which is available at
11 // https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12 // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13 /****************************************************************************/
19 // Editor for the list of chosen objects
20 /****************************************************************************/
21 #pragma once
22 #include <config.h>
23 
24 #include <string>
25 #include <vector>
27 
30 
31 // ===========================================================================
32 // class declarations
33 // ===========================================================================
34 class GUIMainWindow;
35 
36 
37 // ===========================================================================
38 // class definition
39 // ===========================================================================
47 class GUIDialog_GLChosenEditor : public FXMainWindow, public GUISelectedStorage::UpdateTarget {
48  // FOX-declarations
49  FXDECLARE(GUIDialog_GLChosenEditor)
50 
51 public:
57 
60 
62  void rebuildList();
63 
64  // @brief called if the global selection changes
65  void selectionUpdated();
66 
69 
78  long onCmdLoad(FXObject*, FXSelector, void*);
79 
89  long onCmdSave(FXObject*, FXSelector, void*);
90 
96  long onCmdDeselect(FXObject*, FXSelector, void*);
97 
103  long onCmdClear(FXObject*, FXSelector, void*);
104 
109  long onCmdClose(FXObject*, FXSelector, void*);
111 
112 protected:
115 
116 private:
118  FXList* myList;
119 
122 
125 };
Editor for the list of chosen objects.
FXList * myList
The list that holds the ids.
GUISelectedStorage * myStorage
The storage.
long onCmdLoad(FXObject *, FXSelector, void *)
Called when the user presses the Load-button.
long onCmdDeselect(FXObject *, FXSelector, void *)
Called when the user presses the Deselect-button.
GUIMainWindow * myParent
The parent window.
~GUIDialog_GLChosenEditor()
Destructor (Notifies both the parent and the storage about being destroyed)
long onCmdSave(FXObject *, FXSelector, void *)
Called when the user presses the Save-button.
long onCmdClose(FXObject *, FXSelector, void *)
Called when the user presses the Close-button.
void selectionUpdated()
called when selection is updated
long onCmdClear(FXObject *, FXSelector, void *)
Called when the user presses the Clear-button.
void rebuildList()
Rebuilds the entire list.
Storage for "selected" objects.