SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
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-sim.org/
12
// Copyright (C) 2001-2014 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>
39
#include <
utils/gui/globjects/GUIGlObject.h
>
40
41
42
// ===========================================================================
43
// class declarations
44
// ===========================================================================
45
class
GUIGlChildWindow
;
46
class
GUIGlObjectStorage
;
47
class
GUIGlObject
;
48
49
50
// ===========================================================================
51
// class definition
52
// ===========================================================================
59
class
GUIDialog_GLObjChooser
:
public
FXMainWindow
{
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
78
~GUIDialog_GLObjChooser
();
79
80
84
GUIGlObject
*
getObject
()
const
{
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
113
void
show
();
114
115
private
:
117
FXList*
myList
;
118
120
FXButton
*
myCenterButton
;
121
123
GUIGlObjectType
myObjectType
;
124
126
GUIGlChildWindow
*
myParent
;
127
129
GUIGlObject
*
mySelected
;
130
132
FXTextField
*
myTextEntry
;
133
135
//volatile pointers to GUIGlObject
136
std::set<GUIGlID>
myIDs
;
137
138
139
protected
:
141
GUIDialog_GLObjChooser
() { }
142
143
};
144
145
146
#endif
147
148
/****************************************************************************/
149
tmp
buildd
sumo-0.21.0+dfsg
src
utils
gui
windows
GUIDialog_GLObjChooser.h
Generated on Thu Nov 20 2014 19:49:53 for SUMO - Simulation of Urban MObility by
1.8.1.2