|
LMMS
|
#include <TrackContentWidget.h>
Public Slots | |
| void | update () |
| Update ourselves by updating all the ClipViews attached. | |
| void | changePosition (const lmms::TimePos &newPos=TimePos(-1)) |
| Move the trackContentWidget to a new place in time. | |
| void | updateBackground () |
| Updates the background tile pixmap. | |
Public Member Functions | |
| TrackContentWidget (TrackView *parent) | |
| Create a new trackContentWidget. | |
| ~TrackContentWidget () override=default | |
| void | addClipView (ClipView *clipv) |
| Adds a ClipView to this widget. | |
| void | removeClipView (ClipView *clipv) |
| Removes the given ClipView from this widget. | |
| void | removeClipView (int clipNum) |
| bool | canPasteSelection (TimePos clipPos, const QDropEvent *de) |
| Returns whether a selection of Clips can be pasted into this. | |
| bool | canPasteSelection (TimePos clipPos, const QMimeData *md, bool allowSameBar=false) |
| bool | pasteSelection (TimePos clipPos, QDropEvent *de) |
| Pastes a selection of Clips onto the track. | |
| bool | pasteSelection (TimePos clipPos, const QMimeData *md, bool skipSafetyCheck=false) |
| TimePos | endPosition (const TimePos &posStart) |
| Return the end position of the trackContentWidget in Bars. | |
| QBrush | darkerColor () const |
| CSS theming qproperty access method. | |
| QBrush | lighterColor () const |
| CSS theming qproperty access method. | |
| QBrush | coarseGridColor () const |
| CSS theming qproperty access method. | |
| QBrush | fineGridColor () const |
| CSS theming qproperty access method. | |
| QBrush | horizontalColor () const |
| CSS theming qproperty access method. | |
| QBrush | embossColor () const |
| CSS theming qproperty access method. | |
| int | coarseGridWidth () const |
| CSS theming qproperty access method. | |
| int | fineGridWidth () const |
| CSS theming qproperty access method. | |
| int | horizontalWidth () const |
| CSS theming qproperty access method. | |
| int | embossWidth () const |
| CSS theming qproperty access method. | |
| int | embossOffset () const |
| CSS theming qproperty access method. | |
| void | setDarkerColor (const QBrush &c) |
| CSS theming qproperty access method. | |
| void | setLighterColor (const QBrush &c) |
| CSS theming qproperty access method. | |
| void | setCoarseGridColor (const QBrush &c) |
| CSS theming qproperty access method. | |
| void | setFineGridColor (const QBrush &c) |
| CSS theming qproperty access method. | |
| void | setHorizontalColor (const QBrush &c) |
| CSS theming qproperty access method. | |
| void | setEmbossColor (const QBrush &c) |
| CSS theming qproperty access method. | |
| void | setCoarseGridWidth (int c) |
| CSS theming qproperty access method. | |
| void | setFineGridWidth (int c) |
| CSS theming qproperty access method. | |
| void | setHorizontalWidth (int c) |
| CSS theming qproperty access method. | |
| void | setEmbossWidth (int c) |
| CSS theming qproperty access method. | |
| void | setEmbossOffset (int c) |
| CSS theming qproperty access method. | |
| Public Member Functions inherited from lmms::JournallingObject | |
| JournallingObject () | |
| ~JournallingObject () override | |
| jo_id_t | id () const |
| void | saveJournallingState (const bool newState) |
| void | restoreJournallingState () |
| void | addJournalCheckPoint () |
| QDomElement | saveState (QDomDocument &_doc, QDomElement &_parent) override |
| void | restoreState (const QDomElement &_this) override |
| bool | isJournalling () const |
| void | setJournalling (const bool _sr) |
| bool | testAndSetJournalling (const bool newState) |
| bool | isJournallingStateStackEmpty () const |
| Public Member Functions inherited from lmms::SerializingObject | |
| SerializingObject () | |
| virtual | ~SerializingObject () |
| void | setHook (SerializingObjectHook *_hook) |
| SerializingObjectHook * | hook () |
Protected Types | |
| enum class | ContextMenuAction { Paste } |
Protected Member Functions | |
| void | contextMenuEvent (QContextMenuEvent *cme) override |
| void | contextMenuAction (QContextMenuEvent *cme, ContextMenuAction action) |
| void | dragEnterEvent (QDragEnterEvent *dee) override |
| Respond to a drag enter event on the trackContentWidget. | |
| void | dropEvent (QDropEvent *de) override |
| Respond to a drop event on the trackContentWidget. | |
| void | mousePressEvent (QMouseEvent *me) override |
| Respond to a mouse press on the trackContentWidget. | |
| void | mouseReleaseEvent (QMouseEvent *me) override |
| void | paintEvent (QPaintEvent *pe) override |
| Repaint the trackContentWidget on command. | |
| void | resizeEvent (QResizeEvent *re) override |
| Updates the background tile pixmap on size changes. | |
| QString | nodeName () const override |
| void | saveSettings (QDomDocument &doc, QDomElement &element) override |
| void | loadSettings (const QDomElement &element) override |
| Protected Member Functions inherited from lmms::JournallingObject | |
| void | changeID (jo_id_t _id) |
Properties | |
| QBrush | darkerColor |
| QBrush | lighterColor |
| QBrush | coarseGridColor |
| QBrush | fineGridColor |
| QBrush | horizontalColor |
| QBrush | embossColor |
| int | coarseGridWidth |
| int | fineGridWidth |
| int | horizontalWidth |
| int | embossWidth |
| int | embossOffset |
Private Types | |
| using | clipViewVector = QVector<ClipView*> |
Private Member Functions | |
| Track * | getTrack () |
| Return the track shown by the trackContentWidget. | |
| TimePos | getPosition (int mouseX) |
| Return the position of the trackContentWidget in bars. | |
Private Attributes | |
| TrackView * | m_trackView |
| clipViewVector | m_clipViews |
| QPixmap | m_background |
| QBrush | m_darkerColor |
| QBrush | m_lighterColor |
| QBrush | m_coarseGridColor |
| QBrush | m_fineGridColor |
| QBrush | m_horizontalColor |
| QBrush | m_embossColor |
| int | m_coarseGridWidth |
| int | m_fineGridWidth |
| int | m_horizontalWidth |
| int | m_embossWidth |
| int | m_embossOffset |
|
private |
|
strongprotected |
| lmms::gui::TrackContentWidget::TrackContentWidget | ( | TrackView * | parent | ) |
Create a new trackContentWidget.
Creates a new track content widget for the given track. The content widget comprises the 'grip bar' and the 'tools' button for the track's context menu.
| parent | The parent track. |
|
overridedefault |
Returns whether a selection of Clips can be pasted into this.
| clipPos | the position of the Clip slot being pasted on |
| de | the DropEvent generated |
| bool lmms::gui::TrackContentWidget::canPasteSelection | ( | TimePos | clipPos, |
| const QMimeData * | md, | ||
| bool | allowSameBar = false ) |
|
slot |
Move the trackContentWidget to a new place in time.
| newPos | The MIDI time to move to. |
| QBrush lmms::gui::TrackContentWidget::coarseGridColor | ( | ) | const |
CSS theming qproperty access method.
| int lmms::gui::TrackContentWidget::coarseGridWidth | ( | ) | const |
CSS theming qproperty access method.
|
protected |
|
overrideprotected |
| QBrush lmms::gui::TrackContentWidget::darkerColor | ( | ) | const |
CSS theming qproperty access method.
|
overrideprotected |
Respond to a drag enter event on the trackContentWidget.
| dee | the Drag Enter Event to respond to |
|
overrideprotected |
Respond to a drop event on the trackContentWidget.
| de | the Drop Event to respond to |
| QBrush lmms::gui::TrackContentWidget::embossColor | ( | ) | const |
CSS theming qproperty access method.
| int lmms::gui::TrackContentWidget::embossOffset | ( | ) | const |
CSS theming qproperty access method.
| int lmms::gui::TrackContentWidget::embossWidth | ( | ) | const |
CSS theming qproperty access method.
Return the end position of the trackContentWidget in Bars.
| posStart | the starting position of the Widget (from getPosition()) |
| QBrush lmms::gui::TrackContentWidget::fineGridColor | ( | ) | const |
CSS theming qproperty access method.
| int lmms::gui::TrackContentWidget::fineGridWidth | ( | ) | const |
CSS theming qproperty access method.
Return the position of the trackContentWidget in bars.
| mouseX | the mouse's current X position in pixels. |
|
private |
Return the track shown by the trackContentWidget.
| QBrush lmms::gui::TrackContentWidget::horizontalColor | ( | ) | const |
CSS theming qproperty access method.
| int lmms::gui::TrackContentWidget::horizontalWidth | ( | ) | const |
CSS theming qproperty access method.
| QBrush lmms::gui::TrackContentWidget::lighterColor | ( | ) | const |
CSS theming qproperty access method.
|
inlineoverrideprotectedvirtual |
Implements lmms::SerializingObject.
|
overrideprotected |
Respond to a mouse press on the trackContentWidget.
| me | the mouse press event to respond to |
|
overrideprotected |
|
inlineoverrideprotectedvirtual |
Implements lmms::SerializingObject.
|
overrideprotected |
Repaint the trackContentWidget on command.
| pe | the Paint Event to respond to |
| bool lmms::gui::TrackContentWidget::pasteSelection | ( | TimePos | clipPos, |
| const QMimeData * | md, | ||
| bool | skipSafetyCheck = false ) |
| bool lmms::gui::TrackContentWidget::pasteSelection | ( | TimePos | clipPos, |
| QDropEvent * | de ) |
Pastes a selection of Clips onto the track.
| clipPos | the position of the Clip slot being pasted on |
| de | the DropEvent generated |
|
overrideprotected |
Updates the background tile pixmap on size changes.
| resizeEvent | the resize event to pass to base class |
|
inlineoverrideprotectedvirtual |
Implements lmms::SerializingObject.
CSS theming qproperty access method.
CSS theming qproperty access method.
CSS theming qproperty access method.
CSS theming qproperty access method.
CSS theming qproperty access method.
CSS theming qproperty access method.
CSS theming qproperty access method.
CSS theming qproperty access method.
|
slot |
Update ourselves by updating all the ClipViews attached.
|
slot |
Updates the background tile pixmap.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |