39 #ifdef CHECK_MEMORY_LEAKS
41 #endif // CHECK_MEMORY_LEAKS
65 FXMDIMenu* mdimenu, const FXString& name,
67 FXuint opts, FXint x, FXint y, FXint w, FXint h) :
68 FXMDIChild(p, name, ic, mdimenu, opts, x, y, w, h),
70 myParent(parentWindow) {
74 new FXVerticalFrame(
this,
75 FRAME_SUNKEN | LAYOUT_SIDE_TOP | LAYOUT_FILL_X | LAYOUT_FILL_Y,
76 0, 0, 0, 0, 0, 0, 0, 0);
78 buildNavigationToolBar();
79 buildColoringToolBar();
80 buildScreenshotToolBar();
105 "\tRecenter View\tRecenter view to the simulated area.",
107 ICON_ABOVE_TEXT | BUTTON_TOOLBAR | FRAME_RAISED | LAYOUT_TOP | LAYOUT_LEFT);
110 "\tEdit Viewport...\tOpens a menu which lets you edit the viewport.",
112 ICON_ABOVE_TEXT | BUTTON_TOOLBAR | FRAME_RAISED | LAYOUT_TOP | LAYOUT_LEFT);
115 "\tToggles Zooming Style\tToggles whether zooming is based at cursor position or at the center of the view.",
117 BUTTON_NORMAL | LAYOUT_FIX_WIDTH | LAYOUT_FIX_HEIGHT,
119 zoomBut->
setChecked(getApp()->reg().readIntEntry(
"gui",
"zoomAtCenter", 1) != 1);
125 MENUBUTTON_RIGHT | LAYOUT_TOP | BUTTON_TOOLBAR | FRAME_RAISED | FRAME_THICK);
128 "\tToggles Tool Tips\tToggles whether tool tips shall be shown.",
130 BUTTON_NORMAL | LAYOUT_FIX_WIDTH | LAYOUT_FIX_HEIGHT,
147 FRAME_SUNKEN | LAYOUT_LEFT | LAYOUT_TOP | COMBOBOX_STATIC | LAYOUT_CENTER_Y);
150 "\tEdit Coloring Schemes...\tOpens a menu which lets you edit the coloring schemes.",
152 ICON_ABOVE_TEXT | BUTTON_TOOLBAR | FRAME_RAISED | LAYOUT_TOP | LAYOUT_LEFT);
164 "\tMake Snapshot\tMakes a snapshot of the view.",
166 ICON_ABOVE_TEXT | BUTTON_TOOLBAR | FRAME_RAISED | LAYOUT_TOP | LAYOUT_LEFT);
231 getApp()->reg().writeIntEntry(
"gui",
"zoomAtCenter",
void showToolTips(bool val)
FXToolBar & getNavigationToolBar(GUISUMOAbstractView &v)
virtual void centerTo(GUIGlID id, bool applyZoom, SUMOReal zoomDist=20)
centers to the chosen artifact
virtual void recenterView()
recenters the view
virtual void buildColoringToolBar()
virtual bool isSelected(GUIGlObject *o) const
true if the object is selected (may include extra logic besides calling gSelected) ...
bool isSelected(GUIGlObjectType type, GUIGlID id)
Returns the information whether the object with the given type and id is selected.
long onCmdZoomStyle(FXObject *sender, FXSelector, void *)
FXPopup * myLocatorPopup
The locator menu.
Open viewport editor - button.
GUIGlID getGlID() const
Returns the numerical id of the object.
virtual FXGLCanvas * getBuildGLCanvas() const
FXDEFMAP(GUIDialog_AppSettings) GUIDialog_AppSettingsMap[]
virtual void buildNavigationToolBar()
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
long onCmdShowToolTips(FXObject *sender, FXSelector, void *)
FXComboBox & getColoringSchemesCombo()
long onCmdEditViewScheme(FXObject *, FXSelector, void *)
virtual void buildScreenshotToolBar()
FXToolBar * myNavigationToolBar
The tool bar.
virtual void showViewportEditor()
void setView(GUIGlID id)
Centers the view onto the given artifact.
FXComboBox * myColoringSchemes
virtual ~GUIGlChildWindow()
FXMenuButton * myLocatorButton
GUISUMOAbstractView * myView
the view
long onCmdEditViewport(FXObject *, FXSelector, void *)
virtual bool setColorScheme(const std::string &)
Open view editor - button.
long onCmdRecenterView(FXObject *, FXSelector, void *)
void showViewschemeEditor()
long onCmdChangeColorScheme(FXObject *, FXSelector sel, void *)
GUISelectedStorage gSelected
A global holder of selected objects.
Change coloring scheme - combo.
static FXIcon * getIcon(GUIIcon which)
FXVerticalFrame * myContentFrame
FXPopup * getLocatorPopup()