Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEACChooserDialog.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-2025 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/****************************************************************************/
18// Class for the window that allows to choose a street, junction or vehicle
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
24
25// ===========================================================================
26// class declarations
27// ===========================================================================
28
30class GNEViewParent;
31
32// ===========================================================================
33// class definition
34// ===========================================================================
35
37
38public:
45 GNEACChooserDialog(GNEViewParent* viewParent, int messageId, FXIcon* icon, const std::string& title,
46 const std::map<std::string, GNEAttributeCarrier*>& ACs);
47
50
51protected:
52 FOX_CONSTRUCTOR(GNEACChooserDialog)
53
54
55 void toggleSelection(int listIndex) override;
56
58 void select(int listIndex) override;
59
61 void deselect(int listIndex) override;
62
64 void filterACs(const std::vector<GUIGlID>& GLIDs) override;
65
67 std::string getObjectName(GUIGlObject* o) const override;
68
69private:
72
74 std::vector<GNEAttributeCarrier*> myACs;
75
77 std::vector<GNEAttributeCarrier*> myFilteredACs;
78
81
84
87};
void deselect(int listIndex) override
unset selection (handled differently in netedit)
std::vector< GNEAttributeCarrier * > myACs
list of displayed ACs
~GNEACChooserDialog()
Destructor.
GNEViewParent * myViewParent
pointer to view parent
void select(int listIndex) override
set selection (handled differently in netedit)
std::vector< GNEAttributeCarrier * > myFilteredACs
list of filtered ACs
std::string getObjectName(GUIGlObject *o) const override
retrieve name for the given object (special case for TLS)
bool myLocateTLS
whether the current locator is for TLS
void toggleSelection(int listIndex) override
toggle selection
GNEACChooserDialog & operator=(const GNEACChooserDialog &src)=delete
Invalidated assignment operator.
void filterACs(const std::vector< GUIGlID > &GLIDs) override
filter ACs
GNEACChooserDialog(const GNEACChooserDialog &)=delete
Invalidated copy constructor.
A single child window which contains a view of the simulation area.