![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GUIMainWindow.h>
Public Member Functions | |
| virtual void | addBreakpoint (SUMOTime) |
| add breakpoint to the application | |
| void | addChild (FXMainWindow *child) |
| Adds a further child window to the list (FXMainWindow) | |
| void | addGLChild (GUIGlChildWindow *child) |
| Adds a further child window to the list (GUIGlChildWindow) | |
| void | addOnlineMap (const std::string &name, const std::string &url) |
| void | checkNews () |
| fetch the release news feed in the background if it was not accessed recently | |
| GUISUMOAbstractView * | getActiveView () const |
| get the active view or 0 | |
| FXFont * | getBoldFont () |
| get bold front | |
| virtual FXGLCanvas * | getBuildGLCanvas () const =0 |
| get build GL Canvas (must be implemented in all children) | |
| FXTextField * | getCartesianLabel () |
| get cartesian coordinate field | |
| virtual SUMOTime | getCurrentSimTime () const =0 |
| get current sim time (must be implemented in all children) | |
| virtual double | getDelay () const |
| Returns the delay (should be overwritten by subclasses if applicable) | |
| FXFont * | getFallbackFont () |
| get fallback front | |
| FXTextField * | getGeoLabel () |
| get geo coordinate field | |
| FXGLVisual * | getGLVisual () const |
| get GL Visual | |
| const std::map< std::string, std::string > & | getOnlineMaps () const |
| virtual MFXCheckableButton * | getShowToolTipsMenu () const |
| get checkable button for menu tooltips (if any) | |
| virtual MFXCheckableButton * | getShowToolTipsView () const |
| get checkable button for view tooltips (if any) | |
| MFXStaticToolTip * | getStaticTooltipMenu () const |
| get static toolTip for menus | |
| MFXStaticToolTip * | getStaticTooltipView () const |
| get static toolTip for view | |
| FXHorizontalFrame * | getTestFrame () |
| get test frame | |
| FXLabel * | getTestLabel () |
| get test label | |
| FXDockSite * | getTopDock () |
| get top dock | |
| virtual double | getTrackerInterval () const =0 |
| get tracker interval (must be implemented in all children) | |
| GUIGlChildWindow * | getViewByID (const std::string &id) const |
| get specific view by ID | |
| std::vector< std::string > | getViewIDs () const |
| get view IDs | |
| std::vector< GUIGlChildWindow * > | getViews () const |
| get (a copy of the list of) views | |
| GUIMainWindow (FXApp *app) | |
| constructor | |
| bool | isFullScreen () |
| bool | isGaming () const |
| return whether the gui is in gaming mode | |
| bool | listInternal () const |
| return whether to list internal structures | |
| bool | listParking () const |
| return whether to list parking vehicles | |
| bool | listTeleporting () const |
| return whether to list teleporting vehicles | |
| long | onCmdChangeLanguage (FXObject *, FXSelector, void *) |
| long | onCmdFocusCoordinate (FXObject *, FXSelector, void *) |
| called when user focuses a coordinate field in the status bar | |
| virtual long | onCmdFullScreen (FXObject *, FXSelector, void *) |
| Toggle full screen mode. | |
| long | onCmdNews (FXObject *, FXSelector, void *) |
| show the latest release news (fetching them if necessary) | |
| long | onCmdSetCartesianCoordinate (FXObject *, FXSelector, void *) |
| called when user enters a cartesian coordinate in the status bar | |
| long | onCmdSetGeoCoordinate (FXObject *, FXSelector, void *) |
| called when user enters a geo coordinate in the status bar | |
| long | onCmdUnfocusCoordinate (FXObject *, FXSelector, void *) |
| called when a coordinate field in the status bar loses focus | |
| long | onUpdChangeLanguage (FXObject *, FXSelector, void *) |
| void | removeChild (FXMainWindow *child) |
| removes the given child window from the list (FXMainWindow) | |
| void | removeGLChild (GUIGlChildWindow *child) |
| removes the given child window from the list (GUIGlChildWindow) | |
| void | removeViewByID (const std::string &id) |
| virtual const std::vector< SUMOTime > | retrieveBreakpoints () const |
| retrieve breakpoints if provided by the application | |
| virtual void | sendBlockingEvent (GUIEvent *event) |
| Sends an event from the application thread to the GUI and waits until it is handled. | |
| virtual void | setBreakpoints (const std::vector< SUMOTime > &) |
| Sets the breakpoints of the parent application. | |
| virtual void | setDelay (double) |
| Sets the delay of the parent application. | |
| virtual void | setStatusBarText (const std::string &) |
| get status bar text (can be implemented in children) | |
| void | updateChildren (int msg=MID_SIMSTEP) |
| update childrens | |
| virtual | ~GUIMainWindow () |
| destructor | |
Static Public Member Functions | |
| static GUIMainWindow * | getInstance () |
| get instance | |
| static bool | parseCartesianCoordinate (const std::string &text, double &x, double &y) |
| parse cartesian coordinate string ("x, y" or "x:... y:...") | |
| static bool | parseGeoCoordinate (const std::string &text, double &lat, double &lon) |
| parse geo coordinate string ("lat, lon" or "lat:... lon:...") | |
Protected Member Functions | |
| void | buildLanguageMenu (FXMenuBar *menuBar) |
| void | setWindowSizeAndPos () |
| perform initial window positioning and sizing according to user options / previous call | |
| void | storeWindowSizeAndPos () |
| record window position and size in registry | |
| void | toggleMessageWindowAndStatusBar (FXWindow *messageWindow) |
| FOX need this. | |
Protected Attributes | |
| bool | myAmFullScreen |
| whether to show the window in full screen mode | |
| bool | myAmGaming |
| information whether the gui is currently in gaming mode | |
| FXFont * | myBoldFont = nullptr |
| Font used for popup-menu titles. | |
| FXDockSite * | myBottomDock = nullptr |
| FXTextField * | myCartesianCoordinate = nullptr |
| Coordinate fields for the current cartesian, geo-coordinate and test coordinates. | |
| FXHorizontalFrame * | myCartesianFrame = nullptr |
| FXFont * | myFallbackFont = nullptr |
| Fallback font for extended characters support. | |
| FXTextField * | myGeoCoordinate = nullptr |
| FXHorizontalFrame * | myGeoFrame = nullptr |
| FXGLVisual * | myGLVisual = nullptr |
| The gl-visual used. | |
| std::vector< GUIGlChildWindow * > | myGLWindows |
| list of GLWindows | |
| FXMutex | myGLWindowsLock |
| A lock to make the access to the GLWindows thread safe (they are also accessed by the simulation thread) | |
| FXMenuPane * | myLanguageMenu = nullptr |
| Language menu common to all applications. | |
| FXDockSite * | myLeftDock = nullptr |
| bool | myListInternal |
| information whether the locator should list internal structures | |
| bool | myListParking |
| information whether the locator should list parking vehicles | |
| bool | myListTeleporting |
| information whether the locator should list teleporting vehicles | |
| FXMDIClient * | myMDIClient = nullptr |
| The multi view panel. | |
| GUINewsFeed * | myNewsFeed = nullptr |
| fetcher for the release news | |
| FXFont * | myNormalFont = nullptr |
| default Font (after scaling) | |
| std::map< std::string, std::string > | myOnlineMaps |
| online mapping services for the context menu | |
| FXDockSite * | myRightDock = nullptr |
| MFXStaticToolTip * | myStaticTooltipMenu = nullptr |
| static toolTip used in menus | |
| MFXStaticToolTip * | myStaticTooltipView = nullptr |
| static toolTip used in view | |
| FXStatusBar * | myStatusbar = nullptr |
| The status bar. | |
| FXLabel * | myTestCoordinate = nullptr |
| FXHorizontalFrame * | myTestFrame = nullptr |
| FXDockSite * | myTopDock = nullptr |
| dock sites | |
| FXHorizontalFrame * | myTraCiFrame = nullptr |
| frames for coordinates | |
| FXMutex | myTrackerLock |
| A lock to make the removal and addition of trackers secure. | |
| std::vector< FXMainWindow * > | myTrackerWindows |
| list of tracker windows | |
Static Protected Attributes | |
| static GUIMainWindow * | myInstance = nullptr |
| the singleton window instance | |
Definition at line 48 of file GUIMainWindow.h.
| GUIMainWindow::GUIMainWindow | ( | FXApp * | app | ) |
constructor
Definition at line 55 of file GUIMainWindow.cpp.
References GUIDesignHeight, myBoldFont, myBottomDock, myFallbackFont, myInstance, myLeftDock, myNormalFont, myRightDock, myStaticTooltipMenu, myStaticTooltipView, and myTopDock.
|
virtual |
destructor
Definition at line 93 of file GUIMainWindow.cpp.
References myBoldFont, myBottomDock, myFallbackFont, myInstance, myLeftDock, myNewsFeed, myNormalFont, myRightDock, myStaticTooltipMenu, myStaticTooltipView, and myTopDock.
|
inlinevirtual |
add breakpoint to the application
Reimplemented in GUIApplicationWindow.
Definition at line 215 of file GUIMainWindow.h.
Referenced by GUIMessageWindow::setCursorPos().
| void GUIMainWindow::addChild | ( | FXMainWindow * | child | ) |
Adds a further child window to the list (FXMainWindow)
Definition at line 154 of file GUIMainWindow.cpp.
References myTrackerLock, and myTrackerWindows.
Referenced by GUIParameterTableWindow::closeBuilding(), GUIDialog_ChooserAbstract::GUIDialog_ChooserAbstract(), GUIDialog_GLChosenEditor::GUIDialog_GLChosenEditor(), GUIParameterTracker::GUIParameterTracker(), and GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow().
| void GUIMainWindow::addGLChild | ( | GUIGlChildWindow * | child | ) |
Adds a further child window to the list (GUIGlChildWindow)
Definition at line 133 of file GUIMainWindow.cpp.
References myGLWindows, and myGLWindowsLock.
Referenced by GUISUMOViewParent::init().
|
inline |
Definition at line 210 of file GUIMainWindow.h.
References myOnlineMaps.
Referenced by GUIDialog_AppSettings::onCmdOk().
|
protected |
Definition at line 576 of file GUIMainWindow.cpp.
References GUIDesigns::buildFXMenuCommandShortcut(), GUIDesigns::buildFXMenuTitle(), GUIIconSubSys::getIcon(), LANGUAGE_DE, LANGUAGE_EN, LANGUAGE_ES, LANGUAGE_FR, LANGUAGE_IT, LANGUAGE_JA, LANGUAGE_KO, LANGUAGE_PT, LANGUAGE_TR, LANGUAGE_ZH, LANGUAGE_ZHT, MID_LANGUAGE_DE, MID_LANGUAGE_EN, MID_LANGUAGE_ES, MID_LANGUAGE_FR, MID_LANGUAGE_IT, MID_LANGUAGE_JA, MID_LANGUAGE_KO, MID_LANGUAGE_PT, MID_LANGUAGE_TR, MID_LANGUAGE_ZH, MID_LANGUAGE_ZHT, myLanguageMenu, and TL.
Referenced by GUIApplicationWindow::fillMenuBar(), and GNEApplicationWindow::fillMenuBar().
| void GUIMainWindow::checkNews | ( | ) |
fetch the release news feed in the background if it was not accessed recently
Definition at line 109 of file GUIMainWindow.cpp.
References OptionsCont::exists(), OptionsCont::getBool(), OptionsCont::getOptions(), myNewsFeed, myStatusbar, and GUINewsFeed::startCheck().
Referenced by GUIApplicationWindow::create(), and GNEApplicationWindow::create().
| GUISUMOAbstractView * GUIMainWindow::getActiveView | ( | ) | const |
get the active view or 0
Definition at line 496 of file GUIMainWindow.cpp.
References GUIGlChildWindow::getView(), myGLWindows, and myMDIClient.
Referenced by GUIVehicle::drawOutsideNetwork(), onCmdSetCartesianCoordinate(), onCmdSetGeoCoordinate(), GUIApplicationWindow::onKeyPress(), and GNEApplicationWindow::onKeyPress().
| FXFont * GUIMainWindow::getBoldFont | ( | ) |
get bold front
Definition at line 210 of file GUIMainWindow.cpp.
References myBoldFont.
Referenced by GUICursorDialog::buildDialogElements(), GUIGlObject::buildPopupHeader(), GNEElementTree::createPopUpMenu(), and GNENetworkElement::getShapeEditedPopUpMenu().
|
pure virtual |
get build GL Canvas (must be implemented in all children)
Implemented in GUIApplicationWindow, and GNEApplicationWindow.
| FXTextField * GUIMainWindow::getCartesianLabel | ( | ) |
get cartesian coordinate field
Definition at line 258 of file GUIMainWindow.cpp.
References myCartesianCoordinate.
Referenced by GUISUMOAbstractView::updatePositionInformationLabel().
|
pure virtual |
get current sim time (must be implemented in all children)
Implemented in GUIApplicationWindow, and GNEApplicationWindow.
Referenced by GUIParam_PopupMenuInterface::onCmdOpenTracker(), and GUIParameterTableWindow::onLeftBtnPress().
|
inlinevirtual |
Returns the delay (should be overwritten by subclasses if applicable)
Reimplemented in GUIApplicationWindow.
Definition at line 167 of file GUIMainWindow.h.
Referenced by GUISUMOAbstractView::getDelay(), and GUIViewTraffic::saveFrame().
| FXFont * GUIMainWindow::getFallbackFont | ( | ) |
get fallback front
Definition at line 215 of file GUIMainWindow.cpp.
References myFallbackFont.
Referenced by GUIParameterTableWindow::checkFont().
| FXTextField * GUIMainWindow::getGeoLabel | ( | ) |
get geo coordinate field
Definition at line 264 of file GUIMainWindow.cpp.
References myGeoCoordinate.
Referenced by GUISUMOAbstractView::updatePositionInformationLabel().
| FXGLVisual * GUIMainWindow::getGLVisual | ( | ) | const |
get GL Visual
Definition at line 240 of file GUIMainWindow.cpp.
References myGLVisual.
Referenced by GUISUMOViewParent::init().
|
static |
get instance
Definition at line 487 of file GUIMainWindow.cpp.
References myInstance.
Referenced by GUINet::addHotkey(), GUIVehicle::drawOutsideNetwork(), GUITexturesHelper::getTextureID(), GUIDanielPerspectiveChanger::onKeyPress(), GUIDanielPerspectiveChanger::onMouseMove(), GUINet::updateGUI(), and GUIRunThread::waitForSnapshots().
|
inline |
Definition at line 206 of file GUIMainWindow.h.
References myOnlineMaps.
Referenced by GUIGlObject::buildPositionCopyEntry(), and GUIGLObjectPopupMenu::onCmdShowCursorGeoPositionOnline().
|
inlinevirtual |
get checkable button for menu tooltips (if any)
Reimplemented in GUIApplicationWindow, and GNEApplicationWindow.
Definition at line 178 of file GUIMainWindow.h.
|
inlinevirtual |
get checkable button for view tooltips (if any)
Reimplemented in GUIApplicationWindow, and GNEApplicationWindow.
Definition at line 183 of file GUIMainWindow.h.
| MFXStaticToolTip * GUIMainWindow::getStaticTooltipMenu | ( | ) | const |
get static toolTip for menus
Definition at line 246 of file GUIMainWindow.cpp.
References myStaticTooltipMenu.
Referenced by GNEPythonToolDialogElements::Argument::Argument(), GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GUIGlChildWindow::buildColoringToolBar(), GUIGlChildWindow::buildNavigationToolBar(), GUIGlChildWindow::buildScreenshotToolBar(), GUIViewTraffic::buildViewToolBars(), GNEViewNet::buildViewToolBars(), GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelParameters(), GNETLSTable::Cell::Cell(), GNETLSTable::Column::Column(), MFXDecalsTable::Column::Column(), GNEDistributionFrame::DistributionRow::DistributionRow(), GNEDistributionFrame::DistributionSelector::DistributionSelector(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEPythonToolDialogElements::EdgeVectorArgument::EdgeVectorArgument(), GNEPythonToolDialogElements::FileNameArgument::FileNameArgument(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEFilePathDialog::GNEFilePathDialog(), GNEMatchAttribute::GNEMatchAttribute(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEProhibitionFrame::Legend::Legend(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNEOptionsEditor::onCmdShowToolTipsMenu(), GNEPythonToolDialog::onCmdShowToolTipsMenu(), GUIGlChildWindow::onCmdShowToolTipsMenu(), GNEElementTable::Row::Row(), GNETLSTable::Row::Row(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETLSEditorFrame::TLSPrograms::TLSPrograms(), GNEVehicleTypeDialog::VTypeAttributes::VShapeRow::VShapeRow(), and GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::VTypeAttributeRow().
| MFXStaticToolTip * GUIMainWindow::getStaticTooltipView | ( | ) | const |
get static toolTip for view
Definition at line 252 of file GUIMainWindow.cpp.
References myStaticTooltipView.
Referenced by GUIGlChildWindow::buildNavigationToolBar(), GUIGlChildWindow::onCmdShowToolTipsView(), GUISUMOAbstractView::paintGL(), GUISUMOAbstractView::showToolTipFor(), and GUISUMOAbstractView::updateToolTip().
| FXHorizontalFrame * GUIMainWindow::getTestFrame | ( | ) |
get test frame
Definition at line 457 of file GUIMainWindow.cpp.
References myTestFrame.
Referenced by GUISUMOAbstractView::updatePositionInformationLabel().
| FXLabel * GUIMainWindow::getTestLabel | ( | ) |
get test label
Definition at line 451 of file GUIMainWindow.cpp.
References myTestCoordinate.
Referenced by GUISUMOAbstractView::updatePositionInformationLabel().
| FXDockSite * GUIMainWindow::getTopDock | ( | ) |
|
pure virtual |
get tracker interval (must be implemented in all children)
Implemented in GUIApplicationWindow, and GNEApplicationWindow.
Referenced by GUIParam_PopupMenuInterface::onCmdOpenTracker(), and GUIParameterTableWindow::onLeftBtnPress().
| GUIGlChildWindow * GUIMainWindow::getViewByID | ( | const std::string & | id | ) | const |
get specific view by ID
Definition at line 188 of file GUIMainWindow.cpp.
References myGLWindows, and myGLWindowsLock.
Referenced by removeViewByID(), and GUIMessageWindow::setCursorPos().
| std::vector< std::string > GUIMainWindow::getViewIDs | ( | ) | const |
get view IDs
Definition at line 177 of file GUIMainWindow.cpp.
References myGLWindows, and myGLWindowsLock.
Referenced by GUIMessageWindow::setCursorPos().
| std::vector< GUIGlChildWindow * > GUIMainWindow::getViews | ( | ) | const |
get (a copy of the list of) views
Definition at line 220 of file GUIMainWindow.cpp.
References myGLWindows, and myGLWindowsLock.
Referenced by GUIRunThread::waitForSnapshots().
|
inline |
Definition at line 202 of file GUIMainWindow.h.
References myAmFullScreen.
Referenced by GUIViewTraffic::onDoubleClicked(), and GUISUMOAbstractView::paintGL().
| bool GUIMainWindow::isGaming | ( | ) | const |
return whether the gui is in gaming mode
Definition at line 463 of file GUIMainWindow.cpp.
References myAmGaming.
Referenced by GUISUMOViewParent::init(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOAbstractView::onLeftBtnRelease(), GUISUMOAbstractView::onMiddleBtnPress(), GUISUMOAbstractView::onMiddleBtnRelease(), GUIDanielPerspectiveChanger::onMouseMove(), GUISUMOAbstractView::onMouseWheel(), GUISUMOAbstractView::onRightBtnPress(), GUISUMOAbstractView::onRightBtnRelease(), and GUIViewTraffic::setColorScheme().
| bool GUIMainWindow::listInternal | ( | ) | const |
return whether to list internal structures
Definition at line 469 of file GUIMainWindow.cpp.
References myListInternal.
Referenced by GUISUMOViewParent::getObjectIDs().
| bool GUIMainWindow::listParking | ( | ) | const |
return whether to list parking vehicles
Definition at line 475 of file GUIMainWindow.cpp.
References myListParking.
Referenced by GUIApplicationWindow::fillMenuBar(), and GUISUMOViewParent::getObjectIDs().
| bool GUIMainWindow::listTeleporting | ( | ) | const |
return whether to list teleporting vehicles
Definition at line 481 of file GUIMainWindow.cpp.
References myListTeleporting.
Referenced by GUISUMOViewParent::getObjectIDs().
| long GUIMainWindow::onCmdChangeLanguage | ( | FXObject * | , |
| FXSelector | sel, | ||
| void * | |||
| ) |
Definition at line 606 of file GUIMainWindow.cpp.
References ACCEPT, GUIDesigns::buildFXButton(), GUIIconSubSys::getIcon(), gLanguage, GUIDesignAuxiliarFrame, GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonDialog, GUIDesignDialogBox, GUIDesignHorizontalFrame, GUIDesignLabelAboutInfo, GUIDesignLabelIcon, INFORMATION_LARGE, INFORMATION_SMALL, MID_LANGUAGE_DE, MID_LANGUAGE_ES, MID_LANGUAGE_FR, MID_LANGUAGE_IT, MID_LANGUAGE_JA, MID_LANGUAGE_KO, MID_LANGUAGE_PT, MID_LANGUAGE_TR, MID_LANGUAGE_ZH, MID_LANGUAGE_ZHT, TL, and WRITE_MESSAGE.
Referenced by FXDEFMAP(), and FXDEFMAP().
| long GUIMainWindow::onCmdFocusCoordinate | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | |||
| ) |
called when user focuses a coordinate field in the status bar
Definition at line 430 of file GUIMainWindow.cpp.
Referenced by FXDEFMAP(), and FXDEFMAP().
|
inlinevirtual |
Toggle full screen mode.
Reimplemented in GUIApplicationWindow.
Definition at line 198 of file GUIMainWindow.h.
Referenced by GUIViewTraffic::onDoubleClicked().
| long GUIMainWindow::onCmdNews | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
show the latest release news (fetching them if necessary)
Definition at line 122 of file GUIMainWindow.cpp.
References myNewsFeed, myStatusbar, and GUINewsFeed::showLatest().
Referenced by FXDEFMAP(), and FXDEFMAP().
| long GUIMainWindow::onCmdSetCartesianCoordinate | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when user enters a cartesian coordinate in the status bar
Definition at line 408 of file GUIMainWindow.cpp.
References GUISUMOAbstractView::centerToPos(), getActiveView(), myCartesianCoordinate, parseCartesianCoordinate(), setStatusBarText(), TL, TLF, and toString().
Referenced by FXDEFMAP(), and FXDEFMAP().
| long GUIMainWindow::onCmdSetGeoCoordinate | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when user enters a geo coordinate in the status bar
Definition at line 377 of file GUIMainWindow.cpp.
References GUISUMOAbstractView::centerToPos(), getActiveView(), GeoConvHelper::getFinal(), gPrecisionGeo, myGeoCoordinate, parseGeoCoordinate(), setStatusBarText(), TL, TLF, and toString().
Referenced by FXDEFMAP(), and FXDEFMAP().
| long GUIMainWindow::onCmdUnfocusCoordinate | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | |||
| ) |
called when a coordinate field in the status bar loses focus
Definition at line 441 of file GUIMainWindow.cpp.
Referenced by FXDEFMAP(), and FXDEFMAP().
| long GUIMainWindow::onUpdChangeLanguage | ( | FXObject * | obj, |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 703 of file GUIMainWindow.cpp.
References GUIIconSubSys::getIcon(), gLanguage, GUIDesignTextColorBlack, GUIDesignTextColorBlue, LANGUAGE_DE, LANGUAGE_EN, LANGUAGE_ES, LANGUAGE_FR, LANGUAGE_IT, LANGUAGE_JA, LANGUAGE_KO, LANGUAGE_PT, LANGUAGE_TR, LANGUAGE_ZH, and LANGUAGE_ZHT.
Referenced by FXDEFMAP(), and FXDEFMAP().
|
static |
parse cartesian coordinate string ("x, y" or "x:... y:...")
Definition at line 332 of file GUIMainWindow.cpp.
References StringTokenizer::hasNext(), StringTokenizer::next(), StringUtils::prune(), and StringUtils::to_lower_case().
Referenced by onCmdSetCartesianCoordinate().
|
static |
parse geo coordinate string ("lat, lon" or "lat:... lon:...")
Definition at line 270 of file GUIMainWindow.cpp.
References StringTokenizer::hasNext(), StringTokenizer::next(), StringUtils::prune(), and StringUtils::to_lower_case().
Referenced by onCmdSetGeoCoordinate().
| void GUIMainWindow::removeChild | ( | FXMainWindow * | child | ) |
removes the given child window from the list (FXMainWindow)
Definition at line 162 of file GUIMainWindow.cpp.
References myTrackerLock, and myTrackerWindows.
Referenced by GUIDialog_Breakpoints::~GUIDialog_Breakpoints(), GUIDialog_ChooserAbstract::~GUIDialog_ChooserAbstract(), GUIDialog_GLChosenEditor::~GUIDialog_GLChosenEditor(), GUIParameterTableWindow::~GUIParameterTableWindow(), GUIParameterTracker::~GUIParameterTracker(), and GUITLLogicPhasesTrackerWindow::~GUITLLogicPhasesTrackerWindow().
| void GUIMainWindow::removeGLChild | ( | GUIGlChildWindow * | child | ) |
removes the given child window from the list (GUIGlChildWindow)
Definition at line 140 of file GUIMainWindow.cpp.
References MID_HOTKEY_CTRL_F_FULSCREENMODE, myAmFullScreen, myGLWindows, and myGLWindowsLock.
Referenced by removeViewByID(), GNEViewParent::~GNEViewParent(), and GUISUMOViewParent::~GUISUMOViewParent().
| void GUIMainWindow::removeViewByID | ( | const std::string & | id | ) |
Definition at line 200 of file GUIMainWindow.cpp.
References getViewByID(), and removeGLChild().
Referenced by GUIApplicationWindow::eventOccurred().
|
inlinevirtual |
retrieve breakpoints if provided by the application
Reimplemented in GUIApplicationWindow.
Definition at line 218 of file GUIMainWindow.h.
Referenced by GUIViewTraffic::retrieveBreakpoints().
|
inlinevirtual |
Sends an event from the application thread to the GUI and waits until it is handled.
| event | the event to send |
Reimplemented in GUIApplicationWindow.
Definition at line 190 of file GUIMainWindow.h.
References UNUSED_PARAMETER.
|
inlinevirtual |
Sets the breakpoints of the parent application.
Reimplemented in GUIApplicationWindow.
Definition at line 175 of file GUIMainWindow.h.
Referenced by GUISUMOAbstractView::setBreakpoints().
|
inlinevirtual |
Sets the delay of the parent application.
Reimplemented in GUIApplicationWindow.
Definition at line 172 of file GUIMainWindow.h.
Referenced by GUISUMOAbstractView::setDelay().
|
inlinevirtual |
get status bar text (can be implemented in children)
Reimplemented in GNEApplicationWindow, and GUIApplicationWindow.
Definition at line 111 of file GUIMainWindow.h.
Referenced by GUISUMOAbstractView::getObjectsInBoundary(), onCmdSetCartesianCoordinate(), onCmdSetGeoCoordinate(), and GNEViewNet::setStatusBarText().
|
protected |
perform initial window positioning and sizing according to user options / previous call
Definition at line 509 of file GUIMainWindow.cpp.
References OptionsCont::getOptions(), OptionsCont::getStringVector(), OptionsCont::isSet(), MAX2(), MIN2(), TL, StringUtils::toInt(), toString(), and WRITE_ERROR.
Referenced by GUIApplicationWindow::create(), GNEApplicationWindow::create(), GNEApplicationWindow::handleEvent_FileLoaded(), and GUIApplicationWindow::handleEvent_SimulationLoaded().
|
protected |
record window position and size in registry
Definition at line 549 of file GUIMainWindow.cpp.
References myAmFullScreen.
Referenced by GNEApplicationWindow::createNewNetwork(), GUIApplicationWindow::loadConfigOrNet(), GNEApplicationWindow::loadConfiguration(), GNEApplicationWindow::loadNetwork(), GNEApplicationWindow::loadOSM(), GUIApplicationWindow::onCmdQuit(), GNEApplicationWindow::onCmdQuit(), GUIApplicationWindow::onCmdReload(), GNEApplicationWindow::onCmdReloadNetwork(), and GNEApplicationWindow::onCmdSmartReload().
|
protected |
FOX need this.
hide the message window and the status bar if the message window is shown, otherwise show both
Definition at line 560 of file GUIMainWindow.cpp.
References myStatusbar.
Referenced by GUIApplicationWindow::onCmdToggleMessageWindow(), and GNEApplicationWindow::onCmdToggleMessageWindow().
| void GUIMainWindow::updateChildren | ( | int | msg = MID_SIMSTEP | ) |
update childrens
Definition at line 227 of file GUIMainWindow.cpp.
References myMDIClient, myTrackerLock, and myTrackerWindows.
Referenced by GUIApplicationWindow::handleEvent_SimulationEnded(), GUIApplicationWindow::handleEvent_SimulationStep(), GUIDialog_GLChosenEditor::onCmdClear(), GUIDialog_GLChosenEditor::onCmdDeselect(), GUIApplicationWindow::onCmdEditChosen(), GUIDialog_GLChosenEditor::onCmdLoad(), and GUIApplicationWindow::setBreakpoints().
|
protected |
whether to show the window in full screen mode
Definition at line 236 of file GUIMainWindow.h.
Referenced by isFullScreen(), GUIApplicationWindow::onChoreLeaveFullScreen(), GUIApplicationWindow::onCmdFullScreen(), GUIApplicationWindow::onCmdGaming(), removeGLChild(), and storeWindowSizeAndPos().
|
protected |
information whether the gui is currently in gaming mode
Definition at line 295 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::handleEvent_SimulationStep(), isGaming(), GUIApplicationWindow::onCmdFullScreen(), GUIApplicationWindow::onCmdGaming(), GUIApplicationWindow::onKeyPress(), GUIApplicationWindow::updateTimeLCD(), and GUIApplicationWindow::updateTimeLCDTooltip().
|
protected |
Font used for popup-menu titles.
Definition at line 254 of file GUIMainWindow.h.
Referenced by getBoldFont(), GUIMainWindow(), and ~GUIMainWindow().
|
protected |
Definition at line 281 of file GUIMainWindow.h.
Referenced by GUIMainWindow(), and ~GUIMainWindow().
|
protected |
Coordinate fields for the current cartesian, geo-coordinate and test coordinates.
Definition at line 266 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::closeAllWindows(), GNEApplicationWindow::closeAllWindows(), GNEApplicationWindow::dependentBuild(), GUIApplicationWindow::dependentBuild(), getCartesianLabel(), onCmdSetCartesianCoordinate(), GUIApplicationWindow::onKeyPress(), and GNEApplicationWindow::onKeyPress().
|
protected |
Definition at line 272 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::create(), GNEApplicationWindow::create(), GNEApplicationWindow::dependentBuild(), and GUIApplicationWindow::dependentBuild().
|
protected |
Fallback font for extended characters support.
Definition at line 257 of file GUIMainWindow.h.
Referenced by getFallbackFont(), GUIMainWindow(), and ~GUIMainWindow().
|
protected |
Definition at line 267 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::closeAllWindows(), GNEApplicationWindow::closeAllWindows(), GNEApplicationWindow::dependentBuild(), GUIApplicationWindow::dependentBuild(), getGeoLabel(), onCmdSetGeoCoordinate(), GUIApplicationWindow::onKeyPress(), and GNEApplicationWindow::onKeyPress().
|
protected |
Definition at line 273 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::create(), GNEApplicationWindow::create(), GNEApplicationWindow::dependentBuild(), and GUIApplicationWindow::dependentBuild().
|
protected |
The gl-visual used.
Definition at line 277 of file GUIMainWindow.h.
Referenced by getGLVisual(), GNEApplicationWindow::~GNEApplicationWindow(), and GUIApplicationWindow::~GUIApplicationWindow().
|
protected |
list of GLWindows
Definition at line 239 of file GUIMainWindow.h.
Referenced by addGLChild(), GUIApplicationWindow::closeAllWindows(), GNEApplicationWindow::closeAllWindows(), getActiveView(), getViewByID(), getViewIDs(), getViews(), GUIApplicationWindow::handleEvent_SimulationLoaded(), GUIApplicationWindow::onChoreLeaveFullScreen(), GUIApplicationWindow::onCmdEditViewport(), GUIApplicationWindow::onCmdEditViewScheme(), GUIApplicationWindow::onCmdFullScreen(), GUIApplicationWindow::onCmdGaming(), GUIApplicationWindow::onCmdOpenInNetedit(), and removeGLChild().
|
mutableprotected |
A lock to make the access to the GLWindows thread safe (they are also accessed by the simulation thread)
Definition at line 242 of file GUIMainWindow.h.
Referenced by addGLChild(), getViewByID(), getViewIDs(), getViews(), and removeGLChild().
|
staticprotected |
the singleton window instance
Definition at line 313 of file GUIMainWindow.h.
Referenced by getInstance(), GUIMainWindow(), and ~GUIMainWindow().
|
protected |
Language menu common to all applications.
Definition at line 286 of file GUIMainWindow.h.
Referenced by buildLanguageMenu(), GUIApplicationWindow::create(), GNEApplicationWindow::~GNEApplicationWindow(), and GUIApplicationWindow::~GUIApplicationWindow().
|
protected |
Definition at line 282 of file GUIMainWindow.h.
Referenced by GUIMainWindow(), and ~GUIMainWindow().
|
protected |
information whether the locator should list internal structures
Definition at line 298 of file GUIMainWindow.h.
Referenced by listInternal(), and GUIApplicationWindow::onCmdListInternal().
|
protected |
information whether the locator should list parking vehicles
Definition at line 301 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::fillMenuBar(), listParking(), and GUIApplicationWindow::onCmdListParking().
|
protected |
information whether the locator should list teleporting vehicles
Definition at line 304 of file GUIMainWindow.h.
Referenced by listTeleporting(), and GUIApplicationWindow::onCmdListTeleporting().
|
protected |
The multi view panel.
Definition at line 260 of file GUIMainWindow.h.
Referenced by GNEApplicationWindow::dependentBuild(), GUIApplicationWindow::dependentBuild(), GUIApplicationWindow::fillMenuBar(), getActiveView(), GUIApplicationWindow::getBuildGLCanvas(), GNEApplicationWindow::handleEvent_FileLoaded(), GUIApplicationWindow::onCmdEditChosen(), GUIApplicationWindow::onCmdFullScreen(), GUIApplicationWindow::onCmdGaming(), GUIApplicationWindow::onCmdLocate(), GNEApplicationWindow::onCmdLocate(), GUIApplicationWindow::onCmdOpenEdgeData(), GUIApplicationWindow::onCmdOpenShapes(), GUIApplicationWindow::onCmdShowStats(), GUIApplicationWindow::onCmdToggleDrawJunctionShape(), GUIApplicationWindow::onCmdToggleSecondaryShape(), GUIApplicationWindow::onKeyPress(), GNEApplicationWindow::onKeyPress(), GUIApplicationWindow::onKeyRelease(), GNEApplicationWindow::onKeyRelease(), GUIApplicationWindow::openNewView(), and updateChildren().
|
protected |
fetcher for the release news
Definition at line 307 of file GUIMainWindow.h.
Referenced by checkNews(), onCmdNews(), and ~GUIMainWindow().
|
protected |
default Font (after scaling)
Definition at line 251 of file GUIMainWindow.h.
Referenced by GUIMainWindow(), and ~GUIMainWindow().
|
protected |
online mapping services for the context menu
Definition at line 310 of file GUIMainWindow.h.
Referenced by addOnlineMap(), GUIApplicationWindow::create(), GNEApplicationWindow::create(), and getOnlineMaps().
|
protected |
Definition at line 283 of file GUIMainWindow.h.
Referenced by GUIMainWindow(), and ~GUIMainWindow().
|
protected |
static toolTip used in menus
Definition at line 289 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::buildToolBars(), GNEApplicationWindow::dependentBuild(), getStaticTooltipMenu(), GUIMainWindow(), GUIApplicationWindow::onCmdShowToolTipsMenu(), and ~GUIMainWindow().
|
protected |
static toolTip used in view
Definition at line 292 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::buildToolBars(), getStaticTooltipView(), GUIMainWindow(), GUIApplicationWindow::onCmdShowToolTipsView(), and ~GUIMainWindow().
|
protected |
The status bar.
Definition at line 263 of file GUIMainWindow.h.
Referenced by checkNews(), GNEApplicationWindow::dependentBuild(), GUIApplicationWindow::dependentBuild(), GUIApplicationWindow::fillMenuBar(), GNEApplicationWindow::fillMenuBar(), GUIApplicationWindow::onCmdFullScreen(), GUIApplicationWindow::onCmdGaming(), onCmdNews(), GUIApplicationWindow::onCmdOpenRecent(), GNEApplicationWindow::onCmdOpenRecent(), GUIApplicationWindow::onCmdStart(), GUIApplicationWindow::onCmdStep(), GUIApplicationWindow::openNewView(), GNEApplicationWindow::setStatusBarText(), GUIApplicationWindow::setStatusBarText(), and toggleMessageWindowAndStatusBar().
|
protected |
Definition at line 268 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::closeAllWindows(), GNEApplicationWindow::closeAllWindows(), GNEApplicationWindow::dependentBuild(), and getTestLabel().
|
protected |
Definition at line 274 of file GUIMainWindow.h.
Referenced by GNEApplicationWindow::closeAllWindows(), GUIApplicationWindow::create(), GNEApplicationWindow::dependentBuild(), and getTestFrame().
|
protected |
dock sites
Definition at line 280 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::buildToolBars(), GUIApplicationWindow::dependentBuild(), getTopDock(), GUIMainWindow(), and ~GUIMainWindow().
|
protected |
frames for coordinates
Definition at line 271 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::dependentBuild(), and GUIApplicationWindow::onUpdTraCIStatus().
|
protected |
A lock to make the removal and addition of trackers secure.
Definition at line 248 of file GUIMainWindow.h.
Referenced by addChild(), GUIApplicationWindow::closeAllWindows(), GNEApplicationWindow::closeAllWindows(), removeChild(), and updateChildren().
|
protected |
list of tracker windows
Definition at line 245 of file GUIMainWindow.h.
Referenced by addChild(), GUIApplicationWindow::closeAllWindows(), GNEApplicationWindow::closeAllWindows(), removeChild(), and updateChildren().