LMMS
Loading...
Searching...
No Matches
lmms::gui::AutomationClipView Class Reference

#include <AutomationClipView.h>

Inheritance diagram for lmms::gui::AutomationClipView:
lmms::gui::ClipView lmms::gui::selectableObject lmms::gui::ModelView

Public Slots

void openInAutomationEditor ()
 Opens this view's clip in the global automation editor.
void update () override
Public Slots inherited from lmms::gui::ClipView
virtual bool close ()
 Close a ClipView.
void remove ()
 Removes a ClipView from its track view.
void update () override
 Update a ClipView.
void selectColor ()
void randomizeColor ()
void resetColor ()
Public Slots inherited from lmms::gui::selectableObject
virtual void update ()

Public Member Functions

 AutomationClipView (AutomationClip *_clip, TrackView *_parent)
 ~AutomationClipView () override=default
Public Member Functions inherited from lmms::gui::ClipView
 ClipView (Clip *clip, TrackView *tv)
 Create a new ClipView.
 ~ClipView () override
 Destroy a ClipView.
bool fixedClips ()
 Does this ClipView have a fixed Clip?
ClipgetClip ()
TrackViewgetTrackView ()
QColor mutedColor () const
 CSS theming qproperty access method.
QColor mutedBackgroundColor () const
QColor selectedColor () const
QColor textColor () const
QColor textBackgroundColor () const
QColor textShadowColor () const
QColor patternClipBackground () const
QColor markerColor () const
bool gradient () const
void setMutedColor (const QColor &c)
 CSS theming qproperty access method.
void setMutedBackgroundColor (const QColor &c)
void setSelectedColor (const QColor &c)
void setTextColor (const QColor &c)
void setTextBackgroundColor (const QColor &c)
void setTextShadowColor (const QColor &c)
void setPatternClipBackground (const QColor &c)
void setGradient (const bool &b)
void setMarkerColor (const QColor &c)
bool needsUpdate ()
void setNeedsUpdate (bool b)
QVector< ClipView * > getClickedClips ()
void copy (QVector< ClipView * > clipvs)
void cut (QVector< ClipView * > clipvs)
void paste ()
void toggleSelectedAutoResize ()
QColor getColorForDisplay (QColor)
void setMarkerPos (int x)
void setMarkerEnabled (bool e)
Public Member Functions inherited from lmms::gui::selectableObject
 selectableObject (QWidget *_parent)
 ~selectableObject () override=default
void setSelected (bool selected)
bool isSelected () const
Public Member Functions inherited from lmms::gui::ModelView
 ModelView (Model *model, QWidget *widget)
virtual ~ModelView ()
virtual void setModel (Model *model, bool isOldModelValid=true)
virtual void unsetModel ()
Modelmodel ()
const Modelmodel () const
template<class T>
T * castModel ()
template<class T>
const T * castModel () const

Protected Slots

void resetName ()
void changeName ()
void disconnectObject (QAction *_a)
void toggleRecording ()
void flipY ()
void flipX ()
Protected Slots inherited from lmms::gui::ClipView
void updateLength ()
 Updates a ClipView's length.
void updatePosition ()
 Updates a ClipView's position.

Protected Member Functions

void constructContextMenu (QMenu *) override
void mouseDoubleClickEvent (QMouseEvent *me) override
void paintEvent (QPaintEvent *pe) override
void dragEnterEvent (QDragEnterEvent *_dee) override
void dropEvent (QDropEvent *_de) override
Protected Member Functions inherited from lmms::gui::ClipView
void contextMenuEvent (QContextMenuEvent *cme) override
 Set up the context menu for this ClipView.
void contextMenuAction (ContextMenuAction action)
void dragEnterEvent (QDragEnterEvent *dee) override
 Change the ClipView's display when something being dragged enters it.
void dropEvent (QDropEvent *de) override
 Handle something being dropped on this ClipObjectView.
void mousePressEvent (QMouseEvent *me) override
 Handle a mouse press on this ClipView.
void mouseMoveEvent (QMouseEvent *me) override
 Handle a mouse movement (drag) on this ClipView.
void mouseReleaseEvent (QMouseEvent *me) override
 Handle a mouse release on this ClipView.
void resizeEvent (QResizeEvent *re) override
bool unquantizedModHeld (QMouseEvent *me)
TimePos quantizeSplitPos (TimePos)
float pixelsPerBar ()
 How many pixels a bar takes for this ClipView.
