53 FXIMPLEMENT(
GUIGlChildWindow, FXMDIChild, GUIGlChildWindowMap, ARRAYNUMBER(GUIGlChildWindowMap))
62 FXMDIMenu* mdimenu, const FXString& name,
64 FXuint opts, FXint x, FXint y, FXint w, FXint h) :
65 FXMDIChild(p, name, ic, mdimenu, opts, x, y, w, h),
67 myParent(parentWindow) {
72 buildNavigationToolBar();
73 buildColoringToolBar();
74 buildScreenshotToolBar();
101 "\tRecenter View\tRecenter view to the simulated area.",
105 "\tEdit Viewport...\tOpens a menu which lets you edit the viewport.",
109 "\tToggles Zooming Style\tToggles whether zooming is based at cursor position or at the center of the view.",
111 zoomBut->
setChecked(getApp()->reg().readIntEntry(
"gui",
"zoomAtCenter", 1) != 1);
120 "\tToggles Tool Tips\tToggles whether tool tips shall be shown.",
136 "\tEdit Coloring Schemes...\tOpens a menu which lets you edit the coloring schemes.",
147 "\tMake Snapshot\tMakes a snapshot of the view.",
213 getApp()->reg().writeIntEntry(
"gui",
"zoomAtCenter",
void showToolTips(bool val)
show tool tips
#define GUIDesignComboBoxNCol
number of column of every combo box
Open viewport editor - button.
virtual FXGLCanvas * getBuildGLCanvas() const
FXToolBar & getNavigationToolBar(GUISUMOAbstractView &v)
virtual void recenterView()
recenters the view
void buildColoringToolBar()
#define GUIDesignVerticalSeparator
vertical separator
#define GUIDesignButtonToolbar
little button with icon placed in navigation toolbar
Open view editor - button.
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.
#define GUIDesignFrameArea
void buildNavigationToolBar()
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
long onCmdShowToolTips(FXObject *sender, FXSelector, void *)
FXDEFMAP(GUIGlChildWindow) GUIGlChildWindowMap[]
#define GUIDesignButtonToolbarLocator
little checkable button with icon placed in navigation toolbar used specify for Locator ...
FXComboBox & getColoringSchemesCombo()
virtual void centerTo(GUIGlID id, bool applyZoom, double zoomDist=20)
centers to the chosen artifact
long onCmdEditViewScheme(FXObject *, FXSelector, void *)
void buildScreenshotToolBar()
#define GUIDesignComboBoxStatic
Combo box static (not editable)
FXToolBar * myNavigationToolBar
The tool bar.
Change coloring scheme - combo.
virtual bool setColorScheme(const std::string &)
set color scheme
virtual void showViewportEditor()
show viewport editor
void setView(GUIGlID id)
Centers the view onto the given artifact.
FXComboBox * myColoringSchemes
virtual ~GUIGlChildWindow()
#define GUIDesignButtonToolbarCheckable
little checkable button with icon placed in navigation toolbar
FXMenuButton * myLocatorButton
GUISUMOAbstractView * myView
the view
long onCmdEditViewport(FXObject *, FXSelector, void *)
GUIGlID getGlID() const
Returns the numerical id of the object.
virtual bool isSelected(GUIGlObject *o) const
true if the object is selected (may include extra logic besides calling gSelected) ...
long onCmdRecenterView(FXObject *, FXSelector, void *)
void showViewschemeEditor()
show viewsscheme editor
long onCmdChangeColorScheme(FXObject *, FXSelector sel, void *)
GUISelectedStorage gSelected
A global holder of selected objects.
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon
FXVerticalFrame * myContentFrame
FXPopup * getLocatorPopup()