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