Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/src/gui/dialogs/GUIDialog_GLObjChooser.h
193728 views
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
// Copyright (C) 2001-2026 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
/****************************************************************************/
14
/// @file GUIDialog_GLObjChooser.h
15
/// @author Daniel Krajzewicz
16
/// @author Jakob Erdmann
17
/// @author Michael Behrisch
18
/// @date Sept 2002
19
///
20
// Class for the window that allows to choose a street, junction or vehicle
21
/****************************************************************************/
22
#pragma once
23
#include <config.h>
24
25
#include <utils/gui/windows/GUIDialog_ChooserAbstract.h>
26
27
28
// ===========================================================================
29
// class declarations
30
// ===========================================================================
31
class GUISUMOViewParent;
32
class GUIGlChildWindow;
33
class GUIGlObjectStorage;
34
class GUIGlObject;
35
36
37
// ===========================================================================
38
// class definition
39
// ===========================================================================
40
/**
41
* @class GUIDialog_GLObjChooser
42
* Instances of this class are windows that display the list of instances
43
* from a given artifact like vehicles, edges or junctions and allow
44
* one of their items
45
*/
46
class GUIDialog_GLObjChooser : public GUIDialog_ChooserAbstract {
47
48
49
public:
50
/** @brief Constructor
51
* @param[in] SUMOViewParent The calling view (SUMO-GUI)
52
* @param[in] viewParent The calling view (netedit)
53
* @param[in] icon The icon to use
54
* @param[in] title The title to use
55
* @param[in] glStorage The storage to retrieve ids from
56
*/
57
GUIDialog_GLObjChooser(GUISUMOViewParent* SUMOViewParent, int messageId,
58
FXIcon* icon, const FXString& title, const std::vector<GUIGlID>& ids,
59
GUIGlObjectStorage& glStorage);
60
61
/// @brief Destructor
62
virtual ~GUIDialog_GLObjChooser();
63
64
private:
65
/// @brief SUMO-GUI View parent
66
GUISUMOViewParent* mySUMOViewParent;
67
};
68
69