92 FXGLCanvas* share,
GNENet* net,
GNEUndoList* undoList, FXIcon* ic, FXuint opts, FXint x, FXint y, FXint w, FXint h) :
93 GUIGlChildWindow(p, parentWindow, mdimenu, name, parentWindow->getToolbarsGrip().navigation, ic, opts, x, y, w, h),
94 myGNEAppWindows(parentWindow) {
96 myGUIMainWindowParent->addGLChild(
this);
102 myUndoButton =
new MFXButtonTooltip(myGripNavigationToolbar, myGNEAppWindows->getStaticTooltipMenu(),
103 std::string(
"\t") +
TL(
"Undo") + std::string(
"\t") +
TL(
"Undo the last change. (Ctrl+Z)"),
105 myRedoButton =
new MFXButtonTooltip(myGripNavigationToolbar, myGNEAppWindows->getStaticTooltipMenu(),
106 std::string(
"\t") +
TL(
"Redo") + std::string(
"\t") +
TL(
"Redo the last change. (Ctrl+Y)"),
113 myComputePathManagerButton =
new MFXButtonTooltip(myGripNavigationToolbar, myGNEAppWindows->getStaticTooltipMenu(),
114 std::string(
"\t") +
TL(
"Compute path manager") + std::string(
"\t") +
TL(
"Compute path manager."),
127 FXComposite* tmp =
new FXComposite(
this);
130 GNEViewNet* viewNet =
new GNEViewNet(tmp, myViewArea, *myGUIMainWindowParent,
this, net, undoList, myGUIMainWindowParent->getGLVisual(), share);
133 myGNEAppWindows->getToolbarsGrip().buildMenuToolbarsGrip();
139 myCommonFrames.buildCommonFrames(
this, viewNet);
140 myNetworkFrames.buildNetworkFrames(
this, viewNet);
141 myDemandFrames.buildDemandFrames(
this, viewNet);
142 myDataFrames.buildDataFrames(
this, viewNet);
148 onCmdUpdateFrameAreaWidth(
nullptr, 0,
nullptr);
154 myView->buildViewToolBars(
this);
392 if (chooserDialog ==
nullptr) {
455 FXFileDialog opendialog(
this,
TL(
"Save Snapshot"));
457 opendialog.setSelectMode(SELECTFILE_ANY);
458 opendialog.setPatternList(
"All Image Files (*.gif, *.bmp, *.xpm, *.pcx, *.ico, *.rgb, *.xbm, *.tga, *.png, *.jpg, *.jpeg, *.tif, *.tiff, *.ps, *.eps, *.pdf, *.svg, *.tex, *.pgf)\n"
459 "GIF Image (*.gif)\nBMP Image (*.bmp)\nXPM Image (*.xpm)\nPCX Image (*.pcx)\nICO Image (*.ico)\n"
460 "RGB Image (*.rgb)\nXBM Image (*.xbm)\nTARGA Image (*.tga)\nPNG Image (*.png)\n"
461 "JPEG Image (*.jpg, *.jpeg)\nTIFF Image (*.tif, *.tiff)\n"
462 "Postscript (*.ps)\nEncapsulated Postscript (*.eps)\nPortable Document Format (*.pdf)\n"
463 "Scalable Vector Graphics (*.svg)\nLATEX text strings (*.tex)\nPortable LaTeX Graphics (*.pgf)\n"
472 std::string file = opendialog.getFilename().text();
473 if (file.find(
".") == std::string::npos) {
475 WRITE_MESSAGE(
TL(
"No file extension was specified - saving Snapshot as PNG."));
480 WRITE_DEBUG(
"Opening FXMessageBox 'error saving snapshot'");
482 FXMessageBox::error(
this, MBOX_OK,
TL(
"Saving failed."),
"%s", error.c_str());
484 WRITE_DEBUG(
"Closed FXMessageBox 'error saving snapshot' with 'OK'");
505 std::vector<GNEAttributeCarrier*> ACsToLocate;
506 int messageId = FXSELID(sel);
508 std::string locateTitle;
512 locateTitle =
TL(
"Junction Chooser");
515 ACsToLocate.push_back(junction.second);
520 locateTitle =
TL(
"Edge Chooser");
523 ACsToLocate.push_back(edge.second);
528 locateTitle =
TL(
"WalkingArea Chooser");
531 ACsToLocate.push_back(walkingArea);
536 locateTitle =
TL(
"Vehicle Chooser");
551 ACsToLocate.push_back(vehicle);
555 ACsToLocate.push_back(trip);
559 ACsToLocate.push_back(tripEmbedded);
563 ACsToLocate.push_back(tripJunction);
567 ACsToLocate.push_back(tripTAZ);
571 ACsToLocate.push_back(flow);
575 ACsToLocate.push_back(flowRoute);
579 ACsToLocate.push_back(flowRouteEmbedded);
583 ACsToLocate.push_back(flowJunction);
587 ACsToLocate.push_back(flowTAZ);
593 locateTitle =
TL(
"Person Chooser");
598 ACsToLocate.push_back(person);
602 ACsToLocate.push_back(personFlow);
607 locateTitle =
TL(
"Route Chooser");
610 ACsToLocate.push_back(route);
615 locateTitle =
TL(
"Stop Chooser");
625 ACsToLocate.push_back(stopLane);
629 ACsToLocate.push_back(stopBusStop);
633 ACsToLocate.push_back(stopTrainStop);
637 ACsToLocate.push_back(stopContainerStop);
641 ACsToLocate.push_back(stopChargingStation);
645 ACsToLocate.push_back(stopParkingArea);
651 locateTitle =
TL(
"TLS Chooser");
655 if (junction.second->getNBNode()->getControllingTLS().size() > 0) {
656 ACsToLocate.push_back(junction.second);
662 locateTitle =
TL(
"Additional Chooser");
670 for (
const auto& additional : additionalTag.second) {
671 ACsToLocate.push_back(additional);
677 locateTitle =
TL(
"POI Chooser");
680 ACsToLocate.push_back(
POI);
683 ACsToLocate.push_back(
POI);
686 ACsToLocate.push_back(
POI);
691 locateTitle =
TL(
"Poly Chooser");
694 ACsToLocate.push_back(polygon);
697 ACsToLocate.push_back(taz);
701 throw ProcessError(
"Unknown Message ID in onCmdLocate");
711 *chooserLoc = chooser;
752 inspectorFrame(nullptr),
753 deleteFrame(nullptr),
754 selectorFrame(nullptr),
770 inspectorFrame->hide();
772 selectorFrame->hide();
780 inspectorFrame->setFrameWidth(frameWidth);
781 deleteFrame->setFrameWidth(frameWidth);
782 selectorFrame->setFrameWidth(frameWidth);
783 moveFrame->setFrameWidth(frameWidth);
790 if (inspectorFrame->shown()) {
792 }
else if (deleteFrame->shown()) {
794 }
else if (selectorFrame->shown()) {
796 }
else if (moveFrame->shown()) {
807 if (inspectorFrame->shown()) {
808 return inspectorFrame;
809 }
else if (deleteFrame->shown()) {
811 }
else if (selectorFrame->shown()) {
812 return selectorFrame;
813 }
else if (moveFrame->shown()) {
825 connectorFrame(nullptr),
826 TLSEditorFrame(nullptr),
827 additionalFrame(nullptr),
828 crossingFrame(nullptr),
830 polygonFrame(nullptr),
831 prohibitionFrame(nullptr),
833 createEdgeFrame(nullptr) {
853 connectorFrame->hide();
854 TLSEditorFrame->hide();
855 additionalFrame->hide();
856 crossingFrame->hide();
858 polygonFrame->hide();
859 prohibitionFrame->hide();
861 createEdgeFrame->hide();
868 connectorFrame->setFrameWidth(frameWidth);
869 TLSEditorFrame->setFrameWidth(frameWidth);
870 additionalFrame->setFrameWidth(frameWidth);
871 crossingFrame->setFrameWidth(frameWidth);
872 TAZFrame->setFrameWidth(frameWidth);
873 polygonFrame->setFrameWidth(frameWidth);
874 prohibitionFrame->setFrameWidth(frameWidth);
875 wireFrame->setFrameWidth(frameWidth);
876 createEdgeFrame->setFrameWidth(frameWidth);
883 if (connectorFrame->shown()) {
885 }
else if (TLSEditorFrame->shown()) {
887 }
else if (additionalFrame->shown()) {
889 }
else if (crossingFrame->shown()) {
891 }
else if (TAZFrame->shown()) {
893 }
else if (polygonFrame->shown()) {
895 }
else if (prohibitionFrame->shown()) {
897 }
else if (wireFrame->shown()) {
899 }
else if (createEdgeFrame->shown()) {
910 if (connectorFrame->shown()) {
911 return connectorFrame;
912 }
else if (TLSEditorFrame->shown()) {
913 return TLSEditorFrame;
914 }
else if (additionalFrame->shown()) {
915 return additionalFrame;
916 }
else if (crossingFrame->shown()) {
917 return crossingFrame;
918 }
else if (TAZFrame->shown()) {
920 }
else if (polygonFrame->shown()) {
922 }
else if (prohibitionFrame->shown()) {
923 return prohibitionFrame;
924 }
else if (wireFrame->shown()) {
926 }
else if (createEdgeFrame->shown()) {
927 return createEdgeFrame;
958 vehicleFrame->hide();
960 typeDistributionFrame->hide();
963 personPlanFrame->hide();
964 containerFrame->hide();
965 containerPlanFrame->hide();
972 routeFrame->setFrameWidth(frameWidth);
973 vehicleFrame->setFrameWidth(frameWidth);
974 typeFrame->setFrameWidth(frameWidth);
975 typeDistributionFrame->setFrameWidth(frameWidth);
976 stopFrame->setFrameWidth(frameWidth);
977 personFrame->setFrameWidth(frameWidth);
978 personPlanFrame->setFrameWidth(frameWidth);
979 containerFrame->setFrameWidth(frameWidth);
980 containerPlanFrame->setFrameWidth(frameWidth);
987 if (routeFrame->shown()) {
989 }
else if (vehicleFrame->shown()) {
991 }
else if (typeFrame->shown()) {
993 }
else if (typeDistributionFrame->shown()) {
995 }
else if (stopFrame->shown()) {
997 }
else if (personFrame->shown()) {
999 }
else if (personPlanFrame->shown()) {
1001 }
else if (containerFrame->shown()) {
1003 }
else if (containerPlanFrame->shown()) {
1014 if (routeFrame->shown()) {
1016 }
else if (vehicleFrame->shown()) {
1017 return vehicleFrame;
1018 }
else if (typeFrame->shown()) {
1020 }
else if (typeDistributionFrame->shown()) {
1021 return typeDistributionFrame;
1022 }
else if (stopFrame->shown()) {
1024 }
else if (personFrame->shown()) {
1026 }
else if (personPlanFrame->shown()) {
1027 return personPlanFrame;
1028 }
else if (containerFrame->shown()) {
1029 return containerFrame;
1030 }
else if (containerPlanFrame->shown()) {
1031 return containerPlanFrame;
1056 edgeDataFrame->hide();
1057 edgeRelDataFrame->hide();
1058 TAZRelDataFrame->hide();
1059 meanDataFrame->hide();
1066 edgeDataFrame->setFrameWidth(frameWidth);
1067 edgeRelDataFrame->setFrameWidth(frameWidth);
1068 TAZRelDataFrame->setFrameWidth(frameWidth);
1069 meanDataFrame->setFrameWidth(frameWidth);
1076 if (edgeDataFrame->shown()) {
1078 }
else if (edgeRelDataFrame->shown()) {
1080 }
else if (TAZRelDataFrame->shown()) {
1082 }
else if (meanDataFrame->shown()) {
1093 if (edgeDataFrame->shown()) {
1094 return edgeDataFrame;
1095 }
else if (edgeRelDataFrame->shown()) {
1096 return edgeRelDataFrame;
1097 }
else if (TAZRelDataFrame->shown()) {
1098 return TAZRelDataFrame;
1099 }
else if (meanDataFrame->shown()) {
1100 return meanDataFrame;
1111 ACChooserJunction(nullptr),
1112 ACChooserEdges(nullptr),
1113 ACChooserWalkingAreas(nullptr),
1114 ACChooserVehicles(nullptr),
1115 ACChooserPersons(nullptr),
1116 ACChooserRoutes(nullptr),
1117 ACChooserStops(nullptr),
1118 ACChooserTLS(nullptr),
1119 ACChooserAdditional(nullptr),
1120 ACChooserPOI(nullptr),
1121 ACChooserPolygon(nullptr),
1122 ACChooserProhibition(nullptr),
1123 ACChooserWire(nullptr) {
1129 if (ACChooserJunction) {
1130 delete ACChooserJunction;
1132 if (ACChooserEdges) {
1133 delete ACChooserEdges;
1135 if (ACChooserWalkingAreas) {
1136 delete ACChooserWalkingAreas;
1138 if (ACChooserRoutes) {
1139 delete ACChooserRoutes;
1141 if (ACChooserStops) {
1142 delete ACChooserStops;
1144 if (ACChooserVehicles) {
1145 delete ACChooserVehicles;
1147 if (ACChooserPersons) {
1148 delete ACChooserPersons;
1151 delete ACChooserTLS;
1153 if (ACChooserAdditional) {
1154 delete ACChooserAdditional;
1157 delete ACChooserPOI;
1159 if (ACChooserPolygon) {
1160 delete ACChooserPolygon;
1162 if (ACChooserProhibition) {
1163 delete ACChooserProhibition;
1165 if (ACChooserWire) {
1166 delete ACChooserWire;
FXDEFMAP(GNEViewParent) GNEViewParentMap[]
@ MID_MAKESNAPSHOT
Make snapshot - button.
@ MID_HOTKEY_SHIFT_S_LOCATESTOP
Locate stop - button.
@ MID_HOTKEY_CTRL_Y_REDO
Undo.
@ MID_HOTKEY_CTRL_W_CLOSESIMULATION
Close simulation - ID.
@ MID_HOTKEY_SHIFT_O_LOCATEPOI
Locate poi - button.
@ MID_HOTKEY_SHIFT_A_LOCATEADDITIONAL
Locate additional structure - button.
@ MID_HOTKEY_SHIFT_R_LOCATEROUTE
Locate route - button.
@ MID_HOTKEY_SHIFT_W_LOCATEWALKINGAREA
Locate edge - button.
@ MID_HOTKEY_SHIFT_V_LOCATEVEHICLE
Locate vehicle - button.
@ MID_HOTKEY_SHIFT_L_LOCATEPOLY
Locate polygons - button.
@ MID_HOTKEY_SHIFT_E_LOCATEEDGE
Locate edge - button.
@ MID_GNE_VIEWPARENT_FRAMEAREAWIDTH
Size of frame area updated.
@ MID_HOTKEY_SHIFT_P_LOCATEPERSON
Locate person - button.
@ MID_HOTKEY_SHIFT_J_LOCATEJUNCTION
Locate junction - button.
@ MID_HOTKEY_CTRL_Z_UNDO
Redo.
@ MID_HOTKEY_SHIFT_T_LOCATETLS
Locate TLS - button.
@ MID_GNE_TOOLBAREDIT_COMPUTEPATHMANAGER
compute path manager
#define GUIDesignButtonToolbar
little button with icon placed in navigation toolbar
#define GUIDesignFrameArea
#define GUIDesignVerticalSeparator
vertical separator
#define GUIDesignSplitter
#define GUIDesignViewnArea
design for view area
#define GUIDesignFramesAreaDefaultWidth
define the default frames area width
FXString gCurrentFolder
The folder used as last.
#define WRITE_MESSAGE(msg)
@ GNE_TAG_TRIP_JUNCTIONS
a trip between junctions
@ GNE_TAG_TRIP_TAZS
a single trip definition that uses TAZs
@ GNE_TAG_STOP_PARKINGAREA
stop placed over a parking area
@ SUMO_TAG_TAZ
a traffic assignment zone
@ GNE_TAG_STOP_BUSSTOP
stop placed over a busStop
@ SUMO_TAG_POI
begin/end of the description of a Point of interest
@ SUMO_TAG_VEHICLE
description of a vehicle
@ GNE_TAG_FLOW_ROUTE
a flow definition using a route instead of a from-to edges route
@ GNE_TAG_FLOW_JUNCTIONS
a flow between junctions
@ GNE_TAG_POIGEO
Point of interest over view with GEO attributes.
@ GNE_TAG_STOP_CONTAINERSTOP
stop placed over a containerStop
@ GNE_TAG_FLOW_WITHROUTE
description of a vehicle with an embedded route
@ SUMO_TAG_FLOW
a flow definition using from and to edges or a route
@ GNE_TAG_FLOW_TAZS
a flow between TAZs
@ SUMO_TAG_ROUTE
begin/end of the description of a route
@ SUMO_TAG_POLY
begin/end of the description of a polygon
@ GNE_TAG_VEHICLE_WITHROUTE
description of a vehicle with an embedded route
@ GNE_TAG_POILANE
Point of interest over Lane.
@ GNE_TAG_STOP_LANE
stop placed over a lane
@ GNE_TAG_STOP_TRAINSTOP
stop placed over a trainStop
@ GNE_TAG_STOP_CHARGINGSTATION
stop placed over a charging station
@ SUMO_TAG_TRIP
a single trip definition (used by router)
The main window of Netedit.
GNEUndoList * getUndoList()
get pointer to undoList
GNEApplicationWindowHelper::ToolbarsGrip & getToolbarsGrip()
get ToolbarsGrip
const std::map< SumoXMLTag, std::set< GNEDemandElement * > > & getDemandElements() const
get demand elements
const std::map< std::string, GNEEdge * > & getEdges() const
map with the ID and pointer to edges of net
const std::map< SumoXMLTag, std::set< GNEAdditional * > > & getAdditionals() const
get additionals
const std::map< std::string, GNEJunction * > & getJunctions() const
get junctions
const std::set< GNEWalkingArea * > & getWalkingAreas() const
get walkingAreas
A NBNetBuilder extended by visualisation and editing capabilities.
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
long onUpdUndo(FXObject *, FXSelector, void *)
event after Undo
long onUpdRedo(FXObject *, FXSelector, void *)
event after Redo
GNENet * getNet() const
get the net object
GNEDialogACChooser * ACChooserWalkingAreas
pointer to ACChooser dialog used for locate walkingareas
GNEDialogACChooser * ACChooserStops
pointer to ACChooser dialog used for locate stops
GNEDialogACChooser * ACChooserEdges
pointer to ACChooser dialog used for locate edges
GNEDialogACChooser * ACChooserPolygon
pointer to ACChooser dialog used for locate Polygons
GNEDialogACChooser * ACChooserPOI
pointer to ACChooser dialog used for locate POIs
GNEDialogACChooser * ACChooserRoutes
pointer to ACChooser dialog used for locate routes
GNEDialogACChooser * ACChooserJunction
pointer to ACChooser dialog used for locate junctions
GNEDialogACChooser * ACChooserWire
pointer to ACChooser dialog used for locate Wires
GNEDialogACChooser * ACChooserVehicles
pointer to ACChooser dialog used for locate vehicles
GNEDialogACChooser * ACChooserTLS
pointer to ACChooser dialog used for locate TLSs
GNEDialogACChooser * ACChooserProhibition
pointer to ACChooser dialog used for locate Prohibitions
GNEDialogACChooser * ACChooserPersons
pointer to ACChooser dialog used for locate persons
GNEDialogACChooser * ACChooserAdditional
pointer to ACChooser dialog used for locate additional
CommonFrames()
constructor
GNEMoveFrame * moveFrame
frame for move elements
GNEFrame * getCurrentShownFrame() const
get current common frame show
bool isCommonFrameShown() const
return true if at least there is a common frame shown
GNEDeleteFrame * deleteFrame
frame for delete elements
void buildCommonFrames(GNEViewParent *viewParent, GNEViewNet *viewNet)
build common frames
GNESelectorFrame * selectorFrame
frame for select elements
void hideCommonFrames()
hide common frames
GNEInspectorFrame * inspectorFrame
frame for inspect elements
void setCommonFramesWidth(int frameWidth)
set new width in all common frames
GNEEdgeDataFrame * edgeDataFrame
frame for DATA_EDGEDATA
void setDataFramesWidth(int frameWidth)
set new width in all data frames
GNEFrame * getCurrentShownFrame() const
get current data frame show
GNETAZRelDataFrame * TAZRelDataFrame
frame for DATA_TAZRELDATA
GNEEdgeRelDataFrame * edgeRelDataFrame
frame for DATA_EDGERELDATA
bool isDataFrameShown() const
return true if at least there is a data frame shown
void hideDataFrames()
hide data frames
void buildDataFrames(GNEViewParent *viewParent, GNEViewNet *viewNet)
build data frames
GNEMeanDataFrame * meanDataFrame
frame for DATA_MEANDATA
GNEPersonFrame * personFrame
frame for DEMAND_PERSON
DemandFrames()
constructor
GNEStopFrame * stopFrame
frame for DEMAND_STOP
GNERouteFrame * routeFrame
frame for DEMAND_ROUTE
GNEContainerFrame * containerFrame
frame for DEMAND_CONTAINER
GNETypeDistributionFrame * typeDistributionFrame
frame for DEMAND_TYPEDISTRIBUTION
GNEContainerPlanFrame * containerPlanFrame
frame for DEMAND_CONTAINERPLAN
GNEVehicleFrame * vehicleFrame
frame for DEMAND_VEHICLE
GNEFrame * getCurrentShownFrame() const
get current demand frame show
void setDemandFramesWidth(int frameWidth)
set new width in all demand frames
void buildDemandFrames(GNEViewParent *viewParent, GNEViewNet *viewNet)
build demand frames
GNEPersonPlanFrame * personPlanFrame
frame for DEMAND_PERSONPLAN
GNETypeFrame * typeFrame
frame for DEMAND_TYPE
bool isDemandFrameShown() const
return true if at least there is a demand frame shown
void hideDemandFrames()
hide demand frames
GNEAdditionalFrame * additionalFrame
frame for NETWORK_ADDITIONAL
NetworkFrames()
constructor
bool isNetworkFrameShown() const
return true if at least there is a network frame shown
GNECrossingFrame * crossingFrame
frame for NETWORK_CROSSING
GNEConnectorFrame * connectorFrame
frame for NETWORK_CONNECT
GNECreateEdgeFrame * createEdgeFrame
frame for NETWORK_CREATEDGE
GNEProhibitionFrame * prohibitionFrame
frame for NETWORK_PROHIBITION
GNEShapeFrame * polygonFrame
frame for NETWORK_SHAPE
GNETAZFrame * TAZFrame
frame for NETWORK_TAZ
GNETLSEditorFrame * TLSEditorFrame
frame for NETWORK_TLS
GNEFrame * getCurrentShownFrame() const
get current network frame show
GNEWireFrame * wireFrame
frame for NETWORK_WIRE
void hideNetworkFrames()
hide network frames
void setNetworkFramesWidth(int frameWidth)
set new width in all network frames
void buildNetworkFrames(GNEViewParent *viewParent, GNEViewNet *viewNet)
build network frames
A single child window which contains a view of the simulation area.
long onCmdMakeSnapshot(FXObject *sender, FXSelector, void *)
GNECrossingFrame * getCrossingFrame() const
get frame for NETWORK_CROSSING
GUIMainWindow * getGUIMainWindow() const
get GUIMainWindow App
GNEConnectorFrame * getConnectorFrame() const
get frame for NETWORK_CONNECT
GNEStopFrame * getStopFrame() const
get frame for DEMAND_STOP
void updateUndoRedoButtons()
update toolbar undo/redo buttons (called when user press Ctrl+Z/Y)
long onCmdUpdateFrameAreaWidth(FXObject *, FXSelector, void *)
Called when user change the splitter between FrameArea and ViewNet.
GNEProhibitionFrame * getProhibitionFrame() const
get frame for NETWORK_PROHIBITION
long onKeyPress(FXObject *o, FXSelector sel, void *data)
Called when user press a key.
GNEPersonPlanFrame * getPersonPlanFrame() const
get frame for DEMAND_PERSONFRAME
DemandFrames myDemandFrames
struct for demand frames
MFXButtonTooltip * myUndoButton
toolbar undo button
GNEMeanDataFrame * getMeanDataFrame() const
get frame for DATA_TAZRELDATA
GNEShapeFrame * getShapeFrame() const
get frame for NETWORK_SHAPE
void setFrameAreaWidth(const int frameAreaWith)
set frame area width
GNETAZRelDataFrame * getTAZRelDataFrame() const
get frame for DATA_TAZRELDATA
GNEMoveFrame * getMoveFrame() const
get frame for move elements
long onCmdClose(FXObject *, FXSelector, void *)
Called when the user hits the close button (x)
GNESelectorFrame * getSelectorFrame() const
get frame for select elements
GNEContainerPlanFrame * getContainerPlanFrame() const
get frame for DEMAND_CONTAINERFRAME
void hideFramesArea()
hide frames area if all GNEFrames are hidden
GNEEdgeDataFrame * getEdgeDataFrame() const
get frame for DATA_EDGEDATA
GNEDeleteFrame * getDeleteFrame() const
get frame for delete elements
NetworkFrames myNetworkFrames
struct for network frames
GNETypeDistributionFrame * getTypeDistributionFrame() const
get frame for DEMAND_TYPEDISTRIBUTION
ACChoosers myACChoosers
struct for ACChoosers
GNEVehicleFrame * getVehicleFrame() const
get frame for DEMAND_VEHICLE
void showFramesArea()
show frames area if at least a GNEFrame is showed
void hideAllFrames()
hide all frames
GNETypeFrame * getTypeFrame() const
get frame for DEMAND_TYPE
FXVerticalFrame * myFramesArea
frame to hold GNEFrames
GNETAZFrame * getTAZFrame() const
get frame for NETWORK_TAZ
GNETLSEditorFrame * getTLSEditorFrame() const
get frame for NETWORK_TLS
CommonFrames myCommonFrames
struct for common frames
GNEApplicationWindow * getGNEAppWindows() const
get GNE Application Windows
DataFrames myDataFrames
struct for data frames
GNEContainerFrame * getContainerFrame() const
get frame for DEMAND_CONTAINER
GNEAdditionalFrame * getAdditionalFrame() const
get frame for NETWORK_ADDITIONAL
GNEWireFrame * getWireFrame() const
get frame for NETWORK_WIRE
FXVerticalFrame * getFramesArea() const
get frame area
GNEPersonFrame * getPersonFrame() const
get frame for DEMAND_PERSON
void eraseACChooserDialog(GNEDialogACChooser *chooserDialog)
remove created chooser dialog
GNEInspectorFrame * getInspectorFrame() const
get frame for inspect elements
GNEApplicationWindow * myGNEAppWindows
pointer to GNEApplicationWindow
GNEEdgeRelDataFrame * getEdgeRelDataFrame() const
get frame for DATA_EDGERELDATA
MFXButtonTooltip * myRedoButton
toolbar redo button
GNECreateEdgeFrame * getCreateEdgeFrame() const
get frame for NETWORK_CREATEEDGE
int getFrameAreaWidth() const
get frame area width
GNERouteFrame * getRouteFrame() const
get frame for DEMAND_ROUTE
GNEFrame * getCurrentShownFrame() const
get current frame (note: it can be null)
long onCmdLocate(FXObject *, FXSelector, void *)
locator-callback
~GNEViewParent()
Destructor.
long onKeyRelease(FXObject *o, FXSelector sel, void *data)
Called when user releases a key.
GUIMainWindow * myGUIMainWindowParent
FOX needs this.
virtual void create()
create GUIGlChildWindow
GUISUMOAbstractView * myView
The view.
FXPopup * myLocatorPopup
The locator menu.
MFXMenuButtonTooltip * myLocatorButton
The locator button.
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon
void removeGLChild(GUIGlChildWindow *child)
removes the given child window from the list (GUIGlChildWindow)
std::string makeSnapshot(const std::string &destFile, const int w=-1, const int h=-1)
Takes a snapshots and writes it into the given file.
virtual long onKeyPress(FXObject *o, FXSelector sel, void *data)
keyboard functions
virtual long onKeyRelease(FXObject *o, FXSelector sel, void *data)
static FXbool userPermitsOverwritingWhenFileExists(FXWindow *const parent, const FXString &file)
Returns true if either the file given by its name does not exist or the user allows overwriting it.
C++ TraCI client API implementation.