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-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
16 // Editor for the list of chosen objects
17 /****************************************************************************/
18 #ifndef GUIDialog_GLChosenEditor_h
19 #define GUIDialog_GLChosenEditor_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include <string>
28 #include <vector>
29 #include <fx.h>
30 
33 
34 // ===========================================================================
35 // class declarations
36 // ===========================================================================
37 class GUIMainWindow;
38 
39 
40 // ===========================================================================
41 // class definition
42 // ===========================================================================
50 class GUIDialog_GLChosenEditor : public FXMainWindow, public GUISelectedStorage::UpdateTarget {
51  // FOX-declarations
52  FXDECLARE(GUIDialog_GLChosenEditor)
53 
54 public:
60 
63 
65  void rebuildList();
66 
67  // @brief called if the global selection changes
68  void selectionUpdated();
69 
72 
81  long onCmdLoad(FXObject*, FXSelector, void*);
82 
92  long onCmdSave(FXObject*, FXSelector, void*);
93 
99  long onCmdDeselect(FXObject*, FXSelector, void*);
100 
106  long onCmdClear(FXObject*, FXSelector, void*);
107 
112  long onCmdClose(FXObject*, FXSelector, void*);
114 
115 protected:
118 
119 private:
121  FXList* myList;
122 
125 
128 };
129 
130 
131 #endif
132 
133 /****************************************************************************/
134 
GUIDialog_GLChosenEditor()
FOX needs this.
Editor for the list of chosen objects.
~GUIDialog_GLChosenEditor()
Destructor (Notifies both the parent and the storage about being destroyed)
long onCmdClear(FXObject *, FXSelector, void *)
Called when the user presses the Clear-button.
long onCmdDeselect(FXObject *, FXSelector, void *)
Called when the user presses the Deselect-button.
long onCmdLoad(FXObject *, FXSelector, void *)
Called when the user presses the Load-button.
void rebuildList()
Rebuilds the entire list.
long onCmdClose(FXObject *, FXSelector, void *)
Called when the user presses the Close-button.
Storage for "selected" objects.
long onCmdSave(FXObject *, FXSelector, void *)
Called when the user presses the Save-button.
GUIMainWindow * myParent
The parent window.
GUISelectedStorage * myStorage
The storage.
void selectionUpdated()
called when selection is updated
FXList * myList
The list that holds the ids.