SUMO - Simulation of Urban MObility
GUIParam_PopupMenu.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-2017 German Aerospace Center (DLR) and others.
4
/****************************************************************************/
5
//
6
// This program and the accompanying materials
7
// are made available under the terms of the Eclipse Public License v2.0
8
// which accompanies this distribution, and is available at
9
// http://www.eclipse.org/legal/epl-v20.html
10
//
11
/****************************************************************************/
17
// A popup-menu for dynamic patameter table entries
18
/****************************************************************************/
19
#ifndef GUIParam_PopupMenu_h
20
#define GUIParam_PopupMenu_h
21
22
23
// ===========================================================================
24
// included modules
25
// ===========================================================================
26
#include <string>
27
28
#ifdef _MSC_VER
29
#include <
windows_config.h
>
30
#else
31
#include <
config.h
>
32
#endif
33
34
#include <fx.h>
35
#include <
utils/common/ValueSource.h
>
36
#include <
utils/gui/div/GUIParameterTableWindow.h
>
37
38
39
// ===========================================================================
40
// class definitions
41
// ===========================================================================
42
class
GUIGlObject
;
43
class
GUIMainWindow
;
44
45
46
// ===========================================================================
47
// class declarataions
48
// ===========================================================================
54
class
GUIParam_PopupMenuInterface
:
public
FXMenuPane {
55
FXDECLARE(
GUIParam_PopupMenuInterface
)
56
public
:
65
GUIParam_PopupMenuInterface
(
GUIMainWindow
& app,
66
GUIParameterTableWindow
& parentWindow,
67
GUIGlObject
& o,
const
std::string& varName,
68
ValueSource<double>
* src);
69
70
72
~GUIParam_PopupMenuInterface
();
73
74
77
83
long
onCmdOpenTracker
(FXObject*, FXSelector,
void
*);
85
86
87
protected
:
89
GUIGlObject
*
myObject
;
90
92
GUIParameterTableWindow
*
myParentWindow
;
93
95
GUIMainWindow
*
myApplication
;
96
98
std::string
myVarName
;
99
101
ValueSource<double>
*
mySource
;
102
103
protected
:
105
GUIParam_PopupMenuInterface
() { }
106
107
};
108
109
110
#endif
111
112
/****************************************************************************/
113
GUIParam_PopupMenuInterface::onCmdOpenTracker
long onCmdOpenTracker(FXObject *, FXSelector, void *)
Called when a tracker for the value shall be opened.
Definition:
GUIParam_PopupMenu.cpp:70
windows_config.h
GUIParam_PopupMenuInterface::myObject
GUIGlObject * myObject
The object the table displays.
Definition:
GUIParam_PopupMenu.h:89
GUIParam_PopupMenuInterface::GUIParam_PopupMenuInterface
GUIParam_PopupMenuInterface()
FOX needs this.
Definition:
GUIParam_PopupMenu.h:105
ValueSource.h
GUIMainWindow
Definition:
GUIMainWindow.h:53
config.h
GUIParam_PopupMenuInterface
A popup-menu for dynamic patameter table entries.
Definition:
GUIParam_PopupMenu.h:54
ValueSource< double >
GUIParam_PopupMenuInterface::myApplication
GUIMainWindow * myApplication
The main application window; holder of some needed values.
Definition:
GUIParam_PopupMenu.h:95
GUIParam_PopupMenuInterface::mySource
ValueSource< double > * mySource
The source of the value.
Definition:
GUIParam_PopupMenu.h:101
GUIGlObject
Definition:
GUIGlObject.h:72
GUIParam_PopupMenuInterface::myVarName
std::string myVarName
The name of the value.
Definition:
GUIParam_PopupMenu.h:98
GUIParam_PopupMenuInterface::~GUIParam_PopupMenuInterface
~GUIParam_PopupMenuInterface()
Destructor.
Definition:
GUIParam_PopupMenu.cpp:64
GUIParam_PopupMenuInterface::myParentWindow
GUIParameterTableWindow * myParentWindow
The parameter window this popup was initiated by.
Definition:
GUIParam_PopupMenu.h:92
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 Dec 24 2017 17:07:43 for SUMO - Simulation of Urban MObility by
1.8.13