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

#include <SampleClipView.h>

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

Public Slots

void updateSample ()
void reverseSample ()
void setAutomationGhost ()
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

 SampleClipView (SampleClip *_clip, TrackView *_tv)
 ~SampleClipView () 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 Member Functions

void constructContextMenu (QMenu *cm) override
void mousePressEvent (QMouseEvent *_me) override
void mouseReleaseEvent (QMouseEvent *_me) override
void dragEnterEvent (QDragEnterEvent *_dee) override
void dropEvent (QDropEvent *_de) override
void mouseDoubleClickEvent (QMouseEvent *) override
void paintEvent (QPaintEvent *) 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 Attributes

SampleClipm_clip
SampleThumbnail m_sampleThumbnail
QPixmap m_paintPixmap
long m_paintPixmapXPosition

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 Slots inherited from lmms::gui::ClipView
void updateLength ()
 Updates a ClipView's length.
void updatePosition ()
 Updates a ClipView's position.
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

◆ SampleClipView()

lmms::gui::SampleClipView::SampleClipView ( SampleClip * _clip,
TrackView * _tv )

◆ ~SampleClipView()

lmms::gui::SampleClipView::~SampleClipView ( )
overridedefault

Member Function Documentation

◆ constructContextMenu()

void lmms::gui::SampleClipView::constructContextMenu ( QMenu * cm)
overrideprotectedvirtual

Reimplemented from lmms::gui::ClipView.

◆ dragEnterEvent()

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

◆ dropEvent()

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

◆ mouseDoubleClickEvent()

void lmms::gui::SampleClipView::mouseDoubleClickEvent ( QMouseEvent * )
overrideprotected

◆ mousePressEvent()

void lmms::gui::SampleClipView::mousePressEvent ( QMouseEvent * _me)
overrideprotected

◆ mouseReleaseEvent()

void lmms::gui::SampleClipView::mouseReleaseEvent ( QMouseEvent * _me)
overrideprotected

◆ paintEvent()

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

◆ reverseSample

void lmms::gui::SampleClipView::reverseSample ( )
slot

◆ setAutomationGhost

void lmms::gui::SampleClipView::setAutomationGhost ( )
slot

◆ updateSample

void lmms::gui::SampleClipView::updateSample ( )
slot

Member Data Documentation

◆ m_clip

SampleClip* lmms::gui::SampleClipView::m_clip
private

◆ m_paintPixmap

QPixmap lmms::gui::SampleClipView::m_paintPixmap
private

◆ m_paintPixmapXPosition

long lmms::gui::SampleClipView::m_paintPixmapXPosition
private

◆ m_sampleThumbnail

SampleThumbnail lmms::gui::SampleClipView::m_sampleThumbnail
private

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