Vuo 2.4.4
Loading...
Searching...
No Matches
Protected Member Functions | Protected Attributes | List of all members
VuoToolbar Class Referenceabstract

Description

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.
 

Constructor & Destructor Documentation

◆ VuoToolbar()

VuoToolbar::VuoToolbar ( QMainWindow *  window)
explicitprotected

Initializes an empty toolbar.

VuoToolbar::setUp() needs to be called after this.

Definition at line 50 of file VuoToolbar.mm.

Member Function Documentation

◆ addToolbarItems()

virtual void VuoToolbar::addToolbarItems ( void  )
protectedpure virtual

Adds buttons and separators to the toolbar.

Implemented in VuoConsoleToolbar, and VuoEditorWindowToolbar.

◆ allowsTabbingWithOtherWindows()

virtual bool VuoToolbar::allowsTabbingWithOtherWindows ( void  )
protectedpure virtual

True if the window containing this toolbar can be tabbed together with other windows.

Implemented in VuoConsoleToolbar, and VuoEditorWindowToolbar.

◆ getTabbingIdentifier()

virtual NSString * VuoToolbar::getTabbingIdentifier ( void  )
protectedpure virtual

Only used if VuoToolbar::allowsTabbingWithOtherWindows() returns true: an identifier for grouping related windows.

Implemented in VuoConsoleToolbar, and VuoEditorWindowToolbar.

◆ setUp()

void VuoToolbar::setUp ( void  )
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.

◆ updateColor()

void VuoToolbar::updateColor ( bool  isDark)
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.

Member Data Documentation

◆ nsWindow

NSWindow* VuoToolbar::nsWindow
protected

The native window (derived from window) that contains the toolbar.

Definition at line 50 of file VuoToolbar.hh.

◆ qtToolbar

QMacToolBar* VuoToolbar::qtToolbar
protected

The actual toolbar widget.

Definition at line 48 of file VuoToolbar.hh.

◆ window

QMainWindow* VuoToolbar::window
protected

The window that contains the toolbar.

Definition at line 47 of file VuoToolbar.hh.


The documentation for this class was generated from the following files: