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-2023 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>
33
34#include "GNEViewNetHelper.h"
35
36
37// ===========================================================================
38// class declarations
39// ===========================================================================
40
42class GNELoadThread;
43class GNENet;
44class GNEPythonTool;
49class GNEUndoList;
51class GNEViewNet;
52class GUIEvent;
54
55// ===========================================================================
56// class definition
57// ===========================================================================
58
60
62 struct ToolbarsGrip {
63
66
69
72
75
77 FXMenuBar* menu = nullptr;
78
80 FXMenuBar* superModes = nullptr;
81
83 FXMenuBar* saveElements = 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* myPythonToolBarShellNavigation = nullptr;
109
111 FXToolBarShell* myPythonToolBarShellModes = nullptr;
112
114 FXToolBarShell* myPythonToolBarShellIntervalBar = nullptr;
115
117 ToolbarsGrip(const ToolbarsGrip&) = delete;
118
121 };
122
124 struct MenuBarFile {
125
128
130 void buildRecentNetworkFiles(FXMenuPane* fileMenu, FXMenuPane* fileMenuRecentNetworkFiles);
131
133 void buildRecentConfigFiles(FXMenuPane* fileMenu, FXMenuPane* fileMenuRecentConfigFiles);
134
137
140
141 private:
144
146 MenuBarFile(const MenuBarFile&) = delete;
147
150 };
151
154
157
159 void buildFileMenuCommands(FXMenuPane* fileMenu, FXMenuPane* fileMenuNEEDITConfig, FXMenuPane* fileMenuSumoConfig,
160 FXMenuPane* fileMenuTLS, FXMenuPane* fileMenuEdgeTypes, FXMenuPane* fileMenuAdditionals,
161 FXMenuPane* fileMenuDemandElements, FXMenuPane* fileMenuDataElements,
162 FXMenuPane* fileMenuMeanDataElements);
163
165 void enableMenuCascades();
166
168 void disableMenuCascades();
169
170 private:
172 void buildNeteditConfigSection(FXMenuPane* menuPane);
173
175 void buildSumoConfigSection(FXMenuPane* menuPane);
176
178 void buildTrafficLightSection(FXMenuPane* menuPane);
179
181 void buildEdgeTypeSection(FXMenuPane* menuPane);
182
184 void buildAdditionalSection(FXMenuPane* menuPane);
185
187 void buildDemandSection(FXMenuPane* menuPane);
188
190 void buildDataSection(FXMenuPane* menuPane);
191
193 void buildMeanDataSection(FXMenuPane* menuPane);
194
197
199 FXMenuCascade* myNeteditConfigMenuCascade = nullptr;
200
202 FXMenuCascade* mySumoConfigMenuCascade = nullptr;
203
205 FXMenuCascade* myTLSMenuCascade = nullptr;
206
208 FXMenuCascade* myEdgeTypesMenuCascade = nullptr;
209
211 FXMenuCascade* myAdditionalMenuCascade = nullptr;
212
214 FXMenuCascade* myDemandMenuCascade = nullptr;
215
217 FXMenuCascade* myDataMenuCascade = nullptr;
218
220 FXMenuCascade* myMeanDataMenuCascade = nullptr;
221
224
227 };
228
231
234
236 SupermodeMenuCommands(const ModesMenuCommands* modesMenuCommandsParent);
237
239 void buildSupermodeMenuCommands(FXMenuPane* modesMenu);
240
242 FXMenuCommand* networkSupermode;
243
245 FXMenuCommand* demandSupermode;
246
248 FXMenuCommand* dataSupermode;
249
250 private:
253
256
259 };
260
263
265 CommonMenuCommands(const ModesMenuCommands* modesMenuCommandsParent);
266
268 void buildCommonMenuCommands(FXMenuPane* modesMenu);
269
271 FXMenuCommand* deleteMode;
272
274 FXMenuCommand* inspectMode;
275
277 FXMenuCommand* selectMode;
278
279 private:
282
285
288 };
289
292
294 NetworkMenuCommands(const ModesMenuCommands* modesMenuCommandsParent);
295
297 void buildNetworkMenuCommands(FXMenuPane* modesMenu);
298
301
304
306 FXMenuCommand* createEdgeMode;
307
309 FXMenuCommand* moveMode;
310
312 FXMenuCommand* connectMode;
313
315 FXMenuCommand* prohibitionMode;
316
318 FXMenuCommand* TLSMode;
319
321 FXMenuCommand* additionalMode;
322
324 FXMenuCommand* crossingMode;
325
327 FXMenuCommand* TAZMode;
328
330 FXMenuCommand* shapeMode;
331
333 FXMenuCommand* wireMode;
334
335 private:
338
341
344 };
345
348
350 DemandMenuCommands(const ModesMenuCommands* modesMenuCommandsParent);
351
353 void buildDemandMenuCommands(FXMenuPane* modesMenu);
354
357
360
362 FXMenuCommand* moveMode;
363
365 FXMenuCommand* routeMode;
366
368 FXMenuCommand* vehicleMode;
369
371 FXMenuCommand* typeMode;
372
374 FXMenuCommand* stopMode;
375
377 FXMenuCommand* personMode;
378
380 FXMenuCommand* personPlanMode;
381
383 FXMenuCommand* containerMode;
384
386 FXMenuCommand* containerPlanMode;
387
388 private:
391
394
397 };
398
401
403 DataMenuCommands(const ModesMenuCommands* modesMenuCommandsParent);
404
406 void buildDataMenuCommands(FXMenuPane* modesMenu);
407
410
413
415 FXMenuCommand* edgeData = nullptr;
416
418 FXMenuCommand* edgeRelData = nullptr;
419
421 FXMenuCommand* TAZRelData = nullptr;
422
424 FXMenuCommand* meanData = nullptr;
425
426 private:
429
432
435 };
436
439
441 void buildModesMenuCommands(FXMenuPane* modesMenu);
442
445
448
451
454
457
458 private:
461
464
467 };
468
471
548
610
663
666
668 void buildUndoRedoMenuCommands(FXMenuPane* editMenu);
669
671 void buildViewMenuCommands(FXMenuPane* editMenu);
672
674 void buildFrontElementMenuCommand(FXMenuPane* editMenu);
675
677 void buildOpenSUMOMenuCommands(FXMenuPane* editMenu);
678
680 FXMenuCommand* undoLastChange;
681
683 FXMenuCommand* redoLastChange;
684
686 FXMenuCommand* openUndolistDialog;
687
690
693
696
698 FXMenuCommand* editViewScheme;
699
701 FXMenuCommand* editViewPort;
702
704 FXMenuCommand* clearFrontElement;
705
708
711
713 FXMenuCommand* openInSUMOGUI;
714
715 private:
718
721
724 };
725
728
731
733 void buildLockMenuCommands(FXMenuPane* editMenu);
734
736 void removeHotkeys();
737
740
743
746
749
752
755
757 void lockAll();
758
760 void unlockAll();
761
763 void editLocking(const GNEAttributeCarrier* AC, const FXbool value);
764
769
772
775
778
781
784
787
790
793
796
799
801
806
809
812
815
818
821
824
827
830
833
835
840
843
846
848
851
852 protected:
854 FXHotKey parseHotKey(const FXwchar character);
855
856 private:
859
862
865 };
866
869
872
874 void buildProcessingMenuCommands(FXMenuPane* processingMenu);
875
878
881
884
887
890
893
895 void showSeparator();
896
898 void hideSeparator();
899
903 FXMenuCommand* computeNetwork = nullptr;
904
906 FXMenuCommand* computeNetworkVolatile = nullptr;
907
909 FXMenuCommand* cleanJunctions = nullptr;
910
912 FXMenuCommand* joinJunctions = nullptr;
913
915 FXMenuCommand* clearInvalidCrossings = nullptr;
916
919
921
925 FXMenuCommand* computeDemand = nullptr;
926
928 FXMenuCommand* cleanRoutes = nullptr;
929
931 FXMenuCommand* joinRoutes = nullptr;
932
934 FXMenuCommand* adjustPersonPlans = nullptr;
935
937 FXMenuCommand* clearInvalidDemandElements = nullptr;
939
942
944
946 FXMenuCommand* optionMenus = nullptr;
947
948 private:
951
953 FXMenuSeparator* myOptionsSeparator = nullptr;
954
956 FXMenuSeparator* mySeparatorCheckBox = nullptr;
957
960
963 };
964
967
970
972 void buildLocateMenuCommands(FXMenuPane* locateMenu);
973
974 private:
977
980
983 };
984
987
990
993
995 void buildTools(FXMenuPane* toolsMenu, const std::map<std::string, FXMenuPane*>& menuPaneToolMaps);
996
998 long showTool(FXObject* menuCommand) const;
999
1001 long showNetgenerateDialog() const;
1002
1004 long runToolDialog(FXObject* menuCommand) const;
1005
1007 long postProcessing(FXObject* menuCommand) const;
1008
1010 long runNetgenerateDialog(const OptionsCont* netgenerateOptions) const;
1011
1012 private:
1014 std::vector<GNEPythonTool*> myPythonTools;
1015
1018
1021
1024
1027
1030
1033
1036 };
1037
1040
1043
1045 void buildWindowsMenuCommands(FXMenuPane* windowsMenu, FXStatusBar* statusbar, GUIMessageWindow* messageWindow);
1046
1047 private:
1050
1053
1056 };
1057
1060
1063
1065 void buildHelpMenuCommands(FXMenuPane* helpMenu);
1066
1067 private:
1070
1073
1076 };
1077
1080
1083
1085 void buildSupermodeCommands(FXMenuPane* editMenu);
1086
1088 void showSupermodeCommands();
1089
1091 void hideSupermodeCommands();
1092
1094 FXMenuCommand* networkMode;
1095
1097 FXMenuCommand* demandMode;
1098
1100 FXMenuCommand* dataMode;
1101
1102 private:
1105
1108
1111 };
1112
1115
1116 public:
1118 GNESumoConfigHandler(OptionsCont& sumoOptions, const std::string& file);
1119
1121 bool loadSumoConfig();
1122
1123 private:
1126
1128 const std::string myFile;
1129 };
1130
1133
1134 public:
1136 GNENeteditConfigHandler(const std::string& file);
1137
1139 bool loadNeteditConfig();
1140
1141 private:
1143 const std::string myFile;
1144 };
1145
1147 static bool toggleEditOptionsNetwork(GNEViewNet* viewNet, const MFXCheckableButton* menuCheck,
1148 const int numericalKeyPressed, FXObject* obj, FXSelector sel);
1149
1151 static bool toggleEditOptionsDemand(GNEViewNet* viewNet, const MFXCheckableButton* menuCheck,
1152 const int numericalKeyPressed, FXObject* obj, FXSelector sel);
1153
1155 static bool toggleEditOptionsData(GNEViewNet* viewNet, const MFXCheckableButton* menuCheck,
1156 const int numericalKeyPressed, FXObject* obj, FXSelector sel);
1157
1159 static bool stringEndsWith(const std::string& str, const std::string& suffix);
1160
1162 static std::string openFileDialog(FXWindow* window, bool save, bool multi);
1163
1165 static std::string openNetworkFileDialog(FXWindow* window, bool save, bool multi = false);
1166
1168 static std::string openNetconvertFileDialog(FXWindow* window);
1169
1171 static std::string savePlainXMLFileDialog(FXWindow* window);
1172
1174 static std::string saveJoinedJunctionsFileDialog(FXWindow* window);
1175
1177 static std::string saveToolLog(FXWindow* window);
1178
1180 static std::string openOSMFileDialog(FXWindow* window);
1181
1183 static std::string openNeteditConfigFileDialog(FXWindow* window, bool save);
1184
1186 static std::string openSumoConfigFileDialog(FXWindow* window, bool save, bool multi = false);
1187
1189 static std::string openTLSFileDialog(FXWindow* window, bool save);
1190
1192 static std::string openEdgeTypeFileDialog(FXWindow* window, bool save);
1193
1195 static std::string openAdditionalFileDialog(FXWindow* window, bool save, bool multi = false);
1196
1198 static std::string openRouteFileDialog(FXWindow* window, bool save, bool multi = false);
1199
1201 static std::string openDataFileDialog(FXWindow* window, bool save, bool multi = false);
1202
1204 static std::string openMeanDataDialog(FXWindow* window, bool save, bool multi = false);
1205
1207 static std::string openOptionFileDialog(FXWindow* window, bool save);
1208
1209private:
1211 static std::string openFileDialog(FXWindow* window, const std::string title, GUIIcon icon, const std::string patternList, bool save, bool multi = false);
1212
1215
1218};
GUIIcon
An enumeration of icons used by the gui applications.
Definition GUIIcons.h:33
The main window of Netedit.
A NBNetBuilder extended by visualisation and editing capabilities.
Definition GNENet.h:42
Dialog for netgenerate tool dialog.
Dialog for python tool dialog.
Abstract dialog for tools.
Abstract dialog for tools.
Dialog for edit rerouters.
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 GNEApplicationWindows
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 GNEApplicationWindows
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 GNEApplicationWindows
MFXMenuCheckIcon * menuCheckShowTAZElements
menu check to show TAZ elements
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 * 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
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(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.
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 datadata.
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 GNEApplicationWindows
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 GNEApplicationWindows
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 & 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 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
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.
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.
const ModesMenuCommands * myModesMenuCommandsParent
reference to ModesMenuCommands
SupermodeMenuCommands & operator=(const SupermodeMenuCommands &)=delete
Invalidated assignment operator.
SupermodeMenuCommands(const SupermodeMenuCommands &)=delete
Invalidated copy constructor.
ModesMenuCommands & operator=(const ModesMenuCommands &)=delete
Invalidated assignment operator.
CommonMenuCommands commonMenuCommands
Common Menu Commands.
GNEApplicationWindow * myGNEApp
pointer to current GNEApplicationWindows
SupermodeMenuCommands supermodeMenuCommands
Supermodes Menu Commands.
void buildModesMenuCommands(FXMenuPane *modesMenu)
build modes menu commands
DemandMenuCommands demandMenuCommands
Demand Menu Commands.
ModesMenuCommands(const ModesMenuCommands &)=delete
Invalidated copy constructor.
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(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 GNEApplicationWindows
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 * 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
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 GNEApplicationWindows
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 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 std::string openRouteFileDialog(FXWindow *window, bool save, bool multi=false)
open route file dialog
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 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 bool toggleEditOptionsDemand(GNEViewNet *viewNet, const MFXCheckableButton *menuCheck, const int numericalKeyPressed, FXObject *obj, FXSelector sel)
toggle edit options Demand menu commands (called in GNEApplicationWindow::onCmdToggleEditOptions)
static std::string saveJoinedJunctionsFileDialog(FXWindow *window)
open joined junctions file dialog
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)
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 openSumoConfigFileDialog(FXWindow *window, bool save, bool multi=false)
open SUMO config file dialog
static std::string openFileDialog(FXWindow *window, bool save, bool multi)
open general 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