Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GUIDialog_GLChosenEditor.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2023 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
31
32// ===========================================================================
33// class declarations
34// ===========================================================================
35class GUIMainWindow;
36
37
38// ===========================================================================
39// class definition
40// ===========================================================================
49 // FOX-declarations
51
52public:
58
61
63 void rebuildList();
64
65 // @brief called if the global selection changes
66 void selectionUpdated();
67
70
79 long onCmdLoad(FXObject*, FXSelector, void*);
80
90 long onCmdSave(FXObject*, FXSelector, void*);
91
97 long onCmdDeselect(FXObject*, FXSelector, void*);
98
104 long onCmdClear(FXObject*, FXSelector, void*);
105
110 long onCmdClose(FXObject*, FXSelector, void*);
112
113protected:
116
117private:
119 FXList* myList = nullptr;
120
123
126};
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.
Persists window position in the registry.
Storage for "selected" objects.