LCOV - code coverage report
Current view: top level - src/gui - GUIApplicationWindow.h (source / functions) Coverage Total Hit
Test: lcov.info Lines: 0.0 % 6 0
Test Date: 2026-10-12 15:53:19 Functions: 0.0 % 4 0

            Line data    Source code
       1              : /****************************************************************************/
       2              : // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
       3              : // Copyright (C) 2001-2026 German Aerospace Center (DLR) and others.
       4              : // This program and the accompanying materials are made available under the
       5              : // terms of the Eclipse Public License 2.0 which is available at
       6              : // https://www.eclipse.org/legal/epl-2.0/
       7              : // This Source Code may also be made available under the following Secondary
       8              : // Licenses when the conditions for such availability set forth in the Eclipse
       9              : // Public License 2.0 are satisfied: GNU General Public License, version 2
      10              : // or later which is available at
      11              : // https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
      12              : // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
      13              : /****************************************************************************/
      14              : /// @file    GUIApplicationWindow.h
      15              : /// @author  Daniel Krajzewicz
      16              : /// @author  Jakob Erdmann
      17              : /// @author  Christian Roessel
      18              : /// @author  Michael Behrisch
      19              : /// @date    Sept 2002
      20              : ///
      21              : // The main window of the SUMO-gui.
      22              : /****************************************************************************/
      23              : #pragma once
      24              : #include <config.h>
      25              : 
      26              : #include <utils/foxtools/MFXRecentNetworks.h>
      27              : #include <utils/foxtools/MFXInterThreadEventClient.h>
      28              : #include <utils/gui/windows/GUIMainWindow.h>
      29              : 
      30              : #include "GUISUMOViewParent.h"
      31              : 
      32              : 
      33              : // ===========================================================================
      34              : // class declarations
      35              : // ===========================================================================
      36              : 
      37              : class Command;
      38              : class GUILoadThread;
      39              : class GUIRunThread;
      40              : class GUIMessageWindow;
      41              : class GUIEvent;
      42              : class GUIParameterTracker;
      43              : class GUIParameterTableWindow;
      44              : class GUIDialog_Breakpoints;
      45              : class MFXLCDLabel;
      46              : class MFXLabelTooltip;
      47              : class MFXCheckableButton;
      48              : 
      49              : 
      50              : // ===========================================================================
      51              : // class definition
      52              : // ===========================================================================
      53              : /**
      54              :  * @class GUIApplicationWindow
      55              :  * @brief The main window of the SUMO-gui.
      56              :  *
      57              :  * Beside views on the simulation, shown within a MDI-window, the main window
      58              :  * may also have some further views (children) assigned which are stored
      59              :  * within a separate list.
      60              :  */
      61              : class GUIApplicationWindow : public GUIMainWindow, public MFXInterThreadEventClient {
      62              :     // FOX-declarations
      63            0 :     FXDECLARE(GUIApplicationWindow)
      64              : 
      65              : public:
      66              :     /// @brief Constructor
      67              :     GUIApplicationWindow(FXApp* a);
      68              : 
      69              :     /// @brief Destructor
      70              :     virtual ~GUIApplicationWindow();
      71              : 
      72              :     /// @name FOX-interactions
      73              :     /// {
      74              : 
      75              :     /// @brief Creates the main window (required by FOX)
      76              :     virtual void create();
      77              : 
      78              :     /// @brief Detaches the tool/menu bar
      79              :     virtual void detach();
      80              : 
      81              :     /// @}
      82              : 
      83              :     /// @brief config or net on startup
      84              :     void loadOnStartup(const bool wait = false);
      85              : 
      86              :     /// @brief get run thread
      87              :     GUIRunThread* getRunner();
      88              : 
      89              :     /// @brief build dependt
      90              :     void dependentBuild(const bool isLibsumo);
      91              : 
      92              :     /// @brief set status bar text
      93              :     void setStatusBarText(const std::string& text);
      94              : 
      95              :     /// @brief add recent network to recent file list
      96              :     void addRecentNetwork(const FX::FXString& f);
      97              : 
      98              :     /// @brief add recent config to recent file list
      99              :     void addRecentConfig(const FX::FXString& f);
     100              : 
     101              :     /// @brief get build GLCanvas
     102              :     FXGLCanvas* getBuildGLCanvas() const;
     103              : 
     104              :     /// @brief get current simulation time
     105              :     SUMOTime getCurrentSimTime() const;
     106              : 
     107              :     /// @brief get tracker interval
     108              :     double getTrackerInterval() const;
     109              : 
     110              :     /// @brief get default cursor
     111              :     FXCursor* getDefaultCursor();
     112              : 
     113              :     /// @name Inter-thread event handling
     114              :     /// @{
     115              : 
     116              :     /// @brief a certain event ocurred
     117              :     virtual void eventOccurred();
     118              : 
     119              :     /// @brief called when event "simulation loaded" ocurred
     120              :     void handleEvent_SimulationLoaded(GUIEvent* e);
     121              : 
     122              :     /// @brief called when event "simulation step" ocurred
     123              :     void handleEvent_SimulationStep(GUIEvent* e);
     124              : 
     125              :     /// @brief called when event "message" ocurred
     126              :     void handleEvent_Message(GUIEvent* e);
     127              : 
     128              :     /// @brief called when event "simulation ended" ocurred
     129              :     void handleEvent_SimulationEnded(GUIEvent* e);
     130              : 
     131              :     /// @}
     132              : 
     133              :     /// @name FOX-callbacks
     134              :     /// @{
     135              : 
     136              :     /// @brief Called on menu File->New Window
     137              :     long onCmdNewWindow(FXObject*, FXSelector, void*);
     138              : 
     139              :     /// @brief Called on menu File->Open Configuration
     140              :     long onCmdOpenConfiguration(FXObject*, FXSelector, void*);
     141              : 
     142              :     /// @brief Called on menu File->Open Network
     143              :     long onCmdOpenNetwork(FXObject*, FXSelector, void*);
     144              : 
     145              :     /// @brief Called on menu File->Load Shapes
     146              :     long onCmdOpenShapes(FXObject*, FXSelector, void*);
     147              : 
     148              :     /// @brief Called on menu File->Load EdgeData
     149              :     long onCmdOpenEdgeData(FXObject*, FXSelector, void*);
     150              : 
     151              :     /// @brief Called on reload
     152              :     long onCmdReload(FXObject*, FXSelector, void*);
     153              : 
     154              :     /// @brief Called on quick-reload
     155              :     long onCmdQuickReload(FXObject*, FXSelector, void*);
     156              : 
     157              :     /// @brief Called on opening a recent file
     158              :     long onCmdOpenRecent(FXObject*, FXSelector, void*);
     159              : 
     160              :     /// @brief Called on menu File->Close
     161              :     long onCmdSaveConfig(FXObject*, FXSelector, void*);
     162              : 
     163              :     /// @brief Called on menu File->Close
     164              :     long onCmdClose(FXObject*, FXSelector, void*);
     165              : 
     166              :     /// @brief Called by FOX if the application shall be closed (Called either by FileMenu->Quit, the normal close-menu or SIGINT)
     167              :     long onCmdQuit(FXObject*, FXSelector, void*);
     168              : 
     169              :     /// @brief Called on menu Edit->Edit Chosen
     170              :     long onCmdEditChosen(FXObject*, FXSelector, void*);
     171              : 
     172              :     /// @brief Called on menu Edit->Edit Breakpoints
     173              :     long onCmdEditBreakpoints(FXObject*, FXSelector, void*);
     174              : 
     175              :     /// @brief Called on menu Edit->Visualization
     176              :     long onCmdEditViewScheme(FXObject*, FXSelector, void*);
     177              : 
     178              :     /// @brief Called on menu Edit->Viewport
     179              :     long onCmdEditViewport(FXObject*, FXSelector, void*);
     180              : 
     181              :     /// @brief called if the user selects help->Documentation
     182              :     long onCmdHelp(FXObject* sender, FXSelector sel, void* ptr);
     183              : 
     184              :     /// @brief called if the user selects help->Changelog
     185              :     long onCmdChangelog(FXObject* sender, FXSelector sel, void* ptr);
     186              : 
     187              :     /// @brief called if the user selects help->Hotkeys
     188              :     long onCmdHotkeys(FXObject* sender, FXSelector sel, void* ptr);
     189              : 
     190              :     /// @brief called if the user selects help->Tutorial
     191              :     long onCmdTutorial(FXObject* sender, FXSelector sel, void* ptr);
     192              : 
     193              :     /// @brief Called on menu Edit->open in Netedit
     194              :     long onCmdOpenInNetedit(FXObject*, FXSelector, void*);
     195              : 
     196              :     /// @brief Opens the application settings menu (Settings->Application Settings...)
     197              :     long onCmdAppSettings(FXObject*, FXSelector, void*);
     198              : 
     199              :     /// @brief Toggle gaming mode
     200              :     long onCmdGaming(FXObject*, FXSelector, void*);
     201              : 
     202              :     /// @brief Toggle draw junction shape
     203              :     long onCmdToggleDrawJunctionShape(FXObject*, FXSelector, void*);
     204              : 
     205              :     /// @brief Toggle draw junction shape
     206              :     long onCmdToggleSecondaryShape(FXObject*, FXSelector, void*);
     207              : 
     208              :     /// @brief Toggle full screen mode
     209              :     long onCmdFullScreen(FXObject*, FXSelector, void*);
     210              : 
     211              :     /// @brief Toggle listing of internal structures
     212              :     long onCmdListInternal(FXObject*, FXSelector, void*);
     213              : 
     214              :     /// @brief Toggle listing of parking vehicles
     215              :     long onCmdListParking(FXObject*, FXSelector, void*);
     216              : 
     217              :     /// @brief Toggle listing of teleporting vehicles
     218              :     long onCmdListTeleporting(FXObject*, FXSelector, void*);
     219              : 
     220              :     /// @brief Shows the feedback dialog
     221              :     long onCmdFeedback(FXObject*, FXSelector, void*);
     222              : 
     223              :     /// @brief Shows the about dialog
     224              :     long onCmdAbout(FXObject*, FXSelector, void*);
     225              : 
     226              :     /// @brief Shows the Hall of Fame dialog
     227              :     long onCmdHallOfFame(FXObject*, FXSelector, void*);
     228              : 
     229              :     /// @brief Called on "play"
     230              :     long onCmdStart(FXObject*, FXSelector, void*);
     231              : 
     232              :     /// @brief Called on "stop"
     233              :     long onCmdStop(FXObject*, FXSelector, void*);
     234              : 
     235              :     /// @brief Called on "step"
     236              :     long onCmdStep(FXObject*, FXSelector, void*);
     237              : 
     238              :     /// @brief Called on "save state"
     239              :     long onCmdSaveState(FXObject*, FXSelector, void*);
     240              : 
     241              :     /// @brief Called on "save state"
     242              :     long onCmdLoadState(FXObject*, FXSelector, void*);
     243              : 
     244              :     /// @brief Called on "time toggle"
     245              :     long onCmdTimeToggle(FXObject*, FXSelector, void*);
     246              : 
     247              :     /// @brief Called on "delay inc"
     248              :     long onCmdDelayInc(FXObject*, FXSelector, void*);
     249              : 
     250              :     /// @brief Called on "delay dec"
     251              :     long onCmdDelayDec(FXObject*, FXSelector, void*);
     252              : 
     253              :     /// @brief Called on "delay toggle"
     254              :     long onCmdDelayToggle(FXObject*, FXSelector, void*);
     255              : 
     256              :     /// @brief Called on "demand scale"
     257              :     long onCmdDemandScale(FXObject*, FXSelector, void*);
     258              : 
     259              :     /// @brief Called if a new view shall be opened (2D view)
     260              :     long onCmdNewView(FXObject*, FXSelector, void*);
     261              : 
     262              : #ifdef HAVE_OSG
     263              :     /// @brief Called if a new 3D view shall be opened
     264              :     long onCmdNewOSG(FXObject*, FXSelector, void*);
     265              : #endif
     266              : 
     267              :     /// @brief Called on "show tool tips in view"
     268              :     long onCmdShowToolTipsView(FXObject*, FXSelector, void*);
     269              : 
     270              :     /// @brief Called on "show tool tips in menu"
     271              :     long onCmdShowToolTipsMenu(FXObject*, FXSelector, void*);
     272              : 
     273              :     /// @brief get checkable button for menu tooltips
     274            0 :     MFXCheckableButton* getShowToolTipsMenu() const {
     275            0 :         return myShowToolTipsMenu;
     276              :     }
     277              : 
     278              :     /// @brief get checkable button for view tooltips
     279            0 :     MFXCheckableButton* getShowToolTipsView() const {
     280            0 :         return myShowToolTipsView;
     281              :     }
     282              : 
     283              :     /// @brief Determines whether opening is enabled
     284              :     long onUpdOpen(FXObject*, FXSelector, void*);
     285              : 
     286              :     /// @brief Determines whether reloading is enabled
     287              :     long onUpdReload(FXObject*, FXSelector, void*);
     288              : 
     289              :     /// @brief Determines whether opening a recent file is enabled
     290              :     long onUpdOpenRecent(FXObject*, FXSelector, void*);
     291              : 
     292              :     /// @brief Determines whether adding a view is enabled
     293              :     long onUpdAddView(FXObject*, FXSelector, void*);
     294              : 
     295              :     /// @brief Determines whether "play" is enabled
     296              :     long onUpdStart(FXObject* sender, FXSelector, void* ptr);
     297              : 
     298              :     /// @brief Determines whether "stop" is enabled
     299              :     long onUpdStop(FXObject*, FXSelector, void*);
     300              : 
     301              :     /// @brief Determines whether "step" is enabled
     302              :     long onUpdStep(FXObject*, FXSelector, void*);
     303              : 
     304              :     /// @brief Determines whether some buttons which require an active network may be shown
     305              :     long onUpdNeedsNetwork(FXObject*, FXSelector, void*);
     306              : 
     307              :     /// @brief Determines whether some buttons which require an sumoConfig may be shown
     308              :     long onUpdNeedsSumoConfig(FXObject*, FXSelector, void*);
     309              : 
     310              :     /// @brief Determines whether traci is active
     311              :     long onUpdTraCIStatus(FXObject*, FXSelector, void*);
     312              : 
     313              :     /// @brief Called if the message window shall be cleared
     314              :     long onCmdClearMsgWindow(FXObject*, FXSelector, void*);
     315              : 
     316              :     /// @brief Called to set a breakpoint via hotkey
     317              :     long onCmdBreakpoint(FXObject*, FXSelector, void*);
     318              : 
     319              :     /// @brief Called to set an early breakpoint via hotkey
     320              :     long onCmdBreakpointEarly(FXObject*, FXSelector, void*);
     321              : 
     322              :     /// @brief Called on menu commands from the Locator menu
     323              :     long onCmdLocate(FXObject*, FXSelector, void*);
     324              : 
     325              :     /// @brief Called on commands from the statistic buttons
     326              :     long onCmdShowStats(FXObject*, FXSelector, void*);
     327              : 
     328              :     /// @brief Called on an event from the loading thread
     329              :     long onLoadThreadEvent(FXObject*, FXSelector, void*);
     330              : 
     331              :     /// @brief Called on an event from the simulation thread
     332              :     long onRunThreadEvent(FXObject*, FXSelector, void*);
     333              : 
     334              :     /// @brief Somebody wants our clipped text
     335              :     long onClipboardRequest(FXObject* sender, FXSelector sel, void* ptr);
     336              : 
     337              :     /// @brief called when a key is pressed
     338              :     long onKeyPress(FXObject* o, FXSelector sel, void* data);
     339              : 
     340              :     /// @brief called when a key is released
     341              :     long onKeyRelease(FXObject* o, FXSelector sel, void* data);
     342              : 
     343              :     /// @}
     344              : 
     345              :     /// @brief Returns the simulation delay in miliseconds
     346              :     virtual double getDelay() const;
     347              : 
     348              :     /// @brief Sets the delay of the parent application in milliseconds
     349              :     virtual void setDelay(double delay);
     350              : 
     351              :     /// @brief Sets the breakpoints of the parent application
     352              :     virtual void setBreakpoints(const std::vector<SUMOTime>& breakpoints);
     353              : 
     354              :     /// @brief Adds the given breakpoint
     355              :     void addBreakpoint(SUMOTime time);
     356              : 
     357              :     /// @brief Sends an event from the application thread to the GUI and waits until it is handled
     358              :     virtual void sendBlockingEvent(GUIEvent* event);
     359              : 
     360              :     /// @brief retrieve list of breakpoints
     361              :     const std::vector<SUMOTime> retrieveBreakpoints() const;
     362              : 
     363              :     /// @brief erase current breakpoint dialog
     364              :     void eraseBreakpointDialog();
     365              : 
     366              :     /// @brief register custom hotkey action
     367              :     void addHotkey(int key, Command* press, Command* release);
     368              : 
     369              : protected:
     370              :     /// @brief FOX need this
     371            0 :     FOX_CONSTRUCTOR(GUIApplicationWindow)
     372              : 
     373              :     /// @brief add the given menuPane to windows Menu
     374              :     virtual void addToWindowsMenu(FXMenuPane* menuPane);
     375              : 
     376              :     /// Builds the menu bar
     377              :     virtual void fillMenuBar();
     378              : 
     379              :     /// Builds the tool bar
     380              :     virtual void buildToolBars();
     381              : 
     382              :     /// @brief build recent networks
     383              :     void buildRecentNetworks(FXMenuPane* fileMenu, FXMenuPane* fileMenuRecentNetworks);
     384              : 
     385              :     /// @brief build recent configs
     386              :     void buildRecentConfigs(FXMenuPane* fileMenu, FXMenuPane* fileMenuRecentConfigs);
     387              : 
     388              :     /// @brief  the name of the simulation
     389              :     std::string myName;
     390              : 
     391              :     /// @brief  the thread that loads simulations
     392              :     GUILoadThread* myLoadThread = nullptr;
     393              : 
     394              :     /// @brief  the thread that runs simulations
     395              :     GUIRunThread* myRunThread = nullptr;
     396              : 
     397              :     /// @brief  the information whether the simulation was started before
     398              :     bool myWasStarted = false;
     399              : 
     400              :     /// @brief The current view number
     401              :     int myViewNumber;
     402              : 
     403              :     /// @brief information whether the gui is currently loading and the load-options shall be greyed out
     404              :     bool myAmLoading = false;
     405              : 
     406              :     /// @brief whether we are reloading the simulation
     407              :     bool myIsReload = false;
     408              : 
     409              :     /// @brief last modification time of the gui setting file
     410              :     long long  myGuiSettingsFileMTime = -2;
     411              : 
     412              :     /// @brief the submenus
     413              :     FXMenuPane* myFileMenu = nullptr,
     414              :                 *myEditMenu = nullptr,
     415              :                  *mySelectByPermissions = nullptr,
     416              :                   *mySettingsMenu = nullptr,
     417              :                    *myLocatorMenu = nullptr,
     418              :                     *myControlMenu = nullptr,
     419              :                      *myWindowMenu = nullptr,
     420              :                       *myHelpMenu = nullptr;
     421              : 
     422              :     /// @brief FXMenu pane for recent networks
     423              :     FXMenuPane* myFileMenuRecentNetworks = nullptr;
     424              : 
     425              :     /// @brief FXMenu pane for recent configs
     426              :     FXMenuPane* myFileMenuRecentConfigs = nullptr;
     427              : 
     428              :     /// @brief the menu cascades
     429              :     FXMenuCascade* mySelectLanesMenuCascade = nullptr;
     430              : 
     431              :     /// @brief menuCheck for enable/disable load additionals in netedit
     432              :     FXMenuCheck* myLoadAdditionalsInNetedit = nullptr;
     433              : 
     434              :     /// @brief menuCheck for enable/disable load demand elements in netedit
     435              :     FXMenuCheck* myLoadDemandInNetedit = nullptr;
     436              : 
     437              :     /// @brief menuCommand for opening simulation/network in netedit
     438              :     FXMenuCommand* myOpenInNetedit = nullptr;
     439              :     /// @brief menuCommand for opening only the network in netedit
     440              :     FXMenuCommand* myOpenNetInNetedit = nullptr;
     441              : 
     442              :     /// @brief Buttons showing and running values and triggering statistic windows
     443              :     std::vector<FXButton*> myStatButtons;
     444              : 
     445              :     /// @brief A window to display messages, warnings and error in
     446              :     GUIMessageWindow* myMessageWindow = nullptr;
     447              : 
     448              :     /// @brief The splitter that divides the main window into views and the log window
     449              :     FXSplitter* myMainSplitter = nullptr;
     450              : 
     451              :     /// @brief for some menu detaching fun
     452              :     FXToolBarShell* myToolBarDrag1 = nullptr,
     453              :                     *myToolBarDrag2 = nullptr,
     454              :                      *myToolBarDrag3 = nullptr,
     455              :                       *myToolBarDrag4 = nullptr,
     456              :                        *myToolBarDrag5 = nullptr,
     457              :                         *myMenuBarDrag = nullptr,
     458              :                          *myToolBarDrag8 = nullptr;
     459              : 
     460              :     /// @brief the simulation delay in milliseconds
     461              :     double mySimDelay = 0.;
     462              : 
     463              :     /// @brief Simulation delay target
     464              :     FXDataTarget* mySimDelayTarget = nullptr;
     465              : 
     466              :     /// @brief Simulation delay spinner
     467              :     FXRealSpinner* mySimDelaySpinner = nullptr;
     468              : 
     469              :     /// @brief Simulation delay slider
     470              :     FXSlider* mySimDelaySlider = nullptr;
     471              : 
     472              :     /// @brief the demand scale label
     473              :     MFXLabelTooltip* myScaleTrafficTooltip = nullptr;
     474              : 
     475              :     /// @brief the demand scale
     476              :     FXRealSpinner* myDemandScaleSpinner = nullptr;
     477              : 
     478              :     /// @brief checkable button for show tool tips in view
     479              :     MFXCheckableButton* myShowToolTipsView = nullptr;
     480              : 
     481              :     /// @brief checkable button for show tool tips in menu
     482              :     MFXCheckableButton* myShowToolTipsMenu = nullptr;
     483              : 
     484              :     /// @brief The alternate simulation delay in milliseconds for toggling
     485              :     double myAlternateSimDelay = 0;
     486              : 
     487              :     /// @brief List of got requests
     488              :     MFXSynchQue<GUIEvent*> myEvents;
     489              : 
     490              :     /// @brief The menu used for the MDI-windows
     491              :     FXMDIMenu* myMDIMenu = nullptr;
     492              : 
     493              :     /// @brief The application menu bar
     494              :     FXMenuBar* myMenuBar = nullptr;
     495              : 
     496              :     /// @brief The application tool bar
     497              :     FXToolBar* myToolBar1 = nullptr,
     498              :                *myToolBar2 = nullptr,
     499              :                 *myToolBar3 = nullptr,
     500              :                  *myToolBar4 = nullptr,
     501              :                   *myToolBar5 = nullptr,
     502              :                    *myToolBar8 = nullptr;
     503              : 
     504              :     /// @brief the simulation step display
     505              :     MFXLCDLabel* myLCDLabel = nullptr;
     506              : 
     507              :     /// @brief io-event with the load-thread
     508              :     FXEX::MFXThreadEvent myLoadThreadEvent;
     509              : 
     510              :     /// @brief io-event with the run-thread
     511              :     FXEX::MFXThreadEvent myRunThreadEvent;
     512              : 
     513              :     /// @brief List of recent networks
     514              :     MFXRecentNetworks myRecentNetworks;
     515              : 
     516              :     /// @brief List of recent configs
     517              :     MFXRecentNetworks myRecentConfigs;
     518              : 
     519              :     /// @brief flag to mark if GUIApplicationWIndow has depend build
     520              :     bool hadDependentBuild = false;
     521              : 
     522              :     /// @brief whether to show time as hour:minute:second
     523              :     bool myShowTimeAsHMS = false;
     524              : 
     525              :     /// @brief whether the simulation end was already announced
     526              :     bool myHaveNotifiedAboutSimEnd = false;
     527              : 
     528              :     /// @brief the mutex for the waiting semaphore
     529              :     FXMutex myEventMutex;
     530              : 
     531              :     /// @brief the semaphore when waiting for event completion
     532              :     FXCondition myEventCondition;
     533              : 
     534              :     /// @brief menu checkbox to activate game mode
     535              :     FXMenuCheck* myGamingModeCheckbox;
     536              : 
     537              :     /// @name game related things
     538              :     /// {
     539              : 
     540              :     /// @brief random list of jam sounds
     541              :     RandomDistributor<std::string> myJamSounds;
     542              : 
     543              :     /// @brief random list of collision sounds
     544              :     RandomDistributor<std::string> myCollisionSounds;
     545              : 
     546              :     /// @brief waiting time after which vehicles trigger jam sounds
     547              :     double myJamSoundTime = 60;
     548              : 
     549              :     /// @brief A random number generator used to choose a gaming sound
     550              :     static std::mt19937 myGamingRNG;
     551              : 
     552              :     /// @brief previous collision number
     553              :     int myPreviousCollisionNumber = 0;
     554              : 
     555              :     /// @brief flag for enable TLS gameMode
     556              :     bool myTLSGame = false;
     557              : 
     558              :     /// @brief waiting time label
     559              :     MFXLCDLabel* myWaitingTimeLabel = nullptr;
     560              : 
     561              :     /// @brief waiting time
     562              :     SUMOTime myWaitingTime = 0;
     563              : 
     564              :     /// @brief time loss label
     565              :     MFXLCDLabel* myTimeLossLabel = nullptr;
     566              : 
     567              :     /// @brief time loss
     568              :     SUMOTime myTimeLoss = 0;
     569              : 
     570              :     /// @brief total distance label
     571              :     MFXLCDLabel* myTotalDistanceLabel = nullptr;
     572              : 
     573              :     /// @brief total distance
     574              :     double myTotalDistance = 0;
     575              : 
     576              :     /// @brief emergency vehicle label
     577              :     MFXLCDLabel* myEmergencyVehicleLabel = nullptr;
     578              : 
     579              :     /// @brief emergency vehicle count
     580              :     SUMOTime myEmergencyVehicleCount = 0;
     581              : 
     582              :     /// @brief toolbars used in game
     583              :     FXToolBar* myToolBar6 = nullptr,
     584              :                *myToolBar7 = nullptr,
     585              :                 *myToolBar9 = nullptr,
     586              :                  *myToolBar10 = nullptr;
     587              : 
     588              :     /// @brief toolbars shell used in game
     589              :     FXToolBarShell* myToolBarDrag6 = nullptr,
     590              :                     *myToolBarDrag7 = nullptr,
     591              :                      *myToolBarDrag9 = nullptr,
     592              :                       *myToolBarDrag10 = nullptr;
     593              :     ////}
     594              : 
     595              :     /// @brief last time the simulation view was redrawn due to a simStep
     596              :     long myLastStepEventMillis;
     597              : 
     598              :     /// @brief custom hotkeys pressed
     599              :     std::map<int, Command*> myHotkeyPress;
     600              : 
     601              :     /// @brief custom hotkeys released
     602              :     std::map<int, Command*> myHotkeyRelease;
     603              : 
     604              :     /// @brief breakpoint dialog
     605              :     GUIDialog_Breakpoints* myBreakpointDialog = nullptr;
     606              : 
     607              :     std::stringstream* myDynamicSelection = nullptr;
     608              : 
     609              : private:
     610              :     /// @brief starts to load a simulation
     611              :     void loadConfigOrNet(const std::string& file);
     612              : 
     613              :     /// @brief this method closes all windows and deletes the current simulation
     614              :     void closeAllWindows();
     615              : 
     616              :     /// @brief updates the simulation time display
     617              :     void updateTimeLCD(SUMOTime time);
     618              : 
     619              :     /// @brief update LCD timer tooltip
     620              :     void updateTimeLCDTooltip();
     621              : 
     622              :     /// @brief opens a new simulation display
     623              :     GUISUMOAbstractView* openNewView(GUISUMOViewParent::ViewType vt = GUISUMOViewParent::VIEW_2D_OPENGL, std::string caption = "");
     624              : 
     625              :     /// @brief handles additional game-related events
     626              :     void checkGamingEvents();
     627              : 
     628              :     /// @brief handles additional game-related events (DRT)
     629              :     void checkGamingEventsDRT();
     630              : 
     631              :     /// @brief invalidate copy constructor
     632              :     GUIApplicationWindow(const GUIApplicationWindow& s) = delete;
     633              : 
     634              :     /// @brief invalidate assignment operator
     635              :     GUIApplicationWindow& operator=(const GUIApplicationWindow& s) = delete;
     636              : };
        

Generated by: LCOV version 2.0-1