Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEApplicationWindow.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2024 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
18// The main window of Netedit (adapted from GUIApplicationWindow)
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
24
25
26// ===========================================================================
27// class definition
28// ===========================================================================
41 FXDECLARE(GNEApplicationWindow)
42
43public:
44
49 GNEApplicationWindow(FXApp* a, const std::string& configPattern);
50
53
55 void create();
56
59
61 void createNewNetwork();
62
64 void loadNetwork(const std::string& networkFile);
65
67 void loadConfiguration(const std::string& configurationFile);
68
70 void loadOSM(const std::string& OSMFile);
71
73 void dependentBuild();
74
76 void setStatusBarText(const std::string& statusBarText);
77
80
83
87 void eventOccurred();
88
91
95
99 long onCmdNewWindow(FXObject*, FXSelector, void*);
100
102 long onCmdNewNetwork(FXObject*, FXSelector, void*);
103
105 long onCmdOpenNetconvertConfig(FXObject*, FXSelector, void*);
106
108 long onCmdOpenNetwork(FXObject*, FXSelector, void*);
109
111 long onCmdOpenForeign(FXObject*, FXSelector, void*);
112
114 long onCmdOpenNeteditConfig(FXObject*, FXSelector, void*);
115
117 long onCmdOpenSumoConfig(FXObject*, FXSelector, void*);
118
120 long onCmdReloadNeteditConfig(FXObject*, FXSelector, void*);
121
123 long onCmdReloadSumoConfig(FXObject*, FXSelector, void*);
124
126 long onUpdReloadNeteditConfig(FXObject*, FXSelector, void*);
127
129 long onUpdReloadSumoConfig(FXObject*, FXSelector, void*);
130
132 long onCmdOpenTLSPrograms(FXObject*, FXSelector, void*);
133
135 long onCmdReloadTLSPrograms(FXObject*, FXSelector, void*);
136
138 long onUpdReloadTLSPrograms(FXObject*, FXSelector, void*);
139
141 long onCmdOpenEdgeTypes(FXObject*, FXSelector, void*);
142
144 long onCmdReloadEdgeTypes(FXObject*, FXSelector, void*);
145
147 long onUpdReloadEdgeTypes(FXObject*, FXSelector, void*);
148
150 long onCmdSmartReload(FXObject*, FXSelector, void*);
151
153 long onUpdSmartReload(FXObject*, FXSelector, void*);
154
156 long onCmdReloadNetwork(FXObject*, FXSelector, void*);
157
159 long onUpdReloadNetwork(FXObject*, FXSelector, void*);
160
162 long onCmdOpenRecent(FXObject*, FXSelector, void*);
163
165 long onCmdClose(FXObject*, FXSelector, void*);
166
168 long onCmdEditViewScheme(FXObject*, FXSelector, void*);
169
171 long onCmdEditViewport(FXObject*, FXSelector, void*);
172
174 long onCmdLocate(FXObject*, FXSelector, void*);
175
177 long onCmdOpenPythonToolDialog(FXObject* obj, FXSelector, void*);
178
180 long onCmdRunPythonTool(FXObject* obj, FXSelector, void*);
181
183 long onCmdPostProcessingPythonTool(FXObject* obj, FXSelector, void*);
184
186 long onUpdPythonTool(FXObject*, FXSelector, void*);
187
189 long onCmdSaveNetwork(FXObject*, FXSelector, void*);
190
192 long onCmdSaveNetworkAs(FXObject*, FXSelector, void*);
193
195 long onCmdSavePlainXMLAs(FXObject*, FXSelector, void*);
196
198 long onCmdSaveJoinedJunctionsAs(FXObject*, FXSelector, void*);
199
201 long onCmdSaveNeteditConfig(FXObject*, FXSelector, void*);
202
204 long onCmdSaveNeteditConfigAs(FXObject*, FXSelector, void*);
205
207 long onUpdSaveNeteditConfig(FXObject*, FXSelector, void*);
208
210 long onCmdSaveSumoConfig(FXObject*, FXSelector, void*);
211
213 long onCmdSaveSumoConfigAs(FXObject*, FXSelector, void*);
214
216 long onUpdSaveSumoConfig(FXObject*, FXSelector, void*);
217
219 long onCmdSaveTLSPrograms(FXObject*, FXSelector, void*);
220
222 long onUpdSaveTLSPrograms(FXObject*, FXSelector, void*);
223
225 long onCmdSaveEdgeTypes(FXObject*, FXSelector, void*);
226
228 long onUpdSaveEdgeTypes(FXObject*, FXSelector, void*);
229
231 long onCmdSaveTLSProgramsAs(FXObject*, FXSelector, void*);
232
234 long onCmdSaveEdgeTypesAs(FXObject*, FXSelector, void*);
235
237 long onUpdSaveEdgeTypesAs(FXObject*, FXSelector, void*);
238
240 long onCmdOpenAdditionals(FXObject*, FXSelector, void*);
241
243 long onCmdReloadAdditionals(FXObject*, FXSelector, void*);
244
246 long onUpdReloadAdditionals(FXObject*, FXSelector, void*);
247
249 long onCmdSaveAdditionals(FXObject*, FXSelector, void*);
250
252 long onCmdSaveAdditionalsAs(FXObject*, FXSelector, void*);
253
255 long onCmdSaveJuPedSimElementsAs(FXObject*, FXSelector, void*);
256
258 long onCmdOpenDemandElements(FXObject*, FXSelector, void*);
259
261 long onCmdReloadDemandElements(FXObject*, FXSelector, void*);
262
264 long onUpdReloadDemandElements(FXObject*, FXSelector, void*);
265
267 long onCmdSaveDemandElements(FXObject*, FXSelector, void*);
268
270 long onCmdOpenDataElements(FXObject*, FXSelector, void*);
271
273 long onCmdReloadDataElements(FXObject*, FXSelector, void*);
274
276 long onUpdReloadDataElements(FXObject*, FXSelector, void*);
277
279 long onCmdSaveDemandElementsAs(FXObject*, FXSelector, void*);
280
282 long onCmdSaveDataElements(FXObject*, FXSelector, void*);
283
285 long onCmdSaveDataElementsAs(FXObject*, FXSelector, void*);
286
288 long onCmdOpenMeanDatas(FXObject*, FXSelector, void*);
289
291 long onCmdReloadMeanDatas(FXObject*, FXSelector, void*);
292
294 long onUpdReloadMeanDatas(FXObject*, FXSelector, void*);
295
297 long onCmdSaveMeanDatas(FXObject*, FXSelector, void*);
298
300 long onCmdSaveMeanDatasAs(FXObject*, FXSelector, void*);
301
303 long onUpdNeedsNetwork(FXObject*, FXSelector, void*);
304
306 long onUpdNeedsNetworkElement(FXObject*, FXSelector, void*);
307
309 long onUpdNeedsFrontElement(FXObject*, FXSelector, void*);
310
312 long onUpdSaveNetwork(FXObject*, FXSelector, void*);
313
315 long onUpdSaveAdditionals(FXObject*, FXSelector, void*);
316
318 long onUpdSaveAdditionalsAs(FXObject*, FXSelector, void*);
319
321 long onUpdSaveJuPedSimElementsAs(FXObject*, FXSelector, void*);
322
324 long onUpdSaveDemandElements(FXObject*, FXSelector, void*);
325
327 long onUpdSaveDemandElementsAs(FXObject*, FXSelector, void*);
328
330 long onUpdSaveDataElements(FXObject*, FXSelector, void*);
331
333 long onUpdSaveDataElementsAs(FXObject*, FXSelector, void*);
334
336 long onUpdSaveMeanDatas(FXObject*, FXSelector, void*);
337
339 long onUpdSaveMeanDatasAs(FXObject*, FXSelector, void*);
340
342 long onUpdUndo(FXObject* obj, FXSelector sel, void* ptr);
343
345 long onUpdRedo(FXObject* obj, FXSelector sel, void* ptr);
346
348 long onUpdComputePathManager(FXObject* obj, FXSelector sel, void* ptr);
349
351 long onCmdToggleViewOption(FXObject*, FXSelector, void*);
352
354 long onUpdToggleViewOption(FXObject*, FXSelector, void*);
355
357 long onKeyPress(FXObject* o, FXSelector sel, void* data);
358
360 long onKeyRelease(FXObject* o, FXSelector sel, void* data);
361
363 long onCmdQuit(FXObject*, FXSelector, void*);
364
366 long onCmdEditChosen(FXObject*, FXSelector, void*);
367
369 long onCmdAbout(FXObject*, FXSelector, void*);
370
372 long onUpdOpen(FXObject*, FXSelector, void*);
373
375 long onCmdClearMsgWindow(FXObject*, FXSelector, void*);
376
378 long onCmdLoadAdditionalsInSUMOGUI(FXObject*, FXSelector, void*);
379
381 long onCmdLoadDemandInSUMOGUI(FXObject*, FXSelector, void*);
382
384 long onLoadThreadEvent(FXObject*, FXSelector, void*);
385
387 long onClipboardRequest(FXObject* sender, FXSelector sel, void* ptr);
388
390 long onCmdSetSuperMode(FXObject* sender, FXSelector sel, void* ptr);
391
393 long onCmdSetMode(FXObject* sender, FXSelector sel, void* ptr);
394
396 long onCmdLockElements(FXObject*, FXSelector sel, void*);
397
399 long onCmdLockAllElements(FXObject*, FXSelector sel, void*);
400
402 long onCmdUnlockAllElements(FXObject*, FXSelector sel, void*);
403
405 long onCmdLockSelectElements(FXObject*, FXSelector sel, void*);
406
408 long onUpdLockMenuTitle(FXObject*, FXSelector sel, void*);
409
411 long onCmdProcessButton(FXObject*, FXSelector sel, void*);
412
414 long onCmdOpenSUMOGUI(FXObject* sender, FXSelector sel, void* ptr);
415
417 long onCmdAbort(FXObject* sender, FXSelector sel, void* ptr);
418
420 long onCmdDel(FXObject* sender, FXSelector sel, void* ptr);
421
423 long onCmdEnter(FXObject* sender, FXSelector sel, void* ptr);
424
426 long onCmdBackspace(FXObject* sender, FXSelector sel, void* ptr);
427
429 long onCmdClearSelectionShortcut(FXObject* sender, FXSelector sel, void* ptr);
430
432 long onCmdFocusFrame(FXObject* sender, FXSelector sel, void* ptr);
433
435 long onCmdToggleTimeFormat(FXObject* sender, FXSelector sel, void* ptr);
436
438 long onUpdToggleTimeFormat(FXObject* sender, FXSelector sel, void* ptr);
439
441 long onUpdRequireViewNet(FXObject* sender, FXSelector sel, void* ptr);
442
444 long onUpdRequireRecomputing(FXObject* sender, FXSelector sel, void* ptr);
445
447 long onCmdRunNetgenerate(FXObject* sender, FXSelector sel, void* ptr);
448
450 long onCmdPostprocessingNetgenerate(FXObject* sender, FXSelector sel, void* ptr);
451
453 long onCmdToggleGrid(FXObject*, FXSelector, void*);
454
456 long onCmdToggleDrawJunctionShape(FXObject*, FXSelector, void*);
457
459 long onCmdSetFrontElement(FXObject*, FXSelector, void*);
460
462 long onCmdToggleEditOptions(FXObject*, FXSelector, void*);
463
465 long onCmdHelp(FXObject* sender, FXSelector sel, void* ptr);
466
468 long onCmdChangelog(FXObject* sender, FXSelector sel, void* ptr);
469
471 long onCmdHotkeys(FXObject* sender, FXSelector sel, void* ptr);
472
474 long onCmdTutorial(FXObject* sender, FXSelector sel, void* ptr);
475
477 long onCmdFeedback(FXObject* sender, FXSelector sel, void* ptr);
478
480 long onCmdToggleComputeNetworkData(FXObject*, FXSelector, void*);
481
483 long onCmdToggleUndoRedo(FXObject*, FXSelector, void*);
484
486 long onCmdToggleUndoRedoLoading(FXObject*, FXSelector, void*);
487
489 long onCmdOpenOptionsDialog(FXObject*, FXSelector, void*);
490
492 long onCmdOpenSumoOptionsDialog(FXObject*, FXSelector, void*);
493
495 long onCmdOpenNetgenerateDialog(FXObject*, FXSelector, void*);
496
498 long onCmdOpenNetgenerateOptionsDialog(FXObject*, FXSelector, void*);
499
501 long onCmdUndo(FXObject*, FXSelector, void*);
502
503 // @brief called when user press Ctrl+Y
504 long onCmdRedo(FXObject*, FXSelector, void*);
505
506 // @brief called when user press open undoList dialog
507 long onCmdOpenUndoListDialog(FXObject*, FXSelector, void*);
508
509 // @brief called when openUndoList is updated
510 long onUpdOpenUndoListDialog(FXObject*, FXSelector, void*);
511
512 // @brief called when user press compute path manager
513 long onCmdComputePathManager(FXObject*, FXSelector, void*);
514
516 long onCmdCut(FXObject*, FXSelector, void*);
517
518 // @brief called when user press Ctrl+Y
519 long onCmdCopy(FXObject*, FXSelector, void*);
520
521 // @brief called when user press Ctrl+Y
522 long onCmdPaste(FXObject*, FXSelector, void*);
523
524 // @brief called when user press Ctrl+F1
525 long onCmdSetTemplate(FXObject*, FXSelector, void*);
526
527 // @brief called when user press Ctrl+F2
528 long onCmdCopyTemplate(FXObject*, FXSelector, void*);
529
530 // @brief called when user press Ctrl+F3
531 long onCmdClearTemplate(FXObject*, FXSelector, void*);
532
534
538 FXGLCanvas* getBuildGLCanvas() const;
539
542
544 double getTrackerInterval() const;
546
548 FXCursor* getDefaultCursor();
549
552
555
558
561
564
566 void updateControls();
567
569 void updateSuperModeMenuCommands(const Supermode supermode);
570
574 bool isUndoRedoAllowed() const;
575
578
580 void disableUndoRedoTemporally(const std::string& reason);
581
583 const std::string& isUndoRedoEnabledTemporally() const;
584
586 void clearUndoList();
587
589
592
595
598
601
604
607
610
613
615 void loadDemandElements();
616
619
621 void loadDataElements();
622
623protected:
626
629
631 bool myAmLoading = false;
632
634 FXMenuPane* myFileMenu = nullptr,
637 *myFileMenuTLS = nullptr,
645 *myModesMenu = nullptr,
646 *myEditMenu = nullptr,
647 *myLockMenu = nullptr,
649 *myLocatorMenu = nullptr,
650 *myToolsMenu = nullptr,
653 *myToolsDRTMenu = nullptr,
660 *myToolsNetMenu = nullptr,
663 *myToolsShapes = nullptr,
664 *myToolsTLS = nullptr,
665 *myToolsTurnDefs = nullptr,
667 *myToolsXML = nullptr,
668 *myWindowMenu = nullptr,
669 *myHelpMenu = nullptr;
670
672 std::map<std::string, FXMenuPane*> myMenuPaneToolMaps;
673
675 FXMenuTitle* myModesMenuTitle = nullptr;
676
678 FXMenuTitle* myLockMenuTitle = nullptr;
679
682
684 FXSplitter* myMainSplitter = nullptr;
685
688
691
694
697
699 GNENet* myNet = nullptr;
700
703
706
708 std::string myConfigPattern;
709
712
715
718
721
724
727
730
731private:
734
737
740
743
746
749
752
755
758
761
764
767
770
772 const FXString myTitlePrefix;
773
776
779
781 FXMDIMenu* myMDIMenu = nullptr;
782
784 void fillMenuBar();
785
787 void closeAllWindows();
788
791
794
797
800
803
805 void setInputInSumoOptions(const bool ignoreAdditionals, const bool ignoreRoutes);
806
808 FXString getFolder(const std::string& folder) const;
809
812
815};
Supermode
@brie enum for supermodes
long long int SUMOTime
Definition GUI.h:36
The main window of Netedit.
long onCmdSaveAdditionals(FXObject *, FXSelector, void *)
called when the command/FXCall save additionals is executed
long onCmdOpenNetgenerateDialog(FXObject *, FXSelector, void *)
called when user press "netgenerate" button
FXMenuPane * myFileMenuMeanDataElements
GNEApplicationWindowHelper::SupermodeCommands mySupermodeCommands
Supermode Commands.
long onCmdToggleUndoRedoLoading(FXObject *, FXSelector, void *)
called when toggle checkbox disable undo redo during loading (file)
FXMenuPane * myToolsImportCityBrainMenu
long onCmdSaveTLSProgramsAs(FXObject *, FXSelector, void *)
called when the command/FXCall save TLSPrograms as is executed
FXMenuTitle * myModesMenuTitle
menu title for modes
const std::string & isUndoRedoEnabledTemporally() const
check if undo-redo is enabled temporally
void create()
Creates the main window (required by FOX)
long onCmdToggleDrawJunctionShape(FXObject *, FXSelector, void *)
called if the user press key combination Ctrl + J to toggle draw junction shape
GNEApplicationWindowHelper::WindowsMenuCommands myWindowsMenuCommands
Windows Menu Commands.
GNELoadThread * myLoadThread
the thread that loads the network
void enableUndoRedoTemporally()
enable undo-redo temporally (for example, after creating an edge)
void clearUndoList()
clear undo list
GNENet * myNet
we are responsible for the net
long onCmdSaveEdgeTypes(FXObject *, FXSelector, void *)
called when the command/FXCall save edge types is executed
long onCmdOpenUndoListDialog(FXObject *, FXSelector, void *)
long onCmdReloadSumoConfig(FXObject *, FXSelector, void *)
called when the command/FXCall reload SumoConfig is executed
void handleEvent_Message(GUIEvent *e)
handle event of type message
void setInputInSumoOptions(const bool ignoreAdditionals, const bool ignoreRoutes)
set input files in sumo options
long onCmdReloadDataElements(FXObject *, FXSelector, void *)
called when the command/FXCall reload data elements is executed
bool continueWithUnsavedAdditionalChanges()
warns about unsaved changes in additionals and gives the user the option to abort
long onCmdLoadAdditionalsInSUMOGUI(FXObject *, FXSelector, void *)
called when user toggle windows checkbox "load additionals"
long onCmdOpenTLSPrograms(FXObject *, FXSelector, void *)
called when the command/FXCall open TLS programs is executed
bool continueWithUnsavedChanges()
warns about unsaved changes and gives the user the option to abort
long onUpdComputePathManager(FXObject *obj, FXSelector sel, void *ptr)
called when the update/FXCall compute path manager is executed
void updateControls()
update control contents after undo/redo or recompute
GNEApplicationWindowHelper::LockMenuCommands myLockMenuCommands
Lock Menu Commands.
long computeJunctionWithVolatileOptions()
called if the user selects Processing->compute junctions with volatile options
long onCmdFeedback(FXObject *sender, FXSelector sel, void *ptr)
called if the user selects help->feedback
long onCmdNewNetwork(FXObject *, FXSelector, void *)
called when the command/FXCall new network is executed
long onCmdSavePlainXMLAs(FXObject *, FXSelector, void *)
called when the command/FXCall save as plain xml is executed
long onCmdOpenOptionsDialog(FXObject *, FXSelector, void *)
called when user press "options" button
GNEApplicationWindowHelper::HelpMenuCommands myHelpMenuCommands
Help Menu Commands.
GNEApplicationWindow()
FOX needs this for static members.
long onClipboardRequest(FXObject *sender, FXSelector sel, void *ptr)
called when the command/FXCall clipboard request is executed
long onCmdToggleUndoRedo(FXObject *, FXSelector, void *)
called when toggle checkbox disable undo redo (processing)
long onCmdSaveNeteditConfigAs(FXObject *, FXSelector, void *)
called when the command/FXCall save netedit config as is executed
long onUpdSaveNetwork(FXObject *, FXSelector, void *)
called when the update/FXCall save network is executed
std::string myUndoRedoListEnabled
string to check if undo/redo list is enabled (a String is used to keep the disabling reason)
long onUpdSaveEdgeTypesAs(FXObject *, FXSelector, void *)
called when the command/FXCall save edgeTypes as is updated
std::string myConfigPattern
Input file pattern.
std::map< std::string, FXMenuPane * > myMenuPaneToolMaps
map with menu pane tools and strings
long onCmdSaveSumoConfig(FXObject *, FXSelector, void *)
called when the command/FXCall save SumoConfig is executed
long onUpdReloadDataElements(FXObject *, FXSelector, void *)
called when the command/FXCall reload data elements is updated
long onCmdClose(FXObject *, FXSelector, void *)
called when the command/FXCall close is executed
long onCmdEditViewport(FXObject *, FXSelector, void *)
Called on menu Edit->Viewport.
long onCmdToggleViewOption(FXObject *, FXSelector, void *)
toggle viewOption
FXEX::MFXThreadEvent myLoadThreadEvent
io-event with the load-thread
OptionsCont myOriginalNetgenerateOptions
original netgenerate options container
long onCmdToggleEditOptions(FXObject *, FXSelector, void *)
called if the user press key combination Alt + <0-9>
GNEApplicationWindowHelper::MenuBarFile myMenuBarFile
MenuBarFile.
OptionsCont myOriginalNeteditOptions
original netedit options container
long onCmdOpenAdditionals(FXObject *, FXSelector, void *)
called when the command/FXCall open additionals is executed
long onUpdRedo(FXObject *obj, FXSelector sel, void *ptr)
called when the update/FXCall redo is executed
GNEApplicationWindowHelper::ModesMenuCommands & getModesMenuCommands()
get modes Menu Commands (needed for show/hide menu commands)
long onCmdToggleTimeFormat(FXObject *sender, FXSelector sel, void *ptr)
called if the user press the toggle time format button
long onCmdRunNetgenerate(FXObject *sender, FXSelector sel, void *ptr)
called when run netgenerate is called
GNEApplicationWindowHelper::ProcessingMenuCommands myProcessingMenuCommands
Processing Menu Commands.
OptionsCont & getSumoOptions()
get SUMO options container
long onUpdSaveAdditionalsAs(FXObject *, FXSelector, void *)
called when the update/FXCall save additionals as is executed
GNEApplicationWindowHelper::EditMenuCommands & getEditMenuCommands()
get Edit Menu Commands (needed for show/hide menu commands)
void setStatusBarText(const std::string &statusBarText)
set text of the statusBar
GNEUndoList * myUndoList
the one and only undo list
FXMenuPane * myToolsVisualizationMenu
long onUpdSaveDataElements(FXObject *, FXSelector, void *)
called when the update/FXCall save data elements is executed
long onCmdSmartReload(FXObject *, FXSelector, void *)
called when the command/FXCall smart reload is executed
long onCmdPaste(FXObject *, FXSelector, void *)
long onUpdSaveDemandElementsAs(FXObject *, FXSelector, void *)
called when the update/FXCall save demand elements as is executed
long onUpdPythonTool(FXObject *, FXSelector, void *)
called when the command/FXCall python tool is updated
long onCmdOpenNetwork(FXObject *, FXSelector, void *)
called when the command/FXCall open network is executed
void closeAllWindows()
this method closes all windows and deletes the current simulation *‍/
long onCmdComputePathManager(FXObject *, FXSelector, void *)
long onCmdToggleComputeNetworkData(FXObject *, FXSelector, void *)
called when toggle checkbox compute network when switching between supermodes
long onCmdCopyTemplate(FXObject *, FXSelector, void *)
long onUpdReloadMeanDatas(FXObject *, FXSelector, void *)
called when the command/FXCall reload meanDatas is updated
FXString getFolder(const std::string &folder) const
extract folder
long onLoadThreadEvent(FXObject *, FXSelector, void *)
called when the command/FXCall load thread is executed
long onUpdRequireRecomputing(FXObject *sender, FXSelector sel, void *ptr)
update label for require recomputing
FXMDIMenu * myMDIMenu
The menu used for the MDI-windows.
long onCmdReloadDemandElements(FXObject *, FXSelector, void *)
called when the command/FXCall reload demand elements is executed
long onUpdSaveDemandElements(FXObject *, FXSelector, void *)
called when the update/FXCall save demand elements is executed
OptionsCont myOriginalSumoOptions
original sumo options container
OptionsCont myNetgenerateOptions
netgenerate options container
long onUpdReloadAdditionals(FXObject *, FXSelector, void *)
called when the command/FXCall reload additionals is updated
SUMOTime getCurrentSimTime() const
get current simulation time (pure virtual but we don't need it)
long onCmdReloadEdgeTypes(FXObject *, FXSelector, void *)
called when the command/FXCall reload edge types is executed
long onCmdLockAllElements(FXObject *, FXSelector sel, void *)
called when user press lock all elements button
long onKeyPress(FXObject *o, FXSelector sel, void *data)
called when a key is pressed
long onCmdQuit(FXObject *, FXSelector, void *)
Called by FOX if the application shall be closed.
long onCmdSaveEdgeTypesAs(FXObject *, FXSelector, void *)
called when the command/FXCall save edgeTypes as is executed
long onCmdClearSelectionShortcut(FXObject *sender, FXSelector sel, void *ptr)
called if the user hits key combination for clear selection
long onCmdClearMsgWindow(FXObject *, FXSelector, void *)
called when the command/FXCall clear message windows is executed
long onCmdLockElements(FXObject *, FXSelector sel, void *)
called when user press a lock menu check
MFXButtonTooltip * myRequireRecomputingButton
Button used for show if recomputing is needed.
long onCmdClearTemplate(FXObject *, FXSelector, void *)
MFXSynchQue< GUIEvent * > myEvents
List of got requests.
GNEUndoList * getUndoList()
get pointer to undoList
long onUpdSaveNeteditConfig(FXObject *, FXSelector, void *)
called when the command/FXCall save netedit config is updated
long onUpdNeedsFrontElement(FXObject *, FXSelector, void *)
called when the update/FXCall needs front element is executed
long onCmdProcessButton(FXObject *, FXSelector sel, void *)
called when user press a process button (or a shortcut)
FXMenuTitle * myLockMenuTitle
menu title for lock
void loadOptionOnStartup()
load net on startup
GNEViewNet * getViewNet()
get pointer to viewNet
long onUpdSaveMeanDatasAs(FXObject *, FXSelector, void *)
called when the update/FXCall save meanDatas as is executed
long onCmdOpenSumoConfig(FXObject *, FXSelector, void *)
called when the command/FXCall open SumoConfig is executed
long onCmdSaveAdditionalsAs(FXObject *, FXSelector, void *)
called when the command/FXCall save additionals as is executed
GNEUndoListDialog * getUndoListDialog()
get pointer to undoList dialog
GNEApplicationWindowHelper::LocateMenuCommands myLocateMenuCommands
Locate Menu Commands.
long onCmdUndo(FXObject *, FXSelector, void *)
called when user press Ctrl+Z
long onCmdAbout(FXObject *, FXSelector, void *)
called when the command/FXCall show about dialog is executed
long onUpdReloadEdgeTypes(FXObject *, FXSelector, void *)
called when the command/FXCall reload edge types is updated
void disableUndoRedoTemporally(const std::string &reason)
disable undo-redo temporally giving a string with the reason (for example, if we're creating an edge)
long onCmdToggleGrid(FXObject *, FXSelector, void *)
called if the user press key combination Ctrl + G to toggle grid
void loadDataElements()
load data elements
void dependentBuild()
build dependent
long onUpdSaveDataElementsAs(FXObject *, FXSelector, void *)
called when the update/FXCall save data elements as is executed
GNEApplicationWindow(const GNEApplicationWindow &)=delete
Invalidated copy constructor.
FXMenuPane * myFileMenuDemandElements
long onCmdEditChosen(FXObject *, FXSelector, void *)
called when the command/FXCall edit chosen is executed
long onUpdReloadTLSPrograms(FXObject *, FXSelector, void *)
called when the command/FXCall reload TLS programs is updated
long onCmdOpenSumoOptionsDialog(FXObject *, FXSelector, void *)
called when user press "sumo options" button
GNEApplicationWindowHelper::EditMenuCommands myEditMenuCommands
Edit Menu Commands.
long onCmdSetSuperMode(FXObject *sender, FXSelector sel, void *ptr)
called if the user hits an edit-supermode hotkey
long onUpdSaveSumoConfig(FXObject *, FXSelector, void *)
called when the command/FXCall save SumoConfig is updated
long onCmdAbort(FXObject *sender, FXSelector sel, void *ptr)
called if the user hits esc
void loadDemandElements()
load demand elements
void loadAdditionalElements()
load additional elements
GNEViewNet * myViewNet
pointer to current view net
long onCmdReloadAdditionals(FXObject *, FXSelector, void *)
called when the command/FXCall reload additionals is executed
long onUpdOpenUndoListDialog(FXObject *, FXSelector, void *)
long onUpdNeedsNetworkElement(FXObject *, FXSelector, void *)
called when the update/FXCall needs at least one network element is executed
const FXString myTitlePrefix
the prefix for the window title
long onCmdSaveMeanDatasAs(FXObject *, FXSelector, void *)
called when the command/FXCall save meanDatas as is executed
long onCmdSaveNetworkAs(FXObject *, FXSelector, void *)
called when the command/FXCall save network as is executed
double getTrackerInterval() const
get current tracker interval (pure virtual but we don't need it)
void fillMenuBar()
Builds the menu bar.
long onCmdFocusFrame(FXObject *sender, FXSelector sel, void *ptr)
called if the user hits key combination for focus on frame
void loadConfiguration(const std::string &configurationFile)
starts to load a configuration
GNEApplicationWindowHelper::LockMenuCommands & getLockMenuCommands()
get lock Menu Commands
long onCmdOpenMeanDatas(FXObject *, FXSelector, void *)
called when the command/FXCall open meanDatas is executed
GNEApplicationWindow & operator=(const GNEApplicationWindow &)=delete
Invalidated assignment operator.
long onCmdPostprocessingNetgenerate(FXObject *sender, FXSelector sel, void *ptr)
postprocessing netgenerate
long onCmdHelp(FXObject *sender, FXSelector sel, void *ptr)
called if the user selects help->Documentation
long onCmdSaveNeteditConfig(FXObject *, FXSelector, void *)
called when the command/FXCall save netedit config is executed
long onUpdRequireViewNet(FXObject *sender, FXSelector sel, void *ptr)
enable or disable sender object depending if viewNet exist
bool continueWithUnsavedDemandElementChanges()
warns about unsaved changes in demand elements and gives the user the option to abort
long onUpdReloadNeteditConfig(FXObject *, FXSelector, void *)
called when the command/FXCall reload netedit config is updated
OptionsCont & getNetgenerateOptions()
get netgenerate options container
long onCmdSaveDemandElements(FXObject *, FXSelector, void *)
called when the command/FXCall save demand elements is executed
bool continueWithUnsavedDataElementChanges()
warns about unsaved changes in data elements and gives the user the option to abort
long onCmdCut(FXObject *, FXSelector, void *)
called when user press Ctrl+Z
long onCmdNewWindow(FXObject *, FXSelector, void *)
long onCmdSaveJoinedJunctionsAs(FXObject *, FXSelector, void *)
called when the command/FXCall save joined is executed
long onCmdOpenEdgeTypes(FXObject *, FXSelector, void *)
called when the command/FXCall open edgeType is executed
long onCmdSaveJuPedSimElementsAs(FXObject *, FXSelector, void *)
called when the command/FXCall save JuPedSim elements as is executed
long onCmdLoadDemandInSUMOGUI(FXObject *, FXSelector, void *)
called when user toggle windows checkbox "load demand"
long onUpdLockMenuTitle(FXObject *, FXSelector sel, void *)
enable or disable lock menu title
bool myAmLoading
information whether the gui is currently loading and the load-options shall be greyed out
long onUpdSaveAdditionals(FXObject *, FXSelector, void *)
called when the update/FXCall save additionals is executed
long onCmdSaveDemandElementsAs(FXObject *, FXSelector, void *)
called when the command/FXCall save demand elements as is executed
long onCmdReloadTLSPrograms(FXObject *, FXSelector, void *)
called when the command/FXCall reload TLS programs is executed
long onCmdSaveDataElementsAs(FXObject *, FXSelector, void *)
called when the command/FXCall save data elements as is executed
GNEApplicationWindowHelper::FileMenuCommands myFileMenuCommands
File Menu Commands.
void loadMeanDataElements()
load meanData elements
void loadOSM(const std::string &OSMFile)
starts to load a OSM File
long onCmdOpenNeteditConfig(FXObject *, FXSelector, void *)
called when the command/FXCall open netedit config is executed
bool myAllowUndoRedoLoading
allow undo-redo loading (read from registry)
long onCmdOpenRecent(FXObject *, FXSelector, void *)
called when the command/FXCall open recent is executed
bool myAllowUndoRedo
allow undo-redo (read from registry)
long onCmdChangelog(FXObject *sender, FXSelector sel, void *ptr)
called if the user selects help->Changelog
long onUpdOpen(FXObject *, FXSelector, void *)
called when the command/FXCall on update open executed
long onCmdSetMode(FXObject *sender, FXSelector sel, void *ptr)
called if the user hits an edit-mode hotkey
bool myHadDependentBuild
check if had dependent build
long onCmdBackspace(FXObject *sender, FXSelector sel, void *ptr)
called if the user hits backspace
void updateRecomputingLabel()
update recomputing label
void handleEvent_NetworkLoaded(GUIEvent *e)
handle event of type Network loaded
long onCmdCopy(FXObject *, FXSelector, void *)
long onCmdSaveMeanDatas(FXObject *, FXSelector, void *)
called when the command/FXCall save meanDatas is executed
long onCmdReloadMeanDatas(FXObject *, FXSelector, void *)
called when the command/FXCall reload meanDatas is executed
long onCmdOpenSUMOGUI(FXObject *sender, FXSelector sel, void *ptr)
called if the user hints ctrl + T
long onCmdOpenDemandElements(FXObject *, FXSelector, void *)
called when the command/FXCall open demand is executed
void loadNetwork(const std::string &networkFile)
load network
long onUpdToggleViewOption(FXObject *, FXSelector, void *)
update viewOption
GNEApplicationWindowHelper::ToolsMenuCommands myToolsMenuCommands
Tools Menu Commands.
long onCmdUnlockAllElements(FXObject *, FXSelector sel, void *)
called when user press unlock all elements button
long onUpdReloadSumoConfig(FXObject *, FXSelector, void *)
called when the command/FXCall reload SumoConfig is updated
long onUpdNeedsNetwork(FXObject *, FXSelector, void *)
called when the update/FXCall needs network is executed
GNEApplicationWindowHelper::ToolbarsGrip & getToolbarsGrip()
get ToolbarsGrip
long onUpdSaveJuPedSimElementsAs(FXObject *, FXSelector, void *)
called when the update/FXCall save juPedSim as is executed
long onUpdReloadNetwork(FXObject *, FXSelector, void *)
called when the update/FXCall network reload is executed
OptionsCont mySumoOptions
sumo options container
bool consoleOptionsLoaded()
check if console options was already loaded
long onCmdSaveDataElements(FXObject *, FXSelector, void *)
called when the command/FXCall save data elements is executed
long onCmdOpenPythonToolDialog(FXObject *obj, FXSelector, void *)
called when user press over a tool dialog button
long onCmdLocate(FXObject *, FXSelector, void *)
called when the command/FXCall locate is executed
long onCmdDel(FXObject *sender, FXSelector sel, void *ptr)
called if the user hits del
long onCmdHotkeys(FXObject *sender, FXSelector sel, void *ptr)
called if the user selects help->Hotkeys
long onCmdOpenDataElements(FXObject *, FXSelector, void *)
called when the command/FXCall open data is executed
long onCmdRunPythonTool(FXObject *obj, FXSelector, void *)
called when user run a tool
void updateSuperModeMenuCommands(const Supermode supermode)
update FXMenuCommands depending of supermode
FXMenuPane * myFileMenuRecentNetworks
bool myConsoleOptionsLoaded
flag for check if console options was already loaded
long onCmdSetFrontElement(FXObject *, FXSelector, void *)
called if the user call set front element
GNEUndoListDialog * myUndoListDialog
undoList dialog
long onUpdReloadDemandElements(FXObject *, FXSelector, void *)
called when the command/FXCall reload demand elements is updated
void createNewNetwork()
create new network
long onCmdEnter(FXObject *sender, FXSelector sel, void *ptr)
called if the user hits enter
FXCursor * getDefaultCursor()
get default cursor
long onCmdSetTemplate(FXObject *, FXSelector, void *)
GNEApplicationWindowHelper::FileMenuCommands & getFileMenuCommands()
get file Menu Commands (needed for show/hide menu commands)
long onUpdSaveMeanDatas(FXObject *, FXSelector, void *)
called when the update/FXCall save meanDatas is executed
long onCmdTutorial(FXObject *sender, FXSelector sel, void *ptr)
called if the user selects help->Tutorial
long onCmdRedo(FXObject *, FXSelector, void *)
long onCmdOpenNetgenerateOptionsDialog(FXObject *, FXSelector, void *)
called when user press "netgenerate options" button
bool continueWithUnsavedMeanDataElementChanges()
warns about unsaved changes in meanData elements and gives the user the option to abort
long onUpdUndo(FXObject *obj, FXSelector sel, void *ptr)
called when the update/FXCall undo is executed
const GNEApplicationWindowHelper::ProcessingMenuCommands & getProcessingMenuCommands() const
get processing Menu Commands
long onCmdPostProcessingPythonTool(FXObject *obj, FXSelector, void *)
post processing after run tool
GUIMessageWindow * myMessageWindow
A window to display messages, warnings and error in.
long onCmdReloadNetwork(FXObject *, FXSelector, void *)
called when the command/FXCall network reload is executed
long onUpdSmartReload(FXObject *, FXSelector, void *)
called when the update/FXCall smart reload is executed
FXSplitter * myMainSplitter
The splitter that divides the main window into view and the log window.
long onCmdLockSelectElements(FXObject *, FXSelector sel, void *)
called when user press lock select elements button
long onCmdOpenNetconvertConfig(FXObject *, FXSelector, void *)
called when the command/FXCall open netconvertconfiguration is executed
long onCmdSaveTLSPrograms(FXObject *, FXSelector, void *)
called when the command/FXCall save TLSPrograms is executed
long onUpdSaveEdgeTypes(FXObject *, FXSelector, void *)
called when the command/FXCall save edge types is updated
long onCmdReloadNeteditConfig(FXObject *, FXSelector, void *)
called when the command/FXCall reload netedit config is executed
long onCmdSaveNetwork(FXObject *, FXSelector, void *)
called when the command/FXCall save network is executed
FXMenuPane * myFileMenu
the submenus
GNEApplicationWindowHelper::ToolbarsGrip myToolbarsGrip
Toolbars Grip.
long onUpdToggleTimeFormat(FXObject *sender, FXSelector sel, void *ptr)
update toggle time format button
long onKeyRelease(FXObject *o, FXSelector sel, void *data)
called when a key is released
GNEApplicationWindowHelper::ModesMenuCommands myModesMenuCommands
Modes Menu Commands.
long onUpdSaveTLSPrograms(FXObject *, FXSelector, void *)
called when the command/FXCall save TLSPrograms is updated
FXGLCanvas * getBuildGLCanvas() const
get build GL Canvas (must be implemented in all children)
long onCmdEditViewScheme(FXObject *, FXSelector, void *)
Called on menu Edit->Visualization.
long onCmdSaveSumoConfigAs(FXObject *, FXSelector, void *)
called when the command/FXCall save SumoConfig as is executed
long onCmdOpenForeign(FXObject *, FXSelector, void *)
called when the command/FXCall open foreign is executed
A NBNetBuilder extended by visualisation and editing capabilities.
Definition GNENet.h:42
Dialog for edit rerouters.
A logging window for the gui.
A storage for options typed value containers)
Definition OptionsCont.h:89