46 FXIMPLEMENT(
GUIGlChildWindow, FXMDIChild, GUIGlChildWindowMap, ARRAYNUMBER(GUIGlChildWindowMap))
55 FXMDIMenu* mdimenu, const FXString& name,
57 FXuint opts, FXint x, FXint y, FXint w, FXint h) :
58 FXMDIChild(p, name, ic, mdimenu, opts, x, y, w, h),
60 myParent(parentWindow) {
65 buildNavigationToolBar();
66 buildColoringToolBar();
67 buildScreenshotToolBar();
94 "\tRecenter View\tRecenter view to the simulated area.",
98 "\tEdit Viewport...\tOpens a menu which lets you edit the viewport.",
102 "\tToggles Zooming Style\tToggles whether zooming is based at cursor position or at the center of the view.",
104 zoomBut->
setChecked(getApp()->reg().readIntEntry(
"gui",
"zoomAtCenter", 1) != 1);
113 "\tToggles Tool Tips\tToggles whether tool tips shall be shown.",
129 "\tEdit Coloring Schemes...\tOpens a menu which lets you edit the coloring schemes.",
140 "\tMake Snapshot\tMakes a snapshot of the view.",
206 getApp()->reg().writeIntEntry(
"gui",
"zoomAtCenter",
void showToolTips(bool val)
show tool tips
#define GUIDesignComboBoxNCol
number of column of every combo box
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
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()
Open viewport editor - button.
virtual void centerTo(GUIGlID id, bool applyZoom, double zoomDist=20)
centers to the chosen artifact
long onCmdEditViewScheme(FXObject *, FXSelector, void *)
Change coloring scheme - combo.
void buildScreenshotToolBar()
#define GUIDesignComboBoxStatic
Combo box static (not editable)
FXToolBar * myNavigationToolBar
The tool bar.
Open view editor - button.
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()