SUMO - Simulation of Urban MObility
|
The main window of the SUMO-gui. More...
#include <GUIApplicationWindow.h>
Public Member Functions | |
void | addChild (FXMDIChild *child, bool updateOnSimStep=true) |
Adds a further child window to the list. More... | |
void | addChild (FXMainWindow *child, bool updateOnSimStep=true) |
void | dependentBuild (bool game) |
FXFont * | getBoldFont () |
FXGLCanvas * | getBuildGLCanvas () const |
FXLabel & | getCartesianLabel () |
SUMOTime | getCurrentSimTime () const |
FXCursor * | getDefaultCursor () |
FXLabel & | getGeoLabel () |
FXGLVisual * | getGLVisual () const |
FXMDIChild * | getViewByID (const std::string &id) const |
std::vector< std::string > | getViewIDs () const |
GUIApplicationWindow (FXApp *a, const std::string &configPattern) | |
Constructor. More... | |
bool | isGaming () const |
return whether the gui is in gaming mode More... | |
bool | listInternal () const |
return whether to list internal structures More... | |
void | loadOnStartup () |
void | removeChild (FXMDIChild *child) |
removes the given child window from the list More... | |
void | removeChild (FXMainWindow *child) |
void | setStatusBarText (const std::string &) |
void | updateChildren () |
virtual | ~GUIApplicationWindow () |
Destructor. More... | |
FOX-interactions | |
{ | |
virtual void | create () |
Creates the main window (required by FOX) More... | |
virtual void | detach () |
Detaches the tool/menu bar. More... | |
Inter-thread event handling | |
virtual void | eventOccured () |
void | handleEvent_SimulationLoaded (GUIEvent *e) |
void | handleEvent_SimulationStep (GUIEvent *e) |
void | handleEvent_Message (GUIEvent *e) |
void | handleEvent_SimulationEnded (GUIEvent *e) |
FOX-callbacks | |
long | onCmdOpenConfiguration (FXObject *, FXSelector, void *) |
Called on menu File->Open Configuration. More... | |
long | onCmdOpenNetwork (FXObject *, FXSelector, void *) |
Called on menu File->Open Network. More... | |
long | onCmdReload (FXObject *, FXSelector, void *) |
Called on reload. More... | |
long | onCmdOpenRecent (FXObject *, FXSelector, void *) |
Called on opening a recent file. More... | |
long | onCmdClose (FXObject *, FXSelector, void *) |
Called on menu File->Close. More... | |
long | onCmdQuit (FXObject *, FXSelector, void *) |
Called by FOX if the application shall be closed. More... | |
long | onCmdEditChosen (FXObject *, FXSelector, void *) |
Called on menu Edit->Edit Chosen. More... | |
long | onCmdEditBreakpoints (FXObject *, FXSelector, void *) |
Called on menu Edit->Edit Breakpoints. More... | |
long | onCmdAppSettings (FXObject *, FXSelector, void *) |
Opens the application settings menu (Settings->Application Settings...) More... | |
long | onCmdGaming (FXObject *, FXSelector, void *) |
Toggle gaming mode. More... | |
long | onCmdListInternal (FXObject *, FXSelector, void *) |
Toggle listing of internal structures. More... | |
long | onCmdAbout (FXObject *, FXSelector, void *) |
Shows the about dialog. More... | |
long | onCmdStart (FXObject *, FXSelector, void *) |
Called on "play". More... | |
long | onCmdStop (FXObject *, FXSelector, void *) |
Called on "stop". More... | |
long | onCmdStep (FXObject *, FXSelector, void *) |
Called on "step". More... | |
long | onCmdTimeToggle (FXObject *, FXSelector, void *) |
Called on "time toggle". More... | |
long | onCmdDelayToggle (FXObject *, FXSelector, void *) |
Called on "delay toggle". More... | |
long | onCmdNewView (FXObject *, FXSelector, void *) |
Called if a new view shall be opened (2D view) More... | |
long | onUpdOpen (FXObject *, FXSelector, void *) |
Determines whether opening is enabled. More... | |
long | onUpdReload (FXObject *, FXSelector, void *) |
Determines whether reloading is enabled. More... | |
long | onUpdOpenRecent (FXObject *, FXSelector, void *) |
Determines whether opening a recent file is enabled. More... | |
long | onUpdAddView (FXObject *, FXSelector, void *) |
Determines whether adding a view is enabled. More... | |
virtual long | onUpdStart (FXObject *, FXSelector, void *) |
Determines whether "play" is enabled. More... | |
long | onUpdStop (FXObject *, FXSelector, void *) |
Determines whether "stop" is enabled. More... | |
long | onUpdStep (FXObject *, FXSelector, void *) |
Determines whether "step" is enabled. More... | |
long | onUpdEditChosen (FXObject *sender, FXSelector, void *ptr) |
Determines whether editing chosen is enabled. More... | |
virtual long | onUpdEditBreakpoints (FXObject *, FXSelector, void *) |
Determines whether editing breakpoints is enabled. More... | |
long | onCmdClearMsgWindow (FXObject *, FXSelector, void *) |
Called if the message window shall be cleared. More... | |
long | onLoadThreadEvent (FXObject *, FXSelector, void *) |
Called on an event from the loading thread. More... | |
long | onRunThreadEvent (FXObject *, FXSelector, void *) |
Called on an event from the simulation thread. More... | |
long | onClipboardRequest (FXObject *sender, FXSelector sel, void *ptr) |
Somebody wants our clipped text. More... | |
Static Public Member Functions | |
static GUIMainWindow * | getInstance () |
Protected Member Functions | |
virtual void | addToWindowsMenu (FXMenuPane *) |
virtual void | buildToolBars () |
Builds the tool bar. More... | |
virtual void | fillMenuBar () |
Builds the menu bar. More... | |
GUIApplicationWindow () | |
FOX needs this for static members. More... | |
Protected Attributes | |
bool | hadDependentBuild |
SUMOTime | myAlternateSimDelay |
The alternate simulation delay for toggling. More... | |
bool | myAmGaming |
information whether the gui is currently in gaming mode More... | |
bool | myAmLoading |
information whether the gui is currently loading and the load-options shall be greyed out More... | |
FXFont * | myBoldFont |
Font used for popup-menu titles. More... | |
FXDockSite * | myBottomDock |
FXLabel * | myCartesianCoordinate |
Labels for the current cartesian and geo-coordinate. More... | |
FXHorizontalFrame * | myCartesianFrame |
std::string | myConfigPattern |
Input file pattern. More... | |
FXMenuPane * | myEditMenu |
MFXEventQue | myEvents |
List of got requests. More... | |
FXMenuPane * | myFileMenu |
the submenus More... | |
FXLabel * | myGeoCoordinate |
FXHorizontalFrame * | myGeoFrame |
FXGLVisual * | myGLVisual |
The gl-visual used. More... | |
FXMenuPane * | myHelpMenu |
FXEX::FXLCDLabel * | myLCDLabel |
the simulation step display More... | |
FXDockSite * | myLeftDock |
bool | myListInternal |
information whether the locator should list internal structures More... | |
GUILoadThread * | myLoadThread |
FXEX::FXThreadEvent | myLoadThreadEvent |
io-event with the load-thread More... | |
FXSplitter * | myMainSplitter |
The splitter that divides the main window into vies and the log window. More... | |
FXMDIClient * | myMDIClient |
The multi view panel. More... | |
FXMDIMenu * | myMDIMenu |
The menu used for the MDI-windows. More... | |
FXMenuBar * | myMenuBar |
The application menu bar. More... | |
FXToolBarShell * | myMenuBarDrag |
GUIMessageWindow * | myMessageWindow |
A window to display messages, warnings and error in. More... | |
std::string | myName |
FXRecentFiles | myRecentConfigs |
List of recent config files. More... | |
FXRecentFiles | myRecentNets |
List of recent nets. More... | |
FXDockSite * | myRightDock |
GUIRunThread * | myRunThread |
FXEX::FXThreadEvent | myRunThreadEvent |
io-event with the run-thread More... | |
FXMenuPane * | mySettingsMenu |
bool | myShowTimeAsHMS |
whether to show time as hour:minute:second More... | |
FXRealSpinDial * | mySimDelayTarget |
FXStatusBar * | myStatusbar |
The status bar. More... | |
std::vector< FXMDIChild * > | mySubWindows |
FXToolBar * | myToolBar1 |
The application tool bar. More... | |
FXToolBar * | myToolBar2 |
FXToolBar * | myToolBar3 |
FXToolBar * | myToolBar4 |
FXToolBar * | myToolBar5 |
FXToolBarShell * | myToolBarDrag1 |
for some menu detaching fun More... | |
FXToolBarShell * | myToolBarDrag2 |
FXToolBarShell * | myToolBarDrag3 |
FXToolBarShell * | myToolBarDrag4 |
FXToolBarShell * | myToolBarDrag5 |
FXDockSite * | myTopDock |
MFXMutex | myTrackerLock |
A lock to make the removal and addition of trackers secure. More... | |
std::vector< FXMainWindow * > | myTrackerWindows |
size_t | myViewNumber |
The current view number. More... | |
bool | myWasStarted |
FXMenuPane * | myWindowsMenu |
Static Protected Attributes | |
static GUIMainWindow * | myInstance = 0 |
the singleton window instance More... | |
Private Member Functions | |
void | closeAllWindows () |
void | load (const std::string &file, bool isNet, bool isReload=false) |
GUISUMOAbstractView * | openNewView (GUISUMOViewParent::ViewType vt=GUISUMOViewParent::VIEW_2D_OPENGL) |
void | updateTimeLCD (const SUMOTime time) |
updates the simulation time display More... | |
The main window of the SUMO-gui.
Beside views on the simulation, shown within a MDI-window, the main window may also have some further views (children) assigned which are stored within a separate list.
Definition at line 73 of file GUIApplicationWindow.h.
GUIApplicationWindow::GUIApplicationWindow | ( | FXApp * | a, |
const std::string & | configPattern | ||
) |
Constructor.
[in] | a | The FOX application |
[in] | configPattern | The pattern used for loading configurations |
Definition at line 146 of file GUIApplicationWindow.cpp.
References GUIIconSubSys::init().
|
virtual |
Destructor.
Definition at line 271 of file GUIApplicationWindow.cpp.
References GUIIconSubSys::close(), closeAllWindows(), MFXEventQue::empty(), myEditMenu, myEvents, myFileMenu, GUIMainWindow::myGLVisual, myHelpMenu, myLoadThread, myRunThread, mySettingsMenu, myToolBarDrag1, myWindowsMenu, MFXEventQue::pop(), GUIRunThread::prepareDestruction(), and MFXEventQue::top().
|
inlineprotected |
FOX needs this for static members.
Definition at line 249 of file GUIApplicationWindow.h.
|
inherited |
Adds a further child window to the list.
Definition at line 89 of file GUIMainWindow.cpp.
References GUIMainWindow::mySubWindows.
Referenced by GUIParameterTableWindow::closeBuilding(), and GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow().
|
inherited |
Definition at line 104 of file GUIMainWindow.cpp.
References MFXMutex::lock(), GUIMainWindow::myTrackerLock, GUIMainWindow::myTrackerWindows, and MFXMutex::unlock().
|
inlineprotectedvirtual |
Definition at line 232 of file GUIApplicationWindow.h.
Referenced by fillMenuBar().
|
protectedvirtual |
Builds the tool bar.
Definition at line 437 of file GUIApplicationWindow.cpp.
References GUIIconSubSys::getIcon(), ICON_MICROVIEW, ICON_OPEN_CONFIG, ICON_OPEN_NET, ICON_RELOAD, ICON_START, ICON_STEP, ICON_STOP, MID_DELAY_TOOGLE, MID_NEW_MICROVIEW, MID_NEW_OSGVIEW, MID_OPEN_CONFIG, MID_OPEN_NETWORK, MID_RELOAD, MID_SIMDELAY, MID_START, MID_STEP, MID_STOP, MID_TIME_TOOGLE, myLCDLabel, mySimDelayTarget, myToolBar1, myToolBar2, myToolBar3, myToolBar4, myToolBar5, myToolBarDrag1, myToolBarDrag2, myToolBarDrag3, myToolBarDrag4, myToolBarDrag5, GUIMainWindow::myTopDock, FXEX::FXLCDLabel::setGroove(), FXEX::FXLCDLabel::setHorizontal(), FX::FXRealSpinDial::setIncrements(), FX::FXRealSpinDial::setNumberFormat(), FX::FXRealSpinDial::setRange(), FXEX::FXLCDLabel::setText(), FXEX::FXLCDLabel::setThickness(), FX::FXRealSpinDial::setValue(), and FXEX::FXLCDLabel::setVertical().
Referenced by dependentBuild().
|
private |
this method closes all windows and deletes the current simulation
Definition at line 1065 of file GUIApplicationWindow.cpp.
References GUIMessageWindow::addSeparator(), GUISelectedStorage::clear(), GUITexturesHelper::clearTextures(), GUIRunThread::deleteSim(), MFXUtils::getTitleText(), gSelected, MFXMutex::lock(), GUIMainWindow::myCartesianCoordinate, GUIMainWindow::myGeoCoordinate, myLCDLabel, myMessageWindow, myRunThread, GUIMainWindow::mySubWindows, GUIMainWindow::myTrackerLock, GUIMainWindow::myTrackerWindows, FXEX::FXLCDLabel::setText(), MFXMutex::unlock(), and VERSION_STRING.
Referenced by handleEvent_SimulationEnded(), handleEvent_SimulationLoaded(), load(), onCmdClose(), and ~GUIApplicationWindow().
|
virtual |
Creates the main window (required by FOX)
Definition at line 240 of file GUIApplicationWindow.cpp.
References gCurrentFolder, myAlternateSimDelay, GUIMainWindow::myCartesianFrame, myEditMenu, myFileMenu, GUIMainWindow::myGeoFrame, myHelpMenu, myMenuBarDrag, mySettingsMenu, myShowTimeAsHMS, myToolBarDrag1, myToolBarDrag2, and myWindowsMenu.
void GUIApplicationWindow::dependentBuild | ( | bool | game | ) |
Definition at line 160 of file GUIApplicationWindow.cpp.
References buildToolBars(), fillMenuBar(), GUIIconSubSys::getIcon(), MFXUtils::getTitleText(), hadDependentBuild, ICON_APP, ID_LOADTHREAD_EVENT, ID_RUNTHREAD_EVENT, MID_WINDOW, GUIMainWindow::myCartesianCoordinate, GUIMainWindow::myCartesianFrame, myEvents, GUIMainWindow::myGeoCoordinate, GUIMainWindow::myGeoFrame, myLoadThread, myLoadThreadEvent, myMainSplitter, GUIMainWindow::myMDIClient, myMDIMenu, myMenuBar, myMenuBarDrag, myMessageWindow, myRunThread, myRunThreadEvent, mySimDelayTarget, GUIMainWindow::myStatusbar, myToolBar1, myToolBar2, myToolBar4, myToolBar5, GUIMainWindow::myTopDock, onCmdGaming(), FXEX::FXBaseObject::setSelector(), FXEX::FXBaseObject::setTarget(), and VERSION_STRING.
Referenced by main().
|
virtual |
Detaches the tool/menu bar.
Definition at line 300 of file GUIApplicationWindow.cpp.
References myMenuBarDrag, and myToolBarDrag1.
|
virtual |
Implements MFXInterThreadEventClient.
Definition at line 857 of file GUIApplicationWindow.cpp.
References MFXEventQue::empty(), EVENT_ERROR_OCCURED, EVENT_MESSAGE_OCCURED, EVENT_SIMULATION_ENDED, EVENT_SIMULATION_LOADED, EVENT_SIMULATION_STEP, EVENT_WARNING_OCCURED, GUIEvent::getOwnType(), handleEvent_Message(), handleEvent_SimulationEnded(), handleEvent_SimulationLoaded(), handleEvent_SimulationStep(), myEvents, myRunThread, myToolBar2, myToolBar3, MFXEventQue::pop(), GUIRunThread::simulationAvailable(), and MFXEventQue::top().
Referenced by onLoadThreadEvent(), and onRunThreadEvent().
|
protectedvirtual |
Builds the menu bar.
Definition at line 308 of file GUIApplicationWindow.cpp.
References addToWindowsMenu(), GUIIconSubSys::getIcon(), ICON_APP, ICON_CLOSE, ICON_FLAG, ICON_OPEN_CONFIG, ICON_OPEN_NET, ICON_RELOAD, ICON_WINDOWS_CASCADE, ICON_WINDOWS_TILE_HORI, ICON_WINDOWS_TILE_VERT, MID_ABOUT, MID_APPSETTINGS, MID_CLEARMESSAGEWINDOW, MID_CLOSE, MID_EDIT_BREAKPOINTS, MID_EDITCHOSEN, MID_GAMING, MID_LISTINTERNAL, MID_OPEN_CONFIG, MID_OPEN_NETWORK, MID_QUIT, MID_RECENTFILE, MID_RELOAD, myEditMenu, myFileMenu, myHelpMenu, GUIMainWindow::myMDIClient, myMenuBar, myMessageWindow, myRecentConfigs, myRecentNets, mySettingsMenu, GUIMainWindow::myStatusbar, myToolBar3, myToolBar4, and myWindowsMenu.
Referenced by dependentBuild().
|
inherited |
Definition at line 142 of file GUIMainWindow.cpp.
References GUIMainWindow::myBoldFont.
Referenced by GUIGlObject::buildPopupHeader().
|
virtual |
Implements GUIMainWindow.
Definition at line 1054 of file GUIApplicationWindow.cpp.
References GUIGlChildWindow::getBuildGLCanvas(), and GUIMainWindow::myMDIClient.
Referenced by openNewView().
|
inherited |
Definition at line 167 of file GUIMainWindow.cpp.
References GUIMainWindow::myCartesianCoordinate.
Referenced by GUISUMOAbstractView::updatePositionInformation().
|
virtual |
Implements GUIMainWindow.
Definition at line 1109 of file GUIApplicationWindow.cpp.
References MSNet::getCurrentTimeStep(), GUIRunThread::getNet(), and myRunThread.
FXCursor * GUIApplicationWindow::getDefaultCursor | ( | ) |
Definition at line 1103 of file GUIApplicationWindow.cpp.
|
inherited |
Definition at line 173 of file GUIMainWindow.cpp.
References GUIMainWindow::myGeoCoordinate.
Referenced by GUISUMOAbstractView::updatePositionInformation().
|
inherited |
Definition at line 161 of file GUIMainWindow.cpp.
References GUIMainWindow::myGLVisual.
Referenced by GUISUMOViewParent::init().
|
staticinherited |
Definition at line 179 of file GUIMainWindow.cpp.
References GUIMainWindow::myInstance.
Referenced by GUITexturesHelper::getTextureID().
|
inherited |
Definition at line 131 of file GUIMainWindow.cpp.
References GUIMainWindow::mySubWindows.
Referenced by TraCIServerAPI_GUI::getNamedView().
|
inherited |
Definition at line 121 of file GUIMainWindow.cpp.
References GUIMainWindow::mySubWindows.
void GUIApplicationWindow::handleEvent_Message | ( | GUIEvent * | e | ) |
Definition at line 991 of file GUIApplicationWindow.cpp.
References GUIMessageWindow::appendText(), GUIEvent_Message::getMsg(), GUIEvent::getOwnType(), and myMessageWindow.
Referenced by eventOccured().
void GUIApplicationWindow::handleEvent_SimulationEnded | ( | GUIEvent * | e | ) |
Definition at line 998 of file GUIApplicationWindow.cpp.
References closeAllWindows(), GUIEvent_SimulationEnded::getReason(), MSNet::getStateMessage(), GUIEvent_SimulationEnded::getTimeStep(), GUIGlobals::gQuitOnEnd, onCmdStop(), MSNet::SIMSTATE_ERROR_IN_SIM, and time2string().
Referenced by eventOccured().
void GUIApplicationWindow::handleEvent_SimulationLoaded | ( | GUIEvent * | e | ) |
Definition at line 891 of file GUIApplicationWindow.cpp.
References GUISUMOAbstractView::addDecals(), GUISettingsHandler::addSettings(), GUIMessageWindow::appendText(), closeAllWindows(), CMD_GET_GUI_VARIABLE, CMD_SET_GUI_VARIABLE, EVENT_ERROR_OCCURED, GUIGlobals::gBreakpoints, GUISettingsHandler::getBreakpoints(), MSNet::getCurrentTimeStep(), GUISettingsHandler::getDecals(), GUISettingsHandler::getDelay(), MFXUtils::getTitleText(), GUISettingsHandler::getViewType(), GUIGlobals::gQuitOnEnd, GUIGlobals::gRunAfterLoad, GUIRunThread::init(), GUIMainWindow::isGaming(), myAmLoading, GUIEvent_SimulationLoaded::myBegin, GUIEvent_SimulationLoaded::myEnd, GUIEvent_SimulationLoaded::myFile, myMessageWindow, GUIEvent_SimulationLoaded::myNet, GUIEvent_SimulationLoaded::myOsgView, myRunThread, GUIEvent_SimulationLoaded::mySettingsFiles, mySimDelayTarget, myViewNumber, myWasStarted, onCmdStart(), openNewView(), traci::TraCIServer::openSocket(), TraCIServerAPI_GUI::processGet(), TraCIServerAPI_GUI::processSet(), GUISettingsHandler::setSnapshots(), setStatusBarText(), FX::FXRealSpinDial::setValue(), GUISettingsHandler::setViewport(), GUIRunThread::simulationIsStartable(), updateTimeLCD(), VERSION_STRING, GUISUMOViewParent::VIEW_2D_OPENGL, GUISUMOViewParent::VIEW_3D_OSG, and WRITE_ERROR.
Referenced by eventOccured().
void GUIApplicationWindow::handleEvent_SimulationStep | ( | GUIEvent * | e | ) |
Definition at line 983 of file GUIApplicationWindow.cpp.
References MSNet::getCurrentTimeStep(), GUIRunThread::getNet(), myRunThread, GUIMainWindow::updateChildren(), and updateTimeLCD().
Referenced by eventOccured().
|
inlineinherited |
return whether the gui is in gaming mode
Definition at line 77 of file GUIMainWindow.h.
References GUIMainWindow::myAmGaming.
Referenced by handleEvent_SimulationLoaded(), GUISUMOViewParent::init(), GUISUMOAbstractView::onLeftBtnRelease(), GUISUMOAbstractView::onRightBtnRelease(), and GUIViewTraffic::setColorScheme().
|
inlineinherited |
return whether to list internal structures
Definition at line 82 of file GUIMainWindow.h.
References GUIMainWindow::myListInternal.
Referenced by GUISUMOViewParent::onCmdLocate().
|
private |
starts to load a simulation
Definition at line 1015 of file GUIApplicationWindow.cpp.
References closeAllWindows(), gSchemeStorage, GUILoadThread::load(), myAmLoading, myLoadThread, GUICompleteSchemeStorage::saveViewport(), and setStatusBarText().
Referenced by loadOnStartup(), onCmdOpenConfiguration(), onCmdOpenNetwork(), onCmdOpenRecent(), and onCmdReload().
void GUIApplicationWindow::loadOnStartup | ( | ) |
Somebody wants our clipped text.
Definition at line 834 of file GUIApplicationWindow.cpp.
References GUIUserIO::clipped.
Shows the about dialog.
Definition at line 825 of file GUIApplicationWindow.cpp.
References GUIDialog_AboutSUMO::create().
Opens the application settings menu (Settings->Application Settings...)
Definition at line 783 of file GUIApplicationWindow.cpp.
Called if the message window shall be cleared.
Definition at line 726 of file GUIApplicationWindow.cpp.
References GUIMessageWindow::clear(), and myMessageWindow.
Called on menu File->Close.
Definition at line 621 of file GUIApplicationWindow.cpp.
References closeAllWindows().
Called on "delay toggle".
Definition at line 717 of file GUIApplicationWindow.cpp.
References FX::FXRealSpinDial::getValue(), myAlternateSimDelay, mySimDelayTarget, and FX::FXRealSpinDial::setValue().
Called on menu Edit->Edit Breakpoints.
Definition at line 553 of file GUIApplicationWindow.cpp.
Called on menu Edit->Edit Chosen.
Definition at line 543 of file GUIApplicationWindow.cpp.
References gSelected.
Toggle gaming mode.
Definition at line 792 of file GUIApplicationWindow.cpp.
References GUIMainWindow::myAmGaming, mySimDelayTarget, and FX::FXRealSpinDial::setValue().
Referenced by dependentBuild().
Toggle listing of internal structures.
Definition at line 802 of file GUIApplicationWindow.cpp.
References GUIMainWindow::myListInternal.
Called if a new view shall be opened (2D view)
Definition at line 809 of file GUIApplicationWindow.cpp.
References openNewView(), and GUISUMOViewParent::VIEW_2D_OPENGL.
Called on menu File->Open Configuration.
Definition at line 562 of file GUIApplicationWindow.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), ICON_EMPTY, load(), myConfigPattern, and myRecentConfigs.
Called on menu File->Open Network.
Definition at line 582 of file GUIApplicationWindow.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), ICON_EMPTY, load(), and myRecentNets.
Called on opening a recent file.
Definition at line 609 of file GUIApplicationWindow.cpp.
References load(), myAmLoading, myRecentNets, and GUIMainWindow::myStatusbar.
Called by FOX if the application shall be closed.
Called either by FileMenu->Quit, the normal close-menu or SIGINT
Definition at line 528 of file GUIApplicationWindow.cpp.
References gCurrentFolder, myAlternateSimDelay, and myShowTimeAsHMS.
Called on "play".
Definition at line 666 of file GUIApplicationWindow.cpp.
References GUIRunThread::begin(), myRunThread, GUIMainWindow::myStatusbar, myWasStarted, GUIRunThread::resume(), and GUIRunThread::simulationAvailable().
Referenced by handleEvent_SimulationLoaded().
Called on "step".
Definition at line 690 of file GUIApplicationWindow.cpp.
References GUIRunThread::begin(), myRunThread, GUIMainWindow::myStatusbar, myWasStarted, GUIRunThread::simulationAvailable(), and GUIRunThread::singleStep().
Called on "stop".
Definition at line 683 of file GUIApplicationWindow.cpp.
References myRunThread, and GUIRunThread::stop().
Referenced by handleEvent_SimulationEnded().
Called on "time toggle".
Definition at line 707 of file GUIApplicationWindow.cpp.
References MSNet::getCurrentTimeStep(), GUIRunThread::getNet(), myRunThread, myShowTimeAsHMS, GUIRunThread::simulationAvailable(), and updateTimeLCD().
Called on an event from the loading thread.
Definition at line 843 of file GUIApplicationWindow.cpp.
References eventOccured().
Called on an event from the simulation thread.
Definition at line 850 of file GUIApplicationWindow.cpp.
References eventOccured().
Determines whether adding a view is enabled.
Definition at line 656 of file GUIApplicationWindow.cpp.
References myAmLoading, myRunThread, and GUIRunThread::simulationAvailable().
|
virtual |
Determines whether editing breakpoints is enabled.
Definition at line 773 of file GUIApplicationWindow.cpp.
References myAmLoading, myRunThread, and GUIRunThread::simulationAvailable().
Determines whether editing chosen is enabled.
Definition at line 763 of file GUIApplicationWindow.cpp.
References myAmLoading, myRunThread, and GUIRunThread::simulationAvailable().
Determines whether opening is enabled.
Definition at line 628 of file GUIApplicationWindow.cpp.
References myAmLoading.
Determines whether opening a recent file is enabled.
Definition at line 647 of file GUIApplicationWindow.cpp.
References myAmLoading.
Determines whether reloading is enabled.
Definition at line 637 of file GUIApplicationWindow.cpp.
References myAmLoading, myRunThread, and GUIRunThread::simulationAvailable().
Determines whether "play" is enabled.
Definition at line 733 of file GUIApplicationWindow.cpp.
References myAmLoading, myRunThread, and GUIRunThread::simulationIsStartable().
Determines whether "step" is enabled.
Definition at line 753 of file GUIApplicationWindow.cpp.
References myAmLoading, myRunThread, and GUIRunThread::simulationIsStepable().
Determines whether "stop" is enabled.
Definition at line 743 of file GUIApplicationWindow.cpp.
References myAmLoading, myRunThread, and GUIRunThread::simulationIsStopable().
|
private |
opens a new simulation display
Definition at line 1032 of file GUIApplicationWindow.cpp.
References GUIGlChildWindow::create(), getBuildGLCanvas(), GUIIconSubSys::getIcon(), GUIRunThread::getNet(), ICON_APP, GUISUMOViewParent::init(), GUIMainWindow::myMDIClient, myMDIMenu, myRunThread, GUIMainWindow::myStatusbar, myViewNumber, GUIRunThread::simulationAvailable(), and toString().
Referenced by handleEvent_SimulationLoaded(), and onCmdNewView().
|
inherited |
removes the given child window from the list
Definition at line 95 of file GUIMainWindow.cpp.
References GUIMainWindow::mySubWindows.
Referenced by GUIDialog_Breakpoints::~GUIDialog_Breakpoints(), GUIDialog_GLChosenEditor::~GUIDialog_GLChosenEditor(), GUIDialog_GLObjChooser::~GUIDialog_GLObjChooser(), GUIParameterTableWindow::~GUIParameterTableWindow(), GUIParameterTracker::~GUIParameterTracker(), GUISUMOViewParent::~GUISUMOViewParent(), and GUITLLogicPhasesTrackerWindow::~GUITLLogicPhasesTrackerWindow().
|
inherited |
Definition at line 112 of file GUIMainWindow.cpp.
References MFXMutex::lock(), GUIMainWindow::myTrackerLock, GUIMainWindow::myTrackerWindows, and MFXMutex::unlock().
|
virtual |
Reimplemented from GUIMainWindow.
Definition at line 1121 of file GUIApplicationWindow.cpp.
References GUIMainWindow::myStatusbar.
Referenced by handleEvent_SimulationLoaded(), and load().
|
inherited |
Definition at line 148 of file GUIMainWindow.cpp.
References MFXMutex::lock(), MID_SIMSTEP, GUIMainWindow::myMDIClient, GUIMainWindow::myTrackerLock, GUIMainWindow::myTrackerWindows, and MFXMutex::unlock().
Referenced by handleEvent_SimulationStep(), GUIDialog_GLChosenEditor::onCmdClear(), and GUIDialog_GLChosenEditor::onCmdDeselect().
|
private |
updates the simulation time display
Definition at line 1128 of file GUIApplicationWindow.cpp.
References GUIMainWindow::myAmGaming, myLCDLabel, myShowTimeAsHMS, FXEX::FXLCDLabel::setText(), snprintf, STEPS2TIME, SUMOReal, and TS.
Referenced by handleEvent_SimulationLoaded(), handleEvent_SimulationStep(), and onCmdTimeToggle().
|
protected |
Definition at line 328 of file GUIApplicationWindow.h.
Referenced by dependentBuild().
|
protected |
The alternate simulation delay for toggling.
Definition at line 296 of file GUIApplicationWindow.h.
Referenced by create(), onCmdDelayToggle(), and onCmdQuit().
|
protectedinherited |
information whether the gui is currently in gaming mode
Definition at line 114 of file GUIMainWindow.h.
Referenced by GUIMainWindow::isGaming(), onCmdGaming(), and updateTimeLCD().
|
protected |
information whether the gui is currently loading and the load-options shall be greyed out
Definition at line 275 of file GUIApplicationWindow.h.
Referenced by handleEvent_SimulationLoaded(), load(), onCmdOpenRecent(), onUpdAddView(), onUpdEditBreakpoints(), onUpdEditChosen(), onUpdOpen(), onUpdOpenRecent(), onUpdReload(), onUpdStart(), onUpdStep(), and onUpdStop().
|
protectedinherited |
Font used for popup-menu titles.
Definition at line 95 of file GUIMainWindow.h.
Referenced by GUIMainWindow::getBoldFont(), GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
|
protectedinherited |
Definition at line 111 of file GUIMainWindow.h.
Referenced by GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
|
protectedinherited |
Labels for the current cartesian and geo-coordinate.
Definition at line 104 of file GUIMainWindow.h.
Referenced by closeAllWindows(), dependentBuild(), and GUIMainWindow::getCartesianLabel().
|
protectedinherited |
Definition at line 105 of file GUIMainWindow.h.
Referenced by create(), and dependentBuild().
|
protected |
Input file pattern.
Definition at line 326 of file GUIApplicationWindow.h.
Referenced by onCmdOpenConfiguration().
|
protected |
Definition at line 278 of file GUIApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().
|
protected |
List of got requests.
Definition at line 299 of file GUIApplicationWindow.h.
Referenced by dependentBuild(), eventOccured(), and ~GUIApplicationWindow().
|
protected |
the submenus
Definition at line 278 of file GUIApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().
|
protectedinherited |
Definition at line 104 of file GUIMainWindow.h.
Referenced by closeAllWindows(), dependentBuild(), and GUIMainWindow::getGeoLabel().
|
protectedinherited |
Definition at line 105 of file GUIMainWindow.h.
Referenced by create(), and dependentBuild().
|
protectedinherited |
The gl-visual used.
Definition at line 109 of file GUIMainWindow.h.
Referenced by GUIMainWindow::getGLVisual(), and ~GUIApplicationWindow().
|
protected |
Definition at line 278 of file GUIApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().
|
staticprotectedinherited |
the singleton window instance
Definition at line 120 of file GUIMainWindow.h.
Referenced by GUIMainWindow::getInstance(), and GUIMainWindow::GUIMainWindow().
|
protected |
the simulation step display
Definition at line 311 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), closeAllWindows(), and updateTimeLCD().
|
protectedinherited |
Definition at line 111 of file GUIMainWindow.h.
Referenced by GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
|
protectedinherited |
information whether the locator should list internal structures
Definition at line 117 of file GUIMainWindow.h.
Referenced by GUIMainWindow::listInternal(), and onCmdListInternal().
|
protected |
the thread that loads simulations
Definition at line 263 of file GUIApplicationWindow.h.
Referenced by dependentBuild(), load(), and ~GUIApplicationWindow().
|
protected |
io-event with the load-thread
Definition at line 314 of file GUIApplicationWindow.h.
Referenced by dependentBuild().
|
protected |
The splitter that divides the main window into vies and the log window.
Definition at line 285 of file GUIApplicationWindow.h.
Referenced by dependentBuild().
|
protectedinherited |
The multi view panel.
Definition at line 98 of file GUIMainWindow.h.
Referenced by dependentBuild(), fillMenuBar(), getBuildGLCanvas(), openNewView(), and GUIMainWindow::updateChildren().
|
protected |
The menu used for the MDI-windows.
Definition at line 302 of file GUIApplicationWindow.h.
Referenced by dependentBuild(), and openNewView().
|
protected |
The application menu bar.
Definition at line 305 of file GUIApplicationWindow.h.
Referenced by dependentBuild(), and fillMenuBar().
|
protected |
Definition at line 288 of file GUIApplicationWindow.h.
Referenced by create(), dependentBuild(), and detach().
|
protected |
A window to display messages, warnings and error in.
Definition at line 282 of file GUIApplicationWindow.h.
Referenced by closeAllWindows(), dependentBuild(), fillMenuBar(), handleEvent_Message(), handleEvent_SimulationLoaded(), and onCmdClearMsgWindow().
|
protected |
the name of the simulation
Definition at line 260 of file GUIApplicationWindow.h.
|
protected |
List of recent config files.
Definition at line 320 of file GUIApplicationWindow.h.
Referenced by fillMenuBar(), and onCmdOpenConfiguration().
|
protected |
List of recent nets.
Definition at line 323 of file GUIApplicationWindow.h.
Referenced by fillMenuBar(), onCmdOpenNetwork(), and onCmdOpenRecent().
|
protectedinherited |
Definition at line 111 of file GUIMainWindow.h.
Referenced by GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
|
protected |
the thread that runs simulations
Definition at line 266 of file GUIApplicationWindow.h.
Referenced by closeAllWindows(), dependentBuild(), eventOccured(), getCurrentSimTime(), handleEvent_SimulationLoaded(), handleEvent_SimulationStep(), onCmdStart(), onCmdStep(), onCmdStop(), onCmdTimeToggle(), onUpdAddView(), onUpdEditBreakpoints(), onUpdEditChosen(), onUpdReload(), onUpdStart(), onUpdStep(), onUpdStop(), openNewView(), and ~GUIApplicationWindow().
|
protected |
io-event with the run-thread
Definition at line 317 of file GUIApplicationWindow.h.
Referenced by dependentBuild().
|
protected |
Definition at line 278 of file GUIApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().
|
protected |
whether to show time as hour:minute:second
Definition at line 331 of file GUIApplicationWindow.h.
Referenced by create(), onCmdQuit(), onCmdTimeToggle(), and updateTimeLCD().
|
protected |
Definition at line 293 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), dependentBuild(), handleEvent_SimulationLoaded(), onCmdDelayToggle(), and onCmdGaming().
|
protectedinherited |
The status bar.
Definition at line 101 of file GUIMainWindow.h.
Referenced by dependentBuild(), fillMenuBar(), onCmdOpenRecent(), onCmdStart(), onCmdStep(), openNewView(), and setStatusBarText().
|
protectedinherited |
Definition at line 89 of file GUIMainWindow.h.
Referenced by GUIMainWindow::addChild(), closeAllWindows(), GUIMainWindow::getViewByID(), GUIMainWindow::getViewIDs(), and GUIMainWindow::removeChild().
|
protected |
The application tool bar.
Definition at line 308 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), and dependentBuild().
|
protected |
Definition at line 308 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), dependentBuild(), and eventOccured().
|
protected |
Definition at line 308 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), eventOccured(), and fillMenuBar().
|
protected |
Definition at line 308 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), dependentBuild(), and fillMenuBar().
|
protected |
Definition at line 308 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), and dependentBuild().
|
protected |
for some menu detaching fun
Definition at line 288 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), create(), detach(), and ~GUIApplicationWindow().
|
protected |
Definition at line 288 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), and create().
|
protected |
Definition at line 288 of file GUIApplicationWindow.h.
Referenced by buildToolBars().
|
protected |
Definition at line 288 of file GUIApplicationWindow.h.
Referenced by buildToolBars().
|
protected |
Definition at line 288 of file GUIApplicationWindow.h.
Referenced by buildToolBars().
|
protectedinherited |
Definition at line 111 of file GUIMainWindow.h.
Referenced by buildToolBars(), dependentBuild(), GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
|
protectedinherited |
A lock to make the removal and addition of trackers secure.
Definition at line 92 of file GUIMainWindow.h.
Referenced by GUIMainWindow::addChild(), closeAllWindows(), GUIMainWindow::removeChild(), and GUIMainWindow::updateChildren().
|
protectedinherited |
Definition at line 90 of file GUIMainWindow.h.
Referenced by GUIMainWindow::addChild(), closeAllWindows(), GUIMainWindow::removeChild(), and GUIMainWindow::updateChildren().
|
protected |
The current view number.
Definition at line 272 of file GUIApplicationWindow.h.
Referenced by handleEvent_SimulationLoaded(), and openNewView().
|
protected |
the information whether the simulation was started before
Definition at line 269 of file GUIApplicationWindow.h.
Referenced by handleEvent_SimulationLoaded(), onCmdStart(), and onCmdStep().
|
protected |
Definition at line 278 of file GUIApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().