Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GUIDialog_Breakpoints.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/****************************************************************************/
19// Editor for simulation breakpoints
20/****************************************************************************/
21#pragma once
22#include <config.h>
23
24#include <string>
25#include <vector>
28
29
30// ===========================================================================
31// class definition
32// ===========================================================================
41class GUIDialog_Breakpoints : public FXMainWindow, public GUIPersistentWindowPos {
42 // FOX-declarations
43 FXDECLARE(GUIDialog_Breakpoints)
44
45public:
49 GUIDialog_Breakpoints(GUIApplicationWindow* parent, std::vector<SUMOTime>& breakpoints, FXMutex& breakpointLock, const SUMOTime simBegin);
50
53
55 void show();
56
59
61 long onCmdLoad(FXObject*, FXSelector, void*);
62
64 long onCmdSave(FXObject*, FXSelector, void*);
65
67 long onCmdClear(FXObject*, FXSelector, void*);
68
70 long onCmdUpdateBreakpoints(FXObject*, FXSelector, void*);
71
73 long onCmdClose(FXObject*, FXSelector, void*);
74
76 long onCmdEditTable(FXObject*, FXSelector, void*);
78
79 virtual void layout();
80
82 void rebuildList();
83
84protected:
86 FOX_CONSTRUCTOR(GUIDialog_Breakpoints)
87
88private:
89
93 std::string encode2TXT();
94
96 FXTable* myTable;
97
100
102 std::vector<SUMOTime>* myBreakpoints;
103
106
109};
long long int SUMOTime
Definition GUI.h:36
The main window of the SUMO-gui.
Editor for simulation breakpoints.
long onCmdUpdateBreakpoints(FXObject *, FXSelector, void *)
Called when the user clicks a time link in the message window.
long onCmdClose(FXObject *, FXSelector, void *)
Called when the user presses the Close-button.
FXMutex * myBreakpointLock
Lock for modifying the list of breakpoints.
SUMOTime mySimBegin
simulation begin
FXTable * myTable
The list that holds the ids.
GUIApplicationWindow * myParent
The parent window.
long onCmdLoad(FXObject *, FXSelector, void *)
Called when the user presses the Load-button.
std::vector< SUMOTime > * myBreakpoints
List of breakpoints.
long onCmdClear(FXObject *, FXSelector, void *)
Called when the user presses the Clear-button.
void show()
sets the focus after the window is created
long onCmdEditTable(FXObject *, FXSelector, void *)
Called when the table was changed.
long onCmdSave(FXObject *, FXSelector, void *)
Called when the user presses the Save-button.
void rebuildList()
Rebuilds the entire list.
std::string encode2TXT()
FOX need this.
Persists window position in the registry.