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-2018 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);
69 
70 private:
72  std::vector<GUIGlID> getGLIds(const std::vector<GNEAttributeCarrier*>& ACs);
73 
75  std::vector<GNEAttributeCarrier*> myACs;
77 };
78 
79 
80 #endif
81 
82 /****************************************************************************/
83 
A single child window which contains a view of the simulation area.
Definition: GNEViewParent.h:70
void toggleSelection(int listIndex)
toggle selection (handled differently in NETEDIT)
~GNEDialogACChooser()
Destructor.
std::vector< GUIGlID > getGLIds(const std::vector< GNEAttributeCarrier *> &ACs)
brief get glID for every AC
GNEDialogACChooser()
FOX needs this.
std::vector< GNEAttributeCarrier * > myACs
list of displayed ACs
GNEViewParent * myViewParent