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