|
lmms
Cross-platform music production software
|
#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 |
| QBrush | lighterColor () const |
| QBrush | coarseGridColor () const |
| QBrush | fineGridColor () const |
| QBrush | horizontalColor () const |
| QBrush | embossColor () const |
| int | coarseGridWidth () const |
| int | fineGridWidth () const |
| int | horizontalWidth () const |
| int | embossWidth () const |
| int | embossOffset () const |
| void | setDarkerColor (const QBrush &c) |
| void | setLighterColor (const QBrush &c) |
| void | setCoarseGridColor (const QBrush &c) |
| void | setFineGridColor (const QBrush &c) |
| void | setHorizontalColor (const QBrush &c) |
| void | setEmbossColor (const QBrush &c) |
| void | setCoarseGridWidth (int c) |
| void | setFineGridWidth (int c) |
| void | setHorizontalWidth (int c) |
| void | setEmbossWidth (int c) |
| void | setEmbossOffset (int c) |
| 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 |
| void lmms::gui::TrackContentWidget::addClipView | ( | ClipView * | clipv | ) |
| bool lmms::gui::TrackContentWidget::canPasteSelection | ( | TimePos | clipPos, |
| const QDropEvent * | de ) |
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 ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Overloaded method to make it possible to call this method without a Drag&Drop event
|
slot |
Move the trackContentWidget to a new place in time.
Responsible for moving track-content-widgets to appropriate position after change of visible viewport
| newPos | The MIDI time to move to. |
|
inline |
|
inline |
|
protected |
|
overrideprotected |
|
inline |
|
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 |
|
inline |
|
inline |
|
inline |
Return the end position of the trackContentWidget in Bars.
| posStart | The starting position of the Widget (from getPosition()) |
|
inline |
|
inline |
|
private |
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.
|
inline |
|
inline |
|
inline |
|
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 ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Overloaded method to make it possible to call this method without a Drag&Drop event
| 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 |
| void lmms::gui::TrackContentWidget::removeClipView | ( | ClipView * | clipv | ) |
|
inline |
|
overrideprotected |
Updates the background tile pixmap on size changes.
| re | The resize event to pass to base class |
|
inlineoverrideprotectedvirtual |
Implements lmms::SerializingObject.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
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 |