Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEApplicationWindowHelper.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-2025 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
28#include <utils/geom/Position.h>
34
35#include "GNEViewNetHelper.h"
36
37
38// ===========================================================================
39// class declarations
40// ===========================================================================
41
43class GNENet;
45class GNEPythonTool;
49class GNEViewNet;
51
52// ===========================================================================
53// class definition
54// ===========================================================================
55
57
59 struct ToolbarsGrip {
60
63
66
69
72
74 FXMenuBar* menu = nullptr;
75
77 FXMenuBar* superModes = nullptr;
78
80 FXMenuBar* saveElements = nullptr;
81
83 FXMenuBar* timeSwitch = nullptr;
84
86 FXMenuBar* navigation = nullptr;
87
89 FXMenuBar* modes = nullptr;
90
92 FXMenuBar* intervalBar = nullptr;
93
94 private:
97
99 FXToolBarShell* myPythonToolBarShellMenu = nullptr;
100
102 FXToolBarShell* myPythonToolBarShellSuperModes = nullptr;
103
105 FXToolBarShell* myPythonToolBarShellSaveElements = nullptr;
106
108 FXToolBarShell* myPythonToolBarShellTimeFormat = nullptr;
109
111 FXToolBarShell* myPythonToolBarShellNavigation = nullptr;
112
114 FXToolBarShell* myPythonToolBarShellModes = nullptr;
115
117 FXToolBarShell* myPythonToolBarShellIntervalBar = nullptr;
118
120 ToolbarsGrip(const ToolbarsGrip&) = delete;
121
124 };
125
127 struct MenuBarFile {
128
131
133 void buildRecentNetworkFiles(FXMenuPane* fileMenu, FXMenuPane* fileMenuRecentNetworkFiles);
134
136 void buildRecentConfigFiles(FXMenuPane* fileMenu, FXMenuPane* fileMenuRecentConfigFiles);
137
140
143
144 private:
147
149 MenuBarFile(const MenuBarFile&) = delete;
150
153 };
154
157
160
162 void buildFileMenuCommands(FXMenuPane* fileMenu, FXMenuPane* fileMenuNEEDITConfig, FXMenuPane* fileMenuSumoConfig,
163 FXMenuPane* fileMenuTLS, FXMenuPane* fileMenuEdgeTypes, FXMenuPane* fileMenuAdditionals,
164 FXMenuPane* fileMenuDemandElements, FXMenuPane* fileMenuDataElements,
165 FXMenuPane* fileMenuMeanDataElements);
166
168 void enableMenuCascades();
169
171 void disableMenuCascades();
172
174 void setDefaultView();
175
177 void setJuPedSimView();
178
180 FXMenuCheck* menuCheckAllowUndoRedoLoading = nullptr;
181
182 private:
184 void buildNeteditConfigSection(FXMenuPane* menuPane);
185
187 void buildSumoConfigSection(FXMenuPane* menuPane);
188
190 void buildTrafficLightSection(FXMenuPane* menuPane);
191
193 void buildEdgeTypeSection(FXMenuPane* menuPane);
194
196 void buildAdditionalSection(FXMenuPane* menuPane);
197
199 void buildDemandSection(FXMenuPane* menuPane);
200
202 void buildDataSection(FXMenuPane* menuPane);
203
205 void buildMeanDataSection(FXMenuPane* menuPane);
206
209
211 FXMenuCascade* myNeteditConfigMenuCascade = nullptr;
212
214 FXMenuCascade* mySumoConfigMenuCascade = nullptr;
215
217 FXMenuCascade* myTLSMenuCascade = nullptr;
218
220 FXMenuCascade* myEdgeTypesMenuCascade = nullptr;
221
223 FXMenuCascade* myAdditionalMenuCascade = nullptr;
224
226 FXMenuCascade* myDemandMenuCascade = nullptr;
227
229 FXMenuCascade* myDataMenuCascade = nullptr;
230
232 FXMenuCascade* myMeanDataMenuCascade = nullptr;
233
236
239 };
240
243
246
248 CommonMenuCommands(const ModesMenuCommands* modesMenuCommandsParent);
249
251 void buildCommonMenuCommands(FXMenuPane* modesMenu);
252
254 FXMenuCommand* deleteMode = nullptr;
255
257 FXMenuCommand* inspectMode = nullptr;
258
260 FXMenuCommand* selectMode = nullptr;
261
262 private:
265
268
271 };
272
275
277 NetworkMenuCommands(const ModesMenuCommands* modesMenuCommandsParent);
278
280 void buildNetworkMenuCommands(FXMenuPane* modesMenu);
281
284
287
289 FXMenuCommand* createEdgeMode = nullptr;
290
292 FXMenuCommand* moveMode = nullptr;
293
295 FXMenuCommand* connectMode = nullptr;
296
298 FXMenuCommand* prohibitionMode = nullptr;
299
301 FXMenuCommand* TLSMode = nullptr;
302
304 FXMenuCommand* additionalMode = nullptr;
305
307 FXMenuCommand* crossingMode = nullptr;
308
310 FXMenuCommand* TAZMode = nullptr;
311
313 FXMenuCommand* shapeMode = nullptr;
314
316 FXMenuCommand* wireMode = nullptr;
317
319 FXMenuCommand* decalMode = nullptr;
320
321 private:
324
327
330 };
331
334
336 DemandMenuCommands(const ModesMenuCommands* modesMenuCommandsParent);
337
339 void buildDemandMenuCommands(FXMenuPane* modesMenu);
340
343
346
348 FXMenuCommand* moveMode = nullptr;
349
351 FXMenuCommand* routeMode = nullptr;
352
354 FXMenuCommand* routeDistributionMode = nullptr;
355
357 FXMenuCommand* vehicleMode = nullptr;
358
360 FXMenuCommand* typeMode = nullptr;
361
363 FXMenuCommand* typeDistributionMode = nullptr;
364
366 FXMenuCommand* stopMode = nullptr;
367
369 FXMenuCommand* personMode = nullptr;
370
372 FXMenuCommand* personPlanMode = nullptr;
373
375 FXMenuCommand* containerMode = nullptr;
376
378 FXMenuCommand* containerPlanMode = nullptr;
379
380 private:
383
386
389 };
390
393
395 DataMenuCommands(const ModesMenuCommands* modesMenuCommandsParent);
396
398 void buildDataMenuCommands(FXMenuPane* modesMenu);
399
402
405
407 FXMenuCommand* edgeData = nullptr;
408
410 FXMenuCommand* edgeRelData = nullptr;
411
413 FXMenuCommand* TAZRelData = nullptr;
414
416 FXMenuCommand* meanData = nullptr;
417
418 private:
421
424
427 };
428
431
433 void buildModesMenuCommands(FXMenuPane* modesMenu);
434
436 void setDefaultView(Supermode supermode);
437
439 void setJuPedSimView(Supermode supermode);
440
443
446
449
452
453 private:
456
459
462 };
463
466
543
605
658
661
663 void buildUndoRedoMenuCommands(FXMenuPane* editMenu);
664
666 void buildViewMenuCommands(FXMenuPane* editMenu);
667
669 void buildFrontElementMenuCommand(FXMenuPane* editMenu);
670
672 void buildOpenSUMOMenuCommands(FXMenuPane* editMenu);
673
675 FXMenuCommand* undoLastChange = nullptr;
676
678 FXMenuCommand* redoLastChange = nullptr;
679
681 FXMenuCommand* openUndolistDialog = nullptr;
682
684 FXMenuCheck* menuCheckAllowUndoRedo = nullptr;
685
688
691
694
696 FXMenuCommand* editViewScheme = nullptr;
697
699 FXMenuCommand* editViewPort = nullptr;
700
702 FXMenuCommand* clearFrontElement = nullptr;
703
705 FXMenuCheck* loadAdditionalsInSUMOGUI = nullptr;
706
708 FXMenuCheck* loadDemandInSUMOGUI = nullptr;
709
711 FXMenuCommand* openInSUMOGUI = nullptr;
712
713 private:
716
719
722 };
723
726
729
731 void buildLockMenuCommands(FXMenuPane* editMenu);
732
734 void removeHotkeys();
735
738
741
744
747
750
753
755 void lockAll();
756
758 void unlockAll();
759
761 void editLocking(const GNEAttributeCarrier* AC, const FXbool value);
762
767
770
773
776
779
782
785
788
791
794
797
800
803
805
810
813
816
819
822
825
828
831
834
837
839
844
847
850
852
855
856 protected:
858 FXHotKey parseHotKey(const FXwchar character);
859
860 private:
863
866
869 };
870
873
876
878 void buildProcessingMenuCommands(FXMenuPane* processingMenu);
879
882
885
888
891
894
897
899 void showSeparator();
900
902 void hideSeparator();
903
907 FXMenuCommand* computeNetwork = nullptr;
908
910 FXMenuCommand* computeNetworkVolatile = nullptr;
911
913 FXMenuCommand* cleanJunctions = nullptr;
914
916 FXMenuCommand* joinJunctions = nullptr;
917
919 FXMenuCommand* clearInvalidCrossings = nullptr;
920
923
925
929 FXMenuCommand* computeDemand = nullptr;
930
932 FXMenuCommand* cleanRoutes = nullptr;
933
935 FXMenuCommand* joinRoutes = nullptr;
936
938 FXMenuCommand* adjustPersonPlans = nullptr;
939
941 FXMenuCommand* clearInvalidDemandElements = nullptr;
943
946
948
950 FXMenuCommand* optionMenus = nullptr;
951
952 private:
955
957 FXMenuSeparator* myOptionsSeparator = nullptr;
958
960 FXMenuSeparator* mySeparatorCheckBox = nullptr;
961
964
967 };
968
971
974
976 void buildLocateMenuCommands(FXMenuPane* locateMenu);
977
978 private:
981
984
987 };
988
991
994
997
999 void buildTools(FXMenuPane* toolsMenu, const std::map<std::string, FXMenuPane*>& menuPaneToolMaps);
1000
1002 long showTool(FXObject* menuCommand) const;
1003
1005 long showNetgenerateDialog() const;
1006
1008 long runToolDialog(FXObject* menuCommand) const;
1009
1011 long postProcessing(FXObject* menuCommand) const;
1012
1014 long runNetgenerateDialog(const OptionsCont* netgenerateOptions) const;
1015
1016 private:
1018 std::vector<GNEPythonTool*> myPythonTools;
1019
1022
1025
1028
1031
1034
1037
1040 };
1041
1044
1047
1049 void buildWindowsMenuCommands(FXMenuPane* windowsMenu, FXStatusBar* statusbar, GUIMessageWindow* messageWindow);
1050
1051 private:
1054
1057
1060 };
1061
1064
1067
1069 void buildHelpMenuCommands(FXMenuPane* helpMenu);
1070
1071 private:
1074
1077
1080 };
1081
1084
1087
1089 void buildSupermodeCommands(FXMenuPane* editMenu);
1090
1092 void showSupermodeCommands();
1093
1095 void setDefaultView();
1096
1098 void setJuPedSimView();
1099
1101 FXMenuCommand* networkMode = nullptr;
1102
1104 FXMenuCommand* demandMode = nullptr;
1105
1107 FXMenuCommand* dataMode = nullptr;
1108
1109 private:
1112
1115
1118 };
1119
1122
1123 public:
1125 GNESumoConfigHandler(OptionsCont& sumoOptions, const std::string& file);
1126
1128 bool loadSumoConfig();
1129
1130 private:
1133
1135 const std::string myFile;
1136
1139
1142 };
1143
1146
1147 public:
1149 GNENeteditConfigHandler(const std::string& file);
1150
1152 bool loadNeteditConfig();
1153
1154 private:
1156 const std::string myFile;
1157
1160
1163 };
1164
1166 static bool toggleEditOptionsNetwork(GNEViewNet* viewNet, const MFXCheckableButton* menuCheck,
1167 FXObject* obj, FXSelector sel);
1168
1170 static bool toggleEditOptionsDemand(GNEViewNet* viewNet, const MFXCheckableButton* menuCheck,
1171 FXObject* obj, FXSelector sel);
1172
1174 static bool toggleEditOptionsData(GNEViewNet* viewNet, const MFXCheckableButton* menuCheck,
1175 FXObject* obj, FXSelector sel);
1176
1178 static bool stringEndsWith(const std::string& str, const std::string& suffix);
1179
1181 static std::string openXMLFileDialog(FXWindow* window, bool save, bool multi);
1182
1184 static std::string openNetworkFileDialog(FXWindow* window, bool save, bool multi = false);
1185
1187 static std::string openNetconvertFileDialog(FXWindow* window);
1188
1190 static std::string savePlainXMLFileDialog(FXWindow* window);
1191
1193 static std::string saveJoinedJunctionsFileDialog(FXWindow* window);
1194
1196 static std::string saveToolLog(FXWindow* window);
1197
1199 static std::string openOSMFileDialog(FXWindow* window);
1200
1202 static std::string openNeteditConfigFileDialog(FXWindow* window, bool save);
1203
1205 static std::string openSumoConfigFileDialog(FXWindow* window, bool save, bool multi = false);
1206
1208 static std::string openTLSFileDialog(FXWindow* window, bool save);
1209
1211 static std::string openEdgeTypeFileDialog(FXWindow* window, bool save);
1212
1214 static std::string openAdditionalFileDialog(FXWindow* window, bool save, bool multi = false);
1215
1217 static std::string openRouteFileDialog(FXWindow* window, bool save, bool multi = false);
1218
1220 static std::string openDataFileDialog(FXWindow* window, bool save, bool multi = false);
1221
1223 static std::string openMeanDataDialog(FXWindow* window, bool save, bool multi = false);
1224
1226 static std::string openOptionFileDialog(FXWindow* window, bool save);
1227
1229 static std::string openFileDialog(FXWindow* window, const std::string title, GUIIcon icon,
1230 const std::string& extensions, bool save, bool multi = false);
1231private:
1234
1237};
Supermode
@brie enum for supermodes
GUIIcon
An enumeration of icons used by the gui applications.
Definition GUIIcons.h:33
GNENeteditConfigHandler & operator=(const GNENeteditConfigHandler &)=delete
Invalidated assignment operator.
GNENeteditConfigHandler(const GNENeteditConfigHandler &)=delete
Invalidated copy constructor.
GNESumoConfigHandler(const GNESumoConfigHandler &)=delete
Invalidated copy constructor.
GNESumoConfigHandler & operator=(const GNESumoConfigHandler &)=delete
Invalidated assignment operator.
The main window of Netedit.
A NBNetBuilder extended by visualisation and editing capabilities.
Definition GNENet.h:42
Dialog for python tool dialog.
Abstract dialog for tools.
A logging window for the gui.
MFXRecentNetworks.
A storage for options typed value containers)
Definition OptionsCont.h:89
struct used to group all variables related to view options in supermode Data
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindow
MFXMenuCheckIcon * menuCheckToggleTAZRelOnlyTo
menu check to toggle TAZRel only to
MFXMenuCheckIcon * menuCheckToggleTAZDrawFill
menu check to toggle TAZ draw fill
DataViewOptions & operator=(const DataViewOptions &)=delete
Invalidated assignment operator.
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
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 GNEApplicationWindow
DemandViewOptions & operator=(const DemandViewOptions &)=delete
Invalidated assignment operator.
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
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
struct used to group all variables related to view options in supermode Network
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindow
MFXMenuCheckIcon * menuCheckShowTAZElements
menu check to show TAZ elements
MFXMenuCheckIcon * menuCheckMergeAutomatically
menu check to we should warn about merging junctions
MFXMenuCheckIcon * menuCheckHideConnections
menu check to hide connections in connect mode
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
NetworkViewOptions & operator=(const NetworkViewOptions &)=delete
Invalidated assignment operator.
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.
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
DemandViewOptions demandViewOptions
demand view options
FXMenuCheck * menuCheckAllowUndoRedo
checkBox for allow undo-redo
FXMenuCommand * openInSUMOGUI
FXMenuCommand for open in SUMO GUI.
NetworkViewOptions networkViewOptions
network view options
FXMenuCommand * editViewScheme
FXMenuCommand for edit view scheme.
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 GNEApplicationWindow
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.
EditMenuCommands & operator=(const EditMenuCommands &)=delete
Invalidated assignment operator.
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 * myDataMenuCascade
FXMenuCascade for data.
FileMenuCommands & operator=(const FileMenuCommands &)=delete
Invalidated assignment operator.
void buildEdgeTypeSection(FXMenuPane *menuPane)
build edge type section
FXMenuCascade * myEdgeTypesMenuCascade
FXMenuCascade for edgeTypes.
void buildDemandSection(FXMenuPane *menuPane)
build demand section
FileMenuCommands(const FileMenuCommands &)=delete
Invalidated copy constructor.
void buildFileMenuCommands(FXMenuPane *fileMenu, FXMenuPane *fileMenuNEEDITConfig, FXMenuPane *fileMenuSumoConfig, FXMenuPane *fileMenuTLS, FXMenuPane *fileMenuEdgeTypes, FXMenuPane *fileMenuAdditionals, FXMenuPane *fileMenuDemandElements, FXMenuPane *fileMenuDataElements, FXMenuPane *fileMenuMeanDataElements)
build menu commands
void buildDataSection(FXMenuPane *menuPane)
build data section
FXMenuCascade * myMeanDataMenuCascade
FXMenuCascade for mean data.
FXMenuCheck * menuCheckAllowUndoRedoLoading
checkBox for allow undo-redo loading
void buildTrafficLightSection(FXMenuPane *menuPane)
build traffic light section
FXMenuCascade * myAdditionalMenuCascade
FXMenuCascade for additional.
FXMenuCascade * myTLSMenuCascade
FXMenuCascade for TLS.
FXMenuCascade * mySumoConfigMenuCascade
FXMenuCascade for SumoConfig.
void buildAdditionalSection(FXMenuPane *menuPane)
build additional section
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindow
void buildMeanDataSection(FXMenuPane *menuPane)
build meanData section
void buildNeteditConfigSection(FXMenuPane *menuPane)
build netedit config section
FXMenuCascade * myNeteditConfigMenuCascade
FXMenuCascade for neteditConfig.
void buildSumoConfigSection(FXMenuPane *menuPane)
build SUMO Config section
FXMenuCascade * myDemandMenuCascade
FXMenuCascade for demand.
void buildHelpMenuCommands(FXMenuPane *helpMenu)
build menu commands
HelpMenuCommands & operator=(const HelpMenuCommands &)=delete
Invalidated assignment operator.
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindow
HelpMenuCommands(const HelpMenuCommands &)=delete
Invalidated copy constructor.
void buildLocateMenuCommands(FXMenuPane *locateMenu)
build menu commands
LocateMenuCommands & operator=(const LocateMenuCommands &)=delete
Invalidated assignment operator.
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindow
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 * 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 * menuCheckLockEdgeTAZRels
menu check to lock edgeTAZRels
void hideDataLockMenuCommands()
show data processing menu commands
void showDataLockMenuCommands()
show data processing menu commands
MFXMenuCheckIcon * menuCheckLockPersonTrips
menu check to lock personTrips
MFXMenuCheckIcon * menuCheckLockWires
menu check to lock Wires
LockMenuCommands & operator=(const LockMenuCommands &)=delete
Invalidated assignment operator.
MFXMenuCheckIcon * menuCheckLockPOIs
menu check to lock POIs
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 GNEApplicationWindow
MFXMenuCheckIcon * menuCheckLockSelectedElements
menu check for lock selected elements
MFXMenuCheckIcon * menuCheckLockRides
menu check to lock rides
MFXMenuCheckIcon * menuCheckLockContainers
menu check to lock containers
MFXMenuCheckIcon * menuCheckLockJpsWalkableAreas
menu check to lock jps walkableareas
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
MFXMenuCheckIcon * menuCheckLockWalks
menu check to lock walks
MFXMenuCheckIcon * menuCheckLockJpsObstacles
menu check to lock jps obstacles
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
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindow
void buildRecentConfigFiles(FXMenuPane *fileMenu, FXMenuPane *fileMenuRecentConfigFiles)
build recent config
MFXRecentNetworks myRecentConfigs
List of recent configs.
MenuBarFile(const MenuBarFile &)=delete
Invalidated copy constructor.
MenuBarFile & operator=(const MenuBarFile &)=delete
Invalidated assignment operator.
MFXRecentNetworks myRecentNetworks
List of recent networks.
void buildRecentNetworkFiles(FXMenuPane *fileMenu, FXMenuPane *fileMenuRecentNetworkFiles)
build recent network
CommonMenuCommands(const CommonMenuCommands &)=delete
Invalidated copy constructor.
CommonMenuCommands & operator=(const CommonMenuCommands &)=delete
Invalidated assignment operator.
const ModesMenuCommands * myModesMenuCommandsParent
reference to ModesMenuCommands
DataMenuCommands & operator=(const DataMenuCommands &)=delete
Invalidated assignment operator.
const ModesMenuCommands * myModesMenuCommandsParent
reference to ModesMenuCommands
DataMenuCommands(const DataMenuCommands &)=delete
Invalidated copy constructor.
FXMenuCommand * typeDistributionMode
menu command for type distribution mode
FXMenuCommand * routeDistributionMode
menu command for route distribution mode
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
NetworkMenuCommands(const NetworkMenuCommands &)=delete
Invalidated copy constructor.
const ModesMenuCommands * myModesMenuCommandsParent
reference to ModesMenuCommands
NetworkMenuCommands & operator=(const NetworkMenuCommands &)=delete
Invalidated assignment operator.
ModesMenuCommands & operator=(const ModesMenuCommands &)=delete
Invalidated assignment operator.
CommonMenuCommands commonMenuCommands
Common Menu Commands.
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindow
void buildModesMenuCommands(FXMenuPane *modesMenu)
build modes menu commands
DemandMenuCommands demandMenuCommands
Demand Menu Commands.
void setDefaultView(Supermode supermode)
set default view
ModesMenuCommands(const ModesMenuCommands &)=delete
Invalidated copy constructor.
void setJuPedSimView(Supermode supermode)
set JuPedSim view
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 GNEApplicationWindow
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(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.
void buildSupermodeCommands(FXMenuPane *editMenu)
build menu commands
SupermodeCommands & operator=(const SupermodeCommands &)=delete
Invalidated assignment operator.
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindow
FXMenuCommand * networkMode
FXMenuCommand for network supermode.
FXToolBarShell * myPythonToolBarShellSuperModes
menu bar drag for super modes (network, demand and data)
FXToolBarShell * myPythonToolBarShellMenu
menu bar drag (for file, edit, processing...)
FXToolBarShell * myPythonToolBarShellModes
menu bar drag for modes (select, inspect, delete...)
FXMenuBar * saveElements
The application menu bar for save 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 * myPythonToolBarShellNavigation
menu bar drag for navigation (Zoom, coloring...)
ToolbarsGrip & operator=(const ToolbarsGrip &)=delete
Invalidated assignment operator.
FXMenuBar * timeSwitch
The application menu bar for time switch.
FXMenuBar * superModes
The application menu bar for supermodes (network, demand and data)
FXMenuBar * intervalBar
The application menu bar for mode options (show connections, select edges...)
FXMenuBar * menu
The application menu bar (for file, edit, processing...)
FXToolBarShell * myPythonToolBarShellSaveElements
menu bar drag for save elements
FXToolBarShell * myPythonToolBarShellIntervalBar
menu bar drag for interval bar
FXToolBarShell * myPythonToolBarShellTimeFormat
menu bar drag for time switch
ToolsMenuCommands & operator=(const ToolsMenuCommands &)=delete
Invalidated assignment operator.
long postProcessing(FXObject *menuCommand) const
run postprocessing
GNEPythonToolDialog * myPythonToolDialog
python tool dialog
void buildTools(FXMenuPane *toolsMenu, const std::map< std::string, FXMenuPane * > &menuPaneToolMaps)
build tools (and menu commands)
ToolsMenuCommands(const ToolsMenuCommands &)=delete
Invalidated copy constructor.
GNERunNetgenerateDialog * myRunNetgenerateDialog
run netgenerate dialog
GNENetgenerateDialog * myNetgenerateDialog
netgenerate dialog
GNERunPythonToolDialog * myRunPythonToolDialog
run python tool dialog
std::vector< GNEPythonTool * > myPythonTools
map with python tools
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindow
long showTool(FXObject *menuCommand) const
show tool
long runNetgenerateDialog(const OptionsCont *netgenerateOptions) const
run netgenerate dialog
long runToolDialog(FXObject *menuCommand) const
run tool dialog
WindowsMenuCommands & operator=(const WindowsMenuCommands &)=delete
Invalidated assignment operator.
WindowsMenuCommands(const WindowsMenuCommands &)=delete
Invalidated copy constructor.
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindow
void buildWindowsMenuCommands(FXMenuPane *windowsMenu, FXStatusBar *statusbar, GUIMessageWindow *messageWindow)
build menu commands
GNEApplicationWindowHelper(const GNEApplicationWindowHelper &)=delete
Invalidated copy constructor.
static std::string openRouteFileDialog(FXWindow *window, bool save, bool multi=false)
open route file dialog
static bool toggleEditOptionsDemand(GNEViewNet *viewNet, const MFXCheckableButton *menuCheck, FXObject *obj, FXSelector sel)
toggle edit options Demand menu commands (called in GNEApplicationWindow::onCmdToggleEditOptions)
static bool toggleEditOptionsData(GNEViewNet *viewNet, const MFXCheckableButton *menuCheck, FXObject *obj, FXSelector sel)
toggle edit options Data menu commands (called in GNEApplicationWindow::onCmdToggleEditOptions)
static bool stringEndsWith(const std::string &str, const std::string &suffix)
check if a string ends with another string
static std::string openMeanDataDialog(FXWindow *window, bool save, bool multi=false)
open meandata filename dialog
static std::string openAdditionalFileDialog(FXWindow *window, bool save, bool multi=false)
open additional dialog
static bool toggleEditOptionsNetwork(GNEViewNet *viewNet, const MFXCheckableButton *menuCheck, FXObject *obj, FXSelector sel)
toggle edit options Network menu commands (called in GNEApplicationWindow::onCmdToggleEditOptions)
static std::string saveToolLog(FXWindow *window)
open tool file dialog
static std::string openOptionFileDialog(FXWindow *window, bool save)
open option dialog
static std::string openOSMFileDialog(FXWindow *window)
open OSM file dialog
static std::string openFileDialog(FXWindow *window, const std::string title, GUIIcon icon, const std::string &extensions, bool save, bool multi=false)
open filename dialog (general)
static std::string saveJoinedJunctionsFileDialog(FXWindow *window)
open joined junctions file dialog
static std::string openTLSFileDialog(FXWindow *window, bool save)
open TLS file dialog
static std::string openDataFileDialog(FXWindow *window, bool save, bool multi=false)
open data file dialog
static std::string openNeteditConfigFileDialog(FXWindow *window, bool save)
open netedit config file dialog
static std::string savePlainXMLFileDialog(FXWindow *window)
open plain xml file dialog
static std::string openXMLFileDialog(FXWindow *window, bool save, bool multi)
open xml file dialog
static std::string openSumoConfigFileDialog(FXWindow *window, bool save, bool multi=false)
open SUMO config file dialog
GNEApplicationWindowHelper & operator=(const GNEApplicationWindowHelper &)=delete
Invalidated assignment operator.
static std::string openEdgeTypeFileDialog(FXWindow *window, bool save)
open edgeType file dialog
static std::string openNetworkFileDialog(FXWindow *window, bool save, bool multi=false)
open netconvert file dialog
static std::string openNetconvertFileDialog(FXWindow *window)
open netconvert file dialog