![]() |
SUMO - Simulation of Urban MObility
|
The main window of the Netedit. More...
#include <GNEApplicationWindow.h>
Data Structures | |
class | GNEShapeHandler |
The XML-Handler for shapes loading network loading. More... | |
Public Member Functions | |
void | addChild (FXMDIChild *child, bool updateOnSimStep=true) |
Adds a further child window to the list. More... | |
void | addChild (FXMainWindow *child, bool updateOnSimStep=true) |
virtual void | create () |
Creates the main window (required by FOX) More... | |
void | dependentBuild () |
virtual void | detach () |
Detaches the tool/menu bar. More... | |
FXFont * | getBoldFont () |
FXGLCanvas * | getBuildGLCanvas () const |
FXLabel & | getCartesianLabel () |
SUMOTime | getCurrentSimTime () const |
pure virtual but we don't need it More... | |
FXCursor * | getDefaultCursor () |
virtual SUMOReal | getDelay () const |
Returns the delay (should be overwritten by subclasses if applicable) More... | |
FXLabel & | getGeoLabel () |
FXGLVisual * | getGLVisual () const |
GNEUndoList * | getUndoList () |
FXMDIChild * | getViewByID (const std::string &id) const |
std::vector< std::string > | getViewIDs () const |
GNEApplicationWindow (FXApp *a, const std::string &configPattern) | |
Constructor. More... | |
bool | isGaming () const |
return whether the gui is in gaming mode More... | |
bool | listInternal () const |
return whether to list internal structures More... | |
void | loadOnStartup () |
void | removeChild (FXMDIChild *child) |
removes the given child window from the list More... | |
void | removeChild (FXMainWindow *child) |
virtual void | sendBlockingEvent (GUIEvent *event) |
Sends an event from the application thread to the GUI and waits until it is handled. More... | |
virtual void | setDelay (SUMOReal) |
Sets the delay of the parent application. More... | |
void | setStatusBarText (const std::string &) |
void | updateChildren () |
void | updateControls () |
update control contents after undo/redo or recompute More... | |
virtual | ~GNEApplicationWindow () |
Destructor. More... | |
Inter-thread event handling | |
virtual void | eventOccured () |
void | handleEvent_NetworkLoaded (GUIEvent *e) |
void | handleEvent_Message (GUIEvent *e) |
FOX-callbacks | |
long | onCmdNewNetwork (FXObject *, FXSelector, void *) |
long | onCmdOpenConfiguration (FXObject *, FXSelector, void *) |
long | onCmdOpenNetwork (FXObject *, FXSelector, void *) |
long | onCmdOpenForeign (FXObject *, FXSelector, void *) |
long | onCmdOpenShapes (FXObject *, FXSelector, void *) |
long | onCmdReload (FXObject *, FXSelector, void *) |
long | onCmdOpenRecent (FXObject *, FXSelector, void *) |
long | onCmdClose (FXObject *, FXSelector, void *) |
long | onCmdLocate (FXObject *, FXSelector, void *) |
Called on menu commands from the Locator menu. More... | |
long | onCmdSaveNetwork (FXObject *, FXSelector, void *) |
long | onUpdSaveNetwork (FXObject *, FXSelector, void *) |
long | onCmdSaveAsNetwork (FXObject *, FXSelector, void *) |
long | onUpdNeedsNetwork (FXObject *, FXSelector, void *) |
long | onUpdReload (FXObject *, FXSelector, void *) |
long | onCmdSaveAsPlainXML (FXObject *, FXSelector, void *) |
long | onCmdSaveJoined (FXObject *, FXSelector, void *) |
long | onCmdSavePois (FXObject *, FXSelector, void *) |
long | onKeyPress (FXObject *o, FXSelector sel, void *data) |
handle keys More... | |
long | onKeyRelease (FXObject *o, FXSelector sel, void *data) |
long | onCmdQuit (FXObject *, FXSelector, void *) |
Called by FOX if the application shall be closed Called either by FileMenu->Quit, the normal close-menu or SIGINT. More... | |
long | onCmdEditChosen (FXObject *, FXSelector, void *) |
long | onCmdAppSettings (FXObject *, FXSelector, void *) |
Opens the application settings menu. More... | |
long | onCmdGaming (FXObject *, FXSelector, void *) |
Toggle gaming mode. More... | |
long | onCmdAbout (FXObject *, FXSelector, void *) |
Shows the about dialog. More... | |
long | onCmdNewView (FXObject *, FXSelector, void *) |
long | onUpdOpen (FXObject *, FXSelector, void *) |
long | onCmdClearMsgWindow (FXObject *, FXSelector, void *) |
long | onLoadThreadEvent (FXObject *, FXSelector, void *) |
long | onClipboardRequest (FXObject *sender, FXSelector sel, void *ptr) |
Somebody wants our clipped text. More... | |
long | onCmdSetMode (FXObject *sender, FXSelector sel, void *ptr) |
called if the user hits an edit-mode hotkey 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 | onCmdHelp (FXObject *sender, FXSelector sel, void *ptr) |
called if the user selects help->Documentation More... | |
long | onCmdComputeJunctions (FXObject *, FXSelector, void *) |
called if the user selects Processing->compute junctions More... | |
long | onCmdCleanJunctions (FXObject *, FXSelector, void *) |
called if the user selects Processing->clean junctions More... | |
long | onCmdJoinJunctions (FXObject *, FXSelector, void *) |
called if the user selects Processing->join junctions More... | |
long | onCmdOptions (FXObject *, FXSelector, void *) |
called if the user selects Processing->Configure Options More... | |
Static Public Member Functions | |
static GUIMainWindow * | getInstance () |
Protected Member Functions | |
virtual void | fillMenuBar () |
Builds the menu bar. More... | |
GNEApplicationWindow () | |
FOX needs this for static members. More... | |
Protected Attributes | |
bool | hadDependentBuild |
bool | myAmGaming |
information whether the gui is currently in gaming mode More... | |
bool | myAmLoading |
information whether the gui is currently loading and the load-options shall be greyed out More... | |
FXFont * | myBoldFont |
Font used for popup-menu titles. More... | |
FXDockSite * | myBottomDock |
FXLabel * | myCartesianCoordinate |
Labels for the current cartesian and geo-coordinate. More... | |
FXHorizontalFrame * | myCartesianFrame |
std::string | myConfigPattern |
Input file pattern. More... | |
FXMenuPane * | myEditMenu |
MFXEventQue< GUIEvent * > | myEvents |
List of got requests. More... | |
FXMenuPane * | myFileMenu |
the submenus More... | |
FXLabel * | myGeoCoordinate |
FXHorizontalFrame * | myGeoFrame |
FXGLVisual * | myGLVisual |
The gl-visual used. More... | |
FXMenuPane * | myHelpMenu |
FXDockSite * | myLeftDock |
bool | myListInternal |
information whether the locator should list internal structures More... | |
GNELoadThread * | myLoadThread |
FXEX::FXThreadEvent | myLoadThreadEvent |
io-event with the load-thread More... | |
FXMenuPane * | myLocatorMenu |
FXSplitter * | myMainSplitter |
The splitter that divides the main window into vies and the log window. More... | |
FXMDIClient * | myMDIClient |
The multi view panel. More... | |
FXMDIMenu * | myMDIMenu |
The menu used for the MDI-windows. More... | |
FXMenuBar * | myMenuBar |
The application menu bar. More... | |
FXToolBarShell * | myMenuBarDrag |
GUIMessageWindow * | myMessageWindow |
A window to display messages, warnings and error in. More... | |
std::string | myName |
GNENet * | myNet |
we are responsible for the net More... | |
FXMenuPane * | myProcessingMenu |
FXRecentFiles | myRecentConfigs |
List of recent config files. More... | |
FXRecentFiles | myRecentNets |
List of recent nets. More... | |
FXDockSite * | myRightDock |
FXStatusBar * | myStatusbar |
The status bar. More... | |
std::vector< FXMDIChild * > | mySubWindows |
const FXString | myTitlePrefix |
the prefix for the window title More... | |
FXToolBar * | myToolBar1 |
The application tool bar. More... | |
FXToolBar * | myToolBar2 |
FXToolBar * | myToolBar3 |
FXToolBar * | myToolBar4 |
FXToolBar * | myToolBar5 |
FXToolBarShell * | myToolBarDrag1 |
for some menu detaching fun More... | |
FXToolBarShell * | myToolBarDrag2 |
FXToolBarShell * | myToolBarDrag3 |
FXToolBarShell * | myToolBarDrag4 |
FXToolBarShell * | myToolBarDrag5 |
FXDockSite * | myTopDock |
MFXMutex | myTrackerLock |
A lock to make the removal and addition of trackers secure. More... | |
std::vector< FXMainWindow * > | myTrackerWindows |
GNEUndoList * | myUndoList |
the one and only undo list More... | |
size_t | myViewNumber |
The current view number. More... | |
FXMenuPane * | myWindowsMenu |
Static Protected Attributes | |
static GUIMainWindow * | myInstance = 0 |
the singleton window instance More... | |
Private Member Functions | |
void | closeAllWindows () |
bool | continueWithUnsavedChanges () |
GNEViewNet * | getView () |
void | loadConfigOrNet (const std::string file, bool isNet, bool isReload=false, bool optionsReady=false, bool newNet=false) |
GUISUMOAbstractView * | openNewView () |
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 70 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 161 of file GNEApplicationWindow.cpp.
References GUIIconSubSys::init().
|
virtual |
Destructor.
Definition at line 283 of file GNEApplicationWindow.cpp.
References GUIIconSubSys::close(), closeAllWindows(), MFXEventQue< T >::empty(), myEditMenu, myEvents, myFileMenu, GUIMainWindow::myGLVisual, myHelpMenu, myLoadThread, myProcessingMenu, myUndoList, myWindowsMenu, MFXEventQue< T >::pop(), and MFXEventQue< T >::top().
|
inlineprotected |
FOX needs this for static members.
Definition at line 211 of file GNEApplicationWindow.h.
References fillMenuBar().
|
inherited |
Adds a further child window to the list.
Definition at line 90 of file GUIMainWindow.cpp.
References GUIMainWindow::mySubWindows.
Referenced by GUIParameterTableWindow::closeBuilding(), and GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow().
|
inherited |
Definition at line 105 of file GUIMainWindow.cpp.
References MFXMutex::lock(), GUIMainWindow::myTrackerLock, GUIMainWindow::myTrackerWindows, and MFXMutex::unlock().
|
private |
this method closes all windows and deletes the current simulation
Definition at line 841 of file GNEApplicationWindow.cpp.
References GUIMessageWindow::addSeparator(), GUISelectedStorage::clear(), gSelected, MFXMutex::lock(), GUIMainWindow::myCartesianCoordinate, GUIMainWindow::myGeoCoordinate, myMessageWindow, myNet, GUIMainWindow::mySubWindows, myTitlePrefix, GUIMainWindow::myTrackerLock, GUIMainWindow::myTrackerWindows, myUndoList, GNEUndoList::p_clear(), GNEJunction::resetDecal(), GeoConvHelper::resetLoaded(), MFXMutex::unlock(), and GUIMessageWindow::unregisterMsgHandlers().
Referenced by loadConfigOrNet(), onCmdClose(), and ~GNEApplicationWindow().
|
private |
Definition at line 1180 of file GNEApplicationWindow.cpp.
References myUndoList, and GNEUndoList::p_clear().
Referenced by loadConfigOrNet(), onCmdClose(), onCmdNewNetwork(), onCmdOpenForeign(), and onCmdQuit().
|
virtual |
Creates the main window (required by FOX)
Definition at line 256 of file GNEApplicationWindow.cpp.
References gCurrentFolder, GUIMainWindow::myCartesianFrame, myEditMenu, myFileMenu, GUIMainWindow::myGeoFrame, myHelpMenu, myMenuBarDrag, and myWindowsMenu.
void GNEApplicationWindow::dependentBuild | ( | ) |
Definition at line 180 of file GNEApplicationWindow.cpp.
References fillMenuBar(), GUIIconSubSys::getIcon(), hadDependentBuild, ICON_NETEDIT, ID_LOADTHREAD_EVENT, MID_GNE_ABORT, MID_GNE_HOTKEY_DEL, MID_GNE_HOTKEY_ENTER, MID_GNE_MODE_CONNECT, MID_GNE_MODE_CREATE_EDGE, MID_GNE_MODE_DELETE, MID_GNE_MODE_INSPECT, MID_GNE_MODE_MOVE, MID_GNE_MODE_SELECT, MID_GNE_MODE_TLS, MID_WINDOW, GUIMainWindow::myCartesianCoordinate, GUIMainWindow::myCartesianFrame, myEvents, GUIMainWindow::myGeoCoordinate, GUIMainWindow::myGeoFrame, myLoadThread, myLoadThreadEvent, myMainSplitter, GUIMainWindow::myMDIClient, myMDIMenu, myMenuBar, myMenuBarDrag, myMessageWindow, GUIMainWindow::myStatusbar, myTitlePrefix, GUIMainWindow::myTopDock, FXEX::FXBaseObject::setSelector(), FXEX::FXBaseObject::setTarget(), and WRITE_ERROR.
|
virtual |
Detaches the tool/menu bar.
Definition at line 309 of file GNEApplicationWindow.cpp.
References myMenuBarDrag.
|
virtual |
Implements MFXInterThreadEventClient.
Definition at line 720 of file GNEApplicationWindow.cpp.
References MFXEventQue< T >::empty(), EVENT_ERROR_OCCURED, EVENT_MESSAGE_OCCURED, EVENT_SIMULATION_LOADED, EVENT_WARNING_OCCURED, GUIEvent::getOwnType(), handleEvent_Message(), handleEvent_NetworkLoaded(), myEvents, MFXEventQue< T >::pop(), and MFXEventQue< T >::top().
Referenced by onLoadThreadEvent().
|
protectedvirtual |
Builds the menu bar.
Definition at line 316 of file GNEApplicationWindow.cpp.
References GUIIconSubSys::getIcon(), ICON_CLOSE, ICON_LOCATEEDGE, ICON_LOCATEJUNCTION, ICON_LOCATETLS, ICON_OPEN_CONFIG, ICON_OPEN_NET, ICON_OPEN_SHAPES, ICON_REDO, ICON_RELOAD, ICON_SAVE, ICON_UNDO, MID_ABOUT, MID_CLEARMESSAGEWINDOW, MID_CLOSE, MID_GNE_CLEAN_JUNCTIONS, MID_GNE_COMPUTE_JUNCTIONS, MID_GNE_JOIN_JUNCTIONS, MID_GNE_NEW_NETWORK, MID_GNE_OPEN_FOREIGN, MID_GNE_OPTIONS, MID_GNE_SAVE_AS_NETWORK, MID_GNE_SAVE_JOINED, MID_GNE_SAVE_NETWORK, MID_GNE_SAVE_PLAIN_XML, MID_GNE_SAVE_POIS, MID_HELP, MID_LOCATEEDGE, MID_LOCATEJUNCTION, MID_LOCATETLS, MID_OPEN_CONFIG, MID_OPEN_NETWORK, MID_OPEN_SHAPES, MID_QUIT, MID_RECENTFILE, MID_RELOAD, myEditMenu, myFileMenu, myHelpMenu, myLocatorMenu, myMenuBar, myMessageWindow, myProcessingMenu, myRecentConfigs, myRecentNets, GUIMainWindow::myStatusbar, myUndoList, and myWindowsMenu.
Referenced by dependentBuild(), and GNEApplicationWindow().
|
inherited |
Definition at line 143 of file GUIMainWindow.cpp.
References GUIMainWindow::myBoldFont.
Referenced by GUIGlObject::buildPopupHeader().
|
virtual |
Implements GUIMainWindow.
Definition at line 830 of file GNEApplicationWindow.cpp.
References GUIGlChildWindow::getBuildGLCanvas(), and GUIMainWindow::myMDIClient.
Referenced by openNewView().
|
inherited |
Definition at line 168 of file GUIMainWindow.cpp.
References GUIMainWindow::myCartesianCoordinate.
Referenced by GUIMainWindow::setStatusBarText(), and GUISUMOAbstractView::updatePositionInformation().
|
inlinevirtual |
pure virtual but we don't need it
Implements GUIMainWindow.
Definition at line 195 of file GNEApplicationWindow.h.
References getDefaultCursor().
FXCursor * GNEApplicationWindow::getDefaultCursor | ( | ) |
Definition at line 882 of file GNEApplicationWindow.cpp.
Referenced by getCurrentSimTime().
|
inlinevirtualinherited |
Returns the delay (should be overwritten by subclasses if applicable)
Reimplemented in GUIApplicationWindow.
Definition at line 98 of file GUIMainWindow.h.
Referenced by GUISUMOAbstractView::getDelay(), and GUIViewTraffic::saveFrame().
|
inherited |
Definition at line 174 of file GUIMainWindow.cpp.
References GUIMainWindow::myGeoCoordinate.
Referenced by GUIMainWindow::setStatusBarText(), and GUISUMOAbstractView::updatePositionInformation().
|
inherited |
Definition at line 162 of file GUIMainWindow.cpp.
References GUIMainWindow::myGLVisual.
Referenced by GUISUMOViewParent::init().
|
staticinherited |
Definition at line 180 of file GUIMainWindow.cpp.
References GUIMainWindow::myInstance.
Referenced by TraCIServerAPI_GUI::getNamedView(), GUITexturesHelper::getTextureID(), GUIMainWindow::listInternal(), TraCIServerAPI_GUI::processGet(), TraCIServerAPI_GUI::processSet(), and GUIMessageWindow::setCursorPos().
|
inline |
Definition at line 201 of file GNEApplicationWindow.h.
References myUndoList, and updateControls().
|
private |
Definition at line 1170 of file GNEApplicationWindow.cpp.
References GUIMainWindow::mySubWindows.
Referenced by handleEvent_NetworkLoaded(), onCmdAbort(), onCmdDel(), onCmdEnter(), onCmdSetMode(), and updateControls().
|
inherited |
Definition at line 132 of file GUIMainWindow.cpp.
References GUIMainWindow::mySubWindows.
Referenced by TraCIServerAPI_GUI::getNamedView(), and GUIMessageWindow::setCursorPos().
|
inherited |
Definition at line 122 of file GUIMainWindow.cpp.
References GUIMainWindow::mySubWindows.
Referenced by TraCIServerAPI_GUI::processGet(), and GUIMessageWindow::setCursorPos().
void GNEApplicationWindow::handleEvent_Message | ( | GUIEvent * | e | ) |
Definition at line 782 of file GNEApplicationWindow.cpp.
References GUIMessageWindow::appendMsg(), GUIEvent_Message::getMsg(), GUIEvent::getOwnType(), and myMessageWindow.
Referenced by eventOccured().
void GNEApplicationWindow::handleEvent_NetworkLoaded | ( | GUIEvent * | e | ) |
Definition at line 744 of file GNEApplicationWindow.cpp.
References GUISUMOAbstractView::addDecals(), GUISettingsHandler::addSettings(), GUISettingsHandler::getDecals(), MFXUtils::getTitleText(), getView(), gSchemeStorage, MID_GNE_MODE_INSPECT, myAmLoading, GNEEvent_NetworkLoaded::myFile, myMessageWindow, GNEEvent_NetworkLoaded::myNet, myNet, GNEEvent_NetworkLoaded::mySettingsFile, myTitlePrefix, myViewNumber, GNEEvent_NetworkLoaded::myViewportFromRegistry, openNewView(), GUIMessageWindow::registerMsgHandlers(), Position::set(), GNEViewNet::setEditModeFromHotkey(), GUISettingsHandler::setSnapshots(), setStatusBarText(), GUISettingsHandler::setViewport(), GUISUMOAbstractView::setViewport(), and GUICompleteSchemeStorage::setViewport().
Referenced by eventOccured().
|
inlineinherited |
return whether the gui is in gaming mode
Definition at line 84 of file GUIMainWindow.h.
References GUIMainWindow::myAmGaming.
Referenced by GUIApplicationWindow::handleEvent_SimulationLoaded(), GUISUMOViewParent::init(), GUISUMOAbstractView::onLeftBtnRelease(), GUISUMOAbstractView::onMouseWheel(), GUISUMOAbstractView::onRightBtnRelease(), and GUIViewTraffic::setColorScheme().
|
inlineinherited |
return whether to list internal structures
Definition at line 89 of file GUIMainWindow.h.
References GUIMainWindow::getInstance(), and GUIMainWindow::myListInternal.
Referenced by GUISUMOViewParent::onCmdLocate().
|
private |
starts to load a netimport configuration or a network
Definition at line 789 of file GNEApplicationWindow.cpp.
References closeAllWindows(), continueWithUnsavedChanges(), gSchemeStorage, GNELoadThread::loadConfigOrNet(), myAmLoading, myLoadThread, GUICompleteSchemeStorage::saveViewport(), and setStatusBarText().
Referenced by loadOnStartup(), onCmdNewNetwork(), onCmdOpenConfiguration(), onCmdOpenForeign(), onCmdOpenNetwork(), onCmdOpenRecent(), and onCmdReload().
void GNEApplicationWindow::loadOnStartup | ( | ) |
Definition at line 888 of file GNEApplicationWindow.cpp.
References OptionsCont::getOptions(), OptionsCont::getString(), OptionsCont::isSet(), loadConfigOrNet(), OptionsCont::resetWritable(), and OptionsCont::set().
long GNEApplicationWindow::onClipboardRequest | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
Somebody wants our clipped text.
Definition at line 704 of file GNEApplicationWindow.cpp.
References GUIUserIO::clipped.
long GNEApplicationWindow::onCmdAbort | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called if the user hits esc
Definition at line 943 of file GNEApplicationWindow.cpp.
References GNEViewNet::abortOperation(), and getView().
long GNEApplicationWindow::onCmdAbout | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Shows the about dialog.
Definition at line 695 of file GNEApplicationWindow.cpp.
References GNEDialog_About::create().
long GNEApplicationWindow::onCmdAppSettings | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Opens the application settings menu.
long GNEApplicationWindow::onCmdCleanJunctions | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called if the user selects Processing->clean junctions
Definition at line 986 of file GNEApplicationWindow.cpp.
References myNet, myUndoList, and GNENet::removeSolitaryJunctions().
long GNEApplicationWindow::onCmdClearMsgWindow | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 688 of file GNEApplicationWindow.cpp.
References GUIMessageWindow::clear(), and myMessageWindow.
long GNEApplicationWindow::onCmdClose | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 661 of file GNEApplicationWindow.cpp.
References closeAllWindows(), and continueWithUnsavedChanges().
long GNEApplicationWindow::onCmdComputeJunctions | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called if the user selects Processing->compute junctions
Definition at line 978 of file GNEApplicationWindow.cpp.
References GNENet::computeEverything(), myNet, and updateControls().
long GNEApplicationWindow::onCmdDel | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called if the user hits del
Definition at line 953 of file GNEApplicationWindow.cpp.
References getView(), and GNEViewNet::hotkeyDel().
long GNEApplicationWindow::onCmdEditChosen | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 514 of file GNEApplicationWindow.cpp.
References gSelected.
long GNEApplicationWindow::onCmdEnter | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called if the user hits enter
Definition at line 962 of file GNEApplicationWindow.cpp.
References getView(), and GNEViewNet::hotkeyEnter().
long GNEApplicationWindow::onCmdGaming | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Toggle gaming mode.
long GNEApplicationWindow::onCmdHelp | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called if the user selects help->Documentation
Definition at line 971 of file GNEApplicationWindow.cpp.
References FXLinkLabel::fxexecute().
long GNEApplicationWindow::onCmdJoinJunctions | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called if the user selects Processing->join junctions
Definition at line 993 of file GNEApplicationWindow.cpp.
References GNENet::joinSelectedJunctions(), myNet, and myUndoList.
long GNEApplicationWindow::onCmdLocate | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
Called on menu commands from the Locator menu.
Definition at line 670 of file GNEApplicationWindow.cpp.
References GUIMainWindow::myMDIClient, and GNEViewParent::onCmdLocate().
long GNEApplicationWindow::onCmdNewNetwork | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 524 of file GNEApplicationWindow.cpp.
References continueWithUnsavedChanges(), GNELoadThread::fillOptions(), OptionsCont::getOptions(), loadConfigOrNet(), and GNELoadThread::setDefaultOptions().
long GNEApplicationWindow::onCmdNewView | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
long GNEApplicationWindow::onCmdOpenConfiguration | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 538 of file GNEApplicationWindow.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), ICON_EMPTY, loadConfigOrNet(), myConfigPattern, and myRecentConfigs.
long GNEApplicationWindow::onCmdOpenForeign | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 578 of file GNEApplicationWindow.cpp.
References NIFrame::checkOptions(), continueWithUnsavedChanges(), GNELoadThread::fillOptions(), gCurrentFolder, GUIIconSubSys::getIcon(), OptionsCont::getOptions(), ICON_EMPTY, loadConfigOrNet(), and OptionsCont::set().
long GNEApplicationWindow::onCmdOpenNetwork | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 558 of file GNEApplicationWindow.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), ICON_EMPTY, loadConfigOrNet(), and myRecentNets.
long GNEApplicationWindow::onCmdOpenRecent | ( | FXObject * | sender, |
FXSelector | , | ||
void * | data | ||
) |
Definition at line 642 of file GNEApplicationWindow.cpp.
References loadConfigOrNet(), myAmLoading, myRecentNets, and GUIMainWindow::myStatusbar.
long GNEApplicationWindow::onCmdOpenShapes | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 619 of file GNEApplicationWindow.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), GNENet::getShapeContainer(), ICON_EMPTY, myNet, XMLSubSys::runParser(), and WRITE_MESSAGE.
long GNEApplicationWindow::onCmdOptions | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called if the user selects Processing->Configure Options
Definition at line 1000 of file GNEApplicationWindow.cpp.
References NIFrame::checkOptions().
long GNEApplicationWindow::onCmdQuit | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called by FOX if the application shall be closed Called either by FileMenu->Quit, the normal close-menu or SIGINT.
Definition at line 495 of file GNEApplicationWindow.cpp.
References continueWithUnsavedChanges(), and gCurrentFolder.
long GNEApplicationWindow::onCmdReload | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 654 of file GNEApplicationWindow.cpp.
References OptionsCont::getOptions(), and loadConfigOrNet().
long GNEApplicationWindow::onCmdSaveAsNetwork | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 1012 of file GNEApplicationWindow.cpp.
References gCurrentFolder, MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), OptionsCont::getOptions(), MFXUtils::getTitleText(), ICON_EMPTY, myTitlePrefix, onCmdSaveNetwork(), OptionsCont::resetWritable(), and OptionsCont::set().
long GNEApplicationWindow::onCmdSaveAsPlainXML | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 1030 of file GNEApplicationWindow.cpp.
References GUIMessageWindow::addSeparator(), GUIMessageWindow::appendMsg(), EVENT_MESSAGE_OCCURED, gCurrentFolder, MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), OptionsCont::getOptions(), OptionsCont::getString(), ICON_EMPTY, OptionsCont::isSet(), myMessageWindow, myNet, myUndoList, OptionsCont::resetWritable(), GNENet::savePlain(), OptionsCont::set(), and OptionsCont::unSet().
long GNEApplicationWindow::onCmdSaveJoined | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 1067 of file GNEApplicationWindow.cpp.
References GUIMessageWindow::addSeparator(), GUIMessageWindow::appendMsg(), EVENT_MESSAGE_OCCURED, gCurrentFolder, MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), OptionsCont::getOptions(), OptionsCont::getString(), ICON_EMPTY, OptionsCont::isSet(), myMessageWindow, myNet, OptionsCont::resetWritable(), GNENet::saveJoined(), OptionsCont::set(), and OptionsCont::unSet().
long GNEApplicationWindow::onCmdSaveNetwork | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 1139 of file GNEApplicationWindow.cpp.
References GUIMessageWindow::addSeparator(), GUIMessageWindow::appendMsg(), EVENT_MESSAGE_OCCURED, OptionsCont::getOptions(), myMessageWindow, myNet, myUndoList, and GNENet::save().
Referenced by onCmdSaveAsNetwork().
long GNEApplicationWindow::onCmdSavePois | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 1101 of file GNEApplicationWindow.cpp.
References GUIMessageWindow::addSeparator(), gCurrentFolder, MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), ICON_EMPTY, myMessageWindow, and GNEPOI::saveToFile().
long GNEApplicationWindow::onCmdSetMode | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called if the user hits an edit-mode hotkey
Definition at line 934 of file GNEApplicationWindow.cpp.
References getView(), and GNEViewNet::setEditModeFromHotkey().
long GNEApplicationWindow::onKeyPress | ( | FXObject * | o, |
FXSelector | sel, | ||
void * | data | ||
) |
handle keys
Definition at line 1229 of file GNEApplicationWindow.cpp.
References GUIMainWindow::myMDIClient, and GNEViewParent::onKeyPress().
long GNEApplicationWindow::onKeyRelease | ( | FXObject * | o, |
FXSelector | sel, | ||
void * | data | ||
) |
Definition at line 1242 of file GNEApplicationWindow.cpp.
References GUIMainWindow::myMDIClient, and GNEViewParent::onKeyRelease().
long GNEApplicationWindow::onLoadThreadEvent | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 713 of file GNEApplicationWindow.cpp.
References eventOccured().
long GNEApplicationWindow::onUpdNeedsNetwork | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
Definition at line 1124 of file GNEApplicationWindow.cpp.
References myNet.
long GNEApplicationWindow::onUpdOpen | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
Definition at line 681 of file GNEApplicationWindow.cpp.
References myAmLoading.
long GNEApplicationWindow::onUpdReload | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
Definition at line 1131 of file GNEApplicationWindow.cpp.
References OptionsCont::getOptions(), and myNet.
long GNEApplicationWindow::onUpdSaveNetwork | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
Definition at line 1157 of file GNEApplicationWindow.cpp.
References OptionsCont::getOptions(), OptionsCont::getString(), OptionsCont::isSet(), and myNet.
|
private |
opens a new simulation display
Definition at line 810 of file GNEApplicationWindow.cpp.
References getBuildGLCanvas(), GUIIconSubSys::getIcon(), GUIGlChildWindow::getView(), ICON_EMPTY, GUIMainWindow::myMDIClient, myMDIMenu, myNet, myViewNumber, and toString().
Referenced by handleEvent_NetworkLoaded().
|
inherited |
removes the given child window from the list
Definition at line 96 of file GUIMainWindow.cpp.
References GUIMainWindow::mySubWindows.
Referenced by GNEViewParent::~GNEViewParent(), GUIDialog_Breakpoints::~GUIDialog_Breakpoints(), GUIDialog_GLChosenEditor::~GUIDialog_GLChosenEditor(), GUIDialog_GLObjChooser::~GUIDialog_GLObjChooser(), GUIParameterTableWindow::~GUIParameterTableWindow(), GUIParameterTracker::~GUIParameterTracker(), GUISUMOViewParent::~GUISUMOViewParent(), and GUITLLogicPhasesTrackerWindow::~GUITLLogicPhasesTrackerWindow().
|
inherited |
Definition at line 113 of file GUIMainWindow.cpp.
References MFXMutex::lock(), GUIMainWindow::myTrackerLock, GUIMainWindow::myTrackerWindows, and MFXMutex::unlock().
|
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 109 of file GUIMainWindow.h.
References UNUSED_PARAMETER.
Referenced by TraCIServerAPI_GUI::processSet().
|
inlinevirtualinherited |
Sets the delay of the parent application.
Reimplemented in GUIApplicationWindow.
Definition at line 104 of file GUIMainWindow.h.
Referenced by GUISUMOAbstractView::setDelay().
|
virtual |
Reimplemented from GUIMainWindow.
Definition at line 927 of file GNEApplicationWindow.cpp.
References GUIMainWindow::myStatusbar.
Referenced by GNENet::computeEverything(), handleEvent_NetworkLoaded(), and loadConfigOrNet().
|
inherited |
Definition at line 149 of file GUIMainWindow.cpp.
References MFXMutex::lock(), MID_SIMSTEP, GUIMainWindow::myMDIClient, GUIMainWindow::myTrackerLock, GUIMainWindow::myTrackerWindows, and MFXMutex::unlock().
Referenced by GUIApplicationWindow::handleEvent_SimulationStep(), GUILaneSpeedTrigger::GUIManip_LaneSpeedTrigger::onCmdChangeOption(), GUITriggeredRerouter::GUIManip_TriggeredRerouter::onCmdChangeOption(), GUIDialog_GLChosenEditor::onCmdClear(), GUIDialog_GLChosenEditor::onCmdDeselect(), GUIApplicationWindow::onCmdEditChosen(), GUILaneSpeedTrigger::GUIManip_LaneSpeedTrigger::onCmdPreDef(), GUILaneSpeedTrigger::GUIManip_LaneSpeedTrigger::onCmdUserDef(), GUITriggeredRerouter::GUIManip_TriggeredRerouter::onCmdUserDef(), GUILaneSpeedTrigger::GUIManip_LaneSpeedTrigger::onUpdPreDef(), GUICalibrator::GUIManip_Calibrator::onUpdPreDef(), GUILaneSpeedTrigger::GUIManip_LaneSpeedTrigger::onUpdUserDef(), GUICalibrator::GUIManip_Calibrator::onUpdUserDef(), and GUITriggeredRerouter::GUIManip_TriggeredRerouter::onUpdUserDef().
void GNEApplicationWindow::updateControls | ( | ) |
update control contents after undo/redo or recompute
Definition at line 1220 of file GNEApplicationWindow.cpp.
References getView(), and GNEViewNet::updateControls().
Referenced by getUndoList(), onCmdComputeJunctions(), GNEUndoList::redo(), and GNEUndoList::undo().
|
protected |
Definition at line 271 of file GNEApplicationWindow.h.
Referenced by dependentBuild().
|
protectedinherited |
information whether the gui is currently in gaming mode
Definition at line 139 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 226 of file GNEApplicationWindow.h.
Referenced by handleEvent_NetworkLoaded(), loadConfigOrNet(), onCmdOpenRecent(), and onUpdOpen().
|
protectedinherited |
Font used for popup-menu titles.
Definition at line 120 of file GUIMainWindow.h.
Referenced by GUIMainWindow::getBoldFont(), GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
|
protectedinherited |
Definition at line 136 of file GUIMainWindow.h.
Referenced by GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
|
protectedinherited |
Labels for the current cartesian and geo-coordinate.
Definition at line 129 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::closeAllWindows(), closeAllWindows(), dependentBuild(), GUIApplicationWindow::dependentBuild(), and GUIMainWindow::getCartesianLabel().
|
protectedinherited |
Definition at line 130 of file GUIMainWindow.h.
Referenced by create(), GUIApplicationWindow::create(), dependentBuild(), and GUIApplicationWindow::dependentBuild().
|
protected |
Input file pattern.
Definition at line 269 of file GNEApplicationWindow.h.
Referenced by onCmdOpenConfiguration().
|
protected |
Definition at line 229 of file GNEApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GNEApplicationWindow().
|
protected |
List of got requests.
Definition at line 248 of file GNEApplicationWindow.h.
Referenced by dependentBuild(), eventOccured(), and ~GNEApplicationWindow().
|
protected |
the submenus
Definition at line 229 of file GNEApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GNEApplicationWindow().
|
protectedinherited |
Definition at line 129 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::closeAllWindows(), closeAllWindows(), dependentBuild(), GUIApplicationWindow::dependentBuild(), and GUIMainWindow::getGeoLabel().
|
protectedinherited |
Definition at line 130 of file GUIMainWindow.h.
Referenced by create(), GUIApplicationWindow::create(), dependentBuild(), and GUIApplicationWindow::dependentBuild().
|
protectedinherited |
The gl-visual used.
Definition at line 134 of file GUIMainWindow.h.
Referenced by GUIMainWindow::getGLVisual(), ~GNEApplicationWindow(), and GUIApplicationWindow::~GUIApplicationWindow().
|
protected |
Definition at line 229 of file GNEApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GNEApplicationWindow().
|
staticprotectedinherited |
the singleton window instance
Definition at line 145 of file GUIMainWindow.h.
Referenced by GUIMainWindow::getInstance(), and GUIMainWindow::GUIMainWindow().
|
protectedinherited |
Definition at line 136 of file GUIMainWindow.h.
Referenced by GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
|
protectedinherited |
information whether the locator should list internal structures
Definition at line 142 of file GUIMainWindow.h.
Referenced by GUIMainWindow::listInternal(), and GUIApplicationWindow::onCmdListInternal().
|
protected |
the thread that loads the network
Definition at line 220 of file GNEApplicationWindow.h.
Referenced by dependentBuild(), loadConfigOrNet(), and ~GNEApplicationWindow().
|
protected |
io-event with the load-thread
Definition at line 260 of file GNEApplicationWindow.h.
Referenced by dependentBuild().
|
protected |
Definition at line 229 of file GNEApplicationWindow.h.
Referenced by fillMenuBar().
|
protected |
The splitter that divides the main window into vies and the log window.
Definition at line 240 of file GNEApplicationWindow.h.
Referenced by dependentBuild().
|
protectedinherited |
The multi view panel.
Definition at line 123 of file GUIMainWindow.h.
Referenced by dependentBuild(), GUIApplicationWindow::dependentBuild(), GUIApplicationWindow::fillMenuBar(), GUIApplicationWindow::getBuildGLCanvas(), getBuildGLCanvas(), GUIApplicationWindow::onCmdEditChosen(), GUIApplicationWindow::onCmdFullScreen(), GUIApplicationWindow::onCmdGaming(), onCmdLocate(), GUIApplicationWindow::onCmdLocate(), onKeyPress(), GUIApplicationWindow::onKeyPress(), onKeyRelease(), GUIApplicationWindow::onKeyRelease(), GUIApplicationWindow::openNewView(), openNewView(), and GUIMainWindow::updateChildren().
|
protected |
The menu used for the MDI-windows.
Definition at line 251 of file GNEApplicationWindow.h.
Referenced by dependentBuild(), and openNewView().
|
protected |
The application menu bar.
Definition at line 254 of file GNEApplicationWindow.h.
Referenced by dependentBuild(), and fillMenuBar().
|
protected |
Definition at line 243 of file GNEApplicationWindow.h.
Referenced by create(), dependentBuild(), and detach().
|
protected |
A window to display messages, warnings and error in.
Definition at line 237 of file GNEApplicationWindow.h.
Referenced by closeAllWindows(), dependentBuild(), fillMenuBar(), handleEvent_Message(), handleEvent_NetworkLoaded(), onCmdClearMsgWindow(), onCmdSaveAsPlainXML(), onCmdSaveJoined(), onCmdSaveNetwork(), and onCmdSavePois().
|
protected |
the name of the simulation
Definition at line 217 of file GNEApplicationWindow.h.
|
protected |
we are responsible for the net
Definition at line 274 of file GNEApplicationWindow.h.
Referenced by closeAllWindows(), GNEApplicationWindow::GNEShapeHandler::getLanePos(), handleEvent_NetworkLoaded(), onCmdCleanJunctions(), onCmdComputeJunctions(), onCmdJoinJunctions(), onCmdOpenShapes(), onCmdSaveAsPlainXML(), onCmdSaveJoined(), onCmdSaveNetwork(), onUpdNeedsNetwork(), onUpdReload(), onUpdSaveNetwork(), and openNewView().
|
protected |
Definition at line 229 of file GNEApplicationWindow.h.
Referenced by fillMenuBar(), and ~GNEApplicationWindow().
|
protected |
List of recent config files.
Definition at line 263 of file GNEApplicationWindow.h.
Referenced by fillMenuBar(), and onCmdOpenConfiguration().
|
protected |
List of recent nets.
Definition at line 266 of file GNEApplicationWindow.h.
Referenced by fillMenuBar(), onCmdOpenNetwork(), and onCmdOpenRecent().
|
protectedinherited |
Definition at line 136 of file GUIMainWindow.h.
Referenced by GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
|
protectedinherited |
The status bar.
Definition at line 126 of file GUIMainWindow.h.
Referenced by dependentBuild(), GUIApplicationWindow::dependentBuild(), fillMenuBar(), GUIApplicationWindow::fillMenuBar(), GUIApplicationWindow::onCmdFullScreen(), GUIApplicationWindow::onCmdGaming(), onCmdOpenRecent(), GUIApplicationWindow::onCmdOpenRecent(), GUIApplicationWindow::onCmdStart(), GUIApplicationWindow::onCmdStep(), GUIApplicationWindow::openNewView(), setStatusBarText(), and GUIApplicationWindow::setStatusBarText().
|
protectedinherited |
Definition at line 114 of file GUIMainWindow.h.
Referenced by GUIMainWindow::addChild(), GUIApplicationWindow::closeAllWindows(), closeAllWindows(), getView(), GUIMainWindow::getViewByID(), GUIMainWindow::getViewIDs(), GUIApplicationWindow::onCmdNetedit(), and GUIMainWindow::removeChild().
|
protected |
the prefix for the window title
Definition at line 280 of file GNEApplicationWindow.h.
Referenced by closeAllWindows(), dependentBuild(), handleEvent_NetworkLoaded(), and onCmdSaveAsNetwork().
|
protected |
The application tool bar.
Definition at line 257 of file GNEApplicationWindow.h.
|
protected |
Definition at line 257 of file GNEApplicationWindow.h.
|
protected |
Definition at line 257 of file GNEApplicationWindow.h.
|
protected |
Definition at line 257 of file GNEApplicationWindow.h.
|
protected |
Definition at line 257 of file GNEApplicationWindow.h.
|
protected |
for some menu detaching fun
Definition at line 243 of file GNEApplicationWindow.h.
|
protected |
Definition at line 243 of file GNEApplicationWindow.h.
|
protected |
Definition at line 243 of file GNEApplicationWindow.h.
|
protected |
Definition at line 243 of file GNEApplicationWindow.h.
|
protected |
Definition at line 243 of file GNEApplicationWindow.h.
|
protectedinherited |
Definition at line 136 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::buildToolBars(), dependentBuild(), GUIApplicationWindow::dependentBuild(), GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
|
protectedinherited |
A lock to make the removal and addition of trackers secure.
Definition at line 117 of file GUIMainWindow.h.
Referenced by GUIMainWindow::addChild(), GUIApplicationWindow::closeAllWindows(), closeAllWindows(), GUIMainWindow::removeChild(), and GUIMainWindow::updateChildren().
|
protectedinherited |
Definition at line 115 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 277 of file GNEApplicationWindow.h.
Referenced by closeAllWindows(), continueWithUnsavedChanges(), fillMenuBar(), getUndoList(), onCmdCleanJunctions(), onCmdJoinJunctions(), onCmdSaveAsPlainXML(), onCmdSaveNetwork(), and ~GNEApplicationWindow().
|
protected |
The current view number.
Definition at line 223 of file GNEApplicationWindow.h.
Referenced by handleEvent_NetworkLoaded(), and openNewView().
|
protected |
Definition at line 229 of file GNEApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GNEApplicationWindow().