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-2026 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
30#include <utils/geom/Position.h>
36
37#include "GNEViewNetHelper.h"
38
39// ===========================================================================
40// class declarations
41// ===========================================================================
42
44class FileBucket;
45class GNENet;
47class GNEPythonTool;
51class GNEViewNet;
53
54// ===========================================================================
55// class definition
56// ===========================================================================
57
59
61 struct ToolbarsGrip {
62
64 ToolbarsGrip(GNEApplicationWindow* applicationWindow);
65
68
71
74
76 FXMenuBar* menu = nullptr;
77
79 FXMenuBar* superModes = nullptr;
80
82 FXMenuBar* saveElements = nullptr;
83
85 FXMenuBar* timeSwitch = nullptr;
86
88 FXMenuBar* navigation = nullptr;
89
91 FXMenuBar* modes = nullptr;
92
94 FXMenuBar* intervalBar = nullptr;
95
96 private:
99
101 FXToolBarShell* myPythonToolBarShellMenu = nullptr;
102
104 FXToolBarShell* myPythonToolBarShellSuperModes = nullptr;
105
107 FXToolBarShell* myPythonToolBarShellSaveElements = nullptr;
108
110 FXToolBarShell* myPythonToolBarShellTimeFormat = nullptr;
111
113 FXToolBarShell* myPythonToolBarShellNavigation = nullptr;
114
116 FXToolBarShell* myPythonToolBarShellModes = nullptr;
117
119 FXToolBarShell* myPythonToolBarShellIntervalBar = nullptr;
120
122 ToolbarsGrip(const ToolbarsGrip&) = delete;
123
126 };
127
129 struct MenuBarFile {
130
132 MenuBarFile(GNEApplicationWindow* applicationWindow);
133
135 void buildRecentNetworkFiles(FXMenuPane* fileMenu, FXMenuPane* fileMenuRecentNetworkFiles);
136
138 void buildRecentConfigFiles(FXMenuPane* fileMenu, FXMenuPane* fileMenuRecentConfigFiles);
139
142
145
146 private:
149
151 MenuBarFile(const MenuBarFile&) = delete;
152
155 };
156
159
161 FileMenuCommands(GNEApplicationWindow* applicationWindow);
162
164 void buildFileMenuCommands(FXMenuPane* fileMenu, FXMenuPane* fileMenuNEEDITConfig, FXMenuPane* fileMenuSumoConfig,
165 FXMenuPane* fileMenuTLS, FXMenuPane* fileMenuEdgeTypes, FXMenuPane* fileMenuAdditionals,
166 FXMenuPane* fileMenuDemandElements, FXMenuPane* fileMenuDataElements,
167 FXMenuPane* fileMenuMeanDataElements);
168
170 void enableMenuCascades();
171
173 void disableMenuCascades();
174
176 void setDefaultView();
177
179 void setJuPedSimView();
180
182 FXMenuCheck* menuCheckAllowUndoRedoLoading = nullptr;
183
184 private:
186 void buildNeteditConfigSection(FXMenuPane* menuPane);
187
189 void buildSumoConfigSection(FXMenuPane* menuPane);
190
192 void buildTrafficLightSection(FXMenuPane* menuPane);
193
195 void buildEdgeTypeSection(FXMenuPane* menuPane);
196
198 void buildAdditionalSection(FXMenuPane* menuPane);
199
201 void buildDemandSection(FXMenuPane* menuPane);
202
204 void buildDataSection(FXMenuPane* menuPane);
205
207 void buildMeanDataSection(FXMenuPane* menuPane);
208
211
213 FXMenuCascade* myNeteditConfigMenuCascade = nullptr;
214
216 FXMenuCascade* mySumoConfigMenuCascade = nullptr;
217
219 FXMenuCascade* myTLSMenuCascade = nullptr;
220
222 FXMenuCascade* myEdgeTypesMenuCascade = nullptr;
223
225 FXMenuCascade* myAdditionalMenuCascade = nullptr;
226
228 FXMenuCascade* myDemandMenuCascade = nullptr;
229
231 FXMenuCascade* myDataMenuCascade = nullptr;
232
234 FXMenuCascade* myMeanDataMenuCascade = nullptr;
235
238
241 };
242
245
248
250 CommonMenuCommands(const ModesMenuCommands* modesMenuCommandsParent);
251
253 void buildCommonMenuCommands(FXMenuPane* modesMenu);
254
256 FXMenuCommand* deleteMode = nullptr;
257
259 FXMenuCommand* inspectMode = nullptr;
260
262 FXMenuCommand* selectMode = nullptr;
263
264 private:
267
270
273 };
274
277
279 NetworkMenuCommands(const ModesMenuCommands* modesMenuCommandsParent);
280
282 void buildNetworkMenuCommands(FXMenuPane* modesMenu);
283
286
289
291 FXMenuCommand* createEdgeMode = nullptr;
292
294 FXMenuCommand* moveMode = nullptr;
295
297 FXMenuCommand* connectMode = nullptr;
298
300 FXMenuCommand* prohibitionMode = nullptr;
301
303 FXMenuCommand* TLSMode = nullptr;
304
306 FXMenuCommand* additionalMode = nullptr;
307
309 FXMenuCommand* crossingMode = nullptr;
310
312 FXMenuCommand* TAZMode = nullptr;
313
315 FXMenuCommand* shapeMode = nullptr;
316
318 FXMenuCommand* wireMode = nullptr;
319
321 FXMenuCommand* decalMode = nullptr;
322
323 private:
326
329
332 };
333
336
338 DemandMenuCommands(const ModesMenuCommands* modesMenuCommandsParent);
339
341 void buildDemandMenuCommands(FXMenuPane* modesMenu);
342
345
348
350 FXMenuCommand* moveMode = nullptr;
351
353 FXMenuCommand* routeMode = nullptr;
354
356 FXMenuCommand* routeDistributionMode = nullptr;
357
359 FXMenuCommand* vehicleMode = nullptr;
360
362 FXMenuCommand* typeMode = nullptr;
363
365 FXMenuCommand* typeDistributionMode = nullptr;
366
368 FXMenuCommand* stopMode = nullptr;
369
371 FXMenuCommand* personMode = nullptr;
372
374 FXMenuCommand* personPlanMode = nullptr;
375
377 FXMenuCommand* containerMode = nullptr;
378
380 FXMenuCommand* containerPlanMode = nullptr;
381
382 private:
385
388
391 };
392
395
397 DataMenuCommands(const ModesMenuCommands* modesMenuCommandsParent);
398
400 void buildDataMenuCommands(FXMenuPane* modesMenu);
401
404
407
409 FXMenuCommand* edgeData = nullptr;
410
412 FXMenuCommand* edgeRelData = nullptr;
413
415 FXMenuCommand* TAZRelData = nullptr;
416
418 FXMenuCommand* meanData = nullptr;
419
420 private:
423
426
429 };
430
432 ModesMenuCommands(GNEApplicationWindow* applicationWindow);
433
435 void buildModesMenuCommands(FXMenuPane* modesMenu);
436
438 void setDefaultView(Supermode supermode);
439
441 void setJuPedSimView(Supermode supermode);
442
445
448
451
454
455 private:
458
461
464 };
465
468
471
473 NetworkViewOptions(GNEApplicationWindow* applicationWindow);
474
476 void buildNetworkViewOptionsMenuChecks(FXMenuPane* editMenu);
477
480
482 void updateShortcuts();
483
486
489
492
495
498
501
504
507
510
513
516
519
522
525
528
531
534
537
539 FXMenuSeparator* separator = nullptr;
540
541 private:
544
547
550 };
551
613
666
668 EditMenuCommands(GNEApplicationWindow* applicationWindow);
669
671 void buildUndoRedoMenuCommands(FXMenuPane* editMenu);
672
674 void buildViewMenuCommands(FXMenuPane* editMenu);
675
677 void buildFrontElementMenuCommand(FXMenuPane* editMenu);
678
680 void buildOpenSUMOMenuCommands(FXMenuPane* editMenu);
681
683 FXMenuCommand* undoLastChange = nullptr;
684
686 FXMenuCommand* redoLastChange = nullptr;
687
689 FXMenuCommand* openUndolistDialog = nullptr;
690
692 FXMenuCheck* menuCheckAllowUndoRedo = nullptr;
693
696
699
702
704 FXMenuCommand* editViewScheme = nullptr;
705
707 FXMenuCommand* editViewPort = nullptr;
708
710 FXMenuCommand* toggleFrontElement = nullptr;
711
713 FXMenuCheck* loadAdditionalsInSUMOGUI = nullptr;
714
716 FXMenuCheck* loadDemandInSUMOGUI = nullptr;
717
719 FXMenuCommand* openInSUMOGUI = nullptr;
720
721 private:
724
727
730 };
731
734
736 LockMenuCommands(GNEApplicationWindow* applicationWindow);
737
739 void buildLockMenuCommands(FXMenuPane* editMenu);
740
742 void removeHotkeys();
743
746
749
752
755
758
761
763 void lockAll();
764
766 void unlockAll();
767
769 void editLocking(const GNEAttributeCarrier* AC, const FXbool value);
770
775
778
781
784
787
790
793
796
799
802
805
808
811
813
818
821
824
827
830
833
836
839
842
845
847
852
855
858
860
863
864 protected:
866 FXHotKey parseHotKey(const FXwchar character);
867
868 private:
871
874
877 };
878
881
884
886 void buildProcessingMenuCommands(FXMenuPane* processingMenu);
887
890
893
896
899
902
905
907 void showSeparator();
908
910 void hideSeparator();
911
915 FXMenuCommand* computeNetwork = nullptr;
916
918 FXMenuCommand* computeNetworkVolatile = nullptr;
919
921 FXMenuCommand* cleanJunctions = nullptr;
922
924 FXMenuCommand* joinJunctions = nullptr;
925
927 FXMenuCommand* clearInvalidCrossings = nullptr;
928
931
933
937 FXMenuCommand* computeDemand = nullptr;
938
940 FXMenuCommand* cleanRoutes = nullptr;
941
943 FXMenuCommand* joinRoutes = nullptr;
944
946 FXMenuCommand* adjustPersonPlans = nullptr;
947
949 FXMenuCommand* clearInvalidDemandElements = nullptr;
951
954
956
958 FXMenuCommand* optionMenus = nullptr;
959
960 private:
963
965 FXMenuSeparator* myOptionsSeparator = nullptr;
966
968 FXMenuSeparator* mySeparatorCheckBox = nullptr;
969
972
975 };
976
979
981 LocateMenuCommands(GNEApplicationWindow* applicationWindow);
982
984 void buildLocateMenuCommands(FXMenuPane* locateMenu);
985
986 private:
989
992
995 };
996
999
1001 ToolsMenuCommands(GNEApplicationWindow* applicationWindow);
1002
1005
1007 void buildTools(FXMenuPane* toolsMenu, const std::map<std::string, FXMenuPane*>& menuPaneToolMaps);
1008
1010 long showTool(FXObject* menuCommand);
1011
1013 long runToolDialog(FXObject* menuCommand) const;
1014
1016 long postProcessing(FXObject* menuCommand) const;
1017
1018 private:
1020 std::vector<GNEPythonTool*> myPythonTools;
1021
1024
1027
1030 };
1031
1034
1036 WindowsMenuCommands(GNEApplicationWindow* applicationWindow);
1037
1039 void buildWindowsMenuCommands(FXMenuPane* windowsMenu, FXStatusBar* statusbar, GUIMessageWindow* messageWindow);
1040
1041 private:
1044
1047
1050 };
1051
1054
1056 HelpMenuCommands(GNEApplicationWindow* applicationWindow);
1057
1059 void buildHelpMenuCommands(FXMenuPane* helpMenu);
1060
1061 private:
1064
1067
1070 };
1071
1074
1076 SupermodeCommands(GNEApplicationWindow* applicationWindow);
1077
1079 void buildSupermodeCommands(FXMenuPane* editMenu);
1080
1082 void showSupermodeCommands();
1083
1085 void setDefaultView();
1086
1088 void setJuPedSimView();
1089
1091 FXMenuCommand* networkMode = nullptr;
1092
1094 FXMenuCommand* demandMode = nullptr;
1095
1097 FXMenuCommand* dataMode = nullptr;
1098
1099 private:
1102
1105
1108 };
1109
1112
1113 public:
1115 GNESumoConfigHandler(GNEApplicationWindow* applicationWindow, const std::string& sumoConfigFile);
1116
1118 bool loadSumoConfig();
1119
1120 private:
1123
1125 const std::string mySumoConfigFile;
1126
1129
1132 };
1133
1136
1137 public:
1139 GNENetconvertConfigHandler(const std::string& file);
1140
1142 bool loadNetconvertConfig();
1143
1144 private:
1146 const std::string myNetconvertConfigFile;
1147
1150
1153 };
1154
1157
1158 public:
1160 GNENeteditConfigHandler(GNEApplicationWindow* applicationWindow, const std::string& neteditConfigFile);
1161
1163 bool loadNeteditConfig();
1164
1165 private:
1168
1170 const std::string myNeteditConfigFile;
1171
1174
1177 };
1178
1181
1182 public:
1184 FileBucketHandler(GNEApplicationWindow* applicationWindow, OptionsCont& neteditOptions, OptionsCont& sumoOptions);
1185
1188
1190 void registerAC(const GNEAttributeCarrier* AC);
1191
1193 void unregisterAC(const GNEAttributeCarrier* AC);
1194
1196 FileBucket* updateAC(const GNEAttributeCarrier* AC, const std::string& filename);
1197
1199 bool checkFilename(const GNEAttributeCarrier* AC, const std::string& filename) const;
1200
1202 std::string getConfigDirectory() const;
1203
1205 std::string getConfigFilePrefix(const std::string& sufix) const;
1206
1209
1211 FileBucket* getDefaultBucket(const FileBucket::Type type) const;
1212
1214 FileBucket* getBucket(const FileBucket::Type type, const std::string& filename, const bool create);
1215
1217 const std::vector<FileBucket*>& getFileBuckets(const FileBucket::Type type) const;
1218
1220
1223
1225 std::string getDefaultFilename(const FileBucket::Type type) const;
1226
1228 std::string getDefaultFolder(const FileBucket::Type type) const;
1229
1231 void setDefaultFilenameFile(const FileBucket::Type type, const std::string& filename);
1232
1234 bool isFilenameDefined(const FileBucket::Type type) const;
1235
1237 void resetDefaultFilenames();
1238
1240
1242 void updateOptions();
1243
1244 private:
1246 std::string parseFilenames(const std::vector<FileBucket::Type> types) const;
1247
1249 void removeEmptyBuckets();
1250
1252 std::string getPrefix(FileBucket::Type type, const std::vector<std::string> invalidExtensions) const;
1253
1256
1259
1262
1264 std::map<FileBucket::Type, std::vector<FileBucket*> > myBuckets;
1265
1268
1271 };
1272
1274 static bool toggleEditOptionsNetwork(GNEViewNet* viewNet, const MFXCheckableButton* menuCheck,
1275 FXObject* obj, FXSelector sel);
1276
1278 static bool toggleEditOptionsDemand(GNEViewNet* viewNet, const MFXCheckableButton* menuCheck,
1279 FXObject* obj, FXSelector sel);
1280
1282 static bool toggleEditOptionsData(GNEViewNet* viewNet, const MFXCheckableButton* menuCheck,
1283 FXObject* obj, FXSelector sel);
1284
1286 static bool stringEndsWith(const std::string& str, const std::string& suffix);
1287
1288private:
1291
1294};
Supermode
@brie enum for supermodes
Type
Files that this bucket can save.
Definition FileBucket.h:34
std::string parseFilenames(const std::vector< FileBucket::Type > types) const
parse filenames
std::string getConfigDirectory() const
get current config directory (if we defined a netedit, sumo or netconvert config)
void resetDefaultFilenames()
brief set default files for all buckets
std::string getDefaultFilename(const FileBucket::Type type) const
functions related with filenames
OptionsCont & mySumoOptions
reference to sumo options
const std::vector< FileBucket * > & getFileBuckets(const FileBucket::Type type) const
get vector with all fileBuckets related with the given file type
std::map< FileBucket::Type, std::vector< FileBucket * > > myBuckets
map with the buckets
bool isFilenameDefined(const FileBucket::Type type) const
check if at least we have an additional file defined
void unregisterAC(const GNEAttributeCarrier *AC)
delete AC
std::string getConfigFilePrefix(const std::string &sufix) const
get current config patter (if we defined a netedit, sumo or netconvert config)
std::string getDefaultFolder(const FileBucket::Type type) const
get default folder associated with the given tipe
FileBucket * getDefaultBucket(const FileBucket::Type type) const
functions related with buckets
FileBucketHandler(const FileBucketHandler &)=delete
Invalidated copy constructor.
std::string getPrefix(FileBucket::Type type, const std::vector< std::string > invalidExtensions) const
get prefix of the given filename
void registerAC(const GNEAttributeCarrier *AC)
register AC
GNEApplicationWindow * myApplicationWindow
pointer to application window
FileBucketHandler & operator=(const FileBucketHandler &)=delete
Invalidated assignment operator.
FileBucket * updateAC(const GNEAttributeCarrier *AC, const std::string &filename)
update filename vinculated with this AC
OptionsCont & myNeteditOptions
reference to netedit options
bool checkFilename(const GNEAttributeCarrier *AC, const std::string &filename) const
check if the given filename can be assigned to the given AC
FileBucket * getBucket(const FileBucket::Type type, const std::string &filename, const bool create)
get bucket
void setDefaultFilenameFile(const FileBucket::Type type, const std::string &filename)
brief set default additional file
GNENetconvertConfigHandler(const GNENetconvertConfigHandler &)=delete
Invalidated copy constructor.
GNENetconvertConfigHandler & operator=(const GNENetconvertConfigHandler &)=delete
Invalidated assignment operator.
GNENeteditConfigHandler & operator=(const GNENeteditConfigHandler &)=delete
Invalidated assignment operator.
GNENeteditConfigHandler(const GNENeteditConfigHandler &)=delete
Invalidated copy constructor.
GNEApplicationWindow * myApplicationWindow
pointer to current GNEApplicationWindow
GNESumoConfigHandler(const GNESumoConfigHandler &)=delete
Invalidated copy constructor.
GNESumoConfigHandler & operator=(const GNESumoConfigHandler &)=delete
Invalidated assignment operator.
GNEApplicationWindow * myApplicationWindow
pointer to current GNEApplicationWindow
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
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
GNEApplicationWindow * myApplicationWindow
pointer to current GNEApplicationWindow
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
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
GNEApplicationWindow * myApplicationWindow
pointer to current GNEApplicationWindow
struct used to group all variables related to view options in supermode Network
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
GNEApplicationWindow * myApplicationWindow
pointer to current GNEApplicationWindow
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 * menuCheckShowPolygonSymbols
check checkable to show the start and end symbols in polygons
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
MFXMenuCheckIcon * menuCheckDrawFilledWalkingAreas
check checkable to show draw filled walking areas
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.
FXMenuCheck * loadAdditionalsInSUMOGUI
menu check for load additionals in SUMO GUI
FXMenuCommand * undoLastChange
FXMenuCommand for undo last change.
FXMenuCommand * toggleFrontElement
FXMenuCommand for toggle front element.
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
GNEApplicationWindow * myApplicationWindow
pointer to current GNEApplicationWindow
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
GNEApplicationWindow * myApplicationWindow
pointer to current GNEApplicationWindow
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
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 * myApplicationWindow
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 * myApplicationWindow
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
GNEApplicationWindow * myApplicationWindow
pointer to current GNEApplicationWindow
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
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
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.
GNEApplicationWindow * myApplicationWindow
pointer to current GNEApplicationWindow
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.
void buildModesMenuCommands(FXMenuPane *modesMenu)
build modes menu commands
DemandMenuCommands demandMenuCommands
Demand Menu Commands.
void setDefaultView(Supermode supermode)
set default view
GNEApplicationWindow * myApplicationWindow
pointer to current GNEApplicationWindow
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.
GNEApplicationWindow * myApplicationWindow
pointer to current GNEApplicationWindow
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.
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.
GNEApplicationWindow * myApplicationWindow
pointer to current GNEApplicationWindow
FXMenuCommand * demandMode
FXMenuCommand for demand supermode.
void buildSupermodeCommands(FXMenuPane *editMenu)
build menu commands
SupermodeCommands & operator=(const SupermodeCommands &)=delete
Invalidated assignment operator.
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...)
FXToolBarShell * myPythonToolBarShellNavigation
menu bar drag for navigation (Zoom, coloring...)
ToolbarsGrip & operator=(const ToolbarsGrip &)=delete
Invalidated assignment operator.
GNEApplicationWindow * myApplicationWindow
pointer to current GNEApplicationWindow
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
void buildTools(FXMenuPane *toolsMenu, const std::map< std::string, FXMenuPane * > &menuPaneToolMaps)
build tools (and menu commands)
ToolsMenuCommands(const ToolsMenuCommands &)=delete
Invalidated copy constructor.
GNEApplicationWindow * myApplicationWindow
pointer to current GNEApplicationWindow
std::vector< GNEPythonTool * > myPythonTools
map with python tools
long runToolDialog(FXObject *menuCommand) const
run tool dialog
WindowsMenuCommands & operator=(const WindowsMenuCommands &)=delete
Invalidated assignment operator.
GNEApplicationWindow * myApplicationWindow
pointer to current GNEApplicationWindow
WindowsMenuCommands(const WindowsMenuCommands &)=delete
Invalidated copy constructor.
void buildWindowsMenuCommands(FXMenuPane *windowsMenu, FXStatusBar *statusbar, GUIMessageWindow *messageWindow)
build menu commands
GNEApplicationWindowHelper(const GNEApplicationWindowHelper &)=delete
Invalidated copy constructor.
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 bool toggleEditOptionsNetwork(GNEViewNet *viewNet, const MFXCheckableButton *menuCheck, FXObject *obj, FXSelector sel)
toggle edit options Network menu commands (called in GNEApplicationWindow::onCmdToggleEditOptions)
GNEApplicationWindowHelper & operator=(const GNEApplicationWindowHelper &)=delete
Invalidated assignment operator.