![]() |
Eclipse SUMO - Simulation of Urban MObility
|
The main window of the Netedit. More...
#include <GNEApplicationWindow.h>
Data Structures | |
struct | EditMenuCommands |
struct for edit menu commands More... | |
struct | FileMenuCommands |
struct for File menu commands More... | |
struct | LocateMenuCommands |
struct for locate menu commands More... | |
struct | MenuBarFile |
struct for menu bar file More... | |
struct | ProcessingMenuCommands |
struct for processing menu commands More... | |
struct | SupermodeCommands |
struct for supermode commands More... | |
struct | ToolbarsGrip |
FOX-declaration. More... | |
struct | WindowsMenuCommands |
struct for windows menu commands More... | |
Public Member Functions | |
void | addChild (FXMainWindow *child) |
void | addGLChild (GUIGlChildWindow *child) |
Adds a further child window to the list. More... | |
long | computeJunctionWithVolatileOptions () |
called if the user selects Processing->compute junctions with volatile options More... | |
void | create () |
Creates the main window (required by FOX) More... | |
void | dependentBuild () |
build dependent More... | |
void | disableSaveAdditionalsMenu () |
disable save additionals More... | |
void | disableSaveDemandElementsMenu () |
disable save demand elements More... | |
void | disableUndoRedo (const std::string &reason) |
disable undo-redo giving a string with the reason More... | |
void | enableSaveAdditionalsMenu () |
enable save additionals More... | |
void | enableSaveDemandElementsMenu () |
enable save demand elements More... | |
void | enableSaveTLSProgramsMenu () |
enable save TLS Programs More... | |
void | enableUndoRedo () |
disable undo-redo More... | |
GUISUMOAbstractView * | getActiveView () const |
get the active view or 0 More... | |
FXFont * | getBoldFont () |
FXLabel & | getCartesianLabel () |
FXCursor * | getDefaultCursor () |
get default cursor More... | |
virtual double | getDelay () const |
Returns the delay (should be overwritten by subclasses if applicable) More... | |
FXLabel & | getGeoLabel () |
FXGLVisual * | getGLVisual () const |
ToolbarsGrip & | getToolbarsGrip () |
get ToolbarsGrip More... | |
GNEUndoList * | getUndoList () |
get pointer to undoList More... | |
GUIGlChildWindow * | getViewByID (const std::string &id) const |
std::vector< std::string > | getViewIDs () const |
const std::vector< GUIGlChildWindow * > & | getViews () const |
GNEApplicationWindow (FXApp *a, const std::string &configPattern) | |
Constructor. More... | |
bool | isFullScreen () |
bool | isGaming () const |
return whether the gui is in gaming mode More... | |
const std::string & | isUndoRedoEnabled () const |
check if undo-redo is enabled More... | |
bool | listInternal () const |
return whether to list internal structures More... | |
bool | listParking () const |
return whether to list parking vehicles More... | |
bool | listTeleporting () const |
return whether to list teleporting vehicles More... | |
void | loadOptionOnStartup () |
load net on startup More... | |
virtual long | onCmdFullScreen (FXObject *, FXSelector, void *) |
Toggle full screen mode. More... | |
void | removeChild (FXMainWindow *child) |
void | removeGLChild (GUIGlChildWindow *child) |
removes the given child window from the list More... | |
virtual const std::vector< SUMOTime > | retrieveBreakpoints () const |
retrieve breakpoints if provided by the application More... | |
virtual void | sendBlockingEvent (GUIEvent *event) |
Sends an event from the application thread to the GUI and waits until it is handled. More... | |
virtual void | setBreakpoints (const std::vector< SUMOTime > &) |
Sets the breakpoints of the parent application. More... | |
virtual void | setDelay (double) |
Sets the delay of the parent application. More... | |
void | setStatusBarText (const std::string &statusBarText) |
set text of the statusBar More... | |
void | updateChildren () |
void | updateControls () |
update control contents after undo/redo or recompute More... | |
void | updateSuperModeMenuCommands (int supermode) |
update FXMenuCommands More... | |
~GNEApplicationWindow () | |
Destructor. More... | |
Inter-thread event handling | |
called when an event occurred | |
void | eventOccurred () |
void | handleEvent_NetworkLoaded (GUIEvent *e) |
handle event of type Network loaded More... | |
void | handleEvent_Message (GUIEvent *e) |
hanlde event of type message More... | |
FOX-callbacks | |
called when the command/FXCall new network is executed | |
long | onCmdNewNetwork (FXObject *, FXSelector, void *) |
long | onCmdOpenConfiguration (FXObject *, FXSelector, void *) |
called when the command/FXCall open configuration is executed More... | |
long | onCmdOpenNetwork (FXObject *, FXSelector, void *) |
called when the command/FXCall open network is executed More... | |
long | onCmdOpenForeign (FXObject *, FXSelector, void *) |
called when the command/FXCall open foreign is executed More... | |
long | onCmdOpenAdditionals (FXObject *, FXSelector, void *) |
called when the command/FXCall open additionals is executed More... | |
long | onCmdOpenTLSPrograms (FXObject *, FXSelector, void *) |
called when the command/FXCall open additionals is executed More... | |
long | onCmdOpenDemandElements (FXObject *, FXSelector, void *) |
called when the command/FXCall open demand is executed More... | |
long | onCmdReload (FXObject *, FXSelector, void *) |
called when the command/FXCall reload is executed More... | |
long | onCmdOpenRecent (FXObject *, FXSelector, void *) |
called when the command/FXCall open recent is executed More... | |
long | onCmdClose (FXObject *, FXSelector, void *) |
called when the command/FXCall close is executed More... | |
long | onCmdEditViewScheme (FXObject *, FXSelector, void *) |
Called on menu Edit->Visualization. More... | |
long | onCmdEditViewport (FXObject *, FXSelector, void *) |
Called on menu Edit->Viewport. More... | |
long | onCmdLocate (FXObject *, FXSelector, void *) |
called when the command/FXCall locate is executed More... | |
long | onCmdSaveNetwork (FXObject *, FXSelector, void *) |
called when the command/FXCall save network is executed More... | |
long | onCmdSaveAdditionals (FXObject *, FXSelector, void *) |
called when the command/FXCall save additionals is executed More... | |
long | onCmdSaveAdditionalsAs (FXObject *, FXSelector, void *) |
called when the command/FXCall save additionals as is executed More... | |
long | onCmdSaveTLSPrograms (FXObject *, FXSelector, void *) |
called when the command/FXCall save TLSPrograms is executed More... | |
long | onCmdSaveTLSProgramsAs (FXObject *, FXSelector, void *) |
called when the command/FXCall save TLSPrograms as is executed More... | |
long | onCmdSaveDemandElements (FXObject *, FXSelector, void *) |
called when the command/FXCall save demand elements is executed More... | |
long | onCmdSaveDemandElementsAs (FXObject *, FXSelector, void *) |
called when the command/FXCall save demand elements as is executed More... | |
long | onUpdSaveNetwork (FXObject *, FXSelector, void *) |
called when the update/FXCall save network is executed More... | |
long | onCmdSaveAsNetwork (FXObject *, FXSelector, void *) |
called when the command/FXCall save network as is executed More... | |
long | onUpdNeedsNetwork (FXObject *, FXSelector, void *) |
called when the update/FXCall needs network is executed More... | |
long | onUpdReload (FXObject *, FXSelector, void *) |
called when the update/FXCall reload is executed More... | |
long | onUpdSaveAdditionals (FXObject *, FXSelector, void *) |
called when the update/FXCall save additionals is executed More... | |
long | onUpdSaveDemandElements (FXObject *, FXSelector, void *) |
called when the update/FXCall save demand elements is executed More... | |
long | onUpdUndo (FXObject *obj, FXSelector sel, void *ptr) |
called when the update/FXCall undo is executed More... | |
long | onUpdRedo (FXObject *obj, FXSelector sel, void *ptr) |
called when the update/FXCall redo is executed More... | |
long | onCmdSaveAsPlainXML (FXObject *, FXSelector, void *) |
called when the command/FXCall save as plain xml is executed More... | |
long | onCmdSaveJoined (FXObject *, FXSelector, void *) |
called when the command/FXCall save joined is executed More... | |
long | onKeyPress (FXObject *o, FXSelector sel, void *data) |
called when a key is pressed More... | |
long | onKeyRelease (FXObject *o, FXSelector sel, void *data) |
called when a key is released More... | |
long | onCmdQuit (FXObject *, FXSelector, void *) |
Called by FOX if the application shall be closed. More... | |
long | onCmdEditChosen (FXObject *, FXSelector, void *) |
called when the command/FXCall edit chosen is executed More... | |
long | onCmdAbout (FXObject *, FXSelector, void *) |
called when the command/FXCall show about dialog is executed More... | |
long | onUpdOpen (FXObject *, FXSelector, void *) |
called when the command/FXCall on update open executed More... | |
long | onCmdClearMsgWindow (FXObject *, FXSelector, void *) |
called when the command/FXCall clear message windows is executed More... | |
long | onCmdLoadAdditionalsInSUMOGUI (FXObject *, FXSelector, void *) |
called when user toogle windows checkbox "load additionals" More... | |
long | onCmdLoadDemandInSUMOGUI (FXObject *, FXSelector, void *) |
called when user toogle windows checkbox "load demand" More... | |
long | onLoadThreadEvent (FXObject *, FXSelector, void *) |
called when the command/FXCall load thread is executed More... | |
long | onClipboardRequest (FXObject *sender, FXSelector sel, void *ptr) |
called when the command/FXCall clipboard request is executed More... | |
long | onCmdSetSuperMode (FXObject *sender, FXSelector sel, void *ptr) |
called if the user hits an edit-supermode hotkey More... | |
long | onCmdSetMode (FXObject *sender, FXSelector sel, void *ptr) |
called if the user hits an edit-mode hotkey More... | |
long | onCmdProcessButton (FXObject *, FXSelector sel, void *) |
called when user press a process button (or a shortcut) More... | |
long | onCmdOpenSUMOGUI (FXObject *sender, FXSelector sel, void *ptr) |
called if the user hints ctrl + T More... | |
long | onCmdAbort (FXObject *sender, FXSelector sel, void *ptr) |
called if the user hits esc More... | |
long | onCmdDel (FXObject *sender, FXSelector sel, void *ptr) |
called if the user hits del More... | |
long | onCmdEnter (FXObject *sender, FXSelector sel, void *ptr) |
called if the user hits enter More... | |
long | onCmdBackspace (FXObject *sender, FXSelector sel, void *ptr) |
called if the user hits backspace More... | |
long | onCmdFocusFrame (FXObject *sender, FXSelector sel, void *ptr) |
called if the user hits f More... | |
long | onCmdToogleGrid (FXObject *, FXSelector, void *) |
called if the user press key combination Ctrl + G to toogle grid More... | |
long | onCmdToogleEditOptions (FXObject *, FXSelector, void *) |
called if the user press key combination Alt + <0-9> More... | |
long | onCmdHelp (FXObject *sender, FXSelector sel, void *ptr) |
called if the user selects help->Documentation More... | |
long | onCmdOptions (FXObject *, FXSelector, void *) |
called if the user selects Processing->Configure Options More... | |
long | onCmdUndo (FXObject *, FXSelector, void *) |
called when user press Ctrl+Z More... | |
long | onCmdRedo (FXObject *, FXSelector, void *) |
long | onCmdCut (FXObject *, FXSelector, void *) |
called when user press Ctrl+Z More... | |
long | onCmdCopy (FXObject *, FXSelector, void *) |
long | onCmdPaste (FXObject *, FXSelector, void *) |
long | onCmdSetTemplate (FXObject *, FXSelector, void *) |
long | onCmdCopyTemplate (FXObject *, FXSelector, void *) |
long | onCmdClearTemplate (FXObject *, FXSelector, void *) |
inherited from GUIMainWindow | |
get build OpenGL Canvas (due NETEDIT only uses a single View, it always return nullptr) | |
FXGLCanvas * | getBuildGLCanvas () const |
SUMOTime | getCurrentSimTime () const |
get current simulation time (pure virtual but we don't need it) More... | |
double | getTrackerInterval () const |
get current tracker interval (pure virtual but we don't need it) More... | |
Static Public Member Functions | |
static GUIMainWindow * | getInstance () |
Protected Member Functions | |
GNEApplicationWindow () | |
FOX needs this for static members. More... | |
void | setWindowSizeAndPos () |
perform initial window positioning and sizing according to user options / previous call More... | |
void | storeWindowSizeAndPos () |
record window position and size in registry More... | |
Protected Attributes | |
bool | hadDependentBuild |
check if had dependent build More... | |
bool | myAmFullScreen |
whether to show the window in full screen mode More... | |
bool | myAmGaming |
information whether the gui is currently in gaming mode More... | |
bool | myAmLoading |
information whether the gui is currently loading and the load-options shall be greyed out More... | |
FXFont * | myBoldFont |
Font used for popup-menu titles. More... | |
FXDockSite * | myBottomDock |
FXLabel * | myCartesianCoordinate |
Labels for the current cartesian and geo-coordinate. More... | |
FXHorizontalFrame * | myCartesianFrame |
std::string | myConfigPattern |
Input file pattern. More... | |
FXMenuPane * | myEditMenu |
FXSynchQue< GUIEvent * > | myEvents |
List of got requests. More... | |
FXMenuPane * | myFileMenu |
the submenus More... | |
FXMenuPane * | myFileMenuAdditionals |
FXMenuPane * | myFileMenuDemandElements |
FXMenuPane * | myFileMenuTLS |
FXLabel * | myGeoCoordinate |
FXHorizontalFrame * | myGeoFrame |
FXGLVisual * | myGLVisual |
The gl-visual used. More... | |
std::vector< GUIGlChildWindow * > | myGLWindows |
FXMenuPane * | myHelpMenu |
FXDockSite * | myLeftDock |
bool | myListInternal |
information whether the locator should list internal structures More... | |
bool | myListParking |
information whether the locator should list parking vehicles More... | |
bool | myListTeleporting |
information whether the locator should list teleporting vehicles More... | |
GNELoadThread * | myLoadThread |
the thread that loads the network More... | |
FXEX::FXThreadEvent | myLoadThreadEvent |
io-event with the load-thread More... | |
FXMenuPane * | myLocatorMenu |
FXSplitter * | myMainSplitter |
The splitter that divides the main window into view and the log window. More... | |
FXMDIClient * | myMDIClient |
The multi view panel. More... | |
GUIMessageWindow * | myMessageWindow |
A window to display messages, warnings and error in. More... | |
GNENet * | myNet |
we are responsible for the net More... | |
FXMenuPane * | myProcessingMenu |
FXDockSite * | myRightDock |
FXStatusBar * | myStatusbar |
The status bar. More... | |
FXDockSite * | myTopDock |
FXMutex | myTrackerLock |
A lock to make the removal and addition of trackers secure. More... | |
std::vector< FXMainWindow * > | myTrackerWindows |
GNEUndoList * | myUndoList |
the one and only undo list More... | |
std::string | myUndoRedoListEnabled |
string to check if undo/redo list is enabled (a String is used to keep the disabling reason) More... | |
FXMenuPane * | myWindowsMenu |
Static Protected Attributes | |
static GUIMainWindow * | myInstance = nullptr |
the singleton window instance More... | |
Private Member Functions | |
void | closeAllWindows () |
this method closes all windows and deletes the current simulation */ More... | |
bool | continueWithUnsavedAdditionalChanges (const std::string &operation) |
warns about unsaved changes in additionals and gives the user the option to abort More... | |
bool | continueWithUnsavedChanges (const std::string &operation) |
warns about unsaved changes and gives the user the option to abort More... | |
bool | continueWithUnsavedDemandElementChanges (const std::string &operation) |
warns about unsaved changes in demand elements and gives the user the option to abort More... | |
void | fillMenuBar () |
Builds the menu bar. More... | |
void | loadConfigOrNet (const std::string file, bool isNet, bool isReload=false, bool useStartupOptions=false, bool newNet=false) |
starts to load a netimport configuration or a network */ More... | |
Private Attributes | |
EditMenuCommands | myEditMenuCommands |
Edit Menu Commands. More... | |
FileMenuCommands | myFileMenuCommands |
File Menu Commands. More... | |
LocateMenuCommands | myLocateMenuCommands |
Locate Menu Commands. More... | |
FXMDIMenu * | myMDIMenu |
The menu used for the MDI-windows. More... | |
MenuBarFile | myMenuBarFile |
MenuBarFile. More... | |
ProcessingMenuCommands | myProcessingMenuCommands |
Edit Menu Commands. More... | |
SupermodeCommands | mySupermodeCommands |
Supermode Commands. More... | |
const FXString | myTitlePrefix |
the prefix for the window title More... | |
ToolbarsGrip | myToolbarsGrip |
Toolbars Grip. More... | |
GNEViewNet * | myViewNet |
pointer to current view net More... | |
WindowsMenuCommands | myWindowsMenuCommands |
Windows Menu Commands. More... | |
The main window of the Netedit.
Contains the file opening support and a canvas to display the network 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 58 of file GNEApplicationWindow.h.
GNEApplicationWindow::GNEApplicationWindow | ( | FXApp * | a, |
const std::string & | configPattern | ||
) |
Constructor.
[in] | a | The FOX application |
[in] | configPattern | The pattern used for loading configurations |
Definition at line 343 of file GNEApplicationWindow.cpp.
References GUICursorSubSys::initCursors(), GUIIconSubSys::initIcons(), and GUITextureSubSys::initTextures().
GNEApplicationWindow::~GNEApplicationWindow | ( | ) |
Destructor.
Definition at line 458 of file GNEApplicationWindow.cpp.
References GUIIconSubSys::close(), GUITextureSubSys::close(), closeAllWindows(), FXSynchQue< T, Container >::empty(), myEditMenu, myEvents, myFileMenu, myFileMenuAdditionals, myFileMenuDemandElements, myFileMenuTLS, GUIMainWindow::myGLVisual, myHelpMenu, myLoadThread, myLocatorMenu, myProcessingMenu, myUndoList, myWindowsMenu, FXSynchQue< T, Container >::pop(), and FXSynchQue< T, Container >::top().
|
protected |
FOX needs this for static members.
Definition at line 3227 of file GNEApplicationWindow.cpp.
|
inherited |
Definition at line 107 of file GUIMainWindow.cpp.
References GUIMainWindow::myTrackerLock, and GUIMainWindow::myTrackerWindows.
Referenced by GUIParameterTableWindow::closeBuilding(), and GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow().
|
inherited |
Adds a further child window to the list.
Definition at line 92 of file GUIMainWindow.cpp.
References GUIMainWindow::myGLWindows.
|
private |
this method closes all windows and deletes the current simulation */
Definition at line 1734 of file GNEApplicationWindow.cpp.
References GUIMessageWindow::addSeparator(), disableSaveAdditionalsMenu(), GUIMainWindow::myCartesianCoordinate, GUIMainWindow::myGeoCoordinate, GUIMainWindow::myGLWindows, myMessageWindow, myNet, myTitlePrefix, GUIMainWindow::myTrackerLock, GUIMainWindow::myTrackerWindows, myViewNet, GLHelper::resetFont(), GeoConvHelper::resetLoaded(), GUITextureSubSys::resetTextures(), GNEViewNet::saveVisualizationSettings(), and GUIMessageWindow::unregisterMsgHandlers().
Referenced by loadConfigOrNet(), onCmdClose(), onCmdReload(), and ~GNEApplicationWindow().
long GNEApplicationWindow::computeJunctionWithVolatileOptions | ( | ) |
called if the user selects Processing->compute junctions with volatile options
Definition at line 1799 of file GNEApplicationWindow.cpp.
References FileHelpers::addExtension(), GUIMessageWindow::addSeparator(), GNENet::computeNetwork(), gCurrentFolder, MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), GNENet::getNumberOfAdditionals(), GNENet::getNumberOfDemandElements(), OptionsCont::getOptions(), OptionsCont::getString(), GNENet::getViewNet(), ICON_MODETLS, myMessageWindow, myNet, OptionsCont::resetWritable(), GNENet::saveAdditionals(), GNENet::saveDemandElements(), OptionsCont::set(), updateControls(), and WRITE_DEBUG.
Referenced by onCmdProcessButton().
|
private |
warns about unsaved changes in additionals and gives the user the option to abort
Definition at line 3089 of file GNEApplicationWindow.cpp.
References myFileMenuCommands, myViewNet, onCmdSaveAdditionals(), GNEApplicationWindow::FileMenuCommands::saveAdditionals, and WRITE_DEBUG.
Referenced by continueWithUnsavedChanges().
|
private |
warns about unsaved changes and gives the user the option to abort
Definition at line 3029 of file GNEApplicationWindow.cpp.
References continueWithUnsavedAdditionalChanges(), continueWithUnsavedDemandElementChanges(), GNENet::isNetSaved(), myNet, myUndoList, myViewNet, onCmdSaveNetwork(), GNEUndoList::p_clear(), and WRITE_DEBUG.
Referenced by onCmdClose(), onCmdQuit(), and onCmdReload().
|
private |
warns about unsaved changes in demand elements and gives the user the option to abort
Definition at line 3132 of file GNEApplicationWindow.cpp.
References myFileMenuCommands, myViewNet, onCmdSaveDemandElements(), GNEApplicationWindow::FileMenuCommands::saveDemandElements, and WRITE_DEBUG.
Referenced by continueWithUnsavedChanges().
void GNEApplicationWindow::create | ( | ) |
Creates the main window (required by FOX)
Definition at line 431 of file GNEApplicationWindow.cpp.
References gCurrentFolder, OptionsCont::getOptions(), GUIMainWindow::myCartesianFrame, myEditMenu, myFileMenu, myFileMenuAdditionals, myFileMenuDemandElements, myFileMenuTLS, GUIMainWindow::myGeoFrame, myHelpMenu, myWindowsMenu, and GUIMainWindow::setWindowSizeAndPos().
void GNEApplicationWindow::dependentBuild | ( | ) |
build dependent
Definition at line 385 of file GNEApplicationWindow.cpp.
References GNEApplicationWindow::ToolbarsGrip::buildMenuToolbarsGrip(), GUIShortcutsSubSys::buildNETEDITAccelerators(), fillMenuBar(), GUIIconSubSys::getIcon(), GUIDesignHorizontalFrameStatusBar, GUIDesignSplitter, GUIDesignSplitterMDI, GUIDesignStatusBar, hadDependentBuild, ICON_NETEDIT, ID_LOADTHREAD_EVENT, MID_WINDOW, GUIMainWindow::myCartesianCoordinate, GUIMainWindow::myCartesianFrame, myEvents, GUIMainWindow::myGeoCoordinate, GUIMainWindow::myGeoFrame, myLoadThread, myLoadThreadEvent, myMainSplitter, GUIMainWindow::myMDIClient, myMDIMenu, myMessageWindow, GUIMainWindow::myStatusbar, myTitlePrefix, myToolbarsGrip, FXEX::FXBaseObject::setSelector(), FXEX::FXBaseObject::setTarget(), and WRITE_ERROR.
Referenced by main().
void GNEApplicationWindow::disableSaveAdditionalsMenu | ( | ) |
disable save additionals
Definition at line 1960 of file GNEApplicationWindow.cpp.
References myFileMenuCommands, GNEApplicationWindow::FileMenuCommands::saveAdditionals, and GNEApplicationWindow::FileMenuCommands::saveAdditionalsAs.
Referenced by closeAllWindows(), onCmdClose(), onCmdOpenNetwork(), onCmdReload(), and GNENet::requireSaveAdditionals().
void GNEApplicationWindow::disableSaveDemandElementsMenu | ( | ) |
disable save demand elements
Definition at line 1980 of file GNEApplicationWindow.cpp.
References myFileMenuCommands, GNEApplicationWindow::FileMenuCommands::saveDemandElements, and GNEApplicationWindow::FileMenuCommands::saveDemandElementsAs.
Referenced by GNENet::requireSaveDemandElements().
void GNEApplicationWindow::disableUndoRedo | ( | const std::string & | reason | ) |
disable undo-redo giving a string with the reason
Definition at line 3207 of file GNEApplicationWindow.cpp.
References myUndoRedoListEnabled.
void GNEApplicationWindow::enableSaveAdditionalsMenu | ( | ) |
enable save additionals
Definition at line 1953 of file GNEApplicationWindow.cpp.
References myFileMenuCommands, GNEApplicationWindow::FileMenuCommands::saveAdditionals, and GNEApplicationWindow::FileMenuCommands::saveAdditionalsAs.
Referenced by GNENet::requireSaveAdditionals().
void GNEApplicationWindow::enableSaveDemandElementsMenu | ( | ) |
enable save demand elements
Definition at line 1973 of file GNEApplicationWindow.cpp.
References myFileMenuCommands, GNEApplicationWindow::FileMenuCommands::saveDemandElements, and GNEApplicationWindow::FileMenuCommands::saveDemandElementsAs.
Referenced by GNENet::requireSaveDemandElements().
void GNEApplicationWindow::enableSaveTLSProgramsMenu | ( | ) |
enable save TLS Programs
Definition at line 1967 of file GNEApplicationWindow.cpp.
References myFileMenuCommands, and GNEApplicationWindow::FileMenuCommands::saveTLSPrograms.
Referenced by GNENet::requireSaveTLSPrograms().
void GNEApplicationWindow::enableUndoRedo | ( | ) |
disable undo-redo
Definition at line 3213 of file GNEApplicationWindow.cpp.
References myUndoRedoListEnabled.
|
virtual |
Implements MFXInterThreadEventClient.
Definition at line 880 of file GNEApplicationWindow.cpp.
References FXSynchQue< T, Container >::empty(), EVENT_DEBUG_OCCURRED, EVENT_ERROR_OCCURRED, EVENT_GLDEBUG_OCCURRED, EVENT_MESSAGE_OCCURRED, EVENT_SIMULATION_LOADED, EVENT_WARNING_OCCURRED, GUIEvent::getOwnType(), handleEvent_Message(), handleEvent_NetworkLoaded(), myEvents, FXSynchQue< T, Container >::pop(), and FXSynchQue< T, Container >::top().
Referenced by onLoadThreadEvent().
|
private |
Builds the menu bar.
Definition at line 1637 of file GNEApplicationWindow.cpp.
References GNEApplicationWindow::EditMenuCommands::buildEditMenuCommands(), GNEApplicationWindow::FileMenuCommands::buildFileMenuCommands(), GNEApplicationWindow::LocateMenuCommands::buildLocateMenuCommands(), GNEApplicationWindow::ProcessingMenuCommands::buildProcessingMenuCommands(), GNEApplicationWindow::WindowsMenuCommands::buildWindowsMenuCommands(), GUIIconSubSys::getIcon(), ICON_NETEDIT_MINI, GNEApplicationWindow::ToolbarsGrip::menu, MID_HOTKEY_F1_ONLINEDOCUMENTATION, MID_HOTKEY_F2_ABOUT, myEditMenu, myEditMenuCommands, myFileMenu, myFileMenuCommands, myHelpMenu, myLocateMenuCommands, myLocatorMenu, myProcessingMenu, myProcessingMenuCommands, myToolbarsGrip, myWindowsMenu, and myWindowsMenuCommands.
Referenced by dependentBuild().
|
inherited |
get the active view or 0
Definition at line 191 of file GUIMainWindow.cpp.
References GUIGlChildWindow::getView(), and GUIMainWindow::myMDIClient.
Referenced by GUIVehicle::drawOutsideNetwork().
|
inherited |
Definition at line 145 of file GUIMainWindow.cpp.
References GUIMainWindow::myBoldFont.
Referenced by GUIGlObject::buildPopupHeader().
|
virtual |
Implements GUIMainWindow.
Definition at line 1703 of file GNEApplicationWindow.cpp.
|
inherited |
Definition at line 170 of file GUIMainWindow.cpp.
References GUIMainWindow::myCartesianCoordinate.
Referenced by GUISUMOAbstractView::updatePositionInformation().
|
virtual |
get current simulation time (pure virtual but we don't need it)
Implements GUIMainWindow.
Definition at line 1710 of file GNEApplicationWindow.cpp.
FXCursor * GNEApplicationWindow::getDefaultCursor | ( | ) |
get default cursor
Definition at line 1777 of file GNEApplicationWindow.cpp.
|
inlinevirtualinherited |
Returns the delay (should be overwritten by subclasses if applicable)
Reimplemented in GUIApplicationWindow.
Definition at line 106 of file GUIMainWindow.h.
Referenced by GUISUMOAbstractView::getDelay(), and GUIViewTraffic::saveFrame().
|
inherited |
Definition at line 176 of file GUIMainWindow.cpp.
References GUIMainWindow::myGeoCoordinate.
Referenced by GUISUMOAbstractView::updatePositionInformation().
|
inherited |
Definition at line 164 of file GUIMainWindow.cpp.
References GUIMainWindow::myGLVisual.
Referenced by GUISUMOViewParent::init().
|
staticinherited |
Definition at line 182 of file GUIMainWindow.cpp.
References GUIMainWindow::myInstance.
Referenced by GUIVehicle::drawOutsideNetwork(), TraCIServerAPI_GUI::getNamedView(), GUITexturesHelper::getTextureID(), TraCIServerAPI_GUI::processGet(), GUIMessageWindow::setCursorPos(), and GUIRunThread::waitForSnapshots().
GNEApplicationWindow::ToolbarsGrip & GNEApplicationWindow::getToolbarsGrip | ( | ) |
get ToolbarsGrip
Definition at line 1728 of file GNEApplicationWindow.cpp.
References myToolbarsGrip.
Referenced by GNEViewNet::updateDemandModeSpecificControls(), GNEViewNet::updateNetworkModeSpecificControls(), and GNEViewParent::~GNEViewParent().
|
virtual |
get current tracker interval (pure virtual but we don't need it)
Implements GUIMainWindow.
Definition at line 1716 of file GNEApplicationWindow.cpp.
GNEUndoList * GNEApplicationWindow::getUndoList | ( | ) |
get pointer to undoList
Definition at line 1722 of file GNEApplicationWindow.cpp.
References myUndoList.
Referenced by GNEViewParent::updateUndoRedoButtons().
|
inherited |
Definition at line 134 of file GUIMainWindow.cpp.
References GUIMainWindow::myGLWindows.
Referenced by TraCIServerAPI_GUI::getNamedView().
|
inherited |
Definition at line 124 of file GUIMainWindow.cpp.
References GUIMainWindow::myGLWindows.
Referenced by TraCIServerAPI_GUI::processGet().
|
inlineinherited |
Definition at line 60 of file GUIMainWindow.h.
References GUIMainWindow::myGLWindows.
Referenced by GUIRunThread::waitForSnapshots().
void GNEApplicationWindow::handleEvent_Message | ( | GUIEvent * | e | ) |
hanlde event of type message
Definition at line 1018 of file GNEApplicationWindow.cpp.
References GUIMessageWindow::appendMsg(), GUIEvent_Message::getMsg(), GUIEvent::getOwnType(), and myMessageWindow.
Referenced by eventOccurred().
void GNEApplicationWindow::handleEvent_NetworkLoaded | ( | GUIEvent * | e | ) |
handle event of type Network loaded
Definition at line 906 of file GNEApplicationWindow.cpp.
References GUISUMOAbstractView::addDecals(), GUISettingsHandler::addSettings(), GUISettingsHandler::applyViewport(), GNEApplicationWindow::ToolbarsGrip::buildViewParentToolbarsGrips(), GUISettingsHandler::getDecals(), OptionsCont::getOptions(), OptionsCont::getString(), OptionsCont::getStringVector(), MFXUtils::getTitleText(), GUIGlChildWindow::getView(), GNENet::getViewNet(), OptionsCont::isSet(), MID_HOTKEY_F3_SUPERMODE_NETWORK, myAmLoading, GNEEvent_NetworkLoaded::myFile, GUIMainWindow::myMDIClient, myMDIMenu, myMessageWindow, myNet, GNEEvent_NetworkLoaded::myNet, GNEEvent_NetworkLoaded::mySettingsFile, myTitlePrefix, myToolbarsGrip, myUndoList, myViewNet, GNEEvent_NetworkLoaded::myViewportFromRegistry, GNEViewNet::onCmdSetSupermode(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GUIMessageWindow::registerMsgHandlers(), GNENet::requireSaveNet(), OptionsCont::resetWritable(), XMLSubSys::runParser(), OptionsCont::set(), Position::set(), GUISettingsHandler::setSnapshots(), setStatusBarText(), XMLSubSys::setValidation(), GUISUMOAbstractView::setViewportFromToRot(), GUIMainWindow::setWindowSizeAndPos(), toString(), WRITE_ERROR, WRITE_MESSAGE, Position::x(), and Position::y().
Referenced by eventOccurred().
|
inlineinherited |
Definition at line 133 of file GUIMainWindow.h.
References GUIMainWindow::myAmFullScreen.
Referenced by GUIViewTraffic::onDoubleClicked().
|
inlineinherited |
return whether the gui is in gaming mode
Definition at line 82 of file GUIMainWindow.h.
References GUIMainWindow::myAmGaming.
Referenced by GUISUMOViewParent::init(), GUISUMOAbstractView::onLeftBtnRelease(), GUISUMOAbstractView::onMouseWheel(), GUISUMOAbstractView::onRightBtnRelease(), and GUIViewTraffic::setColorScheme().
const std::string & GNEApplicationWindow::isUndoRedoEnabled | ( | ) | const |
check if undo-redo is enabled
Definition at line 3219 of file GNEApplicationWindow.cpp.
References myUndoRedoListEnabled.
Referenced by GNEUndoList::p_onUpdRedo(), and GNEUndoList::p_onUpdUndo().
|
inlineinherited |
return whether to list internal structures
Definition at line 87 of file GUIMainWindow.h.
References GUIMainWindow::myListInternal.
Referenced by GUISUMOViewParent::onCmdLocate().
|
inlineinherited |
return whether to list parking vehicles
Definition at line 92 of file GUIMainWindow.h.
References GUIMainWindow::myListParking.
Referenced by GUIApplicationWindow::fillMenuBar(), and GUISUMOViewParent::onCmdLocate().
|
inlineinherited |
return whether to list teleporting vehicles
Definition at line 97 of file GUIMainWindow.h.
References GUIMainWindow::myListTeleporting.
Referenced by GUISUMOViewParent::onCmdLocate().
|
private |
starts to load a netimport configuration or a network */
Definition at line 1680 of file GNEApplicationWindow.cpp.
References closeAllWindows(), gSchemeStorage, GNELoadThread::loadConfigOrNet(), myAmLoading, myEditMenuCommands, myLoadThread, mySupermodeCommands, GNEApplicationWindow::EditMenuCommands::networkMenuCommands, GUICompleteSchemeStorage::saveViewport(), setStatusBarText(), GNEApplicationWindow::EditMenuCommands::NetworkMenuCommands::showNetworkMenuCommands(), GNEApplicationWindow::SupermodeCommands::showSupermodeCommands(), and GUIMainWindow::storeWindowSizeAndPos().
Referenced by loadOptionOnStartup(), onCmdNewNetwork(), onCmdOpenConfiguration(), onCmdOpenForeign(), onCmdOpenNetwork(), onCmdOpenRecent(), and onCmdReload().
void GNEApplicationWindow::loadOptionOnStartup | ( | ) |
load net on startup
Definition at line 1783 of file GNEApplicationWindow.cpp.
References OptionsCont::getBool(), OptionsCont::getOptions(), loadConfigOrNet(), and OptionsCont::set().
Referenced by main().
long GNEApplicationWindow::onClipboardRequest | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called when the command/FXCall clipboard request is executed
Definition at line 864 of file GNEApplicationWindow.cpp.
References GUIUserIO::clipped.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdAbort | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called if the user hits esc
Definition at line 2152 of file GNEApplicationWindow.cpp.
References GNEViewNet::abortOperation(), GNETAZFrame::TAZSelectionStatistics::clearSelectedEdges(), GNETAZFrame::TAZSelectionStatistics::getEdgeAndTAZChildrenSelected(), GNEViewParent::getInspectorFrame(), GNEViewParent::getTAZFrame(), GNETAZFrame::getTAZSelectionStatisticsModul(), GNEViewNet::getViewParent(), GNEInspectorFrame::inspectSingleElement(), myViewNet, GNEViewNet::update(), and WRITE_DEBUG.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdAbout | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall show about dialog is executed
Definition at line 851 of file GNEApplicationWindow.cpp.
References GNEAbout::create(), and WRITE_DEBUG.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdBackspace | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called if the user hits backspace
Definition at line 2203 of file GNEApplicationWindow.cpp.
References GNEViewNet::hotkeyBackSpace(), myViewNet, and WRITE_DEBUG.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdClearMsgWindow | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall clear message windows is executed
Definition at line 828 of file GNEApplicationWindow.cpp.
References GUIMessageWindow::clear(), and myMessageWindow.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdClearTemplate | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 2615 of file GNEApplicationWindow.cpp.
References GNEInspectorFrame::TemplateEditor::clearTemplate(), GNEViewParent::getInspectorFrame(), GNEInspectorFrame::getTemplateEditor(), GNEViewNet::getViewParent(), myViewNet, and WRITE_DEBUG.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdClose | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall close is executed
Definition at line 794 of file GNEApplicationWindow.cpp.
References closeAllWindows(), continueWithUnsavedChanges(), GNEApplicationWindow::EditMenuCommands::demandMenuCommands, disableSaveAdditionalsMenu(), GNEApplicationWindow::EditMenuCommands::DemandMenuCommands::hideDemandMenuCommands(), GNEApplicationWindow::EditMenuCommands::NetworkMenuCommands::hideNetworkMenuCommands(), GNEApplicationWindow::SupermodeCommands::hideSupermodeCommands(), myEditMenuCommands, myFileMenuCommands, mySupermodeCommands, GNEApplicationWindow::EditMenuCommands::networkMenuCommands, and GNEApplicationWindow::FileMenuCommands::saveTLSPrograms.
Referenced by FXDEFMAP(), onCmdNewNetwork(), onCmdOpenConfiguration(), onCmdOpenForeign(), onCmdOpenNetwork(), and onCmdOpenRecent().
long GNEApplicationWindow::onCmdCopy | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 2575 of file GNEApplicationWindow.cpp.
References WRITE_DEBUG.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdCopyTemplate | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 2603 of file GNEApplicationWindow.cpp.
References GNEInspectorFrame::TemplateEditor::copyTemplate(), GNEViewParent::getInspectorFrame(), GNEInspectorFrame::getTemplateEditor(), GNEViewNet::getViewParent(), myViewNet, and WRITE_DEBUG.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdCut | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user press Ctrl+Z
Definition at line 2567 of file GNEApplicationWindow.cpp.
References WRITE_DEBUG.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdDel | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called if the user hits del
Definition at line 2179 of file GNEApplicationWindow.cpp.
References GNEViewNet::hotkeyDel(), myViewNet, and WRITE_DEBUG.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdEditChosen | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall edit chosen is executed
Definition at line 508 of file GNEApplicationWindow.cpp.
References gSelected.
long GNEApplicationWindow::onCmdEditViewport | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called on menu Edit->Viewport.
Definition at line 2225 of file GNEApplicationWindow.cpp.
References myViewNet, and GUISUMOAbstractView::showViewportEditor().
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdEditViewScheme | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called on menu Edit->Visualization.
Definition at line 2235 of file GNEApplicationWindow.cpp.
References myViewNet, and GUISUMOAbstractView::showViewschemeEditor().
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdEnter | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called if the user hits enter
Definition at line 2191 of file GNEApplicationWindow.cpp.
References GNEViewNet::hotkeyEnter(), myViewNet, and WRITE_DEBUG.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdFocusFrame | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called if the user hits f
Definition at line 2215 of file GNEApplicationWindow.cpp.
References GNEViewNet::hotkeyFocusFrame(), and myViewNet.
Referenced by FXDEFMAP().
|
inlinevirtualinherited |
Toggle full screen mode.
Reimplemented in GUIApplicationWindow.
Definition at line 129 of file GUIMainWindow.h.
Referenced by GUIViewTraffic::onDoubleClicked().
long GNEApplicationWindow::onCmdHelp | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called if the user selects help->Documentation
Definition at line 2504 of file GNEApplicationWindow.cpp.
References FXLinkLabel::fxexecute().
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdLoadAdditionalsInSUMOGUI | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user toogle windows checkbox "load additionals"
Definition at line 835 of file GNEApplicationWindow.cpp.
References WRITE_DEBUG.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdLoadDemandInSUMOGUI | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user toogle windows checkbox "load demand"
Definition at line 843 of file GNEApplicationWindow.cpp.
References WRITE_DEBUG.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdLocate | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
called when the command/FXCall locate is executed
Definition at line 810 of file GNEApplicationWindow.cpp.
References GUIMainWindow::myMDIClient, and GNEViewParent::onCmdLocate().
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdNewNetwork | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 518 of file GNEApplicationWindow.cpp.
References GNELoadThread::fillOptions(), OptionsCont::getOptions(), loadConfigOrNet(), myViewNet, onCmdClose(), and GNELoadThread::setDefaultOptions().
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdOpenAdditionals | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall open additionals is executed
Definition at line 635 of file GNEApplicationWindow.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), GNENet::getViewNet(), ICON_MODEADDITIONAL, myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), XMLSubSys::runParser(), XMLSubSys::setValidation(), WRITE_DEBUG, and WRITE_ERROR.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdOpenConfiguration | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall open configuration is executed
Definition at line 533 of file GNEApplicationWindow.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), ICON_OPEN_CONFIG, loadConfigOrNet(), myConfigPattern, myMenuBarFile, GNEApplicationWindow::MenuBarFile::myRecentConfigs, myViewNet, and onCmdClose().
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdOpenDemandElements | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall open demand is executed
Definition at line 712 of file GNEApplicationWindow.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), GNENet::getViewNet(), ICON_SUPERMODEDEMAND, myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), XMLSubSys::runParser(), XMLSubSys::setValidation(), WRITE_DEBUG, and WRITE_ERROR.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdOpenForeign | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall open foreign is executed
Definition at line 588 of file GNEApplicationWindow.cpp.
References NIFrame::checkOptions(), GNELoadThread::fillOptions(), gCurrentFolder, GUIIconSubSys::getIcon(), OptionsCont::getOptions(), ICON_OPEN_NET, loadConfigOrNet(), myViewNet, onCmdClose(), and OptionsCont::set().
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdOpenNetwork | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall open network is executed
Definition at line 559 of file GNEApplicationWindow.cpp.
References disableSaveAdditionalsMenu(), gCurrentFolder, GUIIconSubSys::getIcon(), ICON_OPEN_NET, loadConfigOrNet(), myFileMenuCommands, myMenuBarFile, GNEApplicationWindow::MenuBarFile::myRecentNets, myViewNet, onCmdClose(), and GNEApplicationWindow::FileMenuCommands::saveTLSPrograms.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdOpenRecent | ( | FXObject * | sender, |
FXSelector | , | ||
void * | fileData | ||
) |
called when the command/FXCall open recent is executed
Definition at line 753 of file GNEApplicationWindow.cpp.
References loadConfigOrNet(), myAmLoading, myMenuBarFile, GNEApplicationWindow::MenuBarFile::myRecentNets, GUIMainWindow::myStatusbar, myViewNet, and onCmdClose().
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdOpenSUMOGUI | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called if the user hints ctrl + T
Definition at line 2077 of file GNEApplicationWindow.cpp.
References GUISUMOAbstractView::getChanger(), GNEViewNet::getNet(), GNENet::getNumberOfAdditionals(), GNENet::getNumberOfDemandElements(), OptionsCont::getOptions(), OptionsCont::getString(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZPos(), GNENet::isAdditionalsSaved(), GNENet::isDemandElementsSaved(), GNENet::isNetSaved(), FileHelpers::isReadable(), GNEApplicationWindow::EditMenuCommands::loadAdditionalsInSUMOGUI, GNEApplicationWindow::EditMenuCommands::loadDemandInSUMOGUI, myEditMenuCommands, myViewNet, onCmdSaveAdditionals(), onCmdSaveDemandElements(), onCmdSaveNetwork(), SysUtils::runHiddenCommand(), and WRITE_MESSAGE.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdOpenTLSPrograms | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall open additionals is executed
Definition at line 676 of file GNEApplicationWindow.cpp.
References GNENet::computeNetwork(), gCurrentFolder, GUIIconSubSys::getIcon(), GNEViewParent::getTLSEditorFrame(), GNENet::getViewNet(), GNEViewNet::getViewParent(), ICON_MODETLS, myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNETLSEditorFrame::parseTLSPrograms(), and WRITE_DEBUG.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdOptions | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called if the user selects Processing->Configure Options
Definition at line 2511 of file GNEApplicationWindow.cpp.
References NBFrame::checkOptions(), NIFrame::checkOptions(), NWFrame::checkOptions(), and SystemFrame::checkOptions().
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdPaste | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 2583 of file GNEApplicationWindow.cpp.
References WRITE_DEBUG.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdProcessButton | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
called when user press a process button (or a shortcut)
Definition at line 2007 of file GNEApplicationWindow.cpp.
References GNENet::cleanInvalidCrossings(), GNENet::cleanInvalidDemandElements(), GNENet::cleanUnusedRoutes(), GNENet::computeDemandElements(), computeJunctionWithVolatileOptions(), GNENet::computeNetwork(), GNEViewNetHelper::EditModes::currentSupermode, GNEViewNet::getEditModes(), GNE_SUPERMODE_NETWORK, GNENet::joinRoutes(), GNENet::joinSelectedJunctions(), MID_HOTKEY_F5_COMPUTE_NETWORK_DEMAND, MID_HOTKEY_F6_CLEAN_SOLITARYJUNCTIONS_UNUSEDROUTES, MID_HOTKEY_F7_JOIN_SELECTEDJUNCTIONS_ROUTES, MID_HOTKEY_F8_CLEANINVALID_CROSSINGS_DEMANDELEMENTS, MID_HOTKEY_SHIFT_F5_COMPUTEJUNCTIONS_VOLATILE, myNet, myUndoList, myViewNet, GNENet::removeSolitaryJunctions(), updateControls(), and WRITE_DEBUG.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdQuit | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called by FOX if the application shall be closed.
Definition at line 492 of file GNEApplicationWindow.cpp.
References continueWithUnsavedChanges(), gCurrentFolder, and GUIMainWindow::storeWindowSizeAndPos().
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdRedo | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 2546 of file GNEApplicationWindow.cpp.
References GNEViewParent::getCurrentShownFrame(), GNEViewNet::getUndoList(), GNEViewNet::getViewParent(), myEditMenuCommands, myViewNet, onUpdRedo(), onUpdUndo(), GNEUndoList::redo(), GNEApplicationWindow::EditMenuCommands::redoLastChange, GNEApplicationWindow::EditMenuCommands::undoLastChange, GNEFrame::updateFrameAfterUndoRedo(), GNEViewParent::updateUndoRedoButtons(), and WRITE_DEBUG.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdReload | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall reload is executed
Definition at line 769 of file GNEApplicationWindow.cpp.
References closeAllWindows(), continueWithUnsavedChanges(), GNEApplicationWindow::EditMenuCommands::demandMenuCommands, disableSaveAdditionalsMenu(), OptionsCont::getOptions(), GNEApplicationWindow::EditMenuCommands::DemandMenuCommands::hideDemandMenuCommands(), GNEApplicationWindow::EditMenuCommands::NetworkMenuCommands::hideNetworkMenuCommands(), GNEApplicationWindow::SupermodeCommands::hideSupermodeCommands(), loadConfigOrNet(), myEditMenuCommands, myFileMenuCommands, mySupermodeCommands, myViewNet, GNEApplicationWindow::EditMenuCommands::networkMenuCommands, and GNEApplicationWindow::FileMenuCommands::saveTLSPrograms.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdSaveAdditionals | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall save additionals is executed
Definition at line 2804 of file GNEApplicationWindow.cpp.
References FileHelpers::addExtension(), GUIMessageWindow::addSeparator(), GUIMessageWindow::appendMsg(), EVENT_MESSAGE_OCCURRED, gCurrentFolder, MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), OptionsCont::getOptions(), OptionsCont::getString(), ICON_MODEADDITIONAL, myFileMenuCommands, myMessageWindow, myNet, OptionsCont::resetWritable(), GNEApplicationWindow::FileMenuCommands::saveAdditionals, GNENet::saveAdditionals(), OptionsCont::set(), and WRITE_DEBUG.
Referenced by continueWithUnsavedAdditionalChanges(), FXDEFMAP(), onCmdOpenSUMOGUI(), and onCmdSaveAdditionalsAs().
long GNEApplicationWindow::onCmdSaveAdditionalsAs | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall save additionals as is executed
Definition at line 2851 of file GNEApplicationWindow.cpp.
References FileHelpers::addExtension(), gCurrentFolder, MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), OptionsCont::getOptions(), ICON_MODEADDITIONAL, myFileMenuCommands, onCmdSaveAdditionals(), OptionsCont::resetWritable(), GNEApplicationWindow::FileMenuCommands::saveAdditionals, and OptionsCont::set().
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdSaveAsNetwork | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall save network as is executed
Definition at line 2627 of file GNEApplicationWindow.cpp.
References FileHelpers::addExtension(), gCurrentFolder, MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), OptionsCont::getOptions(), MFXUtils::getTitleText(), ICON_SAVE, myTitlePrefix, onCmdSaveNetwork(), OptionsCont::resetWritable(), and OptionsCont::set().
Referenced by FXDEFMAP(), and onCmdSaveNetwork().
long GNEApplicationWindow::onCmdSaveAsPlainXML | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall save as plain xml is executed
Definition at line 2647 of file GNEApplicationWindow.cpp.
References GUIMessageWindow::addSeparator(), GUIMessageWindow::appendMsg(), StringUtils::endsWith(), EVENT_MESSAGE_OCCURRED, gCurrentFolder, MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), OptionsCont::getOptions(), OptionsCont::getString(), ICON_SAVE, OptionsCont::isSet(), myMessageWindow, myNet, myUndoList, OptionsCont::resetWritable(), GNENet::savePlain(), OptionsCont::set(), OptionsCont::unSet(), and WRITE_DEBUG.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdSaveDemandElements | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall save demand elements is executed
Definition at line 2944 of file GNEApplicationWindow.cpp.
References FileHelpers::addExtension(), GUIMessageWindow::addSeparator(), GUIMessageWindow::appendMsg(), EVENT_MESSAGE_OCCURRED, gCurrentFolder, MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), OptionsCont::getOptions(), OptionsCont::getString(), ICON_MODEADDITIONAL, myFileMenuCommands, myMessageWindow, myNet, OptionsCont::resetWritable(), GNEApplicationWindow::FileMenuCommands::saveDemandElements, GNENet::saveDemandElements(), OptionsCont::set(), and WRITE_DEBUG.
Referenced by continueWithUnsavedDemandElementChanges(), FXDEFMAP(), onCmdOpenSUMOGUI(), and onCmdSaveDemandElementsAs().
long GNEApplicationWindow::onCmdSaveDemandElementsAs | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall save demand elements as is executed
Definition at line 2991 of file GNEApplicationWindow.cpp.
References FileHelpers::addExtension(), gCurrentFolder, MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), OptionsCont::getOptions(), ICON_SUPERMODEDEMAND, myFileMenuCommands, onCmdSaveDemandElements(), OptionsCont::resetWritable(), GNEApplicationWindow::FileMenuCommands::saveDemandElements, and OptionsCont::set().
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdSaveJoined | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall save joined is executed
Definition at line 2695 of file GNEApplicationWindow.cpp.
References FileHelpers::addExtension(), GUIMessageWindow::addSeparator(), GUIMessageWindow::appendMsg(), EVENT_MESSAGE_OCCURRED, gCurrentFolder, MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), OptionsCont::getOptions(), OptionsCont::getString(), ICON_SAVE, OptionsCont::isSet(), myMessageWindow, myNet, OptionsCont::resetWritable(), GNENet::saveJoined(), OptionsCont::set(), OptionsCont::unSet(), and WRITE_DEBUG.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdSaveNetwork | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall save network is executed
Definition at line 2774 of file GNEApplicationWindow.cpp.
References GUIMessageWindow::addSeparator(), GUIMessageWindow::appendMsg(), EVENT_MESSAGE_OCCURRED, OptionsCont::getOptions(), OptionsCont::getString(), OptionsCont::isDefault(), myMenuBarFile, myMessageWindow, myNet, GNEApplicationWindow::MenuBarFile::myRecentNets, myUndoList, onCmdSaveAsNetwork(), GNENet::save(), and WRITE_DEBUG.
Referenced by continueWithUnsavedChanges(), FXDEFMAP(), onCmdOpenSUMOGUI(), and onCmdSaveAsNetwork().
long GNEApplicationWindow::onCmdSaveTLSPrograms | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall save TLSPrograms is executed
Definition at line 2876 of file GNEApplicationWindow.cpp.
References FileHelpers::addExtension(), GUIMessageWindow::addSeparator(), GUIMessageWindow::appendMsg(), EVENT_MESSAGE_OCCURRED, gCurrentFolder, MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), OptionsCont::getOptions(), OptionsCont::getString(), ICON_MODETLS, myFileMenuCommands, myMessageWindow, myNet, OptionsCont::resetWritable(), GNEApplicationWindow::FileMenuCommands::saveTLSPrograms, GNENet::saveTLSPrograms(), OptionsCont::set(), and WRITE_DEBUG.
Referenced by FXDEFMAP(), and onCmdSaveTLSProgramsAs().
long GNEApplicationWindow::onCmdSaveTLSProgramsAs | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall save TLSPrograms as is executed
Definition at line 2923 of file GNEApplicationWindow.cpp.
References FileHelpers::addExtension(), gCurrentFolder, MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), OptionsCont::getOptions(), ICON_MODETLS, onCmdSaveTLSPrograms(), and OptionsCont::set().
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdSetMode | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called if the user hits an edit-mode hotkey
Definition at line 1997 of file GNEApplicationWindow.cpp.
References myViewNet, and GNEViewNet::onCmdSetMode().
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdSetSuperMode | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called if the user hits an edit-supermode hotkey
Definition at line 1987 of file GNEApplicationWindow.cpp.
References myViewNet, and GNEViewNet::onCmdSetSupermode().
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdSetTemplate | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 2591 of file GNEApplicationWindow.cpp.
References GNEViewParent::getInspectorFrame(), GNEInspectorFrame::getTemplateEditor(), GNEViewNet::getViewParent(), myViewNet, GNEInspectorFrame::TemplateEditor::setTemplate(), and WRITE_DEBUG.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdToogleEditOptions | ( | FXObject * | obj, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called if the user press key combination Alt + <0-9>
Definition at line 2266 of file GNEApplicationWindow.cpp.
References GNEViewNet::getCommonViewOptions(), GNEViewNet::getDemandViewOptions(), GNEViewNet::getNetworkViewOptions(), GNEViewNetHelper::CommonViewOptions::getVisibleCommonMenuCommands(), GNEViewNetHelper::DemandViewOptions::getVisibleDemandMenuCommands(), GNEViewNetHelper::NetworkViewOptions::getVisibleNetworkMenuCommands(), GNEViewNetHelper::NetworkViewOptions::menuCheckAutoOppositeEdge, GNEViewNetHelper::NetworkViewOptions::menuCheckChainEdges, GNEViewNetHelper::NetworkViewOptions::menuCheckChangeAllPhases, GNEViewNetHelper::NetworkViewOptions::menuCheckExtendSelection, GNEViewNetHelper::NetworkViewOptions::menuCheckHideConnections, GNEViewNetHelper::DemandViewOptions::menuCheckHideNonInspectedDemandElements, GNEViewNetHelper::DemandViewOptions::menuCheckHideShapes, GNEViewNetHelper::DemandViewOptions::menuCheckLockPerson, GNEViewNetHelper::NetworkViewOptions::menuCheckMoveElevation, GNEViewNetHelper::NetworkViewOptions::menuCheckSelectEdges, GNEViewNetHelper::DemandViewOptions::menuCheckShowAllPersonPlans, GNEViewNetHelper::NetworkViewOptions::menuCheckShowConnections, GNEViewNetHelper::NetworkViewOptions::menuCheckShowDemandElements, GNEViewNetHelper::CommonViewOptions::menuCheckShowGrid, GNEViewNetHelper::NetworkViewOptions::menuCheckShowJunctionBubble, GNEViewNetHelper::NetworkViewOptions::menuCheckWarnAboutMerge, MID_HOTKEY_ALT_0_TOOGLEEDITOPTION, myViewNet, GNEViewNet::onCmdToogleAutoOppositeEdge(), GNEViewNet::onCmdToogleChainEdges(), GNEViewNet::onCmdToogleChangeAllPhases(), GNEViewNet::onCmdToogleExtendSelection(), GNEViewNet::onCmdToogleHideConnections(), GNEViewNet::onCmdToogleHideNonInspecteDemandElements(), GNEViewNet::onCmdToogleHideShapes(), GNEViewNet::onCmdToogleLockPerson(), GNEViewNet::onCmdToogleMoveElevation(), GNEViewNet::onCmdToogleSelectEdges(), GNEViewNet::onCmdToogleShowConnections(), GNEViewNet::onCmdToogleShowDemandElements(), GNEViewNet::onCmdToogleShowGrid(), GNEViewNet::onCmdToogleShowJunctionBubbles(), GNEViewNet::onCmdToogleWarnAboutMerge(), toString(), and WRITE_DEBUG.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdToogleGrid | ( | FXObject * | obj, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called if the user press key combination Ctrl + G to toogle grid
Definition at line 2245 of file GNEApplicationWindow.cpp.
References GNEViewNet::getCommonViewOptions(), GNEViewNetHelper::CommonViewOptions::menuCheckShowGrid, myViewNet, GNEViewNet::onCmdToogleShowGrid(), WRITE_DEBUG, and WRITE_WARNING.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onCmdUndo | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user press Ctrl+Z
Definition at line 2526 of file GNEApplicationWindow.cpp.
References GNEViewParent::getCurrentShownFrame(), GNEViewNet::getUndoList(), GNEViewNet::getViewParent(), myEditMenuCommands, myViewNet, onUpdRedo(), onUpdUndo(), GNEApplicationWindow::EditMenuCommands::redoLastChange, GNEUndoList::undo(), GNEApplicationWindow::EditMenuCommands::undoLastChange, GNEFrame::updateFrameAfterUndoRedo(), GNEViewParent::updateUndoRedoButtons(), and WRITE_DEBUG.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onKeyPress | ( | FXObject * | o, |
FXSelector | sel, | ||
void * | data | ||
) |
called when a key is pressed
Definition at line 3240 of file GNEApplicationWindow.cpp.
References GUIMainWindow::myMDIClient, and GNEViewParent::onKeyPress().
Referenced by FXDEFMAP().
long GNEApplicationWindow::onKeyRelease | ( | FXObject * | o, |
FXSelector | sel, | ||
void * | data | ||
) |
called when a key is released
Definition at line 3253 of file GNEApplicationWindow.cpp.
References GUIMainWindow::myMDIClient, and GNEViewParent::onKeyRelease().
Referenced by FXDEFMAP().
long GNEApplicationWindow::onLoadThreadEvent | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall load thread is executed
Definition at line 873 of file GNEApplicationWindow.cpp.
References eventOccurred().
Referenced by FXDEFMAP().
long GNEApplicationWindow::onUpdNeedsNetwork | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
called when the update/FXCall needs network is executed
Definition at line 2735 of file GNEApplicationWindow.cpp.
References myNet.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onUpdOpen | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
called when the command/FXCall on update open executed
Definition at line 821 of file GNEApplicationWindow.cpp.
References myAmLoading.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onUpdRedo | ( | FXObject * | obj, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called when the update/FXCall redo is executed
Definition at line 2768 of file GNEApplicationWindow.cpp.
References myUndoList, and GNEUndoList::p_onUpdRedo().
Referenced by FXDEFMAP(), onCmdRedo(), and onCmdUndo().
long GNEApplicationWindow::onUpdReload | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
called when the update/FXCall reload is executed
Definition at line 2742 of file GNEApplicationWindow.cpp.
References OptionsCont::getOptions(), and myNet.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onUpdSaveAdditionals | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
called when the update/FXCall save additionals is executed
Definition at line 2748 of file GNEApplicationWindow.cpp.
References GNENet::isAdditionalsSaved(), and myNet.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onUpdSaveDemandElements | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
called when the update/FXCall save demand elements is executed
Definition at line 2755 of file GNEApplicationWindow.cpp.
References GNENet::isDemandElementsSaved(), and myNet.
Referenced by FXDEFMAP().
long GNEApplicationWindow::onUpdSaveNetwork | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
called when the update/FXCall save network is executed
Definition at line 3016 of file GNEApplicationWindow.cpp.
References OptionsCont::getOptions(), OptionsCont::getString(), OptionsCont::isSet(), and myNet.
long GNEApplicationWindow::onUpdUndo | ( | FXObject * | obj, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called when the update/FXCall undo is executed
Definition at line 2762 of file GNEApplicationWindow.cpp.
References myUndoList, and GNEUndoList::p_onUpdUndo().
Referenced by FXDEFMAP(), onCmdRedo(), and onCmdUndo().
|
inherited |
Definition at line 115 of file GUIMainWindow.cpp.
References GUIMainWindow::myTrackerLock, and GUIMainWindow::myTrackerWindows.
Referenced by GUIDialog_Breakpoints::~GUIDialog_Breakpoints(), GUIDialog_GLChosenEditor::~GUIDialog_GLChosenEditor(), GUIDialog_GLObjChooser::~GUIDialog_GLObjChooser(), GUIParameterTableWindow::~GUIParameterTableWindow(), GUIParameterTracker::~GUIParameterTracker(), and GUITLLogicPhasesTrackerWindow::~GUITLLogicPhasesTrackerWindow().
|
inherited |
removes the given child window from the list
Definition at line 98 of file GUIMainWindow.cpp.
References GUIMainWindow::myGLWindows.
Referenced by GNEViewParent::~GNEViewParent(), and GUISUMOViewParent::~GUISUMOViewParent().
|
inlinevirtualinherited |
retrieve breakpoints if provided by the application
Reimplemented in GUIApplicationWindow.
Definition at line 138 of file GUIMainWindow.h.
Referenced by GUIViewTraffic::retrieveBreakpoints().
|
inlinevirtualinherited |
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 121 of file GUIMainWindow.h.
References UNUSED_PARAMETER.
|
inlinevirtualinherited |
Sets the breakpoints of the parent application.
Reimplemented in GUIApplicationWindow.
Definition at line 116 of file GUIMainWindow.h.
Referenced by GUISUMOAbstractView::setBreakpoints().
|
inlinevirtualinherited |
Sets the delay of the parent application.
Reimplemented in GUIApplicationWindow.
Definition at line 112 of file GUIMainWindow.h.
Referenced by GUISUMOAbstractView::setDelay().
|
virtual |
set text of the statusBar
Reimplemented from GUIMainWindow.
Definition at line 1792 of file GNEApplicationWindow.cpp.
References GUIMainWindow::myStatusbar.
Referenced by GNENet::computeDemandElements(), GNENet::computeNetwork(), handleEvent_NetworkLoaded(), and loadConfigOrNet().
|
protectedinherited |
perform initial window positioning and sizing according to user options / previous call
Definition at line 201 of file GUIMainWindow.cpp.
References OptionsCont::getOptions(), OptionsCont::getStringVector(), OptionsCont::isSet(), MAX2(), MIN2(), StringUtils::toInt(), toString(), and WRITE_ERROR.
Referenced by GUIApplicationWindow::create(), create(), handleEvent_NetworkLoaded(), and GUIApplicationWindow::handleEvent_SimulationLoaded().
|
protectedinherited |
record window position and size in registry
Definition at line 241 of file GUIMainWindow.cpp.
References GUIMainWindow::myAmFullScreen.
Referenced by GUIApplicationWindow::loadConfigOrNet(), loadConfigOrNet(), GUIApplicationWindow::onCmdQuit(), onCmdQuit(), and GUIApplicationWindow::onCmdReload().
|
inherited |
Definition at line 151 of file GUIMainWindow.cpp.
References MID_SIMSTEP, GUIMainWindow::myMDIClient, GUIMainWindow::myTrackerLock, and GUIMainWindow::myTrackerWindows.
Referenced by GUIApplicationWindow::handleEvent_SimulationStep(), GUIDialog_GLChosenEditor::onCmdClear(), GUIDialog_GLChosenEditor::onCmdDeselect(), and GUIApplicationWindow::onCmdEditChosen().
void GNEApplicationWindow::updateControls | ( | ) |
update control contents after undo/redo or recompute
Definition at line 3175 of file GNEApplicationWindow.cpp.
References myViewNet, and GNEViewNet::updateControls().
Referenced by computeJunctionWithVolatileOptions(), onCmdProcessButton(), GNEUndoList::redo(), and GNEUndoList::undo().
void GNEApplicationWindow::updateSuperModeMenuCommands | ( | int | supermode | ) |
update FXMenuCommands
Definition at line 3184 of file GNEApplicationWindow.cpp.
References GNEApplicationWindow::EditMenuCommands::demandMenuCommands, GNE_SUPERMODE_DEMAND, GNE_SUPERMODE_NETWORK, GNEApplicationWindow::EditMenuCommands::DemandMenuCommands::hideDemandMenuCommands(), GNEApplicationWindow::ProcessingMenuCommands::hideDemandProcessingMenuCommands(), GNEApplicationWindow::EditMenuCommands::NetworkMenuCommands::hideNetworkMenuCommands(), GNEApplicationWindow::ProcessingMenuCommands::hideNetworkProcessingMenuCommands(), myEditMenuCommands, myProcessingMenuCommands, GNEApplicationWindow::EditMenuCommands::networkMenuCommands, GNEApplicationWindow::EditMenuCommands::DemandMenuCommands::showDemandMenuCommands(), GNEApplicationWindow::ProcessingMenuCommands::showDemandProcessingMenuCommands(), GNEApplicationWindow::EditMenuCommands::NetworkMenuCommands::showNetworkMenuCommands(), and GNEApplicationWindow::ProcessingMenuCommands::showNetworkProcessingMenuCommands().
|
protected |
check if had dependent build
Definition at line 432 of file GNEApplicationWindow.h.
Referenced by dependentBuild().
|
protectedinherited |
whether to show the window in full screen mode
Definition at line 144 of file GUIMainWindow.h.
Referenced by GUIMainWindow::isFullScreen(), GUIApplicationWindow::onCmdFullScreen(), GUIApplicationWindow::onCmdGaming(), and GUIMainWindow::storeWindowSizeAndPos().
|
protectedinherited |
information whether the gui is currently in gaming mode
Definition at line 170 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::handleEvent_SimulationStep(), GUIMainWindow::isGaming(), GUIApplicationWindow::onCmdFullScreen(), GUIApplicationWindow::onCmdGaming(), and GUIApplicationWindow::updateTimeLCD().
|
protected |
information whether the gui is currently loading and the load-options shall be greyed out
Definition at line 406 of file GNEApplicationWindow.h.
Referenced by handleEvent_NetworkLoaded(), loadConfigOrNet(), onCmdOpenRecent(), and onUpdOpen().
|
protectedinherited |
Font used for popup-menu titles.
Definition at line 152 of file GUIMainWindow.h.
Referenced by GUIMainWindow::getBoldFont(), GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
|
protectedinherited |
Definition at line 167 of file GUIMainWindow.h.
Referenced by GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
|
protectedinherited |
Labels for the current cartesian and geo-coordinate.
Definition at line 161 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::closeAllWindows(), closeAllWindows(), GUIApplicationWindow::dependentBuild(), dependentBuild(), and GUIMainWindow::getCartesianLabel().
|
protectedinherited |
Definition at line 162 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::create(), create(), GUIApplicationWindow::dependentBuild(), and dependentBuild().
|
protected |
Input file pattern.
Definition at line 441 of file GNEApplicationWindow.h.
Referenced by onCmdOpenConfiguration().
|
protected |
Definition at line 413 of file GNEApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GNEApplicationWindow().
|
private |
Edit Menu Commands.
Definition at line 773 of file GNEApplicationWindow.h.
Referenced by fillMenuBar(), loadConfigOrNet(), onCmdClose(), onCmdOpenSUMOGUI(), onCmdRedo(), onCmdReload(), onCmdUndo(), and updateSuperModeMenuCommands().
|
protected |
List of got requests.
Definition at line 426 of file GNEApplicationWindow.h.
Referenced by dependentBuild(), eventOccurred(), and ~GNEApplicationWindow().
|
protected |
the submenus
Definition at line 409 of file GNEApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GNEApplicationWindow().
|
protected |
Definition at line 410 of file GNEApplicationWindow.h.
Referenced by create(), and ~GNEApplicationWindow().
|
private |
File Menu Commands.
Definition at line 770 of file GNEApplicationWindow.h.
Referenced by continueWithUnsavedAdditionalChanges(), continueWithUnsavedDemandElementChanges(), disableSaveAdditionalsMenu(), disableSaveDemandElementsMenu(), enableSaveAdditionalsMenu(), enableSaveDemandElementsMenu(), enableSaveTLSProgramsMenu(), fillMenuBar(), onCmdClose(), onCmdOpenNetwork(), onCmdReload(), onCmdSaveAdditionals(), onCmdSaveAdditionalsAs(), onCmdSaveDemandElements(), onCmdSaveDemandElementsAs(), and onCmdSaveTLSPrograms().
|
protected |
Definition at line 412 of file GNEApplicationWindow.h.
Referenced by create(), and ~GNEApplicationWindow().
|
protected |
Definition at line 411 of file GNEApplicationWindow.h.
Referenced by create(), and ~GNEApplicationWindow().
|
protectedinherited |
Definition at line 161 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::closeAllWindows(), closeAllWindows(), GUIApplicationWindow::dependentBuild(), dependentBuild(), and GUIMainWindow::getGeoLabel().
|
protectedinherited |
Definition at line 162 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::create(), create(), GUIApplicationWindow::dependentBuild(), and dependentBuild().
|
protectedinherited |
The gl-visual used.
Definition at line 165 of file GUIMainWindow.h.
Referenced by GUIMainWindow::getGLVisual(), ~GNEApplicationWindow(), and GUIApplicationWindow::~GUIApplicationWindow().
|
protectedinherited |
Definition at line 146 of file GUIMainWindow.h.
Referenced by GUIMainWindow::addGLChild(), GUIApplicationWindow::closeAllWindows(), closeAllWindows(), GUIMainWindow::getViewByID(), GUIMainWindow::getViewIDs(), GUIMainWindow::getViews(), GUIApplicationWindow::handleEvent_SimulationLoaded(), GUIApplicationWindow::onCmdEditViewport(), GUIApplicationWindow::onCmdEditViewScheme(), GUIApplicationWindow::onCmdFullScreen(), GUIApplicationWindow::onCmdGaming(), GUIApplicationWindow::onCmdNetedit(), and GUIMainWindow::removeGLChild().
|
protected |
Definition at line 417 of file GNEApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GNEApplicationWindow().
|
staticprotectedinherited |
the singleton window instance
Definition at line 182 of file GUIMainWindow.h.
Referenced by GUIMainWindow::getInstance(), and GUIMainWindow::GUIMainWindow().
|
protectedinherited |
Definition at line 167 of file GUIMainWindow.h.
Referenced by GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
|
protectedinherited |
information whether the locator should list internal structures
Definition at line 173 of file GUIMainWindow.h.
Referenced by GUIMainWindow::listInternal(), and GUIApplicationWindow::onCmdListInternal().
|
protectedinherited |
information whether the locator should list parking vehicles
Definition at line 176 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::fillMenuBar(), GUIMainWindow::listParking(), and GUIApplicationWindow::onCmdListParking().
|
protectedinherited |
information whether the locator should list teleporting vehicles
Definition at line 179 of file GUIMainWindow.h.
Referenced by GUIMainWindow::listTeleporting(), and GUIApplicationWindow::onCmdListTeleporting().
|
protected |
the thread that loads the network
Definition at line 403 of file GNEApplicationWindow.h.
Referenced by dependentBuild(), loadConfigOrNet(), and ~GNEApplicationWindow().
|
protected |
io-event with the load-thread
Definition at line 429 of file GNEApplicationWindow.h.
Referenced by dependentBuild().
|
private |
Locate Menu Commands.
Definition at line 779 of file GNEApplicationWindow.h.
Referenced by fillMenuBar().
|
protected |
Definition at line 415 of file GNEApplicationWindow.h.
Referenced by fillMenuBar(), and ~GNEApplicationWindow().
|
protected |
The splitter that divides the main window into view and the log window.
Definition at line 423 of file GNEApplicationWindow.h.
Referenced by dependentBuild().
|
protectedinherited |
The multi view panel.
Definition at line 155 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::dependentBuild(), dependentBuild(), GUIApplicationWindow::fillMenuBar(), GUIMainWindow::getActiveView(), GUIApplicationWindow::getBuildGLCanvas(), handleEvent_NetworkLoaded(), GUIApplicationWindow::onCmdEditChosen(), GUIApplicationWindow::onCmdFullScreen(), GUIApplicationWindow::onCmdGaming(), GUIApplicationWindow::onCmdLocate(), onCmdLocate(), GUIApplicationWindow::onCmdOpenEdgeData(), GUIApplicationWindow::onCmdOpenShapes(), GUIApplicationWindow::onCmdShowStats(), GUIApplicationWindow::onKeyPress(), onKeyPress(), GUIApplicationWindow::onKeyRelease(), onKeyRelease(), GUIApplicationWindow::openNewView(), and GUIMainWindow::updateChildren().
|
private |
The menu used for the MDI-windows.
Definition at line 794 of file GNEApplicationWindow.h.
Referenced by dependentBuild(), and handleEvent_NetworkLoaded().
|
private |
Definition at line 767 of file GNEApplicationWindow.h.
Referenced by onCmdOpenConfiguration(), onCmdOpenNetwork(), onCmdOpenRecent(), and onCmdSaveNetwork().
|
protected |
A window to display messages, warnings and error in.
Definition at line 420 of file GNEApplicationWindow.h.
Referenced by closeAllWindows(), computeJunctionWithVolatileOptions(), dependentBuild(), handleEvent_Message(), handleEvent_NetworkLoaded(), onCmdClearMsgWindow(), onCmdSaveAdditionals(), onCmdSaveAsPlainXML(), onCmdSaveDemandElements(), onCmdSaveJoined(), onCmdSaveNetwork(), and onCmdSaveTLSPrograms().
|
protected |
we are responsible for the net
Definition at line 435 of file GNEApplicationWindow.h.
Referenced by closeAllWindows(), computeJunctionWithVolatileOptions(), continueWithUnsavedChanges(), handleEvent_NetworkLoaded(), onCmdOpenAdditionals(), onCmdOpenDemandElements(), onCmdOpenTLSPrograms(), onCmdProcessButton(), onCmdSaveAdditionals(), onCmdSaveAsPlainXML(), onCmdSaveDemandElements(), onCmdSaveJoined(), onCmdSaveNetwork(), onCmdSaveTLSPrograms(), onUpdNeedsNetwork(), onUpdReload(), onUpdSaveAdditionals(), onUpdSaveDemandElements(), and onUpdSaveNetwork().
|
protected |
Definition at line 414 of file GNEApplicationWindow.h.
Referenced by fillMenuBar(), and ~GNEApplicationWindow().
|
private |
Edit Menu Commands.
Definition at line 776 of file GNEApplicationWindow.h.
Referenced by fillMenuBar(), and updateSuperModeMenuCommands().
|
protectedinherited |
Definition at line 167 of file GUIMainWindow.h.
Referenced by GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
|
protectedinherited |
The status bar.
Definition at line 158 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::dependentBuild(), dependentBuild(), GUIApplicationWindow::fillMenuBar(), GUIApplicationWindow::onCmdFullScreen(), GUIApplicationWindow::onCmdGaming(), GUIApplicationWindow::onCmdOpenRecent(), onCmdOpenRecent(), GUIApplicationWindow::onCmdStart(), GUIApplicationWindow::onCmdStep(), GUIApplicationWindow::openNewView(), setStatusBarText(), and GUIApplicationWindow::setStatusBarText().
|
private |
Supermode Commands.
Definition at line 785 of file GNEApplicationWindow.h.
Referenced by loadConfigOrNet(), onCmdClose(), and onCmdReload().
|
private |
the prefix for the window title
Definition at line 791 of file GNEApplicationWindow.h.
Referenced by closeAllWindows(), dependentBuild(), handleEvent_NetworkLoaded(), and onCmdSaveAsNetwork().
|
private |
Toolbars Grip.
Definition at line 764 of file GNEApplicationWindow.h.
Referenced by dependentBuild(), fillMenuBar(), getToolbarsGrip(), and handleEvent_NetworkLoaded().
|
protectedinherited |
Definition at line 167 of file GUIMainWindow.h.
Referenced by GNEApplicationWindow::ToolbarsGrip::buildMenuToolbarsGrip(), GUIApplicationWindow::buildToolBars(), GUIApplicationWindow::dependentBuild(), GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
|
protectedinherited |
A lock to make the removal and addition of trackers secure.
Definition at line 149 of file GUIMainWindow.h.
Referenced by GUIMainWindow::addChild(), GUIApplicationWindow::closeAllWindows(), closeAllWindows(), GUIMainWindow::removeChild(), and GUIMainWindow::updateChildren().
|
protectedinherited |
Definition at line 147 of file GUIMainWindow.h.
Referenced by GUIMainWindow::addChild(), GUIApplicationWindow::closeAllWindows(), closeAllWindows(), GUIMainWindow::removeChild(), and GUIMainWindow::updateChildren().
|
protected |
the one and only undo list
Definition at line 438 of file GNEApplicationWindow.h.
Referenced by continueWithUnsavedChanges(), getUndoList(), handleEvent_NetworkLoaded(), onCmdOpenAdditionals(), onCmdOpenDemandElements(), onCmdOpenTLSPrograms(), onCmdProcessButton(), onCmdSaveAsPlainXML(), onCmdSaveNetwork(), onUpdRedo(), onUpdUndo(), and ~GNEApplicationWindow().
|
protected |
string to check if undo/redo list is enabled (a String is used to keep the disabling reason)
Definition at line 444 of file GNEApplicationWindow.h.
Referenced by disableUndoRedo(), enableUndoRedo(), and isUndoRedoEnabled().
|
private |
pointer to current view net
Definition at line 788 of file GNEApplicationWindow.h.
Referenced by closeAllWindows(), continueWithUnsavedAdditionalChanges(), continueWithUnsavedChanges(), continueWithUnsavedDemandElementChanges(), handleEvent_NetworkLoaded(), onCmdAbort(), onCmdBackspace(), onCmdClearTemplate(), onCmdCopyTemplate(), onCmdDel(), onCmdEditViewport(), onCmdEditViewScheme(), onCmdEnter(), onCmdFocusFrame(), onCmdNewNetwork(), onCmdOpenConfiguration(), onCmdOpenForeign(), onCmdOpenNetwork(), onCmdOpenRecent(), onCmdOpenSUMOGUI(), onCmdProcessButton(), onCmdRedo(), onCmdReload(), onCmdSetMode(), onCmdSetSuperMode(), onCmdSetTemplate(), onCmdToogleEditOptions(), onCmdToogleGrid(), onCmdUndo(), and updateControls().
|
protected |
Definition at line 416 of file GNEApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GNEApplicationWindow().
|
private |
Windows Menu Commands.
Definition at line 782 of file GNEApplicationWindow.h.
Referenced by fillMenuBar().