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
28
29
30// ===========================================================================
31// class definitions
32// ===========================================================================
33class GUIGlObject;
34class GUIMainWindow;
36
37
38// ===========================================================================
39// class declarataions
40// ===========================================================================
46class GUIParam_PopupMenuInterface : public FXMenuPane {
48public:
58 GUIParameterTableWindow& parentWindow,
59 GUIGlObject& o, const std::string& varName,
61
62
65
66
69
75 long onCmdOpenTracker(FXObject*, FXSelector, void*);
77
78
79protected:
82
85
88
90 std::string myVarName;
91
94
95protected:
96 FOX_CONSTRUCTOR(GUIParam_PopupMenuInterface)
97
98};
A popup-menu for dynamic patameter table entries.
std::string myVarName
The name of the value.
long onCmdOpenTracker(FXObject *, FXSelector, void *)
Called when a tracker for the value shall be opened.
GUIGlObject * myObject
The object the table displays.
GUIParameterTableWindow * myParentWindow
The parameter window this popup was initiated by.
ValueSource< double > * mySource
The source of the value.
GUIMainWindow * myApplication
The main application window; holder of some needed values.
A window containing a gl-object's parameter.