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::onCmdClear
long onCmdClear(FXObject *, FXSelector, void *)
Called when the user presses the Clear-button.
Definition: GUIDialog_GLChosenEditor.cpp:181
GUISelectedStorage.h
GUIDialog_GLChosenEditor::~GUIDialog_GLChosenEditor
~GUIDialog_GLChosenEditor()
Destructor (Notifies both the parent and the storage about being destroyed)
Definition: GUIDialog_GLChosenEditor.cpp:92
GUIDialog_GLChosenEditor::GUIDialog_GLChosenEditor
GUIDialog_GLChosenEditor()
FOX needs this.
Definition: GUIDialog_GLChosenEditor.h:117
GUIDialog_GLChosenEditor::onCmdDeselect
long onCmdDeselect(FXObject *, FXSelector, void *)
Called when the user presses the Deselect-button.
Definition: GUIDialog_GLChosenEditor.cpp:160
GUIDialog_GLChosenEditor::myParent
GUIMainWindow * myParent
The parent window.
Definition: GUIDialog_GLChosenEditor.h:124
GUIDialog_GLChosenEditor::myStorage
GUISelectedStorage * myStorage
The storage.
Definition: GUIDialog_GLChosenEditor.h:127
GUIDialog_GLChosenEditor::rebuildList
void rebuildList()
Rebuilds the entire list.
Definition: GUIDialog_GLChosenEditor.cpp:99
GUIDialog_GLChosenEditor::onCmdLoad
long onCmdLoad(FXObject *, FXSelector, void *)
Called when the user presses the Load-button.
Definition: GUIDialog_GLChosenEditor.cpp:122
GUIMainWindow.h
GUIDialog_GLChosenEditor::selectionUpdated
void selectionUpdated()
called when selection is updated
Definition: GUIDialog_GLChosenEditor.cpp:115
GUIDialog_GLChosenEditor::onCmdClose
long onCmdClose(FXObject *, FXSelector, void *)
Called when the user presses the Close-button.
Definition: GUIDialog_GLChosenEditor.cpp:190
GUIDialog_GLChosenEditor::onCmdSave
long onCmdSave(FXObject *, FXSelector, void *)
Called when the user presses the Save-button.
Definition: GUIDialog_GLChosenEditor.cpp:145
GUIMainWindow
Definition: GUIMainWindow.h:47
GUISelectedStorage
Storage for "selected" objects.
Definition: GUISelectedStorage.h:70
config.h
GUISelectedStorage::UpdateTarget
Definition: GUISelectedStorage.h:74
GUIDialog_GLChosenEditor::myList
FXList * myList
The list that holds the ids.
Definition: GUIDialog_GLChosenEditor.h:121
GUIDialog_GLChosenEditor
Editor for the list of chosen objects.
Definition: GUIDialog_GLChosenEditor.h:50