 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
17 #ifndef GNEApplicationWindow_h
18 #define GNEApplicationWindow_h
195 long onCmdClose(FXObject*, FXSelector,
void*);
246 long onUpdUndo(FXObject* obj, FXSelector sel,
void* ptr);
249 long onUpdRedo(FXObject* obj, FXSelector sel,
void* ptr);
258 long onKeyPress(FXObject* o, FXSelector sel,
void* data);
261 long onKeyRelease(FXObject* o, FXSelector sel,
void* data);
266 long onCmdQuit(FXObject*, FXSelector,
void*);
272 long onCmdAbout(FXObject*, FXSelector,
void*);
275 long onUpdOpen(FXObject*, FXSelector,
void*);
290 long onCmdSetMode(FXObject* sender, FXSelector sel,
void* ptr);
299 long onCmdAbort(FXObject* sender, FXSelector sel,
void* ptr);
302 long onCmdDel(FXObject* sender, FXSelector sel,
void* ptr);
305 long onCmdEnter(FXObject* sender, FXSelector sel,
void* ptr);
320 long onCmdHelp(FXObject* sender, FXSelector sel,
void* ptr);
326 long onCmdUndo(FXObject*, FXSelector,
void*);
329 long onCmdRedo(FXObject*, FXSelector,
void*);
746 void loadConfigOrNet(
const std::string file,
bool isNet,
bool isReload =
false,
bool useStartupOptions =
false,
bool newNet =
false);
long onCmdQuit(FXObject *, FXSelector, void *)
Called by FOX if the application shall be closed.
FXMenuCommand * joinJunctions
FXMenuCommand for join selected junctions.
ToolbarsGrip myToolbarsGrip
Toolbars Grip.
FXMenuCommand * joinRoutes
FXMenuCommand for join routes.
FXMenuCommand * vehicleTypeMode
menu command for vehicle type mode
long onCmdHelp(FXObject *sender, FXSelector sel, void *ptr)
called if the user selects help->Documentation
void buildLocateMenuCommands(FXMenuPane *editMenu)
build menu commands
void buildEditMenuCommands(FXMenuPane *editMenu)
build edit menu commands
long onClipboardRequest(FXObject *sender, FXSelector sel, void *ptr)
called when the command/FXCall clipboard request is executed
FXMenuCommand * redoLastChange
FXMenuCommand for redo last change.
std::string myUndoRedoListEnabled
string to check if undo/redo list is enabled (a String is used to keep the disabling reason)
FXMenuCommand * TAZMode
menu command for TAZ mode
FXMenuPane * myProcessingMenu
void showDemandProcessingMenuCommands()
show demand processing menu commands
const EditMenuCommands * myEditMenuCommandsParent
reference to EditMenuCommands
FXMenuCommand * deleteMode
menu command for delete mode
void loadOptionOnStartup()
load net on startup
struct for supermode commands
bool continueWithUnsavedAdditionalChanges()
warns about unsaved changes in additionals and gives the user the option to abort
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 */
long onCmdOptions(FXObject *, FXSelector, void *)
called if the user selects Processing->Configure Options
NetworkMenuCommands(const EditMenuCommands *editMenuCommandsParent)
constructor
long onCmdClose(FXObject *, FXSelector, void *)
called when the command/FXCall close is executed
A logging window for the gui.
long onCmdEditViewScheme(FXObject *, FXSelector, void *)
Called on menu Edit->Visualization.
long onCmdUndo(FXObject *, FXSelector, void *)
called when user press Ctrl+Z
FXMenuCommand * computeNetworkVolatile
FXMenuCommand for compute network with volatile options.
GNEViewNet * myViewNet
pointer to current view net
FXSplitter * myMainSplitter
The splitter that divides the main window into view and the log window.
struct for Demand menu commands
FXMenuSeparator * myHorizontalSeparator
separator between sets of FXMenuCommand
A NBNetBuilder extended by visualisation and editing capabilities.
long onUpdUndo(FXObject *obj, FXSelector sel, void *ptr)
called when the update/FXCall undo is executed
long onUpdSaveAdditionals(FXObject *, FXSelector, void *)
called when the update/FXCall save additionals is executed
FXMenuCommand * inspectMode
menu command for inspect mode
const FXString myTitlePrefix
the prefix for the window title
long onCmdSaveDemandElementsAs(FXObject *, FXSelector, void *)
called when the command/FXCall save demand elements as is executed
LocateMenuCommands(GNEApplicationWindow *GNEApp)
constructor
long onCmdSaveDemandElements(FXObject *, FXSelector, void *)
called when the command/FXCall save demand elements is executed
FXEX::FXThreadEvent myLoadThreadEvent
io-event with the load-thread
long onCmdToogleGrid(FXObject *, FXSelector, void *)
called if the user press key combination Ctrl + G to toogle grid
long onCmdFocusFrame(FXObject *sender, FXSelector sel, void *ptr)
called if the user hits f
FXMenuCommand * personTypeMode
menu command for person type mode
FXMenuCommand * selectMode
menu command for select mode
long onUpdReload(FXObject *, FXSelector, void *)
called when the update/FXCall reload is executed
ProcessingMenuCommands(GNEApplicationWindow *GNEApp)
constructor
void buildDemandMenuCommands(FXMenuPane *editMenu)
build menu commands
const std::string & isUndoRedoEnabled() const
check if undo-redo is enabled
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindows
DemandMenuCommands demandMenuCommands
Demand Menu Commands.
The main window of the Netedit.
FXMenuCommand * cleanJunctions
FXMenuCommand for clean junctions without edges.
void disableUndoRedo(const std::string &reason)
disable undo-redo giving a string with the reason
EditMenuCommands myEditMenuCommands
Edit Menu Commands.
long computeJunctionWithVolatileOptions()
called if the user selects Processing->compute junctions with volatile options
FXMenuCommand * saveDemandElements
FXMenuCommand for enable or disable save demand elements.
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindows
void disableSaveDemandElementsMenu()
disable save demand elements
long onCmdOpenTLSPrograms(FXObject *, FXSelector, void *)
called when the command/FXCall open additionals is executed
FXMenuPane * myFileMenu
the submenus
struct for edit menu commands
FXCursor * getDefaultCursor()
get default cursor
ProcessingMenuCommands myProcessingMenuCommands
Edit Menu Commands.
FXMenuCommand * personMode
menu command for person mode
FileMenuCommands(GNEApplicationWindow *GNEApp)
constructor
FXMenuCommand * networkMode
FXMenuCommand for network supermode.
long onCmdOpenNetwork(FXObject *, FXSelector, void *)
called when the command/FXCall open network is executed
bool continueWithUnsavedDemandElementChanges()
warns about unsaved changes in demand elements and gives the user the option to abort
long onUpdSaveDemandElements(FXObject *, FXSelector, void *)
called when the update/FXCall save demand elements is executed
struct for network menu commands
FXMenuCommand * shapeMode
menu command for shape mode
bool myAmLoading
information whether the gui is currently loading and the load-options shall be greyed out
bool continueWithUnsavedChanges()
warns about unsaved changes and gives the user the option to abort
GNENet * myNet
we are responsible for the net
LocateMenuCommands myLocateMenuCommands
Locate Menu Commands.
SupermodeCommands(GNEApplicationWindow *GNEApp)
constructor
struct for locate menu commands
void enableSaveDemandElementsMenu()
enable save demand elements
long onCmdDel(FXObject *sender, FXSelector sel, void *ptr)
called if the user hits del
GUIMessageWindow * myMessageWindow
A window to display messages, warnings and error in.
long onCmdToogleEditOptions(FXObject *, FXSelector, void *)
called if the user press key combination Alt + <0-9>
FXMenuCommand * demandMode
FXMenuCommand for demand supermode.
SupermodeCommands mySupermodeCommands
Supermode Commands.
void showNetworkProcessingMenuCommands()
show network processing menu commands
void hideDemandMenuCommands()
hide all menu commands
FXMenuPane * myFileMenuDemandElements
bool hadDependentBuild
check if had dependent build
FXMenuPane * myLocatorMenu
long onCmdClearMsgWindow(FXObject *, FXSelector, void *)
called when the command/FXCall clear message windows is executed
long onUpdRedo(FXObject *obj, FXSelector sel, void *ptr)
called when the update/FXCall redo is executed
void create()
Creates the main window (required by FOX)
FXMenuCommand * toogleGrid
FXMenuCommand for toogle grid.
void buildFileMenuCommands(FXMenuPane *editMenu)
build menu commands
void handleEvent_Message(GUIEvent *e)
hanlde event of type message
FXMenuCommand * moveMode
menu command for move mode
void enableSaveTLSProgramsMenu()
enable save TLS Programs
FXMenuCommand * saveAdditionals
FXMenuCommand for enable or disable save additionals.
long onCmdAbort(FXObject *sender, FXSelector sel, void *ptr)
called if the user hits esc
FXMenuCommand * saveDemandElementsAs
FXMenuCommand for enable or disable save demand elements as.
~GNEApplicationWindow()
Destructor.
SUMOTime getCurrentSimTime() const
get current simulation time (pure virtual but we don't need it)
long onUpdOpen(FXObject *, FXSelector, void *)
called when the command/FXCall on update open executed
GNELoadThread * myLoadThread
the thread that loads the network
FXMenuCommand * crossingMode
menu command for crossing mode
FXMenuCommand * editViewScheme
FXMenuCommand for edit view scheme.
FXMenuPane * myFileMenuTLS
long onCmdEnter(FXObject *sender, FXSelector sel, void *ptr)
called if the user hits enter
void hideSupermodeCommands()
hide all menu commands
void enableSaveAdditionalsMenu()
enable save additionals
long onKeyRelease(FXObject *o, FXSelector sel, void *data)
called when a key is released
long onCmdNewNetwork(FXObject *, FXSelector, void *)
FXMenuSeparator * myHorizontalSeparator
separator between sets of FXMenuCommand
long onCmdAbout(FXObject *, FXSelector, void *)
called when the command/FXCall show about dialog is executed
void dependentBuild()
build dependent
long onCmdSaveNetwork(FXObject *, FXSelector, void *)
called when the command/FXCall save network is executed
FXMenuCommand * saveAdditionalsAs
FXMenuCommand for enable or disable save additionals As.
FXMenuCommand * computeNetwork
long onCmdOpenDemandElements(FXObject *, FXSelector, void *)
called when the command/FXCall open demand is executed
void closeAllWindows()
this method closes all windows and deletes the current simulation */
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindows
long onLoadThreadEvent(FXObject *, FXSelector, void *)
called when the command/FXCall load thread is executed
long onUpdNeedsNetwork(FXObject *, FXSelector, void *)
called when the update/FXCall needs network is executed
long onCmdSetSuperMode(FXObject *sender, FXSelector sel, void *ptr)
called if the user hits an edit-supermode hotkey
long onCmdOpenRecent(FXObject *, FXSelector, void *)
called when the command/FXCall open recent is executed
long onCmdSaveAsNetwork(FXObject *, FXSelector, void *)
called when the command/FXCall save network as is executed
FXMenuCommand * prohibitionMode
menu command for prohibition mode
FXMenuCommand * additionalMode
menu command for additional mode
FXMenuCommand * clearInvalidDemandElements
FXMenuCommand for clear invalid demand elements.
long onKeyPress(FXObject *o, FXSelector sel, void *data)
called when a key is pressed
FXMenuCommand * stopMode
menu command for stop mode
long onCmdSaveTLSPrograms(FXObject *, FXSelector, void *)
called when the command/FXCall save TLSPrograms is executed
void disableSaveAdditionalsMenu()
disable save additionals
FXMenuCommand * personPlanMode
menu command for person plan mode
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindows
MenuBarFile myMenuBarFile
MenuBarFile.
void handleEvent_NetworkLoaded(GUIEvent *e)
handle event of type Network loaded
FXMenuCommand * openInSUMOGUI
FXMenuCommand for open in SUMO GUI.
long onCmdOpenSUMOGUI(FXObject *sender, FXSelector sel, void *ptr)
called if the user hints ctrl + T
long onCmdSetMode(FXObject *sender, FXSelector sel, void *ptr)
called if the user hits an edit-mode hotkey
FXMenuCommand * optionMenus
FXMenuCommand for open option menus.
FileMenuCommands myFileMenuCommands
File Menu Commands.
long onCmdSaveAdditionalsAs(FXObject *, FXSelector, void *)
called when the command/FXCall save additionals as is executed
long onCmdOpenAdditionals(FXObject *, FXSelector, void *)
called when the command/FXCall open additionals is executed
long onCmdSaveJoined(FXObject *, FXSelector, void *)
called when the command/FXCall save joined is executed
void hideDemandProcessingMenuCommands()
show demand processing menu commands
FXMenuPane * myWindowsMenu
FXMenuCommand * undoLastChange
FXMenuCommand for undo last change.
void setStatusBarText(const std::string &statusBarText)
set text of the statusBar
void hideNetworkMenuCommands()
hide all menu commands
GNEUndoList * getUndoList()
get pointer to undoList
long onCmdReload(FXObject *, FXSelector, void *)
called when the command/FXCall reload is executed
void buildSupermodeCommands(FXMenuPane *editMenu)
build menu commands
void buildNetworkMenuCommands(FXMenuPane *editMenu)
build menu commands
FXMenuCommand * TLSMode
menu command for TLS Mode
FXGLCanvas * getBuildGLCanvas() const
FXMenuCommand * connectMode
menu command for connect mode
void fillMenuBar()
Builds the menu bar.
void updateControls()
update control contents after undo/redo or recompute
long onUpdSaveNetwork(FXObject *, FXSelector, void *)
called when the update/FXCall save network is executed
ToolbarsGrip & getToolbarsGrip()
get ToolbarsGrip
long onCmdEditChosen(FXObject *, FXSelector, void *)
called when the command/FXCall edit chosen is executed
FXMenuCommand * cleanRoutes
FXMenuCommand for clean routes without vehicles.
FXMenuCommand * routeMode
menu command for route mode
long onCmdRedo(FXObject *, FXSelector, void *)
void enableUndoRedo()
disable undo-redo
FXMenuCommand * editViewPort
FXMenuCommand for edit view port.
struct for processing menu commands
GNEUndoList * myUndoList
the one and only undo list
const EditMenuCommands * myEditMenuCommandsParent
reference to EditMenuCommands
std::string myConfigPattern
Input file pattern.
struct for File menu commands
long onCmdSaveTLSProgramsAs(FXObject *, FXSelector, void *)
called when the command/FXCall save TLSPrograms as is executed
FXMenuCommand * computeDemand
FXMenuCommand * clearInvalidCrossings
FXMenuCommand for clear invalid crosings.
FXMenuSeparator * myHorizontalSeparator
separator between sets of FXMenuCommand
long onCmdSaveAsPlainXML(FXObject *, FXSelector, void *)
called when the command/FXCall save as plain xml is executed
void showSupermodeCommands()
show all menu commands
FXSynchQue< GUIEvent * > myEvents
List of got requests.
long onCmdOpenConfiguration(FXObject *, FXSelector, void *)
called when the command/FXCall open configuration is executed
void showNetworkMenuCommands()
show all menu commands
long onCmdEditViewport(FXObject *, FXSelector, void *)
Called on menu Edit->Viewport.
long onCmdLocate(FXObject *, FXSelector, void *)
called when the command/FXCall locate is executed
double getTrackerInterval() const
get current tracker interval (pure virtual but we don't need it)
DemandMenuCommands(const EditMenuCommands *editMenuCommandsParent)
constructor
void updateSuperModeMenuCommands(int supermode)
update FXMenuCommands
long onCmdProcessButton(FXObject *, FXSelector sel, void *)
called when user press a process button (or a shortcut)
GNEApplicationWindow()
FOX needs this for static members.
FXMenuCommand * saveTLSPrograms
FXMenuCommand for enable or disable save additionals.
FXMenuCommand * createEdgeMode
menu command for create edge
void buildProcessingMenuCommands(FXMenuPane *editMenu)
build menu commands
void showDemandMenuCommands()
show all menu commands
void hideNetworkProcessingMenuCommands()
show network processing menu commands
long onCmdOpenForeign(FXObject *, FXSelector, void *)
called when the command/FXCall open foreign is executed
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindows
long onCmdBackspace(FXObject *sender, FXSelector sel, void *ptr)
called if the user hits backspace
EditMenuCommands(GNEApplicationWindow *GNEApp)
constructor
long onCmdSaveAdditionals(FXObject *, FXSelector, void *)
called when the command/FXCall save additionals is executed
FXMenuPane * myFileMenuAdditionals
FXMDIMenu * myMDIMenu
The menu used for the MDI-windows.
NetworkMenuCommands networkMenuCommands
Network Menu Commands.
FXMenuCommand * vehicleMode
menu command for vehicle mode