Toolbar for a composition- or code-editing window.
Definition at line 25 of file VuoEditorWindowToolbar.hh.
Public Member Functions | |
~VuoEditorWindowToolbar () | |
Deallocates toolbar data. | |
void | update (bool eventsShown, bool zoomedToActualSize, bool zoomedToFit) |
Updates the toolbar buttons' states. | |
void | changeStateToBuildPending () |
Indicates that a version of the composition is waiting to build. | |
void | changeStateToBuildInProgress () |
Advances the state from "build pending" to "build in progress". | |
void | changeStateToRunning () |
Advances the state from "build in progress" to "running". | |
void | changeStateToStopInProgress () |
Advances the state from "running" to "stop in progress". | |
void | changeStateToStopped () |
Advances the state from "stop in progress" to "stopped". | |
bool | isBuildPending () |
Returns true if the window's composition is waiting to build. | |
bool | isBuildInProgress () |
Returns true if the window's composition is building. | |
bool | isRunning () |
Returns true if the window's composition is running. | |
bool | isStopInProgress () |
Returns true if the window's composition is stopping. | |
Static Public Member Functions | |
static VuoEditorWindowToolbar * | create (QMainWindow *window, bool isCodeEditor=false) |
Creates a toolbar and adds it to window. | |
static bool | usingOverlayScrollers (void) |
Returns true if System Settings > Appearance > Show Scroll Bars is set to "When Scrolling". | |
Protected Member Functions | |
VuoEditorWindowToolbar (QMainWindow *window, bool isCodeEditor) | |
Initializes an empty toolbar. | |
virtual void | addToolbarItems (void) override |
Populates the toolbar and adds it to the window. | |
virtual bool | allowsTabbingWithOtherWindows (void) override |
Always allows tabbing. | |
virtual NSString * | getTabbingIdentifier (void) override |
Identifier for grouping composition- and code-editing windows. | |
virtual void | updateColor (bool isDark) override |
Updates the light/dark styling of the toolbar, including custom button types. | |
![]() | |
VuoToolbar (QMainWindow *window) | |
Initializes an empty toolbar. | |
void | setUp (void) |
Populates the toolbar and adds it to the window. | |
Additional Inherited Members | |
![]() | |
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. | |
VuoEditorWindowToolbar::~VuoEditorWindowToolbar | ( | ) |
Deallocates toolbar data.
Definition at line 429 of file VuoEditorWindowToolbar.mm.
|
protected |
Initializes an empty toolbar.
Definition at line 331 of file VuoEditorWindowToolbar.mm.
|
overrideprotectedvirtual |
Populates the toolbar and adds it to the window.
Implements VuoToolbar.
Definition at line 351 of file VuoEditorWindowToolbar.mm.
|
overrideprotectedvirtual |
Always allows tabbing.
Implements VuoToolbar.
Definition at line 439 of file VuoEditorWindowToolbar.mm.
void VuoEditorWindowToolbar::changeStateToBuildInProgress | ( | ) |
Advances the state from "build pending" to "build in progress".
Definition at line 517 of file VuoEditorWindowToolbar.mm.
void VuoEditorWindowToolbar::changeStateToBuildPending | ( | ) |
Indicates that a version of the composition is waiting to build.
A previous version may still be stopping at this point.
Definition at line 509 of file VuoEditorWindowToolbar.mm.
void VuoEditorWindowToolbar::changeStateToRunning | ( | ) |
Advances the state from "build in progress" to "running".
Definition at line 526 of file VuoEditorWindowToolbar.mm.
void VuoEditorWindowToolbar::changeStateToStopInProgress | ( | ) |
Advances the state from "running" to "stop in progress".
Definition at line 535 of file VuoEditorWindowToolbar.mm.
void VuoEditorWindowToolbar::changeStateToStopped | ( | ) |
Advances the state from "stop in progress" to "stopped".
Definition at line 543 of file VuoEditorWindowToolbar.mm.
|
static |
Creates a toolbar and adds it to window.
Definition at line 321 of file VuoEditorWindowToolbar.mm.
|
overrideprotectedvirtual |
Identifier for grouping composition- and code-editing windows.
Implements VuoToolbar.
Definition at line 447 of file VuoEditorWindowToolbar.mm.
bool VuoEditorWindowToolbar::isBuildInProgress | ( | ) |
Returns true if the window's composition is building.
Definition at line 561 of file VuoEditorWindowToolbar.mm.
bool VuoEditorWindowToolbar::isBuildPending | ( | ) |
Returns true if the window's composition is waiting to build.
Definition at line 553 of file VuoEditorWindowToolbar.mm.
bool VuoEditorWindowToolbar::isRunning | ( | ) |
Returns true if the window's composition is running.
Definition at line 569 of file VuoEditorWindowToolbar.mm.
bool VuoEditorWindowToolbar::isStopInProgress | ( | ) |
Returns true if the window's composition is stopping.
Definition at line 577 of file VuoEditorWindowToolbar.mm.
void VuoEditorWindowToolbar::update | ( | bool | eventsShown, |
bool | zoomedToActualSize, | ||
bool | zoomedToFit | ||
) |
Updates the toolbar buttons' states.
Definition at line 455 of file VuoEditorWindowToolbar.mm.
|
overrideprotectedvirtual |
Updates the light/dark styling of the toolbar, including custom button types.
Reimplemented from VuoToolbar.
Definition at line 638 of file VuoEditorWindowToolbar.mm.
|
static |
Returns true if System Settings > Appearance > Show Scroll Bars is set to "When Scrolling".
In this mode, scrollbars are drawn as overlays on top of content (instead of reducing the content area).
Definition at line 586 of file VuoEditorWindowToolbar.mm.