Eclipse 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-2019 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
// A popup-menu for dynamic patameter table entries
16
/****************************************************************************/
17
#ifndef GUIParam_PopupMenu_h
18
#define GUIParam_PopupMenu_h
19
20
21
// ===========================================================================
22
// included modules
23
// ===========================================================================
24
#include <string>
25
26
#include <
config.h
>
27
28
#include <fx.h>
29
#include <
utils/common/ValueSource.h
>
30
31
32
// ===========================================================================
33
// class definitions
34
// ===========================================================================
35
class
GUIGlObject
;
36
class
GUIMainWindow
;
37
class
GUIParameterTableWindow
;
38
39
40
// ===========================================================================
41
// class declarataions
42
// ===========================================================================
48
class
GUIParam_PopupMenuInterface
:
public
FXMenuPane {
49
FXDECLARE(
GUIParam_PopupMenuInterface
)
50
public
:
59
GUIParam_PopupMenuInterface
(
GUIMainWindow
& app,
60
GUIParameterTableWindow
& parentWindow,
61
GUIGlObject
& o,
const
std::string& varName,
62
ValueSource<double>
* src);
63
64
66
~GUIParam_PopupMenuInterface
();
67
68
71
77
long
onCmdOpenTracker
(FXObject*, FXSelector,
void
*);
79
80
81
protected
:
83
GUIGlObject
*
myObject
;
84
86
GUIParameterTableWindow
*
myParentWindow
;
87
89
GUIMainWindow
*
myApplication
;
90
92
std::string
myVarName
;
93
95
ValueSource<double>
*
mySource
;
96
97
protected
:
99
GUIParam_PopupMenuInterface
() { }
100
101
};
102
103
104
#endif
105
106
/****************************************************************************/
107
GUIParam_PopupMenuInterface::onCmdOpenTracker
long onCmdOpenTracker(FXObject *, FXSelector, void *)
Called when a tracker for the value shall be opened.
Definition:
GUIParam_PopupMenu.cpp:64
GUIParam_PopupMenuInterface::myObject
GUIGlObject * myObject
The object the table displays.
Definition:
GUIParam_PopupMenu.h:83
GUIParam_PopupMenuInterface::GUIParam_PopupMenuInterface
GUIParam_PopupMenuInterface()
FOX needs this.
Definition:
GUIParam_PopupMenu.h:99
ValueSource.h
GUIMainWindow
Definition:
GUIMainWindow.h:47
config.h
GUIParam_PopupMenuInterface
A popup-menu for dynamic patameter table entries.
Definition:
GUIParam_PopupMenu.h:48
ValueSource< double >
GUIParam_PopupMenuInterface::myApplication
GUIMainWindow * myApplication
The main application window; holder of some needed values.
Definition:
GUIParam_PopupMenu.h:89
GUIParam_PopupMenuInterface::mySource
ValueSource< double > * mySource
The source of the value.
Definition:
GUIParam_PopupMenu.h:95
GUIGlObject
Definition:
GUIGlObject.h:66
GUIParam_PopupMenuInterface::myVarName
std::string myVarName
The name of the value.
Definition:
GUIParam_PopupMenu.h:92
GUIParam_PopupMenuInterface::~GUIParam_PopupMenuInterface
~GUIParam_PopupMenuInterface()
Destructor.
Definition:
GUIParam_PopupMenu.cpp:58
GUIParam_PopupMenuInterface::myParentWindow
GUIParameterTableWindow * myParentWindow
The parameter window this popup was initiated by.
Definition:
GUIParam_PopupMenu.h:86
GUIParameterTableWindow
A window containing a gl-object's parameter.
Definition:
GUIParameterTableWindow.h:63
src
utils
gui
div
GUIParam_PopupMenu.h
Generated on Sat Nov 23 2019 19:02:54 for Eclipse SUMO - Simulation of Urban MObility by
1.8.13