SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
GUIParam_PopupMenu.h
Go to the documentation of this file.
1
/****************************************************************************/
7
// A popup-menu for dynamic patameter table entries
8
/****************************************************************************/
9
// SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10
// Copyright (C) 2001-2016 DLR (http://www.dlr.de/) and contributors
11
/****************************************************************************/
12
//
13
// This file is part of SUMO.
14
// SUMO is free software: you can redistribute it and/or modify
15
// it under the terms of the GNU General Public License as published by
16
// the Free Software Foundation, either version 3 of the License, or
17
// (at your option) any later version.
18
//
19
/****************************************************************************/
20
#ifndef GUIParam_PopupMenu_h
21
#define GUIParam_PopupMenu_h
22
23
24
// ===========================================================================
25
// included modules
26
// ===========================================================================
27
#include <string>
28
29
#ifdef _MSC_VER
30
#include <
windows_config.h
>
31
#else
32
#include <
config.h
>
33
#endif
34
35
#include <fx.h>
36
#include <
utils/common/ValueSource.h
>
37
#include <
utils/gui/div/GUIParameterTableWindow.h
>
38
39
40
// ===========================================================================
41
// class definitions
42
// ===========================================================================
43
class
GUIGlObject
;
44
class
GUIMainWindow
;
45
46
47
// ===========================================================================
48
// class declarataions
49
// ===========================================================================
55
class
GUIParam_PopupMenuInterface
:
public
FXMenuPane {
56
FXDECLARE(
GUIParam_PopupMenuInterface
)
57
public
:
66
GUIParam_PopupMenuInterface
(
GUIMainWindow
& app,
67
GUIParameterTableWindow
& parentWindow,
68
GUIGlObject
& o,
const
std::string& varName,
69
ValueSource<SUMOReal>
* src);
70
71
73
~GUIParam_PopupMenuInterface
();
74
75
78
84
long
onCmdOpenTracker
(FXObject*, FXSelector,
void
*);
86
87
88
protected
:
90
GUIGlObject
*
myObject
;
91
93
GUIParameterTableWindow
*
myParentWindow
;
94
96
GUIMainWindow
*
myApplication
;
97
99
std::string
myVarName
;
100
102
ValueSource<SUMOReal>
*
mySource
;
103
104
protected
:
106
GUIParam_PopupMenuInterface
() { }
107
108
};
109
110
111
#endif
112
113
/****************************************************************************/
114
GUIParam_PopupMenuInterface::onCmdOpenTracker
long onCmdOpenTracker(FXObject *, FXSelector, void *)
Called when a tracker for the value shall be opened.
Definition:
GUIParam_PopupMenu.cpp:75
windows_config.h
GUIParam_PopupMenuInterface::myObject
GUIGlObject * myObject
The object the table displays.
Definition:
GUIParam_PopupMenu.h:90
GUIParam_PopupMenuInterface::GUIParam_PopupMenuInterface
GUIParam_PopupMenuInterface()
FOX needs this.
Definition:
GUIParam_PopupMenu.h:106
GUIParam_PopupMenuInterface::mySource
ValueSource< SUMOReal > * mySource
The source of the value.
Definition:
GUIParam_PopupMenu.h:102
ValueSource.h
GUIMainWindow
Definition:
GUIMainWindow.h:54
config.h
GUIParam_PopupMenuInterface
A popup-menu for dynamic patameter table entries.
Definition:
GUIParam_PopupMenu.h:55
ValueSource< SUMOReal >
GUIParam_PopupMenuInterface::myApplication
GUIMainWindow * myApplication
The main application window; holder of some needed values.
Definition:
GUIParam_PopupMenu.h:96
GUIGlObject
Definition:
GUIGlObject.h:73
GUIParam_PopupMenuInterface::myVarName
std::string myVarName
The name of the value.
Definition:
GUIParam_PopupMenu.h:99
GUIParam_PopupMenuInterface::~GUIParam_PopupMenuInterface
~GUIParam_PopupMenuInterface()
Destructor.
Definition:
GUIParam_PopupMenu.cpp:69
GUIParam_PopupMenuInterface::myParentWindow
GUIParameterTableWindow * myParentWindow
The parameter window this popup was initiated by.
Definition:
GUIParam_PopupMenu.h:93
GUIParameterTableWindow
A window containing a gl-object's parameter.
Definition:
GUIParameterTableWindow.h:69
GUIParameterTableWindow.h
src
utils
gui
div
GUIParam_PopupMenu.h
Generated on Sun Mar 19 2017 15:07:36 for SUMO - Simulation of Urban MObility by
1.8.8