90 FXMDIClient* p, FXMDIMenu* mdimenu,
94 FXIcon* ic, FXuint opts,
95 FXint x, FXint y, FXint w, FXint h):
98 myParent->addChild(
this,
false);
119 myFramesArea->setWidth(220);
125 FXComposite* tmp =
new FXComposite(
this);
128 GNEViewNet* viewNet =
new GNEViewNet(tmp, myViewArea, *myParent,
this, net, undoList, myParent->getGLVisual(), share, myNavigationToolBar);
143 onCmdUpdateFrameAreaWidth(0, 0, 0);
213 bool showFlag =
false;
217 if (i->second->shown() ==
true) {
231 bool hideFlag =
true;
235 if (i->second->shown() ==
true) {
256 FXFileDialog opendialog(
this,
"Save Snapshot");
258 opendialog.setSelectMode(SELECTFILE_ANY);
259 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" 260 "GIF Image (*.gif)\nBMP Image (*.bmp)\nXPM Image (*.xpm)\nPCX Image (*.pcx)\nICO Image (*.ico)\n" 261 "RGB Image (*.rgb)\nXBM Image (*.xbm)\nTARGA Image (*.tga)\nPNG Image (*.png)\n" 262 "JPEG Image (*.jpg, *.jpeg)\nTIFF Image (*.tif, *.tiff)\n" 263 "Postscript (*.ps)\nEncapsulated Postscript (*.eps)\nPortable Document Format (*.pdf)\n" 264 "Scalable Vector Graphics (*.svg)\nLATEX text strings (*.tex)\nPortable LaTeX Graphics (*.pgf)\n" 273 std::string file = opendialog.getFilename().text();
281 FXMessageBox::error(
this, MBOX_OK,
"Saving failed.",
"%s", error.c_str());
284 WRITE_WARNING(
"Closed FXMessageBox of type 'error' with 'OK'");
305 switch (FXSELID(sel)) {
309 title =
"Junction Chooser";
314 title =
"Edge Chooser";
319 title =
"Traffic-Light-Junctions Chooser";
322 throw ProcessError(
"Unknown Message ID in onCmdLocate");
325 std::vector<GUIGlID> ids(idSet.begin(), idSet.end());
346 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
GNEInspectorFrame * getInspectorFrame() const
get frame for GNE_MODE_INSPECT
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.
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)
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.
mode for selecting objects
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
#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
mode for inspecting object attributes
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.
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
mode for editing crossing
Size of frame area updated.
std::string makeSnapshot(const std::string &destFile)
Takes a snapshots and writes it into the given file.
mode for editing additional
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
GNECrossingFrame * getCrossingFrame() const
get frame for GNE_MODE_CROSSING
GUISUMOAbstractView * myView
the view
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.
mode for connecting lanes
void hideAllFrames()
hide all frames
virtual void buildViewToolBars(GUIGlChildWindow &)
builds the view toolbars
Locate junction - button.
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 *)