Base class for window toolbars that respect the Show/Hide Toolbar Labels setting.
Definition at line 22 of file VuoToolbar.hh.
Protected Member Functions | |
VuoToolbar (QMainWindow *window) | |
Initializes an empty toolbar. | |
void | setUp (void) |
Populates the toolbar and adds it to the window. | |
virtual void | addToolbarItems (void)=0 |
Adds buttons and separators to the toolbar. | |
virtual bool | allowsTabbingWithOtherWindows (void)=0 |
True if the window containing this toolbar can be tabbed together with other windows. | |
virtual NSString * | getTabbingIdentifier (void)=0 |
Only used if VuoToolbar::allowsTabbingWithOtherWindows() returns true: an identifier for grouping related windows. | |
virtual void | updateColor (bool isDark) |
Makes the titlebar/toolbar dark (Digital Color Meter set to "Display native values" reads 0x808080). | |
Protected Attributes | |
QMainWindow * | window |
The window that contains the toolbar. | |
QMacToolBar * | qtToolbar |
The actual toolbar widget. | |
NSWindow * | nsWindow |
The native window (derived from window ) that contains the toolbar. | |
|
explicitprotected |
Initializes an empty toolbar.
VuoToolbar::setUp() needs to be called after this.
Definition at line 50 of file VuoToolbar.mm.
|
protectedpure virtual |
Adds buttons and separators to the toolbar.
Implemented in VuoConsoleToolbar, and VuoEditorWindowToolbar.
|
protectedpure virtual |
True if the window containing this toolbar can be tabbed together with other windows.
Implemented in VuoConsoleToolbar, and VuoEditorWindowToolbar.
|
protectedpure virtual |
Only used if VuoToolbar::allowsTabbingWithOtherWindows() returns true: an identifier for grouping related windows.
Implemented in VuoConsoleToolbar, and VuoEditorWindowToolbar.
|
protected |
Populates the toolbar and adds it to the window.
This function always needs to be called after the constructor, but can't be part of the constructor because it needs to call a virtual function to allow derived classes to add items to the toolbar.
Definition at line 66 of file VuoToolbar.mm.
|
protectedvirtual |
Makes the titlebar/toolbar dark (Digital Color Meter set to "Display native values" reads 0x808080).
Reimplemented in VuoEditorWindowToolbar.
Definition at line 109 of file VuoToolbar.mm.
|
protected |
The native window (derived from window
) that contains the toolbar.
Definition at line 50 of file VuoToolbar.hh.
|
protected |
The actual toolbar widget.
Definition at line 48 of file VuoToolbar.hh.
|
protected |
The window that contains the toolbar.
Definition at line 47 of file VuoToolbar.hh.