92 FXMDIClient* p, FXMDIMenu* mdimenu,
96 FXIcon* ic, FXuint opts,
97 FXint x, FXint y, FXint w, FXint h):
98 GUIGlChildWindow(p, parentWindow, mdimenu, name, ic, opts, x, y, w, h),
99 myGNEAppWindows(parentWindow) {
101 myParent->addChild(
this,
false);
122 myFramesArea->setWidth(220);
128 FXComposite* tmp =
new FXComposite(
this);
131 GNEViewNet* viewNet =
new GNEViewNet(tmp, myViewArea, *myParent,
this, net, undoList, myParent->getGLVisual(), share, myNavigationToolBar);
147 onCmdUpdateFrameAreaWidth(0, 0, 0);
222 bool showFlag =
false;
226 if (i->second->shown()) {
240 bool hideFlag =
true;
244 if (i->second->shown()) {
271 FXFileDialog opendialog(
this,
"Save Snapshot");
273 opendialog.setSelectMode(SELECTFILE_ANY);
274 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" 275 "GIF Image (*.gif)\nBMP Image (*.bmp)\nXPM Image (*.xpm)\nPCX Image (*.pcx)\nICO Image (*.ico)\n" 276 "RGB Image (*.rgb)\nXBM Image (*.xbm)\nTARGA Image (*.tga)\nPNG Image (*.png)\n" 277 "JPEG Image (*.jpg, *.jpeg)\nTIFF Image (*.tif, *.tiff)\n" 278 "Postscript (*.ps)\nEncapsulated Postscript (*.eps)\nPortable Document Format (*.pdf)\n" 279 "Scalable Vector Graphics (*.svg)\nLATEX text strings (*.tex)\nPortable LaTeX Graphics (*.pgf)\n" 288 std::string file = opendialog.getFilename().text();
293 WRITE_WARNING(
"Opening FXMessageBox 'error saving snapshot'");
296 FXMessageBox::error(
this, MBOX_OK,
"Saving failed.",
"%s", error.c_str());
299 WRITE_WARNING(
"Closed FXMessageBox 'error saving snapshot' with 'OK'");
319 std::string dialogtitle;
320 switch (FXSELID(sel)) {
324 dialogtitle =
"Junction Chooser";
329 dialogtitle =
"Edge Chooser";
334 dialogtitle =
"Traffic-Light-Junctions Chooser";
339 title =
"Additional Objects Chooser";
344 title =
"POI Chooser";
349 title =
"Polygon Chooser";
352 throw ProcessError(
"Unknown Message ID in onCmdLocate");
355 std::vector<GUIGlID> ids(idSet.begin(), idSet.end());
376 for (std::set<GUIGlID>::const_iterator it = laneIDs.begin(); it != laneIDs.end(); it++) {
void show()
sets the focus after the window is created to work-around bug in libfox
mode for selecting objects
GNEInspectorFrame * getInspectorFrame() const
get frame for GNE_MODE_INSPECT
GNEApplicationWindow * myGNEAppWindows
pointer to GNEApplicationWindow
long onKeyPress(FXObject *o, FXSelector sel, void *data)
Called when user press a key.
void hideFramesArea()
hide frames area if all GNEFrames are hidden
~GNEViewParent()
Destructor.
mode for creating polygons
The main window of the Netedit.
GUIIcon
An enumeration of icons used by the gui applications.
#define GUIDesignVerticalSeparator
vertical separator
std::set< GUIGlID > getLaneGlIDs()
returns GLIDs of all lanes
#define GUIDesignButtonToolbar
little button with icon placed in navigation toolbar
std::set< GUIGlID > getGlIDs(GUIGlObjectType type=GLO_MAX)
get ids of currently active objects
Locate junction - button.
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...
void showFramesArea()
show frames area if at least a GNEFrame is showed
long onCmdLocate(FXObject *, FXSelector, void *)
locator-callback
#define GUIDesignSplitter
long onKeyRelease(FXObject *o, FXSelector sel, void *data)
Called when user releases a key.
bool isSelected(GUIGlObjectType type, GUIGlID id)
Returns the information whether the object with the given type and id is selected.
A NBNetBuilder extended by visualisation and editing capabilities.
virtual long onKeyRelease(FXObject *o, FXSelector sel, void *data)
FXString gCurrentFolder
The folder used as last.
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
FXPopup * myLocatorPopup
The locator menu.
#define GUIDesignFrameArea
#define GUIDesignViewnArea
design for viewn area
GNEPolygonFrame * getPolygonFrame() const
get frame for GNE_MODE_POLYGON
#define WRITE_WARNING(msg)
A single child window which contains a view of the simulation area.
GNETLSEditorFrame * getTLSEditorFrame() const
get frame for GNE_MODE_TLS
static OptionsCont & getOptions()
Retrieves the options.
GNEAdditionalFrame * getAdditionalFrame() const
get frame for GNE_MODE_ADDITIONAL
GUIMainWindow * myParent
The parent window.
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
virtual long onKeyPress(FXObject *o, FXSelector sel, void *data)
keyboard functions
long onCmdUpdateFrameAreaWidth(FXObject *, FXSelector, void *)
Called when user change the splitter between FrameArea and ViewNet.
static GUIGlObjectStorage gIDStorage
A single static instance of this class.
GNEApplicationWindow * getGNEAppWindows() const
get GNE Application Windows
std::map< int, GNEFrame * > myGNEFrames
map with the Frames
FXDEFMAP(GNEViewParent) GNEViewParentMap[]
bool isSelected(GUIGlObject *o) const
true if the object is selected (may include extra logic besides calling gSelected) ...
void removeChild(FXMDIChild *child)
removes the given child window from the list
GNESelectorFrame * getSelectorFrame() const
get frame for GNE_MODE_SELECT
Locate polygons - button.
mode for editing crossing
std::string makeSnapshot(const std::string &destFile)
Takes a snapshots and writes it into the given file.
FXHorizontalFrame * myFramesArea
frame to hold GNEFrames
A road/street connecting two junctions (netedit-version)
long onCmdClose(FXObject *, FXSelector, void *)
Called when the user hits the close button (x)
FXMenuButton * myLocatorButton
GUIMainWindow * getApp() const
get App (GUIMainWindow)
GNEConnectorFrame * getConnectorFrame() const
get frame for GNE_MODE_CONNECT
Locate addtional structure - button.
GNECrossingFrame * getCrossingFrame() const
get frame for GNE_MODE_CROSSING
GUISUMOAbstractView * myView
the view
Size of frame area updated.
GNEDeleteFrame * getDeleteFrame() const
get frame for GNE_MODE_DELETE
GNENet * getNet() const
get the net object
GUIGlID getGlID() const
Returns the numerical id of the object.
void hideAllFrames()
hide all frames
virtual void buildViewToolBars(GUIGlChildWindow &)
builds the view toolbars
mode for connecting lanes
mode for editing additional
GUISelectedStorage gSelected
A global holder of selected objects.
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon
long onCmdMakeSnapshot(FXObject *sender, FXSelector, void *)
mode for inspecting object attributes