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-2020 German Aerospace Center (DLR) and others.
4
// This program and the accompanying materials are made available under the
5
// terms of the Eclipse Public License 2.0 which is available at
6
// https://www.eclipse.org/legal/epl-2.0/
7
// This Source Code may also be made available under the following Secondary
8
// Licenses when the conditions for such availability set forth in the Eclipse
9
// Public License 2.0 are satisfied: GNU General Public License, version 2
10
// or later which is available at
11
// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13
/****************************************************************************/
18
// A popup-menu for dynamic patameter table entries
19
/****************************************************************************/
20
#pragma once
21
#include <string>
22
23
#include <config.h>
24
25
#include <fx.h>
26
#include <
utils/common/ValueSource.h
>
27
28
29
// ===========================================================================
30
// class definitions
31
// ===========================================================================
32
class
GUIGlObject
;
33
class
GUIMainWindow
;
34
class
GUIParameterTableWindow
;
35
36
37
// ===========================================================================
38
// class declarataions
39
// ===========================================================================
45
class
GUIParam_PopupMenuInterface
:
public
FXMenuPane {
46
FXDECLARE(
GUIParam_PopupMenuInterface
)
47
public
:
56
GUIParam_PopupMenuInterface
(
GUIMainWindow
& app,
57
GUIParameterTableWindow
& parentWindow,
58
GUIGlObject
& o,
const
std::string& varName,
59
ValueSource<double>
* src);
60
61
63
~GUIParam_PopupMenuInterface
();
64
65
68
74
long
onCmdOpenTracker
(FXObject*, FXSelector,
void
*);
76
77
78
protected
:
80
GUIGlObject
*
myObject
;
81
83
GUIParameterTableWindow
*
myParentWindow
;
84
86
GUIMainWindow
*
myApplication
;
87
89
std::string
myVarName
;
90
92
ValueSource<double>
*
mySource
;
93
94
protected
:
95
FOX_CONSTRUCTOR(
GUIParam_PopupMenuInterface
)
96
97
};
ValueSource.h
GUIGlObject
Definition:
GUIGlObject.h:63
GUIMainWindow
Definition:
GUIMainWindow.h:44
GUIParam_PopupMenuInterface
A popup-menu for dynamic patameter table entries.
Definition:
GUIParam_PopupMenu.h:45
GUIParam_PopupMenuInterface::myVarName
std::string myVarName
The name of the value.
Definition:
GUIParam_PopupMenu.h:89
GUIParam_PopupMenuInterface::onCmdOpenTracker
long onCmdOpenTracker(FXObject *, FXSelector, void *)
Called when a tracker for the value shall be opened.
Definition:
GUIParam_PopupMenu.cpp:62
GUIParam_PopupMenuInterface::~GUIParam_PopupMenuInterface
~GUIParam_PopupMenuInterface()
Destructor.
Definition:
GUIParam_PopupMenu.cpp:56
GUIParam_PopupMenuInterface::myObject
GUIGlObject * myObject
The object the table displays.
Definition:
GUIParam_PopupMenu.h:80
GUIParam_PopupMenuInterface::myParentWindow
GUIParameterTableWindow * myParentWindow
The parameter window this popup was initiated by.
Definition:
GUIParam_PopupMenu.h:83
GUIParam_PopupMenuInterface::GUIParam_PopupMenuInterface
GUIParam_PopupMenuInterface(GUIMainWindow &app, GUIParameterTableWindow &parentWindow, GUIGlObject &o, const std::string &varName, ValueSource< double > *src)
Constructor.
Definition:
GUIParam_PopupMenu.cpp:48
GUIParam_PopupMenuInterface::mySource
ValueSource< double > * mySource
The source of the value.
Definition:
GUIParam_PopupMenu.h:92
GUIParam_PopupMenuInterface::myApplication
GUIMainWindow * myApplication
The main application window; holder of some needed values.
Definition:
GUIParam_PopupMenu.h:86
GUIParameterTableWindow
A window containing a gl-object's parameter.
Definition:
GUIParameterTableWindow.h:60
ValueSource< double >
src
utils
gui
div
GUIParam_PopupMenu.h
Generated on Tue Jan 5 2021 19:48:37 for Eclipse SUMO - Simulation of Urban MObility by
1.9.1