Eclipse SUMO - Simulation of Urban MObility
GNEDialogACChooser.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 // Class for the window that allows to choose a street, junction or vehicle
16 /****************************************************************************/
17 
18 #ifndef GNEDialogACChooser_h
19 #define GNEDialogACChooser_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 
26 #include <config.h>
27 
28 #include <string>
29 #include <vector>
30 #include <set>
32 
33 
34 // ===========================================================================
35 // class declarations
36 // ===========================================================================
37 
39 class GNEViewParent;
40 
41 // ===========================================================================
42 // class definition
43 // ===========================================================================
51 
52 public:
59  GNEDialogACChooser(GNEViewParent* viewParent, FXIcon* icon, const std::string& title, const std::vector<GNEAttributeCarrier*>& ACs);
60 
63 
64 protected:
67 
68  void toggleSelection(int listIndex) override;
69 
71  std::string getObjectName(GUIGlObject* o) const override;
72 
73 private:
75  std::vector<GNEAttributeCarrier*> myACs;
77 
78 
81 };
82 
83 
84 #endif
85 
86 /****************************************************************************/
87 
GNEDialogACChooser::myLocateTLS
bool myLocateTLS
whether the current locator is for TLS
Definition: GNEDialogACChooser.h:80
GNEDialogACChooser::getObjectName
std::string getObjectName(GUIGlObject *o) const override
@bbrief retrieve name for the given object (special case for TLS)
Definition: GNEDialogACChooser.cpp:69
GNEViewParent
A single child window which contains a view of the simulation area.
Definition: GNEViewParent.h:72
GUIGlObject
Definition: GUIGlObject.h:66
GNEDialogACChooser::~GNEDialogACChooser
~GNEDialogACChooser()
Destructor.
Definition: GNEDialogACChooser.cpp:52
GNEDialogACChooser::myViewParent
GNEViewParent * myViewParent
Definition: GNEDialogACChooser.h:76
GNEDialogACChooser::GNEDialogACChooser
GNEDialogACChooser()
FOX needs this.
Definition: GNEDialogACChooser.h:66
GUIDialog_GLObjChooser.h
config.h
GNEDialogACChooser::toggleSelection
void toggleSelection(int listIndex) override
toggle selection (handled differently in NETEDIT)
Definition: GNEDialogACChooser.cpp:58
GNEAttributeCarrier
Definition: GNEAttributeCarrier.h:54
GNEDialogACChooser::myACs
std::vector< GNEAttributeCarrier * > myACs
list of displayed ACs
Definition: GNEDialogACChooser.h:75
GNEDialogACChooser
Definition: GNEDialogACChooser.h:50
GUIDialog_GLObjChooser
Definition: GUIDialog_GLObjChooser.h:52