Eclipse SUMO - Simulation of Urban MObility
GNEApplicationWindowHelper.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2022 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 // Functions from main window of NETEDIT
19 /****************************************************************************/
20 #pragma once
21 #include <config.h>
22 
23 #include <utils/common/SUMOTime.h>
28 #include <utils/geom/Position.h>
33 
34 #include "GNEViewNetHelper.h"
35 
36 
37 // ===========================================================================
38 // class declarations
39 // ===========================================================================
41 class GNELoadThread;
42 class GNEUndoList;
43 class GNEUndoListDialog;
44 class GNENet;
45 class GNEViewNet;
46 class GUIEvent;
47 class MFXMenuCheckIcon;
48 
49 
50 // ===========================================================================
51 // class definition
52 // ===========================================================================
53 
55 
57  struct ToolbarsGrip {
58 
61 
63  void buildMenuToolbarsGrip();
64 
67 
70 
72  FXMenuBar* menu;
73 
75  FXMenuBar* superModes;
76 
78  FXMenuBar* saveElements;
79 
81  FXMenuBar* navigation;
82 
84  FXMenuBar* modes;
85 
87  FXMenuBar* intervalBar;
88 
89  private:
92 
94  FXToolBarShell* myToolBarShellMenu;
95 
97  FXToolBarShell* myToolBarShellSuperModes;
98 
100  FXToolBarShell* myToolBarShellSaveElements;
101 
103  FXToolBarShell* myToolBarShellNavigation;
104 
106  FXToolBarShell* myToolBarShellModes;
107 
109  FXToolBarShell* myToolBarShellIntervalBar;
110 
112  ToolbarsGrip(const ToolbarsGrip&) = delete;
113 
116  };
117 
119  struct MenuBarFile {
120 
123 
125  void buildRecentFiles(FXMenuPane* fileMenu);
126 
129 
130  private:
133 
135  MenuBarFile(const MenuBarFile&) = delete;
136 
138  MenuBarFile& operator=(const MenuBarFile&) = delete;
139  };
140 
143 
146 
148  void buildFileMenuCommands(FXMenuPane* fileMenu, FXMenuPane* fileMenuSUMOConfig, FXMenuPane* fileMenuTLS,
149  FXMenuPane* fileMenuEdgeTypes, FXMenuPane* fileMenuAdditionals,
150  FXMenuPane* fileMenuDemandElements, FXMenuPane* fileMenuDataElements);
151 
153  FXMenuCascade* SUMOConfigMenuCascade = nullptr;
154 
156  FXMenuCascade* TLSMenuCascade = nullptr;
157 
159  FXMenuCascade* edgeTypesMenuCascade = nullptr;
160 
162  FXMenuCascade* additionalMenuCascade = nullptr;
163 
165  FXMenuCascade* demandMenuCascade = nullptr;
166 
168  FXMenuCascade* dataMenuCascade = nullptr;
169 
171  FXMenuCommand* reloadSUMOConfig = nullptr;
172 
174  FXMenuCommand* saveSUMOConfig = nullptr;
175 
177  FXMenuCommand* reloadTLSPrograms = nullptr;
178 
180  FXMenuCommand* saveTLSPrograms = nullptr;
181 
183  FXMenuCommand* reloadEdgeTypes = nullptr;
184 
186  FXMenuCommand* saveEdgeTypes = nullptr;
187 
189  FXMenuCommand* saveAdditionals = nullptr;
190 
192  FXMenuCommand* saveAdditionalsAs = nullptr;
193 
195  FXMenuCommand* reloadAdditionals = nullptr;
196 
198  FXMenuCommand* saveDemandElements = nullptr;
199 
201  FXMenuCommand* saveDemandElementsAs = nullptr;
202 
204  FXMenuCommand* reloadDemandElements = nullptr;
205 
207  FXMenuCommand* saveDataElements = nullptr;
208 
210  FXMenuCommand* saveDataElementsAs = nullptr;
211 
213  FXMenuCommand* reloadDataElements = nullptr;
214 
215  private:
218 
221 
224  };
225 
228 
231 
233  CommonMenuCommands(const ModesMenuCommands* modesMenuCommandsParent);
234 
236  void buildCommonMenuCommands(FXMenuPane* modesMenu);
237 
239  FXMenuCommand* deleteMode;
240 
242  FXMenuCommand* inspectMode;
243 
245  FXMenuCommand* selectMode;
246 
247  private:
250 
253 
256  };
257 
260 
262  NetworkMenuCommands(const ModesMenuCommands* modesMenuCommandsParent);
263 
265  void buildNetworkMenuCommands(FXMenuPane* modesMenu);
266 
269 
272 
274  FXMenuCommand* createEdgeMode;
275 
277  FXMenuCommand* moveMode;
278 
280  FXMenuCommand* connectMode;
281 
283  FXMenuCommand* prohibitionMode;
284 
286  FXMenuCommand* TLSMode;
287 
289  FXMenuCommand* additionalMode;
290 
292  FXMenuCommand* crossingMode;
293 
295  FXMenuCommand* TAZMode;
296 
298  FXMenuCommand* shapeMode;
299 
301  FXMenuCommand* wireMode;
302 
303  private:
306 
309 
312  };
313 
316 
318  DemandMenuCommands(const ModesMenuCommands* modesMenuCommandsParent);
319 
321  void buildDemandMenuCommands(FXMenuPane* modesMenu);
322 
324  void showDemandMenuCommands();
325 
327  void hideDemandMenuCommands();
328 
330  FXMenuCommand* moveMode;
331 
333  FXMenuCommand* routeMode;
334 
336  FXMenuCommand* vehicleMode;
337 
339  FXMenuCommand* typeMode;
340 
342  FXMenuCommand* stopMode;
343 
345  FXMenuCommand* personMode;
346 
348  FXMenuCommand* personPlanMode;
349 
351  FXMenuCommand* containerMode;
352 
354  FXMenuCommand* containerPlanMode;
355 
356  private:
359 
362 
365  };
366 
369 
371  DataMenuCommands(const ModesMenuCommands* modesMenuCommandsParent);
372 
374  void buildDataMenuCommands(FXMenuPane* modesMenu);
375 
377  void showDataMenuCommands();
378 
380  void hideDataMenuCommands();
381 
383  FXMenuCommand* edgeData;
384 
386  FXMenuCommand* edgeRelData;
387 
389  FXMenuCommand* TAZRelData;
390 
391  private:
394 
397 
400  };
401 
404 
406  void buildModesMenuCommands(FXMenuPane* modesMenu);
407 
410 
413 
416 
419 
420  private:
423 
426 
429  };
430 
433 
436 
439 
441  void buildNetworkViewOptionsMenuChecks(FXMenuPane* editMenu);
442 
445 
447  void updateShortcuts();
448 
451 
454 
457 
460 
463 
466 
469 
472 
475 
478 
481 
484 
487 
490 
493 
496 
498  FXMenuSeparator* separator;
499 
500  private:
503 
506 
509  };
510 
513 
516 
518  void buildDemandViewOptionsMenuChecks(FXMenuPane* editMenu);
519 
522 
524  void updateShortcuts();
525 
528 
531 
534 
537 
540 
543 
546 
549 
552 
555 
558 
560  FXMenuSeparator* separator;
561 
562  private:
565 
568 
571  };
572 
575 
578 
580  void buildDataViewOptionsMenuChecks(FXMenuPane* editMenu);
581 
584 
586  void updateShortcuts();
587 
590 
593 
596 
599 
602 
605 
608 
611 
613  FXMenuSeparator* separator;
614 
615  private:
618 
621 
624  };
625 
628 
630  void buildUndoRedoMenuCommands(FXMenuPane* editMenu);
631 
633  void buildViewMenuCommands(FXMenuPane* editMenu);
634 
636  void buildFrontElementMenuCommand(FXMenuPane* editMenu);
637 
639  void buildOpenSUMOMenuCommands(FXMenuPane* editMenu);
640 
642  FXMenuCommand* undoLastChange;
643 
645  FXMenuCommand* redoLastChange;
646 
648  FXMenuCommand* openUndolistDialog;
649 
652 
655 
658 
660  FXMenuCommand* editViewScheme;
661 
663  FXMenuCommand* editViewPort;
664 
666  FXMenuCommand* clearFrontElement;
667 
670 
672  FXMenuCheck* loadDemandInSUMOGUI;
673 
675  FXMenuCommand* openInSUMOGUI;
676 
677  private:
680 
683 
686  };
687 
690 
693 
695  void buildLockMenuCommands(FXMenuPane* editMenu);
696 
698  void removeHotkeys();
699 
702 
705 
708 
711 
714 
717 
719  void lockAll();
720 
722  void unlockAll();
723 
725  void editLocking(const GNEAttributeCarrier* AC, const FXbool value);
726 
731 
734 
737 
740 
743 
746 
749 
752 
755 
758 
761 
763 
768 
771 
774 
777 
780 
783 
786 
789 
792 
795 
797 
802 
805 
808 
810 
813 
814  protected:
816  FXHotKey parseHotKey(const FXwchar character);
817 
818  private:
821 
824 
827  };
828 
831 
834 
836  void buildProcessingMenuCommands(FXMenuPane* processingMenu);
837 
840 
843 
846 
849 
852 
855 
857  void showSeparator();
858 
860  void hideSeparator();
861 
865  FXMenuCommand* computeNetwork = nullptr;
866 
868  FXMenuCommand* computeNetworkVolatile = nullptr;
869 
871  FXMenuCommand* cleanJunctions = nullptr;
872 
874  FXMenuCommand* joinJunctions = nullptr;
875 
877  FXMenuCommand* clearInvalidCrossings = nullptr;
878 
881 
883 
887  FXMenuCommand* computeDemand = nullptr;
888 
890  FXMenuCommand* cleanRoutes = nullptr;
891 
893  FXMenuCommand* joinRoutes = nullptr;
894 
896  FXMenuCommand* adjustPersonPlans = nullptr;
897 
899  FXMenuCommand* clearInvalidDemandElements = nullptr;
901 
904 
906 
908  FXMenuCommand* optionMenus = nullptr;
909 
910  private:
913 
915  FXMenuSeparator* myOptionsSeparator = nullptr;
916 
918  FXMenuSeparator* mySeparatorCheckBox = nullptr;
919 
922 
925  };
926 
929 
932 
934  void buildLocateMenuCommands(FXMenuPane* locateMenu);
935 
936  private:
939 
942 
945  };
946 
949 
952 
954  void buildToolsMenuCommands(FXMenuPane* locateMenu);
955 
956  private:
959 
962 
965  };
966 
969 
972 
974  void buildWindowsMenuCommands(FXMenuPane* windowsMenu, FXStatusBar* statusbar, GUIMessageWindow* messageWindow);
975 
976  private:
979 
982 
985  };
986 
989 
992 
994  void buildSupermodeCommands(FXMenuPane* editMenu);
995 
997  void showSupermodeCommands();
998 
1000  void hideSupermodeCommands();
1001 
1003  FXMenuCommand* networkMode;
1004 
1006  FXMenuCommand* demandMode;
1007 
1009  FXMenuCommand* dataMode;
1010 
1011  private:
1014 
1017 
1020  };
1021 
1024 
1025  public:
1027  GNEConfigHandler(GNEApplicationWindow* applicationWindow, const std::string& file);
1028 
1031 
1037 
1038  private:
1041 
1043  const std::string myFilepath;
1044  };
1045 
1047  static void saveSUMOConfig();
1048 
1050  static bool toggleEditOptionsNetwork(GNEViewNet* viewNet, const MFXCheckableButton* menuCheck,
1051  const int numericalKeyPressed, FXObject* obj, FXSelector sel);
1052 
1054  static bool toggleEditOptionsDemand(GNEViewNet* viewNet, const MFXCheckableButton* menuCheck,
1055  const int numericalKeyPressed, FXObject* obj, FXSelector sel);
1056 
1058  static bool toggleEditOptionsData(GNEViewNet* viewNet, const MFXCheckableButton* menuCheck,
1059  const int numericalKeyPressed, FXObject* obj, FXSelector sel);
1060 
1062  static bool stringEndsWith(const std::string& str, const std::string& suffix);
1063 
1064 private:
1067 
1070 };
handler for SUMOConfigs
Definition: ConfigHandler.h:31
GNEApplicationWindow * myApplicationWindow
application window
GNEConfigHandler(GNEApplicationWindow *applicationWindow, const std::string &file)
Constructor.
void loadConfig(CommonXMLStructure::SumoBaseObject *configObj)
Load net file.
The main window of the Netedit.
A NBNetBuilder extended by visualisation and editing capabilities.
Definition: GNENet.h:42
Dialog for edit rerouters.
A logging window for the gui.
MFXRecentNetworks.
struct used to group all variables related to view options in supermode Data
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindows
MFXMenuCheckIcon * menuCheckToggleTAZRelOnlyTo
menu check to toggle TAZRel only to
DataViewOptions(GNEApplicationWindow *GNEApp)
default constructor
void buildDataViewOptionsMenuChecks(FXMenuPane *editMenu)
build menu checks
MFXMenuCheckIcon * menuCheckToggleTAZDrawFill
menu check to toggle TAZ draw fill
DataViewOptions(const DataViewOptions &)=delete
Invalidated copy constructor.
MFXMenuCheckIcon * menuCheckShowAdditionals
menu check to show Additionals
MFXMenuCheckIcon * menuCheckToggleTAZRelOnlyFrom
menu check to toggle TAZRel only from
MFXMenuCheckIcon * menuCheckToggleTAZRelDrawing
menu check to toggle TAZRel drawing mode
DataViewOptions & operator=(const DataViewOptions &)=delete
Invalidated assignment operator.
MFXMenuCheckIcon * menuCheckToggleDrawJunctionShape
menu check to toggle draw junction shape
MFXMenuCheckIcon * menuCheckShowDemandElements
menu check to show Demand Elements
struct used to group all variables related to view options in supermode Demand
MFXMenuCheckIcon * menuCheckToggleDrawJunctionShape
menu check to toggle draw junction shape
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindows
void buildDemandViewOptionsMenuChecks(FXMenuPane *editMenu)
build menu checks
DemandViewOptions(const DemandViewOptions &)=delete
Invalidated copy constructor.
MFXMenuCheckIcon * menuCheckDrawSpreadVehicles
menu check to draw vehicles in begin position or spread in lane
MFXMenuCheckIcon * menuCheckHideShapes
menu check for hide shapes (Polygons and POIs)
MFXMenuCheckIcon * menuCheckToggleGrid
menu check to show grid button
MFXMenuCheckIcon * menuCheckShowOverlappedRoutes
menu check for show overlapped routes
MFXMenuCheckIcon * menuCheckLockContainer
menu check for lock Container
DemandViewOptions & operator=(const DemandViewOptions &)=delete
Invalidated assignment operator.
MFXMenuCheckIcon * menuCheckShowAllTrips
menu check for show all trips plans
MFXMenuCheckIcon * menuCheckShowAllContainerPlans
menu check for show all container plans
MFXMenuCheckIcon * menuCheckShowAllPersonPlans
menu check for show all person plans
MFXMenuCheckIcon * menuCheckHideNonInspectedDemandElements
menu check for hide non inspected demand elements
DemandViewOptions(GNEApplicationWindow *GNEApp)
default constructor
struct used to group all variables related to view options in supermode Network
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindows
MFXMenuCheckIcon * menuCheckShowTAZElements
menu check to show TAZ elements
MFXMenuCheckIcon * menuCheckHideConnections
menu check to hide connections in connect mode
NetworkViewOptions(GNEApplicationWindow *GNEApp)
default constructor
MFXMenuCheckIcon * menuCheckSelectEdges
menu check to select only edges
MFXMenuCheckIcon * menuCheckChangeAllPhases
menu check to set change all phases
MFXMenuCheckIcon * menuCheckChainEdges
menu check to the endpoint for a created edge should be set as the new source
NetworkViewOptions(const NetworkViewOptions &)=delete
Invalidated copy constructor.
MFXMenuCheckIcon * menuCheckShowConnections
menu check to show connections
MFXMenuCheckIcon * menuCheckToggleDrawJunctionShape
menu check to toggle draw junction shape
MFXMenuCheckIcon * menuCheckToggleGrid
menu check to show grid button
MFXMenuCheckIcon * menuCheckAutoOppositeEdge
check checkable to create auto create opposite edge
MFXMenuCheckIcon * menuCheckShowJunctionBubble
menu check to show connection as bubble in "Move" mode.
NetworkViewOptions & operator=(const NetworkViewOptions &)=delete
Invalidated assignment operator.
MFXMenuCheckIcon * menuCheckWarnAboutMerge
menu check to we should warn about merging junctions
MFXMenuCheckIcon * menuCheckShowAdditionalSubElements
menu check to show additional sub-elements
MFXMenuCheckIcon * menuCheckExtendSelection
menu check to extend to edge nodes
MFXMenuCheckIcon * menuCheckMoveElevation
menu check to apply movement to elevation
MFXMenuCheckIcon * menuCheckShowDemandElements
menu check to show Demand Elements
MFXMenuCheckIcon * menuCheckDrawSpreadVehicles
menu check to draw vehicles in begin position or spread in lane
void buildNetworkViewOptionsMenuChecks(FXMenuPane *editMenu)
build menu checks
EditMenuCommands(GNEApplicationWindow *GNEApp)
constructor
DemandViewOptions demandViewOptions
demand view options
FXMenuCommand * openInSUMOGUI
FXMenuCommand for open in SUMO GUI.
NetworkViewOptions networkViewOptions
network view options
FXMenuCommand * editViewScheme
FXMenuCommand for edit view scheme.
EditMenuCommands & operator=(const EditMenuCommands &)=delete
Invalidated assignment operator.
EditMenuCommands(const EditMenuCommands &)=delete
Invalidated copy constructor.
void buildUndoRedoMenuCommands(FXMenuPane *editMenu)
build undo-redo menu commands
void buildViewMenuCommands(FXMenuPane *editMenu)
build view menu commands
FXMenuCommand * openUndolistDialog
FXMenuCommand for open undolist dialog.
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindows
FXMenuCheck * loadAdditionalsInSUMOGUI
menu check for load additionals in SUMO GUI
FXMenuCommand * undoLastChange
FXMenuCommand for undo last change.
FXMenuCheck * loadDemandInSUMOGUI
menu check for load demand in SUMO GUI
FXMenuCommand * redoLastChange
FXMenuCommand for redo last change.
void buildOpenSUMOMenuCommands(FXMenuPane *editMenu)
build open sumo menu commands
FXMenuCommand * editViewPort
FXMenuCommand for edit view port.
void buildFrontElementMenuCommand(FXMenuPane *editMenu)
build front element commands
FXMenuCommand * clearFrontElement
FXMenuCommand for clear Front element.
FXMenuCascade * dataMenuCascade
FXMenuCascade for data.
FXMenuCascade * TLSMenuCascade
FXMenuCascade for TLS.
FXMenuCommand * saveSUMOConfig
FXMenuCommand for enable or disable save SUMOConfig.
FXMenuCommand * saveTLSPrograms
FXMenuCommand for enable or disable save TLS Programs.
FileMenuCommands(GNEApplicationWindow *GNEApp)
constructor
FXMenuCascade * demandMenuCascade
FXMenuCascade for demand.
FXMenuCommand * saveEdgeTypes
FXMenuCommand for enable or disable save edgeTypes.
FXMenuCommand * reloadTLSPrograms
FXMenuCommand for reload TLS Programs.
FXMenuCascade * additionalMenuCascade
FXMenuCascade for additional.
FileMenuCommands(const FileMenuCommands &)=delete
Invalidated copy constructor.
FXMenuCommand * saveDemandElementsAs
FXMenuCommand for enable or disable save demand elements as.
FileMenuCommands & operator=(const FileMenuCommands &)=delete
Invalidated assignment operator.
FXMenuCommand * saveDataElementsAs
FXMenuCommand for enable or disable save data elements as.
FXMenuCascade * SUMOConfigMenuCascade
FXMenuCascade for SUMOConfig.
FXMenuCommand * saveAdditionals
FXMenuCommand for enable or disable save additionals.
FXMenuCommand * saveDemandElements
FXMenuCommand for enable or disable save demand elements.
FXMenuCommand * reloadSUMOConfig
FXMenuCommand for reload SUMOConfig.
FXMenuCommand * saveDataElements
FXMenuCommand for enable or disable save data elements.
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindows
FXMenuCommand * reloadAdditionals
FXMenuCommand for reload additionals.
FXMenuCommand * reloadDataElements
FXMenuCommand for reload data elements.
void buildFileMenuCommands(FXMenuPane *fileMenu, FXMenuPane *fileMenuSUMOConfig, FXMenuPane *fileMenuTLS, FXMenuPane *fileMenuEdgeTypes, FXMenuPane *fileMenuAdditionals, FXMenuPane *fileMenuDemandElements, FXMenuPane *fileMenuDataElements)
build menu commands
FXMenuCommand * reloadDemandElements
FXMenuCommand for reload demand elements.
FXMenuCommand * reloadEdgeTypes
FXMenuCommand for reload Edge Types.
FXMenuCommand * saveAdditionalsAs
FXMenuCommand for enable or disable save additionals As.
FXMenuCascade * edgeTypesMenuCascade
FXMenuCascade for edgeTypes.
void buildLocateMenuCommands(FXMenuPane *locateMenu)
build menu commands
LocateMenuCommands(GNEApplicationWindow *GNEApp)
constructor
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindows
LocateMenuCommands & operator=(const LocateMenuCommands &)=delete
Invalidated assignment operator.
LocateMenuCommands(const LocateMenuCommands &)=delete
Invalidated copy constructor.
void buildLockMenuCommands(FXMenuPane *editMenu)
build menu commands
MFXMenuCheckIcon * menuCheckLockConnections
menu check to lock connections
void hideNetworkLockMenuCommands()
show network processing menu commands
MFXMenuCheckIcon * menuCheckLockPersonTrip
menu check to lock personTrips
MFXMenuCheckIcon * menuCheckLockPersons
menu check to lock persons
MFXMenuCheckIcon * menuCheckLockVehicles
menu check to lock vehicles
MFXMenuCheckIcon * menuCheckLockCrossings
menu check to lock crossings
MFXMenuCheckIcon * menuCheckLockTAZs
menu check to lock TAZs
void hideDemandLockMenuCommands()
show demand processing menu commands
MFXMenuCheckIcon * menuCheckLockWalk
menu check to lock walks
MFXMenuCheckIcon * menuCheckLockEdgeTAZRels
menu check to lock edgeTAZRels
void hideDataLockMenuCommands()
show data processing menu commands
void showDataLockMenuCommands()
show data processing menu commands
MFXMenuCheckIcon * menuCheckLockWires
menu check to lock Wires
LockMenuCommands(GNEApplicationWindow *GNEApp)
constructor
MFXMenuCheckIcon * menuCheckLockPOIs
menu check to lock POIs
LockMenuCommands & operator=(const LockMenuCommands &)=delete
Invalidated assignment operator.
MFXMenuCheckIcon * menuCheckLockPolygons
menu check to lock polygons
MFXMenuCheckIcon * menuCheckLockWalkingAreas
menu check to lock walkingAreas
MFXMenuCheckIcon * menuCheckLockEdges
menu check to lock edges
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindows
MFXMenuCheckIcon * menuCheckLockSelectedElements
menu check for lock selected elements
MFXMenuCheckIcon * menuCheckLockRides
menu check to lock rides
MFXMenuCheckIcon * menuCheckLockContainers
menu check to lock containers
MFXMenuCheckIcon * menuCheckLockEdgeRelDatas
menu check to lock edgeRelDatas
MFXMenuCheckIcon * menuCheckLockStops
menu check to lock stops
MFXMenuCheckIcon * menuCheckLockLanes
menu check to lock lanes
MFXMenuCheckIcon * menuCheckLockAdditionals
menu check to lock additionals
LockMenuCommands(const LockMenuCommands &)=delete
Invalidated copy constructor.
void showNetworkLockMenuCommands()
show network processing menu commands
FXHotKey parseHotKey(const FXwchar character)
Parse hot key from string.
void showDemandLockMenuCommands()
show demand processing menu commands
MFXMenuCheckIcon * menuCheckLockTranships
menu check to lock tranships
void editLocking(const GNEAttributeCarrier *AC, const FXbool value)
lock or unlock object based in a tag property
MFXMenuCheckIcon * menuCheckLockTransports
menu check to lock transports
void buildRecentFiles(FXMenuPane *fileMenu)
build recent files
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindow
MenuBarFile & operator=(const MenuBarFile &)=delete
Invalidated assignment operator.
MFXRecentNetworks myRecentNetsAndConfigs
List of recent nets and config files.
MenuBarFile(const MenuBarFile &)=delete
Invalidated copy constructor.
MenuBarFile(GNEApplicationWindow *GNEApp)
constructor
CommonMenuCommands(const CommonMenuCommands &)=delete
Invalidated copy constructor.
CommonMenuCommands & operator=(const CommonMenuCommands &)=delete
Invalidated assignment operator.
CommonMenuCommands(const ModesMenuCommands *modesMenuCommandsParent)
constructor
const ModesMenuCommands * myModesMenuCommandsParent
reference to ModesMenuCommands
DataMenuCommands & operator=(const DataMenuCommands &)=delete
Invalidated assignment operator.
void buildDataMenuCommands(FXMenuPane *modesMenu)
build menu commands
const ModesMenuCommands * myModesMenuCommandsParent
reference to ModesMenuCommands
DataMenuCommands(const ModesMenuCommands *modesMenuCommandsParent)
constructor
DataMenuCommands(const DataMenuCommands &)=delete
Invalidated copy constructor.
DemandMenuCommands & operator=(const DemandMenuCommands &)=delete
Invalidated assignment operator.
DemandMenuCommands(const DemandMenuCommands &)=delete
Invalidated copy constructor.
const ModesMenuCommands * myModesMenuCommandsParent
reference to ModesMenuCommands
FXMenuCommand * containerPlanMode
menu command for container plan mode
DemandMenuCommands(const ModesMenuCommands *modesMenuCommandsParent)
constructor
NetworkMenuCommands(const ModesMenuCommands *modesMenuCommandsParent)
constructor
NetworkMenuCommands(const NetworkMenuCommands &)=delete
Invalidated copy constructor.
const ModesMenuCommands * myModesMenuCommandsParent
reference to ModesMenuCommands
NetworkMenuCommands & operator=(const NetworkMenuCommands &)=delete
Invalidated assignment operator.
FXMenuCommand * moveMode
menu command for move mode (network)
CommonMenuCommands commonMenuCommands
Common Menu Commands.
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindows
void buildModesMenuCommands(FXMenuPane *modesMenu)
build modes menu commands
ModesMenuCommands(GNEApplicationWindow *GNEApp)
constructor
DemandMenuCommands demandMenuCommands
Demand Menu Commands.
ModesMenuCommands & operator=(const ModesMenuCommands &)=delete
Invalidated assignment operator.
ModesMenuCommands(const ModesMenuCommands &)=delete
Invalidated copy constructor.
DataMenuCommands dataMenuCommands
Data Menu Commands.
NetworkMenuCommands networkMenuCommands
Network Menu Commands.
void showDataProcessingMenuCommands()
show data processing menu commands
MFXMenuCheckIcon * menuCheckRecomputeDataMode
checkBox for recomputing when changing data mode
FXMenuCommand * cleanRoutes
FXMenuCommand for clean routes without vehicles.
FXMenuCommand * joinJunctions
FXMenuCommand for join selected junctions.
FXMenuCommand * clearInvalidDemandElements
FXMenuCommand for clear invalid demand elements.
void showDemandProcessingMenuCommands()
show demand processing menu commands
FXMenuSeparator * myOptionsSeparator
separator for optionsMenu
FXMenuSeparator * mySeparatorCheckBox
separator for checkBox
FXMenuCommand * cleanJunctions
FXMenuCommand for clean junctions without edges.
void hideDemandProcessingMenuCommands()
show demand processing menu commands
void hideDataProcessingMenuCommands()
show data processing menu commands
FXMenuCommand * joinRoutes
FXMenuCommand for join routes.
void buildProcessingMenuCommands(FXMenuPane *processingMenu)
build menu commands
FXMenuCommand * computeNetworkVolatile
FXMenuCommand for compute network with volatile options.
FXMenuCommand * adjustPersonPlans
FXMenuCommand for adjust person plans.
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindows
FXMenuCommand * optionMenus
FXMenuCommand for open option menus.
FXMenuCommand * clearInvalidCrossings
FXMenuCommand for clear invalid crossings.
void showNetworkProcessingMenuCommands()
show network processing menu commands
ProcessingMenuCommands & operator=(const ProcessingMenuCommands &)=delete
Invalidated assignment operator.
ProcessingMenuCommands(GNEApplicationWindow *GNEApp)
constructor
ProcessingMenuCommands(const ProcessingMenuCommands &)=delete
Invalidated copy constructor.
void hideNetworkProcessingMenuCommands()
show network processing menu commands
FXMenuCommand * dataMode
FXMenuCommand for data supermode.
SupermodeCommands(const SupermodeCommands &)=delete
Invalidated copy constructor.
FXMenuCommand * demandMode
FXMenuCommand for demand supermode.
SupermodeCommands & operator=(const SupermodeCommands &)=delete
Invalidated assignment operator.
void buildSupermodeCommands(FXMenuPane *editMenu)
build menu commands
SupermodeCommands(GNEApplicationWindow *GNEApp)
constructor
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindows
FXMenuCommand * networkMode
FXMenuCommand for network supermode.
FXToolBarShell * myToolBarShellSuperModes
menu bar drag for modes (network and demand)
FXToolBarShell * myToolBarShellIntervalBar
menu bar drag for interval bar
void buildMenuToolbarsGrip()
build menu toolbar grips
ToolbarsGrip(GNEApplicationWindow *GNEApp)
constructor
FXMenuBar * saveElements
The application menu bar for save elements (NetworkElements, additionals and demand elements)
FXMenuBar * modes
The application menu bar (for select, inspect...)
ToolbarsGrip(const ToolbarsGrip &)=delete
Invalidated copy constructor.
FXMenuBar * navigation
The application menu bar for navigation (zoom, coloring...)
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindow
FXToolBarShell * myToolBarShellSaveElements
menu bar drag for save elements (NetworkElements, additionals and demand elements)
FXMenuBar * superModes
The application menu bar for supermodes (network and demand)
ToolbarsGrip & operator=(const ToolbarsGrip &)=delete
Invalidated assignment operator.
FXMenuBar * intervalBar
The application menu bar for mode options (show connections, select edges...)
FXToolBarShell * myToolBarShellNavigation
menu bar drag for navigation (Zoom, coloring...)
FXMenuBar * menu
The application menu bar (for file, edit, processing...)
FXToolBarShell * myToolBarShellModes
menu bar drag for modes (select, inspect, delete...)
FXToolBarShell * myToolBarShellMenu
menu bar drag (for file, edit, processing...)
ToolsMenuCommands & operator=(const ToolsMenuCommands &)=delete
Invalidated assignment operator.
ToolsMenuCommands(GNEApplicationWindow *GNEApp)
constructor
ToolsMenuCommands(const ToolsMenuCommands &)=delete
Invalidated copy constructor.
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindows
void buildToolsMenuCommands(FXMenuPane *locateMenu)
build menu commands
WindowsMenuCommands(GNEApplicationWindow *GNEApp)
constructor
WindowsMenuCommands(const WindowsMenuCommands &)=delete
Invalidated copy constructor.
WindowsMenuCommands & operator=(const WindowsMenuCommands &)=delete
Invalidated assignment operator.
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindows
void buildWindowsMenuCommands(FXMenuPane *windowsMenu, FXStatusBar *statusbar, GUIMessageWindow *messageWindow)
build menu commands
static bool toggleEditOptionsData(GNEViewNet *viewNet, const MFXCheckableButton *menuCheck, const int numericalKeyPressed, FXObject *obj, FXSelector sel)
toggle edit options Data menu commands (called in GNEApplicationWindow::onCmdToggleEditOptions)
GNEApplicationWindowHelper(const GNEApplicationWindowHelper &)=delete
Invalidated copy constructor.
static bool stringEndsWith(const std::string &str, const std::string &suffix)
check if a string ends with another string
static void saveSUMOConfig()
save SUMOConfig
static bool toggleEditOptionsDemand(GNEViewNet *viewNet, const MFXCheckableButton *menuCheck, const int numericalKeyPressed, FXObject *obj, FXSelector sel)
toggle edit options Demand menu commands (called in GNEApplicationWindow::onCmdToggleEditOptions)
GNEApplicationWindowHelper & operator=(const GNEApplicationWindowHelper &)=delete
Invalidated assignment operator.
static bool toggleEditOptionsNetwork(GNEViewNet *viewNet, const MFXCheckableButton *menuCheck, const int numericalKeyPressed, FXObject *obj, FXSelector sel)
toggle edit options Network menu commands (called in GNEApplicationWindow::onCmdToggleEditOptions)