SUMO - Simulation of Urban MObility
GUIDialog_Breakpoints.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-2018 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 /****************************************************************************/
16 // Editor for simulation breakpoints
17 /****************************************************************************/
18 #ifndef GUIDialog_Breakpoints_h
19 #define GUIDialog_Breakpoints_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include <string>
28 #include <vector>
29 #include <fx.h>
30 
31 
32 // ===========================================================================
33 // class definition
34 // ===========================================================================
43 class GUIDialog_Breakpoints : public FXMainWindow {
44  // FOX-declarations
45  FXDECLARE(GUIDialog_Breakpoints)
46 
47 public:
51  GUIDialog_Breakpoints(GUIMainWindow* parent, std::vector<SUMOTime>& breakpoints, FXMutex& breakpointLock);
52 
55 
57  void show();
58 
61 
63  long onCmdLoad(FXObject*, FXSelector, void*);
64 
66  long onCmdSave(FXObject*, FXSelector, void*);
67 
69  long onCmdClear(FXObject*, FXSelector, void*);
70 
72  long onCmdClose(FXObject*, FXSelector, void*);
73 
75  long onCmdEditTable(FXObject*, FXSelector, void*);
77 
78 protected:
81 
82 private:
84  void rebuildList();
85 
89  std::string encode2TXT();
90 
92  FXTable* myTable;
93 
96 
98  std::vector<SUMOTime>* myBreakpoints;
99 
102 };
103 
104 
105 #endif
106 
107 /****************************************************************************/
108 
std::vector< SUMOTime > * myBreakpoints
List of breakpoints.
GUIMainWindow * myParent
The parent window.
long onCmdSave(FXObject *, FXSelector, void *)
Called when the user presses the Save-button.
void show()
sets the focus after the window is created
Editor for simulation breakpoints.
long onCmdClose(FXObject *, FXSelector, void *)
Called when the user presses the Close-button.
FXMutex * myBreakpointLock
Lock for modifying the list of breakpoints.
long onCmdClear(FXObject *, FXSelector, void *)
Called when the user presses the Clear-button.
long onCmdEditTable(FXObject *, FXSelector, void *)
Called when the table was changed.
GUIDialog_Breakpoints()
FOX needs this.
void rebuildList()
Rebuilds the entire list.
std::string encode2TXT()
Builds a text representation of the items in the list.
long onCmdLoad(FXObject *, FXSelector, void *)
Called when the user presses the Load-button.
FXTable * myTable
The list that holds the ids.