 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
19 #ifndef GNEViewParent_h
20 #define GNEViewParent_h
95 FXIcon* ic =
nullptr, FXuint opts = 0, FXint x = 0, FXint y = 0, FXint w = 0, FXint h = 0);
186 long onCmdClose(FXObject*, FXSelector,
void*);
192 long onKeyPress(FXObject* o, FXSelector sel,
void* data);
195 long onKeyRelease(FXObject* o, FXSelector sel,
void* data);
GNEVehicleTypeFrame * getVehicleTypeFrame() const
get frame for GNE_DMODE_VEHICLETYPE
GNEStopFrame * getStopFrame() const
get frame for GNE_DMODE_STOP
GNEDialogACChooser * ACChooserStops
pointer to ACChooser dialog used for locate stops
GNEVehicleFrame * vehicleFrame
frame for GNE_DMODE_VEHICLE
GNESelectorFrame * getSelectorFrame() const
get frame for GNE_NMODE_SELECT
GNESelectorFrame * selectorFrame
frame for GNE_NMODE_SELECT
bool isFrameShown() const
return true if at least there is a frame shown
void eraseACChooserDialog(GNEDialogACChooser *chooserDialog)
remove created chooser dialog
GNECreateEdgeFrame * getCreateEdgeFrame() const
get frame for GNE_NMODE_CREATEEDGE
void updateUndoRedoButtons()
update toolbar undo/redo buttons (called when user press Ctrl+Z/Y)
GNEConnectorFrame * connectorFrame
frame for GNE_NMODE_CONNECT
GNEPolygonFrame * getPolygonFrame() const
get frame for GNE_NMODE_POLYGON
GNEProhibitionFrame * getProhibitionFrame() const
get frame for GNE_NMODE_PROHIBITION
GUIMainWindow * getGUIMainWindow() const
get GUIMainWindow App
long onCmdMakeSnapshot(FXObject *sender, FXSelector, void *)
A NBNetBuilder extended by visualisation and editing capabilities.
GNEDialogACChooser * ACChooserAdditional
pointer to ACChooser dialog used for locate additional
GNEDialogACChooser * ACChooserPOI
pointer to ACChooser dialog used for locate POIs
GNEVehicleTypeFrame * vehicleTypeFrame
frame for GNE_DMODE_VEHICLETYPE
GNEFrame * getCurrentShownFrame() const
get current frame show
FXHorizontalFrame * myFramesArea
frame to hold GNEFrames
long onCmdClose(FXObject *, FXSelector, void *)
Called when the user hits the close button (x)
GNETLSEditorFrame * TLSEditorFrame
frame for GNE_NMODE_TLS
ACChoosers myACChoosers
struct for ACChoosers
GNEConnectorFrame * getConnectorFrame() const
get frame for GNE_NMODE_CONNECT
GNETAZFrame * getTAZFrame() const
get frame for GNE_NMODE_TAZ
FXSplitter * myFramesSplitter
Splitter to divide ViewNet und GNEFrames.
GNEInspectorFrame * inspectorFrame
frame for GNE_NMODE_INSPECT
The main window of the Netedit.
GNEDeleteFrame * getDeleteFrame() const
get frame for GNE_NMODE_DELETE
GNEApplicationWindow * myGNEAppWindows
pointer to GNEApplicationWindow
GNERouteFrame * routeFrame
frame for GNE_DMODE_ROUTE
long onKeyPress(FXObject *o, FXSelector sel, void *data)
Called when user press a key.
GNEAdditionalFrame * additionalFrame
frame for GNE_NMODE_ADDITIONAL
void hideFramesArea()
hide frames area if all GNEFrames are hidden
GNEDeleteFrame * deleteFrame
frame for GNE_NMODE_DELETE
GNEProhibitionFrame * prohibitionFrame
frame for GNE_NMODE_PROHIBITION
GNEDialogACChooser * ACChooserVehicles
pointer to ACChooser dialog used for locate vehicles
Frames myFrames
struct for frames
FXButton * myUndoButton
toolbar undo button
GNEDialogACChooser * ACChooserTLS
pointer to ACChooser dialog used for locate TLSs
long onCmdUpdateFrameAreaWidth(FXObject *, FXSelector, void *)
Called when user change the splitter between FrameArea and ViewNet.
A single child window which contains a view of the simulation area.
FXButton * myRedoButton
toolbar redo button
GNEPolygonFrame * polygonFrame
frame for GNE_NMODE_POLYGON
GNEDialogACChooser * ACChooserEdges
pointer to ACChooser dialog used for locate edges
void showFramesArea()
show frames area if at least a GNEFrame is showed
FXHorizontalFrame * myViewArea
frame to hold myView and myAttributePanel
GNECrossingFrame * crossingFrame
frame for GNE_NMODE_CROSSING
GNEDialogACChooser * ACChooserProhibition
pointer to ACChooser dialog used for locate Prohibitions
long onKeyRelease(FXObject *o, FXSelector sel, void *data)
Called when user releases a key.
GNEPersonPlanFrame * personPlanFrame
frame for GNE_DMODE_PERSONPLAN
GNEPersonPlanFrame * getPersonPlanFrame() const
get frame for GNE_DMODE_PERSONFRAME
GNEDialogACChooser * ACChooserPolygon
pointer to ACChooser dialog used for locate Polygons
GNECreateEdgeFrame * createEdgeFrame
frame for GNE_NMODE_CREATEDGE
GNEViewParent(FXMDIClient *p, FXMDIMenu *mdimenu, const FXString &name, GNEApplicationWindow *parentWindow, FXGLCanvas *share, GNENet *net, GNEUndoList *undoList, FXIcon *ic=nullptr, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
FOX-declaration.
#define FOX_CONSTRUCTOR(classname)
GNEInspectorFrame * getInspectorFrame() const
get frame for GNE_NMODE_INSPECT
GNEAdditionalFrame * getAdditionalFrame() const
get frame for GNE_NMODE_ADDITIONAL
~GNEViewParent()
Destructor.
GNEDialogACChooser * ACChooserJunction
pointer to ACChooser dialog used for locate junctions
GNEPersonFrame * personFrame
frame for GNE_DMODE_PERSON
GNEDialogACChooser * ACChooserRoutes
pointer to ACChooser dialog used for locate routes
void hideFrames()
hide frames
GNEFrame * getCurrentShownFrame() const
get current frame (note: it can be null)
GNEApplicationWindow * getGNEAppWindows() const
get GNE Application Windows
void hideAllFrames()
hide all frames
GNERouteFrame * getRouteFrame() const
get frame for GNE_DMODE_ROUTE
GNEStopFrame * stopFrame
frame for GNE_DMODE_STOP
GNEPersonFrame * getPersonFrame() const
get frame for GNE_DMODE_PERSON
GNEDialogACChooser * ACChooserPersons
pointer to ACChooser dialog used for locate persons
GNEPersonTypeFrame * personTypeFrame
frame for GNE_DMODE_PERSONTYPE
GNETLSEditorFrame * getTLSEditorFrame() const
get frame for GNE_NMODE_TLS
long onCmdLocate(FXObject *, FXSelector, void *)
locator-callback
struct for ACChoosers dialog
GNEPersonTypeFrame * getPersonTypeFrame() const
get frame for GNE_DMODE_PERSONTYPE
void setWidth(int frameWidth)
set new width in all frames
GNEVehicleFrame * getVehicleFrame() const
get frame for GNE_DMODE_VEHICLE
GNETAZFrame * TAZFrame
frame for GNE_NMODE_TAZ
GNECrossingFrame * getCrossingFrame() const
get frame for GNE_NMODE_CROSSING