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-2015 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 declarations
41 // ===========================================================================
43 
44 
45 // ===========================================================================
46 // class definition
47 // ===========================================================================
56 class GUIDialog_Breakpoints : public FXMainWindow {
57  // FOX-declarations
58  FXDECLARE(GUIDialog_Breakpoints)
59 
60 public:
64  GUIDialog_Breakpoints(GUIMainWindow* parent, std::vector<SUMOTime>& breakpoints, MFXMutex& breakpointLock);
65 
66 
69 
70 
71 
74 
76  long onCmdLoad(FXObject*, FXSelector, void*);
77 
79  long onCmdSave(FXObject*, FXSelector, void*);
80 
82  long onCmdClear(FXObject*, FXSelector, void*);
83 
85  long onCmdClose(FXObject*, FXSelector, void*);
86 
88  long onCmdEditTable(FXObject*, FXSelector, void*);
90 
91 
92 private:
94  void rebuildList();
95 
99  std::string encode2TXT();
100 
101 
102 private:
105 
108 
110  std::vector<SUMOTime>* myBreakpoints;
111 
114 
115 
116 protected:
119 
120 };
121 
122 
123 #endif
124 
125 /****************************************************************************/
126 
std::vector< SUMOTime > * myBreakpoints
List of breakpoints.
GUIMainWindow * myParent
The parent window.
MFXAddEditTypedTable * myTable
The list that holds the ids.
long onCmdSave(FXObject *, FXSelector, void *)
Called when the user presses the Save-button.
Editor for simulation breakpoints.
long onCmdClose(FXObject *, FXSelector, void *)
Called when the user presses the Close-button.
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.
MFXMutex * myBreakpointLock
Lock for modifying the list of breakpoints.
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.