 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
47 FXIMPLEMENT(
GUIGlChildWindow, FXMDIChild, GUIGlChildWindowMap, ARRAYNUMBER(GUIGlChildWindowMap))
54 const FXString& name, FXMenuBar* gripNavigationToolbar, FXIcon* ic, FXuint opts, FXint x, FXint y, FXint w, FXint h) :
55 FXMDIChild(p, name, ic, mdimenu, opts, x, y, w, h),
56 myParent(parentWindow),
57 myGripNavigationToolbar(gripNavigationToolbar),
58 myStaticNavigationToolBar(
nullptr),
65 if (myGripNavigationToolbar ==
nullptr) {
69 buildNavigationToolBar();
70 buildColoringToolBar();
71 buildScreenshotToolBar();
115 "\tRecenter View\tRecenter view to the simulated area.",
119 "\tEdit ViewporttOpens a menu which lets you edit the viewport.",
123 "\tToggles Zooming Style\tToggles whether zooming is based at cursor position or at the center of the view.",
125 zoomBut->
setChecked(getApp()->reg().readIntEntry(
"gui",
"zoomAtCenter", 0) != 1);
130 "\tLocate Structures\tLocate structures within the network.",
134 "\tToggles Tool Tips\tToggles whether tool tips shall be shown.",
148 "\tEdit Coloring Schemes\tOpens a menu which lets you edit the coloring schemes.",
159 "\tMake Snapshot\tMakes a snapshot of the view.",
229 getApp()->reg().writeIntEntry(
"gui",
"zoomAtCenter",
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
long onCmdRecenterView(FXObject *, FXSelector, void *)
@ MID_HOTKEY_CTRL_I_EDITVIEWPORT
Open viewport editor.
virtual void showViewportEditor()
show viewport editor
void buildColoringToolBar()
build coloring toolbar
GUISUMOAbstractView * myView
The view.
virtual FXGLCanvas * getBuildGLCanvas() const
get build GL Canvas
virtual bool setColorScheme(const std::string &)
set color scheme
void showViewschemeEditor()
show viewsscheme editor
@ MID_RECENTERVIEW
Recenter view - button.
virtual void create()
create GUIGlChildWindow
virtual void centerTo(GUIGlID id, bool applyZoom, double zoomDist=20)
centers to the chosen artifact
long onCmdEditViewScheme(FXObject *, FXSelector, void *)
void showToolTips(bool val)
show tool tips
#define GUIDesignComboBoxNCol
number of column of every combo box
long onCmdChangeColorScheme(FXObject *, FXSelector sel, void *)
FXPopup * myLocatorPopup
The locator menu.
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon
#define GUIDesignButtonToolbar
little button with icon placed in navigation toolbar
virtual ~GUIGlChildWindow()
destructor
@ MID_COLOURSCHEMECHANGE
Change coloring scheme - combo.
void buildNavigationToolBar()
build navigation toolbar
GUIGlID getGlID() const
Returns the numerical id of the object.
FXMenuButton * myLocatorButton
The locator button.
GUIMainWindow * getParent()
Returns the main window.
@ MID_HOTKEY_F9_EDIT_VIEWSCHEME
open edit scheme menu
#define GUIDesignFrameArea
long onCmdShowToolTips(FXObject *sender, FXSelector, void *)
#define GUIDesignComboBoxStatic
Combo box static (not editable)
FXDEFMAP(GUIGlChildWindow) GUIGlChildWindowMap[]
@ MID_SHOWTOOLTIPS
Show tool tips - button.
@ MID_ZOOM_STYLE
toogle zooming style
FXToolBar * getNavigationToolBar(GUISUMOAbstractView &v)
return a reference to navigation toolbar
void buildScreenshotToolBar()
build screenshot toolbar
FXComboBox * myColoringSchemes
The coloring schemes.
virtual bool isSelected(GUIGlObject *o) const
true if the object is selected (may include extra logic besides calling gSelected)
void setView(GUIGlID id)
Centers the view onto the given artifact.
long onCmdEditViewport(FXObject *, FXSelector, void *)
#define GUIDesignVerticalSeparator
vertical separator
FXToolBar * myStaticNavigationToolBar
The static navigation tool bar.
#define GUIDesignButtonToolbarLocator
little checkable button with icon placed in navigation toolbar used specify for Locator
GUISelectedStorage gSelected
A global holder of selected objects.
GUIMainWindow * myParent
The parent window.
FXComboBox * getColoringSchemesCombo()
return combobox with the current coloring schemes (standard, fastest standard, real world....
#define GUIDesignToolbarMenuBar
virtual void recenterView()
recenters the view
FXPopup * getLocatorPopup()
@ brief return a pointer to locator popup
FXMenuBar * myGripNavigationToolbar
The grip navigation tool bar.
@ MID_MAKESNAPSHOT
Make snapshot - button.
GUISUMOAbstractView * getView() const
return GUISUMOAbstractView
#define GUIDesignButtonToolbarCheckable
little checkable 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 *)