|
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. | |
| void | addChild (FXMainWindow *child, bool updateOnSimStep=true) |
| virtual void | create () |
| Creates the main window (required by FOX) | |
| void | dependentBuild (bool game) |
| virtual void | detach () |
| Detaches the tool/menu bar. | |
| 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. | |
| bool | isGaming () const |
| return whether the gui is in gaming mode | |
| bool | listInternal () const |
| return whether to list internal structures | |
| void | loadOnStartup (bool run) |
| void | removeChild (FXMDIChild *child) |
| removes the given child window from the list | |
| void | removeChild (FXMainWindow *child) |
| void | setStatusBarText (const std::string &) |
| void | updateChildren () |
| virtual | ~GUIApplicationWindow () |
| Destructor. | |
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 *) |
| long | onCmdOpenNetwork (FXObject *, FXSelector, void *) |
| long | onCmdReload (FXObject *, FXSelector, void *) |
| long | onCmdOpenRecent (FXObject *, FXSelector, void *) |
| long | onCmdClose (FXObject *, FXSelector, void *) |
| long | onCmdQuit (FXObject *, FXSelector, void *) |
| Called by FOX if the application shall be closed Called either by FileMenu->Quit, the normal close-menu or SIGINT. | |
| long | onCmdEditChosen (FXObject *, FXSelector, void *) |
| long | onCmdEditBreakpoints (FXObject *, FXSelector, void *) |
| long | onCmdAppSettings (FXObject *, FXSelector, void *) |
| Opens the application settings menu. | |
| long | onCmdGaming (FXObject *, FXSelector, void *) |
| Toggle gaming mode. | |
| long | onCmdListInternal (FXObject *, FXSelector, void *) |
| Toggle listing of internal structures. | |
| long | onCmdAbout (FXObject *, FXSelector, void *) |
| Shows the about dialog. | |
| long | onCmdStart (FXObject *, FXSelector, void *) |
| long | onCmdStop (FXObject *, FXSelector, void *) |
| long | onCmdStep (FXObject *, FXSelector, void *) |
| long | onCmdNewView (FXObject *, FXSelector, void *) |
| long | onUpdOpen (FXObject *, FXSelector, void *) |
| long | onUpdReload (FXObject *, FXSelector, void *) |
| long | onUpdOpenRecent (FXObject *, FXSelector, void *) |
| long | onUpdAddMicro (FXObject *, FXSelector, void *) |
| virtual long | onUpdStart (FXObject *, FXSelector, void *) |
| long | onUpdStop (FXObject *, FXSelector, void *) |
| long | onUpdStep (FXObject *, FXSelector, void *) |
| long | onUpdEditChosen (FXObject *sender, FXSelector, void *ptr) |
| virtual long | onUpdEditBreakpoints (FXObject *, FXSelector, void *) |
| long | onCmdClearMsgWindow (FXObject *, FXSelector, void *) |
| long | onLoadThreadEvent (FXObject *, FXSelector, void *) |
| long | onRunThreadEvent (FXObject *, FXSelector, void *) |
| long | onClipboardRequest (FXObject *sender, FXSelector sel, void *ptr) |
| Somebody wants our clipped text. | |
Protected Member Functions | |
| virtual void | addToWindowsMenu (FXMenuPane *) |
| virtual void | buildToolBars () |
| Builds the tool bar. | |
| virtual void | fillMenuBar () |
| Builds the menu bar. | |
| GUIApplicationWindow () | |
| FOX needs this for static members. | |
Protected Attributes | |
| bool | hadDependentBuild |
| bool | myAmGaming |
| information whether the gui is currently in gaming mode | |
| bool | myAmLoading |
| information whether the gui is currently loading and the load-options shall be greyed out | |
| FXFont * | myBoldFont |
| Font used for popup-menu titles. | |
| FXDockSite * | myBottomDock |
| FXLabel * | myCartesianCoordinate |
| Labels for the current cartesian and geo-coordinate. | |
| FXHorizontalFrame * | myCartesianFrame |
| std::string | myConfigPattern |
| Input file pattern. | |
| FXMenuPane * | myEditMenu |
| MFXEventQue | myEvents |
| List of got requests. | |
| FXMenuPane * | myFileMenu |
| the submenus | |
| FXLabel * | myGeoCoordinate |
| FXHorizontalFrame * | myGeoFrame |
| FXGLVisual * | myGLVisual |
| The gl-visual used. | |
| FXMenuPane * | myHelpMenu |
| FXEX::FXLCDLabel * | myLCDLabel |
| the simulation step display | |
| FXDockSite * | myLeftDock |
| bool | myListInternal |
| information whether the locator should list internal structures | |
| GUILoadThread * | myLoadThread |
| FXEX::FXThreadEvent | myLoadThreadEvent |
| io-event with the load-thread | |
| FXSplitter * | myMainSplitter |
| The splitter that divides the main window into vies and the log window. | |
| FXMDIClient * | myMDIClient |
| The multi view panel. | |
| FXMDIMenu * | myMDIMenu |
| The menu used for the MDI-windows. | |
| FXMenuBar * | myMenuBar |
| The application menu bar. | |
| FXToolBarShell * | myMenuBarDrag |
| GUIMessageWindow * | myMessageWindow |
| A window to display messages, warnings and error in. | |
| std::string | myName |
| FXRecentFiles | myRecentConfigs |
| List of recent config files. | |
| FXRecentFiles | myRecentNets |
| List of recent nets. | |
| FXDockSite * | myRightDock |
| bool | myRunAtBegin |
| GUIRunThread * | myRunThread |
| FXEX::FXThreadEvent | myRunThreadEvent |
| io-event with the run-thread | |
| FXMenuPane * | mySettingsMenu |
| FXdouble | mySimDelay |
| The simulation delay. | |
| FXRealSpinDial * | mySimDelayTarget |
| FXStatusBar * | myStatusbar |
| The status bar. | |
| std::vector< FXMDIChild * > | mySubWindows |
| FXToolBar * | myToolBar1 |
| The application tool bar. | |
| FXToolBar * | myToolBar2 |
| FXToolBar * | myToolBar3 |
| FXToolBar * | myToolBar4 |
| FXToolBar * | myToolBar5 |
| FXToolBarShell * | myToolBarDrag1 |
| for some menu detaching fun | |
| FXToolBarShell * | myToolBarDrag2 |
| FXToolBarShell * | myToolBarDrag3 |
| FXToolBarShell * | myToolBarDrag4 |
| FXToolBarShell * | myToolBarDrag5 |
| FXDockSite * | myTopDock |
| MFXMutex | myTrackerLock |
| A lock to make the removal and addition of trackers secure. | |
| std::vector< FXMainWindow * > | myTrackerWindows |
| size_t | myViewNumber |
| The current view number. | |
| bool | myWasStarted |
| FXMenuPane * | myWindowsMenu |
Private Member Functions | |
| void | closeAllWindows () |
| void | load (const std::string &file, bool isNet, bool isReload=false) |
| GUISUMOAbstractView * | openNewView () |
The main window of the SUMO-gui.
Contains the file opening support and a canvas to display the simulation representations in.
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 76 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 139 of file GUIApplicationWindow.cpp.
References GUIIconSubSys::init().
| GUIApplicationWindow::~GUIApplicationWindow | ( | ) | [virtual] |
Destructor.
Definition at line 259 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().
| GUIApplicationWindow::GUIApplicationWindow | ( | ) | [inline, protected] |
FOX needs this for static members.
Definition at line 190 of file GUIApplicationWindow.h.
| void GUIMainWindow::addChild | ( | FXMDIChild * | child, |
| bool | updateOnSimStep = true |
||
| ) | [inherited] |
Adds a further child window to the list.
Definition at line 76 of file GUIMainWindow.cpp.
References GUIMainWindow::mySubWindows.
Referenced by GUIParameterTableWindow::closeBuilding(), and GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow().
| void GUIMainWindow::addChild | ( | FXMainWindow * | child, |
| bool | updateOnSimStep = true |
||
| ) | [inherited] |
Definition at line 91 of file GUIMainWindow.cpp.
References MFXMutex::lock(), GUIMainWindow::myTrackerLock, GUIMainWindow::myTrackerWindows, and MFXMutex::unlock().
| virtual void GUIApplicationWindow::addToWindowsMenu | ( | FXMenuPane * | ) | [inline, protected, virtual] |
Definition at line 176 of file GUIApplicationWindow.h.
Referenced by fillMenuBar().
| void GUIApplicationWindow::buildToolBars | ( | ) | [protected, virtual] |
Builds the tool bar.
Definition at line 425 of file GUIApplicationWindow.cpp.
References GUIIconSubSys::getIcon(), ICON_MICROVIEW, ICON_OPEN_CONFIG, ICON_OPEN_NET, ICON_RELOAD, ICON_START, ICON_STEP, ICON_STOP, MID_NEW_MICROVIEW, MID_OPEN_CONFIG, MID_OPEN_NETWORK, MID_RELOAD, MID_SIMDELAY, MID_START, MID_STEP, MID_STOP, myLCDLabel, mySimDelayTarget, myToolBar1, myToolBar2, myToolBar3, myToolBar4, myToolBar5, myToolBarDrag1, myToolBarDrag2, myToolBarDrag3, myToolBarDrag4, myToolBarDrag5, GUIMainWindow::myTopDock, FXEX::FXLCDLabel::setGroove(), FXEX::FXLCDLabel::setHorizontal(), FXEX::FXLCDLabel::setText(), FXEX::FXLCDLabel::setThickness(), and FXEX::FXLCDLabel::setVertical().
Referenced by dependentBuild().
| void GUIApplicationWindow::closeAllWindows | ( | ) | [private] |
this method closes all windows and deletes the current simulation
Definition at line 1011 of file GUIApplicationWindow.cpp.
References GUIMessageWindow::addSeparator(), GUISelectedStorage::clear(), 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().
| void GUIApplicationWindow::create | ( | ) | [virtual] |
Creates the main window (required by FOX)
Definition at line 230 of file GUIApplicationWindow.cpp.
References gCurrentFolder, GUIMainWindow::myCartesianFrame, myEditMenu, myFileMenu, GUIMainWindow::myGeoFrame, myHelpMenu, myMenuBarDrag, mySettingsMenu, myToolBarDrag1, myToolBarDrag2, and myWindowsMenu.
| void GUIApplicationWindow::dependentBuild | ( | bool | game | ) |
Definition at line 150 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().
| void GUIApplicationWindow::detach | ( | ) | [virtual] |
Detaches the tool/menu bar.
Definition at line 288 of file GUIApplicationWindow.cpp.
References myMenuBarDrag, and myToolBarDrag1.
| void GUIApplicationWindow::eventOccured | ( | ) | [virtual] |
Implements MFXInterThreadEventClient.
Definition at line 814 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, myToolBar2, myToolBar3, MFXEventQue::pop(), and MFXEventQue::top().
Referenced by onLoadThreadEvent(), and onRunThreadEvent().
| void GUIApplicationWindow::fillMenuBar | ( | ) | [protected, virtual] |
Builds the menu bar.
Definition at line 296 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().
| FXFont * GUIMainWindow::getBoldFont | ( | ) | [inherited] |
Definition at line 129 of file GUIMainWindow.cpp.
References GUIMainWindow::myBoldFont.
Referenced by GUIGlObject::buildPopupHeader().
| FXGLCanvas * GUIApplicationWindow::getBuildGLCanvas | ( | ) | const [virtual] |
Implements GUIMainWindow.
Definition at line 1000 of file GUIApplicationWindow.cpp.
References GUIGlChildWindow::getBuildGLCanvas(), and GUIMainWindow::myMDIClient.
Referenced by openNewView().
| FXLabel & GUIMainWindow::getCartesianLabel | ( | ) | [inherited] |
Definition at line 154 of file GUIMainWindow.cpp.
References GUIMainWindow::myCartesianCoordinate.
Referenced by GUISUMOAbstractView::updatePositionInformation().
| SUMOTime GUIApplicationWindow::getCurrentSimTime | ( | ) | const [virtual] |
Implements GUIMainWindow.
Definition at line 1054 of file GUIApplicationWindow.cpp.
References MSNet::getCurrentTimeStep(), GUIRunThread::getNet(), and myRunThread.
| FXCursor * GUIApplicationWindow::getDefaultCursor | ( | ) |
Definition at line 1048 of file GUIApplicationWindow.cpp.
| FXLabel & GUIMainWindow::getGeoLabel | ( | ) | [inherited] |
Definition at line 160 of file GUIMainWindow.cpp.
References GUIMainWindow::myGeoCoordinate.
Referenced by GUISUMOAbstractView::updatePositionInformation().
| FXGLVisual * GUIMainWindow::getGLVisual | ( | ) | const [inherited] |
Definition at line 148 of file GUIMainWindow.cpp.
References GUIMainWindow::myGLVisual.
Referenced by GUISUMOViewParent::init().
| FXMDIChild * GUIMainWindow::getViewByID | ( | const std::string & | id | ) | const [inherited] |
Definition at line 118 of file GUIMainWindow.cpp.
References GUIMainWindow::mySubWindows.
Referenced by TraCIServerAPI_GUI::getNamedView().
| std::vector< std::string > GUIMainWindow::getViewIDs | ( | ) | const [inherited] |
Definition at line 108 of file GUIMainWindow.cpp.
References GUIMainWindow::mySubWindows.
| void GUIApplicationWindow::handleEvent_Message | ( | GUIEvent * | e | ) |
Definition at line 930 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 937 of file GUIApplicationWindow.cpp.
References closeAllWindows(), GUIEvent_SimulationEnded::getReason(), MSNet::getStateMessage(), GUIEvent_SimulationEnded::getTimeStep(), gQuitOnEnd, onCmdStop(), MSNet::SIMSTATE_ERROR_IN_SIM, text(), and time2string().
Referenced by eventOccured().
| void GUIApplicationWindow::handleEvent_SimulationLoaded | ( | GUIEvent * | e | ) |
Definition at line 846 of file GUIApplicationWindow.cpp.
References GUISUMOAbstractView::addDecals(), GUISettingsHandler::addSettings(), GUIMessageWindow::appendText(), closeAllWindows(), CMD_GET_GUI_VARIABLE, CMD_SET_GUI_VARIABLE, EVENT_ERROR_OCCURED, MSNet::getCurrentTimeStep(), GUISettingsHandler::getDecals(), GUISettingsHandler::getDelay(), MFXUtils::getTitleText(), gQuitOnEnd, GUIRunThread::init(), GUIMainWindow::isGaming(), GUIMainWindow::myAmGaming, myAmLoading, GUIEvent_SimulationLoaded::myBegin, GUIEvent_SimulationLoaded::myEnd, GUIEvent_SimulationLoaded::myFile, myLCDLabel, myMessageWindow, GUIEvent_SimulationLoaded::myNet, GUIMainWindow::myRunAtBegin, myRunThread, GUIEvent_SimulationLoaded::mySettingsFile, mySimDelayTarget, myViewNumber, myWasStarted, onCmdStart(), openNewView(), traci::TraCIServer::openSocket(), TraCIServerAPI_GUI::processGet(), TraCIServerAPI_GUI::processSet(), GUISettingsHandler::setSnapshots(), setStatusBarText(), FXEX::FXLCDLabel::setText(), GUISettingsHandler::setViewport(), GUIRunThread::simulationIsStartable(), time2string(), TS, VERSION_STRING, and WRITE_ERROR.
Referenced by eventOccured().
| void GUIApplicationWindow::handleEvent_SimulationStep | ( | GUIEvent * | e | ) |
Definition at line 917 of file GUIApplicationWindow.cpp.
References MSNet::getCurrentTimeStep(), GUIRunThread::getNet(), GUIMainWindow::myAmGaming, myLCDLabel, myRunThread, FXEX::FXLCDLabel::setText(), time2string(), TS, and GUIMainWindow::updateChildren().
Referenced by eventOccured().
| bool GUIMainWindow::isGaming | ( | ) | const [inline, inherited] |
return whether the gui is in gaming mode
Definition at line 76 of file GUIMainWindow.h.
References GUIMainWindow::myAmGaming.
Referenced by handleEvent_SimulationLoaded(), GUISUMOViewParent::init(), GUISUMOAbstractView::onLeftBtnRelease(), GUISUMOAbstractView::onRightBtnRelease(), and GUIViewTraffic::setColorScheme().
| bool GUIMainWindow::listInternal | ( | ) | const [inline, inherited] |
return whether to list internal structures
Definition at line 81 of file GUIMainWindow.h.
References GUIMainWindow::myListInternal.
Referenced by GUISUMOViewParent::onCmdLocate().
| void GUIApplicationWindow::load | ( | const std::string & | file, |
| bool | isNet, | ||
| bool | isReload = false |
||
| ) | [private] |
starts to load a simulation
Definition at line 958 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 | ( | bool | run | ) |
Definition at line 1060 of file GUIApplicationWindow.cpp.
References load(), and GUIMainWindow::myRunAtBegin.
Referenced by main().
| long GUIApplicationWindow::onClipboardRequest | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Somebody wants our clipped text.
Definition at line 791 of file GUIApplicationWindow.cpp.
References GUIUserIO::clipped.
| long GUIApplicationWindow::onCmdAbout | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Shows the about dialog.
Definition at line 782 of file GUIApplicationWindow.cpp.
References GUIDialog_AboutSUMO::create().
| long GUIApplicationWindow::onCmdAppSettings | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Opens the application settings menu.
Definition at line 749 of file GUIApplicationWindow.cpp.
| long GUIApplicationWindow::onCmdClearMsgWindow | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 692 of file GUIApplicationWindow.cpp.
References GUIMessageWindow::clear(), and myMessageWindow.
| long GUIApplicationWindow::onCmdClose | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 606 of file GUIApplicationWindow.cpp.
References closeAllWindows().
| long GUIApplicationWindow::onCmdEditBreakpoints | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 537 of file GUIApplicationWindow.cpp.
| long GUIApplicationWindow::onCmdEditChosen | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 527 of file GUIApplicationWindow.cpp.
References gSelected.
| long GUIApplicationWindow::onCmdGaming | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Toggle gaming mode.
Definition at line 758 of file GUIApplicationWindow.cpp.
References GUIMainWindow::myAmGaming, and mySimDelayTarget.
Referenced by dependentBuild().
| long GUIApplicationWindow::onCmdListInternal | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Toggle listing of internal structures.
Definition at line 768 of file GUIApplicationWindow.cpp.
References GUIMainWindow::myListInternal.
| long GUIApplicationWindow::onCmdNewView | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 775 of file GUIApplicationWindow.cpp.
References openNewView().
| long GUIApplicationWindow::onCmdOpenConfiguration | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 547 of file GUIApplicationWindow.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), ICON_EMPTY, load(), myConfigPattern, and myRecentConfigs.
| long GUIApplicationWindow::onCmdOpenNetwork | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 567 of file GUIApplicationWindow.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), ICON_EMPTY, load(), and myRecentNets.
| long GUIApplicationWindow::onCmdOpenRecent | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | data | ||
| ) |
Definition at line 594 of file GUIApplicationWindow.cpp.
References load(), myAmLoading, myRecentNets, and GUIMainWindow::myStatusbar.
| long GUIApplicationWindow::onCmdQuit | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called by FOX if the application shall be closed Called either by FileMenu->Quit, the normal close-menu or SIGINT.
Definition at line 510 of file GUIApplicationWindow.cpp.
References gCurrentFolder.
| long GUIApplicationWindow::onCmdReload | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 587 of file GUIApplicationWindow.cpp.
References load().
| long GUIApplicationWindow::onCmdStart | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 651 of file GUIApplicationWindow.cpp.
References GUIRunThread::begin(), myRunThread, GUIMainWindow::myStatusbar, myWasStarted, GUIRunThread::resume(), and GUIRunThread::simulationAvailable().
Referenced by handleEvent_SimulationLoaded().
| long GUIApplicationWindow::onCmdStep | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 675 of file GUIApplicationWindow.cpp.
References GUIRunThread::begin(), myRunThread, GUIMainWindow::myStatusbar, myWasStarted, GUIRunThread::simulationAvailable(), and GUIRunThread::singleStep().
| long GUIApplicationWindow::onCmdStop | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 668 of file GUIApplicationWindow.cpp.
References myRunThread, and GUIRunThread::stop().
Referenced by handleEvent_SimulationEnded().
| long GUIApplicationWindow::onLoadThreadEvent | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 800 of file GUIApplicationWindow.cpp.
References eventOccured().
| long GUIApplicationWindow::onRunThreadEvent | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 807 of file GUIApplicationWindow.cpp.
References eventOccured().
| long GUIApplicationWindow::onUpdAddMicro | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 641 of file GUIApplicationWindow.cpp.
References myAmLoading, myRunThread, and GUIRunThread::simulationAvailable().
| long GUIApplicationWindow::onUpdEditBreakpoints | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | ptr | ||
| ) | [virtual] |
Definition at line 739 of file GUIApplicationWindow.cpp.
References myAmLoading, myRunThread, and GUIRunThread::simulationAvailable().
| long GUIApplicationWindow::onUpdEditChosen | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 729 of file GUIApplicationWindow.cpp.
References myAmLoading, myRunThread, and GUIRunThread::simulationAvailable().
| long GUIApplicationWindow::onUpdOpen | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 613 of file GUIApplicationWindow.cpp.
References myAmLoading.
| long GUIApplicationWindow::onUpdOpenRecent | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 632 of file GUIApplicationWindow.cpp.
References myAmLoading.
| long GUIApplicationWindow::onUpdReload | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 622 of file GUIApplicationWindow.cpp.
References myAmLoading, myRunThread, and GUIRunThread::simulationAvailable().
| long GUIApplicationWindow::onUpdStart | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | ptr | ||
| ) | [virtual] |
Definition at line 699 of file GUIApplicationWindow.cpp.
References myAmLoading, myRunThread, and GUIRunThread::simulationIsStartable().
| long GUIApplicationWindow::onUpdStep | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 719 of file GUIApplicationWindow.cpp.
References myAmLoading, myRunThread, and GUIRunThread::simulationIsStepable().
| long GUIApplicationWindow::onUpdStop | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 709 of file GUIApplicationWindow.cpp.
References myAmLoading, myRunThread, and GUIRunThread::simulationIsStopable().
| GUISUMOAbstractView * GUIApplicationWindow::openNewView | ( | ) | [private] |
opens a new simulation display
Definition at line 976 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().
| void GUIMainWindow::removeChild | ( | FXMainWindow * | child | ) | [inherited] |
Definition at line 99 of file GUIMainWindow.cpp.
References MFXMutex::lock(), GUIMainWindow::myTrackerLock, GUIMainWindow::myTrackerWindows, and MFXMutex::unlock().
| void GUIMainWindow::removeChild | ( | FXMDIChild * | child | ) | [inherited] |
removes the given child window from the list
Definition at line 82 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().
| void GUIApplicationWindow::setStatusBarText | ( | const std::string & | text | ) | [virtual] |
Reimplemented from GUIMainWindow.
Definition at line 1067 of file GUIApplicationWindow.cpp.
References GUIMainWindow::myStatusbar.
Referenced by handleEvent_SimulationLoaded(), and load().
| void GUIMainWindow::updateChildren | ( | ) | [inherited] |
Definition at line 135 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().
bool GUIApplicationWindow::hadDependentBuild [protected] |
Definition at line 269 of file GUIApplicationWindow.h.
Referenced by dependentBuild().
bool GUIMainWindow::myAmGaming [protected, inherited] |
information whether the gui is currently in gaming mode
Definition at line 113 of file GUIMainWindow.h.
Referenced by handleEvent_SimulationLoaded(), handleEvent_SimulationStep(), GUIMainWindow::isGaming(), and onCmdGaming().
bool GUIApplicationWindow::myAmLoading [protected] |
information whether the gui is currently loading and the load-options shall be greyed out
Definition at line 216 of file GUIApplicationWindow.h.
Referenced by handleEvent_SimulationLoaded(), load(), onCmdOpenRecent(), onUpdAddMicro(), onUpdEditBreakpoints(), onUpdEditChosen(), onUpdOpen(), onUpdOpenRecent(), onUpdReload(), onUpdStart(), onUpdStep(), and onUpdStop().
FXFont* GUIMainWindow::myBoldFont [protected, inherited] |
Font used for popup-menu titles.
Definition at line 92 of file GUIMainWindow.h.
Referenced by GUIMainWindow::getBoldFont(), GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
FXDockSite * GUIMainWindow::myBottomDock [protected, inherited] |
Definition at line 108 of file GUIMainWindow.h.
Referenced by GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
FXLabel* GUIMainWindow::myCartesianCoordinate [protected, inherited] |
Labels for the current cartesian and geo-coordinate.
Definition at line 101 of file GUIMainWindow.h.
Referenced by closeAllWindows(), dependentBuild(), and GUIMainWindow::getCartesianLabel().
FXHorizontalFrame* GUIMainWindow::myCartesianFrame [protected, inherited] |
Definition at line 102 of file GUIMainWindow.h.
Referenced by create(), and dependentBuild().
std::string GUIApplicationWindow::myConfigPattern [protected] |
Input file pattern.
Definition at line 267 of file GUIApplicationWindow.h.
Referenced by onCmdOpenConfiguration().
FXMenuPane * GUIApplicationWindow::myEditMenu [protected] |
Definition at line 219 of file GUIApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().
MFXEventQue GUIApplicationWindow::myEvents [protected] |
List of got requests.
Definition at line 240 of file GUIApplicationWindow.h.
Referenced by dependentBuild(), eventOccured(), and ~GUIApplicationWindow().
FXMenuPane* GUIApplicationWindow::myFileMenu [protected] |
the submenus
Definition at line 219 of file GUIApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().
FXLabel * GUIMainWindow::myGeoCoordinate [protected, inherited] |
Definition at line 101 of file GUIMainWindow.h.
Referenced by closeAllWindows(), dependentBuild(), and GUIMainWindow::getGeoLabel().
FXHorizontalFrame * GUIMainWindow::myGeoFrame [protected, inherited] |
Definition at line 102 of file GUIMainWindow.h.
Referenced by create(), and dependentBuild().
FXGLVisual* GUIMainWindow::myGLVisual [protected, inherited] |
The gl-visual used.
Definition at line 106 of file GUIMainWindow.h.
Referenced by GUIMainWindow::getGLVisual(), and ~GUIApplicationWindow().
FXMenuPane * GUIApplicationWindow::myHelpMenu [protected] |
Definition at line 219 of file GUIApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().
FXEX::FXLCDLabel* GUIApplicationWindow::myLCDLabel [protected] |
the simulation step display
Definition at line 252 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), closeAllWindows(), handleEvent_SimulationLoaded(), and handleEvent_SimulationStep().
FXDockSite * GUIMainWindow::myLeftDock [protected, inherited] |
Definition at line 108 of file GUIMainWindow.h.
Referenced by GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
bool GUIMainWindow::myListInternal [protected, inherited] |
information whether the locator should list internal structures
Definition at line 116 of file GUIMainWindow.h.
Referenced by GUIMainWindow::listInternal(), and onCmdListInternal().
GUILoadThread* GUIApplicationWindow::myLoadThread [protected] |
the thread that loads simulations
Definition at line 204 of file GUIApplicationWindow.h.
Referenced by dependentBuild(), load(), and ~GUIApplicationWindow().
io-event with the load-thread
Definition at line 255 of file GUIApplicationWindow.h.
Referenced by dependentBuild().
FXSplitter* GUIApplicationWindow::myMainSplitter [protected] |
The splitter that divides the main window into vies and the log window.
Definition at line 226 of file GUIApplicationWindow.h.
Referenced by dependentBuild().
FXMDIClient* GUIMainWindow::myMDIClient [protected, inherited] |
The multi view panel.
Definition at line 95 of file GUIMainWindow.h.
Referenced by dependentBuild(), fillMenuBar(), getBuildGLCanvas(), openNewView(), and GUIMainWindow::updateChildren().
FXMDIMenu* GUIApplicationWindow::myMDIMenu [protected] |
The menu used for the MDI-windows.
Definition at line 243 of file GUIApplicationWindow.h.
Referenced by dependentBuild(), and openNewView().
FXMenuBar* GUIApplicationWindow::myMenuBar [protected] |
The application menu bar.
Definition at line 246 of file GUIApplicationWindow.h.
Referenced by dependentBuild(), and fillMenuBar().
FXToolBarShell * GUIApplicationWindow::myMenuBarDrag [protected] |
Definition at line 229 of file GUIApplicationWindow.h.
Referenced by create(), dependentBuild(), and detach().
GUIMessageWindow* GUIApplicationWindow::myMessageWindow [protected] |
A window to display messages, warnings and error in.
Definition at line 223 of file GUIApplicationWindow.h.
Referenced by closeAllWindows(), dependentBuild(), fillMenuBar(), handleEvent_Message(), handleEvent_SimulationLoaded(), and onCmdClearMsgWindow().
std::string GUIApplicationWindow::myName [protected] |
the name of the simulation
Definition at line 201 of file GUIApplicationWindow.h.
FXRecentFiles GUIApplicationWindow::myRecentConfigs [protected] |
List of recent config files.
Definition at line 261 of file GUIApplicationWindow.h.
Referenced by fillMenuBar(), and onCmdOpenConfiguration().
FXRecentFiles GUIApplicationWindow::myRecentNets [protected] |
List of recent nets.
Definition at line 264 of file GUIApplicationWindow.h.
Referenced by fillMenuBar(), onCmdOpenNetwork(), and onCmdOpenRecent().
FXDockSite * GUIMainWindow::myRightDock [protected, inherited] |
Definition at line 108 of file GUIMainWindow.h.
Referenced by GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
bool GUIMainWindow::myRunAtBegin [protected, inherited] |
Definition at line 110 of file GUIMainWindow.h.
Referenced by handleEvent_SimulationLoaded(), and loadOnStartup().
GUIRunThread* GUIApplicationWindow::myRunThread [protected] |
the thread that runs simulations
Definition at line 207 of file GUIApplicationWindow.h.
Referenced by closeAllWindows(), dependentBuild(), getCurrentSimTime(), handleEvent_SimulationLoaded(), handleEvent_SimulationStep(), onCmdStart(), onCmdStep(), onCmdStop(), onUpdAddMicro(), onUpdEditBreakpoints(), onUpdEditChosen(), onUpdReload(), onUpdStart(), onUpdStep(), onUpdStop(), openNewView(), and ~GUIApplicationWindow().
io-event with the run-thread
Definition at line 258 of file GUIApplicationWindow.h.
Referenced by dependentBuild().
FXMenuPane * GUIApplicationWindow::mySettingsMenu [protected] |
Definition at line 219 of file GUIApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().
FXdouble GUIApplicationWindow::mySimDelay [protected] |
The simulation delay.
Definition at line 237 of file GUIApplicationWindow.h.
FXRealSpinDial* GUIApplicationWindow::mySimDelayTarget [protected] |
Definition at line 234 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), dependentBuild(), handleEvent_SimulationLoaded(), and onCmdGaming().
FXStatusBar* GUIMainWindow::myStatusbar [protected, inherited] |
The status bar.
Definition at line 98 of file GUIMainWindow.h.
Referenced by dependentBuild(), fillMenuBar(), onCmdOpenRecent(), onCmdStart(), onCmdStep(), openNewView(), and setStatusBarText().
std::vector<FXMDIChild*> GUIMainWindow::mySubWindows [protected, inherited] |
Definition at line 86 of file GUIMainWindow.h.
Referenced by GUIMainWindow::addChild(), closeAllWindows(), GUIMainWindow::getViewByID(), GUIMainWindow::getViewIDs(), and GUIMainWindow::removeChild().
FXToolBar* GUIApplicationWindow::myToolBar1 [protected] |
The application tool bar.
Definition at line 249 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), and dependentBuild().
FXToolBar * GUIApplicationWindow::myToolBar2 [protected] |
Definition at line 249 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), dependentBuild(), and eventOccured().
FXToolBar * GUIApplicationWindow::myToolBar3 [protected] |
Definition at line 249 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), eventOccured(), and fillMenuBar().
FXToolBar * GUIApplicationWindow::myToolBar4 [protected] |
Definition at line 249 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), dependentBuild(), and fillMenuBar().
FXToolBar * GUIApplicationWindow::myToolBar5 [protected] |
Definition at line 249 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), and dependentBuild().
FXToolBarShell* GUIApplicationWindow::myToolBarDrag1 [protected] |
for some menu detaching fun
Definition at line 229 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), create(), detach(), and ~GUIApplicationWindow().
FXToolBarShell * GUIApplicationWindow::myToolBarDrag2 [protected] |
Definition at line 229 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), and create().
FXToolBarShell * GUIApplicationWindow::myToolBarDrag3 [protected] |
Definition at line 229 of file GUIApplicationWindow.h.
Referenced by buildToolBars().
FXToolBarShell * GUIApplicationWindow::myToolBarDrag4 [protected] |
Definition at line 229 of file GUIApplicationWindow.h.
Referenced by buildToolBars().
FXToolBarShell * GUIApplicationWindow::myToolBarDrag5 [protected] |
Definition at line 229 of file GUIApplicationWindow.h.
Referenced by buildToolBars().
FXDockSite* GUIMainWindow::myTopDock [protected, inherited] |
Definition at line 108 of file GUIMainWindow.h.
Referenced by buildToolBars(), dependentBuild(), GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
MFXMutex GUIMainWindow::myTrackerLock [protected, inherited] |
A lock to make the removal and addition of trackers secure.
Definition at line 89 of file GUIMainWindow.h.
Referenced by GUIMainWindow::addChild(), closeAllWindows(), GUIMainWindow::removeChild(), and GUIMainWindow::updateChildren().
std::vector<FXMainWindow*> GUIMainWindow::myTrackerWindows [protected, inherited] |
Definition at line 87 of file GUIMainWindow.h.
Referenced by GUIMainWindow::addChild(), closeAllWindows(), GUIMainWindow::removeChild(), and GUIMainWindow::updateChildren().
size_t GUIApplicationWindow::myViewNumber [protected] |
The current view number.
Definition at line 213 of file GUIApplicationWindow.h.
Referenced by handleEvent_SimulationLoaded(), and openNewView().
bool GUIApplicationWindow::myWasStarted [protected] |
the information whether the simulation was started before
Definition at line 210 of file GUIApplicationWindow.h.
Referenced by handleEvent_SimulationLoaded(), onCmdStart(), and onCmdStep().
FXMenuPane * GUIApplicationWindow::myWindowsMenu [protected] |
Definition at line 219 of file GUIApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().