SUMO - Simulation of Urban MObility
|
Editor for simulation breakpoints. More...
#include <GUIDialog_Breakpoints.h>
Public Member Functions | |
GUIDialog_Breakpoints (GUIMainWindow *parent) | |
Constructor. More... | |
~GUIDialog_Breakpoints () | |
Destructor. More... | |
FOX-callbacks | |
long | onCmdLoad (FXObject *, FXSelector, void *) |
Called when the user presses the Load-button. More... | |
long | onCmdSave (FXObject *, FXSelector, void *) |
Called when the user presses the Save-button. More... | |
long | onCmdClear (FXObject *, FXSelector, void *) |
Called when the user presses the Clear-button. More... | |
long | onCmdClose (FXObject *, FXSelector, void *) |
Called when the user presses the Close-button. More... | |
long | onCmdEditTable (FXObject *, FXSelector, void *) |
Called when the table was changed. More... | |
Protected Member Functions | |
GUIDialog_Breakpoints () | |
FOX needs this. More... | |
Private Member Functions | |
std::string | encode2TXT () |
Builds a text representation of the items in the list. More... | |
void | rebuildList () |
Rebuilds the entire list. More... | |
Private Attributes | |
GUIMainWindow * | myParent |
The parent window. More... | |
MFXAddEditTypedTable * | myTable |
The list that holds the ids. More... | |
Editor for simulation breakpoints.
This dialog shows and lets the user edit the list of breakpoints - simulation time steps where the simulation halts.
Definition at line 56 of file GUIDialog_Breakpoints.h.
GUIDialog_Breakpoints::GUIDialog_Breakpoints | ( | GUIMainWindow * | parent | ) |
Constructor.
[in] | parent | The parent window |
Definition at line 85 of file GUIDialog_Breakpoints.cpp.
References CT_REAL, GUIIconSubSys::getIcon(), OptionsCont::getOptions(), ICON_APP_BREAKPOINTS, MID_CANCEL, MID_CHOOSEN_CLEAR, MID_CHOOSEN_LOAD, MID_CHOOSEN_SAVE, MID_TABLE, string2time(), and SUMOTime_MAX.
GUIDialog_Breakpoints::~GUIDialog_Breakpoints | ( | ) |
Destructor.
Definition at line 123 of file GUIDialog_Breakpoints.cpp.
References myParent, and GUIMainWindow::removeChild().
|
inlineprotected |
FOX needs this.
Definition at line 112 of file GUIDialog_Breakpoints.h.
|
private |
Builds a text representation of the items in the list.
Definition at line 208 of file GUIDialog_Breakpoints.cpp.
References GUIGlobals::gBreakpoints, INVALID_VALUE, and time2string().
Referenced by onCmdSave().
Called when the user presses the Clear-button.
Definition at line 221 of file GUIDialog_Breakpoints.cpp.
References GUIGlobals::gBreakpoints, and rebuildList().
Called when the user presses the Close-button.
Definition at line 230 of file GUIDialog_Breakpoints.cpp.
Called when the table was changed.
Definition at line 237 of file GUIDialog_Breakpoints.cpp.
References MFXEditedTableItem::col, GUIGlobals::gBreakpoints, INVALID_VALUE, INVALID_VALUE_STR, MFXEditedTableItem::item, rebuildList(), MFXEditedTableItem::row, string2time(), and MFXEditedTableItem::updateOnly.
Called when the user presses the Load-button.
Definition at line 156 of file GUIDialog_Breakpoints.cpp.
References GUIGlobals::gBreakpoints, gCurrentFolder, GUIIconSubSys::getIcon(), ICON_EMPTY, rebuildList(), string2time(), and WRITE_ERROR.
Called when the user presses the Save-button.
Definition at line 190 of file GUIDialog_Breakpoints.cpp.
References OutputDevice::close(), encode2TXT(), gCurrentFolder, OutputDevice::getDevice(), MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), and ICON_EMPTY.
|
private |
Rebuilds the entire list.
Definition at line 129 of file GUIDialog_Breakpoints.cpp.
References GUIGlobals::gBreakpoints, myTable, and time2string().
Referenced by onCmdClear(), onCmdEditTable(), and onCmdLoad().
|
private |
The parent window.
Definition at line 107 of file GUIDialog_Breakpoints.h.
Referenced by ~GUIDialog_Breakpoints().
|
private |
The list that holds the ids.
Definition at line 104 of file GUIDialog_Breakpoints.h.
Referenced by rebuildList().