SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GUIDialog_GLObjChooser.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // Class for the window that allows to choose a street, junction or vehicle
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
12 // Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 #ifndef GUIDialog_GLObjChooser_h
23 #define GUIDialog_GLObjChooser_h
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
35 #include <string>
36 #include <vector>
37 #include <set>
38 #include <fx.h>
40 
41 
42 // ===========================================================================
43 // class declarations
44 // ===========================================================================
45 class GUIGlChildWindow;
46 class GUIGlObjectStorage;
47 class GUIGlObject;
48 
49 
50 // ===========================================================================
51 // class definition
52 // ===========================================================================
60  // FOX-declarations
61  FXDECLARE(GUIDialog_GLObjChooser)
62 
63 public:
71  GUIDialog_GLObjChooser(GUIGlChildWindow* parent, FXIcon* icon, const FXString& title,
72  GUIGlObjectType type,
73  const std::vector<GUIGlID>& ids,
74  GUIGlObjectStorage& glStorage);
75 
76 
79 
80 
85  return static_cast<GUIGlObject*>(mySelected);
86  }
87 
88 
89 
92 
94  long onCmdCenter(FXObject*, FXSelector, void*);
95 
97  long onCmdClose(FXObject*, FXSelector, void*);
98 
100  long onChgText(FXObject*, FXSelector, void*);
101 
103  long onCmdText(FXObject*, FXSelector, void*);
104 
106  long onListKeyPress(FXObject*, FXSelector, void*);
107 
109  long onCmdFilter(FXObject*, FXSelector, void*);
111 
112 
113 private:
115  FXList* myList;
116 
119 
122 
125 
128 
130  //volatile pointers to GUIGlObject
131  std::set<GUIGlID> myIDs;
132 
133 
134 protected:
137 
138 };
139 
140 
141 #endif
142 
143 /****************************************************************************/
144