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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
18 // Editor for the list of chosen objects
19 /****************************************************************************/
20 #ifndef GUIDialog_GLChosenEditor_h
21 #define GUIDialog_GLChosenEditor_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <string>
34 #include <vector>
35 #include <fx.h>
36 
39 
40 // ===========================================================================
41 // class declarations
42 // ===========================================================================
43 class GUIMainWindow;
44 
45 
46 // ===========================================================================
47 // class definition
48 // ===========================================================================
56 class GUIDialog_GLChosenEditor : public FXMainWindow, public GUISelectedStorage::UpdateTarget {
57  // FOX-declarations
58  FXDECLARE(GUIDialog_GLChosenEditor)
59 
60 public:
69  GUISelectedStorage* str);
70 
71 
77 
78 
81  void rebuildList();
82 
83 
86 
95  long onCmdLoad(FXObject*, FXSelector, void*);
96 
97 
107  long onCmdSave(FXObject*, FXSelector, void*);
108 
114  long onCmdDeselect(FXObject*, FXSelector, void*);
115 
121  long onCmdClear(FXObject*, FXSelector, void*);
122 
123 
128  long onCmdClose(FXObject*, FXSelector, void*);
130 
131 
132  // called if the global selection changes
133  void selectionUpdated();
134 
135 private:
137  FXList* myList;
138 
141 
144 
145 protected:
148 
149 };
150 
151 
152 #endif
153 
154 /****************************************************************************/
155 
GUIDialog_GLChosenEditor()
FOX needs this.
Editor for the list of chosen objects.
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.