SUMO - Simulation of Urban MObility
GUIDialog_Breakpoints.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // Editor for simulation breakpoints
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
11 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
12 /****************************************************************************/
13 //
14 // This file is part of SUMO.
15 // SUMO is free software: you can redistribute it and/or modify
16 // it under the terms of the GNU General Public License as published by
17 // the Free Software Foundation, either version 3 of the License, or
18 // (at your option) any later version.
19 //
20 /****************************************************************************/
21 #ifndef GUIDialog_Breakpoints_h
22 #define GUIDialog_Breakpoints_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <string>
35 #include <vector>
36 #include <fx.h>
37 
38 
39 // ===========================================================================
40 // class definition
41 // ===========================================================================
50 class GUIDialog_Breakpoints : public FXMainWindow {
51  // FOX-declarations
52  FXDECLARE(GUIDialog_Breakpoints)
53 
54 public:
58  GUIDialog_Breakpoints(GUIMainWindow* parent, std::vector<SUMOTime>& breakpoints, FXMutex& breakpointLock);
59 
60 
63 
65  void show();
66 
67 
68 
71 
73  long onCmdLoad(FXObject*, FXSelector, void*);
74 
76  long onCmdSave(FXObject*, FXSelector, void*);
77 
79  long onCmdClear(FXObject*, FXSelector, void*);
80 
82  long onCmdClose(FXObject*, FXSelector, void*);
83 
85  long onCmdEditTable(FXObject*, FXSelector, void*);
87 
88 
89 private:
91  void rebuildList();
92 
96  std::string encode2TXT();
97 
98 
99 private:
101  FXTable* myTable;
102 
105 
107  std::vector<SUMOTime>* myBreakpoints;
108 
111 
112 
113 protected:
116 
117 };
118 
119 
120 #endif
121 
122 /****************************************************************************/
123 
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.