Loading...
Searching...
No Matches
Scenario::TransportDisplay Class Referencefinal
The transport's position readout. More...
Inheritance diagram for Scenario::TransportDisplay:
Detailed Description
The transport's position readout.
In musical mode: bar, pulse and quarter of pulse, the time underneath in smaller digits, and a grid with one cell per pulse of the current bar. Otherwise the time alone.
The widget has the same size in both modes, so that toggling the mode does not move the rest of the toolbar.
Public Member Functions | |
| TransportDisplay (QWidget *parent=nullptr) | |
| void | setPosition (TimeVal date, const IntervalModel *root, bool running) |
| Show a position. | |
| void | setMusical (bool) |
| bool | musical () const noexcept |
| QSize | sizeHint () const override |
| QSize | minimumSizeHint () const override |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *event) override |
| void | resizeEvent (QResizeEvent *event) override |
Member Function Documentation
◆ setMusical()
| void Scenario::TransportDisplay::setMusical | ( | bool | b | ) |
The application settings are not loaded yet when the toolbars are built: whoever owns the mode sets it.
◆ setPosition()
| void Scenario::TransportDisplay::setPosition | ( | TimeVal | date, |
| const IntervalModel * | root, | ||
| bool | running | ||
| ) |
Show a position.
- Parameters
-
date Date in the root interval. root Interval whose time signatures apply, if any. Not kept. running Whether an execution exists, playing or paused.
Only what changed on screen is repainted.
The documentation for this class was generated from the following files:
- TransportDisplay.hpp
- TransportDisplay.cpp