DataFile createClipDataFiles (const QVector< ClipView * > &clips) const
 Create a DataFile suitable for copying multiple clips.
virtual void paintTextLabel (QString const &text, QPainter &painter)
auto hasCustomColor () const -> bool
Protected Member Functions inherited from lmms::gui::ModelView
virtual void modelChanged ()
QWidget * widget ()
virtual void doConnections ()

Private Member Functions

void scaleTimemapToFit (float oldMin, float oldMax)
 Preserves the auto points over different scale.
bool isResizableBeforeStart () override
 Returns whether the user can left-resize this clip so that the start of the clip bounds is before the start of the clip content.

Private Attributes

AutomationClipm_clip
QPixmap m_paintPixmap
QStaticText m_staticTextName

Additional Inherited Members

Static Public Member Functions inherited from lmms::gui::ClipView
static void remove (QVector< ClipView * > clipvs)
static void toggleMute (QVector< ClipView * > clipvs)
Static Public Attributes inherited from lmms::gui::ClipView
static const int BORDER_WIDTH = 2
Protected Types inherited from lmms::gui::ClipView
enum class  ContextMenuAction {
  Remove , Cut , Copy , Paste ,
  Mute
}
Protected Attributes inherited from lmms::gui::ClipView
TrackViewm_trackView
TimePos m_initialClipPos
TimePos m_initialClipEnd
bool m_marker = false
int m_markerPos = 0
Properties inherited from lmms::gui::ClipView
QColor mutedColor
QColor mutedBackgroundColor
QColor selectedColor
QColor textColor
QColor textBackgroundColor
QColor textShadowColor
QColor patternClipBackground
bool gradient
QColor markerColor

Constructor & Destructor Documentation

◆ AutomationClipView()

lmms::gui::AutomationClipView::AutomationClipView ( AutomationClip * _clip,
TrackView * _parent )

◆ ~AutomationClipView()

lmms::gui::AutomationClipView::~AutomationClipView ( )
overridedefault

Member Function Documentation

◆ changeName

void lmms::gui::AutomationClipView::changeName ( )
protectedslot

◆ constructContextMenu()

void lmms::gui::AutomationClipView::constructContextMenu ( QMenu * _cm)
overrideprotectedvirtual

Reimplemented from lmms::gui::ClipView.

◆ disconnectObject

void lmms::gui::AutomationClipView::disconnectObject ( QAction * _a)
protectedslot

◆ dragEnterEvent()

void lmms::gui::AutomationClipView::dragEnterEvent ( QDragEnterEvent * _dee)
overrideprotected

◆ dropEvent()

void lmms::gui::AutomationClipView::dropEvent ( QDropEvent * _de)
overrideprotected

◆ flipX

void lmms::gui::AutomationClipView::flipX ( )
protectedslot

◆ flipY

void lmms::gui::AutomationClipView::flipY ( )
protectedslot

◆ isResizableBeforeStart()

bool lmms::gui::AutomationClipView::isResizableBeforeStart ( )
inlineoverrideprivatevirtual

Returns whether the user can left-resize this clip so that the start of the clip bounds is before the start of the clip content.

Reimplemented from lmms::gui::ClipView.

◆ mouseDoubleClickEvent()

void lmms::gui::AutomationClipView::mouseDoubleClickEvent ( QMouseEvent * me)
overrideprotected

◆ openInAutomationEditor

void lmms::gui::AutomationClipView::openInAutomationEditor ( )
slot

Opens this view's clip in the global automation editor.

◆ paintEvent()

void lmms::gui::AutomationClipView::paintEvent ( QPaintEvent * pe)
overrideprotected

◆ resetName

void lmms::gui::AutomationClipView::resetName ( )
protectedslot

◆ scaleTimemapToFit()

void lmms::gui::AutomationClipView::scaleTimemapToFit ( float oldMin,
float oldMax )
private

Preserves the auto points over different scale.

◆ toggleRecording

void lmms::gui::AutomationClipView::toggleRecording ( )
protectedslot

◆ update

void lmms::gui::AutomationClipView::update ( )
overrideslot

Member Data Documentation

◆ m_clip

AutomationClip* lmms::gui::AutomationClipView::m_clip
private

◆ m_paintPixmap

QPixmap lmms::gui::AutomationClipView::m_paintPixmap
private

◆ m_staticTextName

QStaticText lmms::gui::AutomationClipView::m_staticTextName
private

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