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 /****************************************************************************/
15 // Editor for the list of chosen objects
16 /****************************************************************************/
17 #ifndef GUIDialog_GLChosenEditor_h
18 #define GUIDialog_GLChosenEditor_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <string>
27 #include <vector>
28 #include <fx.h>
29 
32 
33 // ===========================================================================
34 // class declarations
35 // ===========================================================================
36 class GUIMainWindow;
37 
38 
39 // ===========================================================================
40 // class definition
41 // ===========================================================================
49 class GUIDialog_GLChosenEditor : public FXMainWindow, public GUISelectedStorage::UpdateTarget {
50  // FOX-declarations
51  FXDECLARE(GUIDialog_GLChosenEditor)
52 
53 public:
59 
62 
64  void rebuildList();
65 
66  // @brief called if the global selection changes
67  void selectionUpdated();
68 
71 
80  long onCmdLoad(FXObject*, FXSelector, void*);
81 
91  long onCmdSave(FXObject*, FXSelector, void*);
92 
98  long onCmdDeselect(FXObject*, FXSelector, void*);
99 
105  long onCmdClear(FXObject*, FXSelector, void*);
106 
111  long onCmdClose(FXObject*, FXSelector, void*);
113 
114 protected:
117 
118 private:
120  FXList* myList;
121 
124 
127 };
128 
129 
130 #endif
131 
132 /****************************************************************************/
133 
GUIDialog_GLChosenEditor::onCmdClear
long onCmdClear(FXObject *, FXSelector, void *)
Called when the user presses the Clear-button.
Definition: GUIDialog_GLChosenEditor.cpp:180
GUISelectedStorage.h
GUIDialog_GLChosenEditor::~GUIDialog_GLChosenEditor
~GUIDialog_GLChosenEditor()
Destructor (Notifies both the parent and the storage about being destroyed)
Definition: GUIDialog_GLChosenEditor.cpp:91
GUIDialog_GLChosenEditor::GUIDialog_GLChosenEditor
GUIDialog_GLChosenEditor()
FOX needs this.
Definition: GUIDialog_GLChosenEditor.h:116
GUIDialog_GLChosenEditor::onCmdDeselect
long onCmdDeselect(FXObject *, FXSelector, void *)
Called when the user presses the Deselect-button.
Definition: GUIDialog_GLChosenEditor.cpp:159
GUIDialog_GLChosenEditor::myParent
GUIMainWindow * myParent
The parent window.
Definition: GUIDialog_GLChosenEditor.h:123
GUIDialog_GLChosenEditor::myStorage
GUISelectedStorage * myStorage
The storage.
Definition: GUIDialog_GLChosenEditor.h:126
GUIDialog_GLChosenEditor::rebuildList
void rebuildList()
Rebuilds the entire list.
Definition: GUIDialog_GLChosenEditor.cpp:98
GUIDialog_GLChosenEditor::onCmdLoad
long onCmdLoad(FXObject *, FXSelector, void *)
Called when the user presses the Load-button.
Definition: GUIDialog_GLChosenEditor.cpp:121
GUIMainWindow.h
GUIDialog_GLChosenEditor::selectionUpdated
void selectionUpdated()
called when selection is updated
Definition: GUIDialog_GLChosenEditor.cpp:114
GUIDialog_GLChosenEditor::onCmdClose
long onCmdClose(FXObject *, FXSelector, void *)
Called when the user presses the Close-button.
Definition: GUIDialog_GLChosenEditor.cpp:189
GUIDialog_GLChosenEditor::onCmdSave
long onCmdSave(FXObject *, FXSelector, void *)
Called when the user presses the Save-button.
Definition: GUIDialog_GLChosenEditor.cpp:144
GUIMainWindow
Definition: GUIMainWindow.h:46
GUISelectedStorage
Storage for "selected" objects.
Definition: GUISelectedStorage.h:69
config.h
GUISelectedStorage::UpdateTarget
Definition: GUISelectedStorage.h:73
GUIDialog_GLChosenEditor::myList
FXList * myList
The list that holds the ids.
Definition: GUIDialog_GLChosenEditor.h:120
GUIDialog_GLChosenEditor
Editor for the list of chosen objects.
Definition: GUIDialog_GLChosenEditor.h:49