Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GUIParam_PopupMenu.h
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
// Copyright (C) 2001-2024 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 <config.h>
22
#include <string>
23
24
#include <config.h>
25
26
#include <
utils/foxtools/fxheader.h
>
27
#include <
utils/common/ValueSource.h
>
28
29
30
// ===========================================================================
31
// class definitions
32
// ===========================================================================
33
class
GUIGlObject
;
34
class
GUIMainWindow
;
35
class
GUIParameterTableWindow
;
36
37
38
// ===========================================================================
39
// class declarataions
40
// ===========================================================================
46
class
GUIParam_PopupMenuInterface
:
public
FXMenuPane {
47
FXDECLARE(
GUIParam_PopupMenuInterface
)
48
public
:
57
GUIParam_PopupMenuInterface
(
GUIMainWindow
& app,
58
GUIParameterTableWindow
& parentWindow,
59
GUIGlObject
& o,
const
std::string& varName,
60
ValueSource<double>
* src);
61
62
64
~GUIParam_PopupMenuInterface
();
65
66
69
75
long
onCmdOpenTracker
(FXObject*, FXSelector,
void
*);
77
78
79
protected
:
81
GUIGlObject
*
myObject
;
82
84
GUIParameterTableWindow
*
myParentWindow
;
85
87
GUIMainWindow
*
myApplication
;
88
90
std::string
myVarName
;
91
93
ValueSource<double>
*
mySource
;
94
95
protected
:
96
FOX_CONSTRUCTOR(
GUIParam_PopupMenuInterface
)
97
98
};
ValueSource.h
GUIGlObject
Definition
GUIGlObject.h:67
GUIMainWindow
Definition
GUIMainWindow.h:46
GUIParam_PopupMenuInterface
A popup-menu for dynamic patameter table entries.
Definition
GUIParam_PopupMenu.h:46
GUIParam_PopupMenuInterface::myVarName
std::string myVarName
The name of the value.
Definition
GUIParam_PopupMenu.h:90
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:81
GUIParam_PopupMenuInterface::myParentWindow
GUIParameterTableWindow * myParentWindow
The parameter window this popup was initiated by.
Definition
GUIParam_PopupMenu.h:84
GUIParam_PopupMenuInterface::mySource
ValueSource< double > * mySource
The source of the value.
Definition
GUIParam_PopupMenu.h:93
GUIParam_PopupMenuInterface::myApplication
GUIMainWindow * myApplication
The main application window; holder of some needed values.
Definition
GUIParam_PopupMenu.h:87
GUIParameterTableWindow
A window containing a gl-object's parameter.
Definition
GUIParameterTableWindow.h:61
ValueSource
Definition
ValueSource.h:29
fxheader.h
src
utils
gui
div
GUIParam_PopupMenu.h
Generated on Fri Nov 22 2024 00:15:37 for Eclipse SUMO - Simulation of Urban MObility by
1.9.8