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

#include <PatternClipView.h>

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

Public Slots

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

 PatternClipView (Clip *clip, TrackView *tv)
 ~PatternClipView () 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 openInPatternEditor ()
void resetName ()
void changeName ()
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 paintEvent (QPaintEvent *pe) override
void mouseDoubleClickEvent (QMouseEvent *_me) override
void constructContextMenu (QMenu *) 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 ()

Properties

float emptyTrackHeightRatio
float verticalPadding
float noteVerticalSpacing
float noteHorizontalSpacing
QColor noteColor
Properties inherited from lmms::gui::ClipView
QColor mutedColor
QColor mutedBackgroundColor
QColor selectedColor
QColor textColor
QColor textBackgroundColor
QColor textShadowColor
QColor patternClipBackground
bool gradient
QColor markerColor

Private Attributes

PatternClipm_patternClip
QPixmap m_paintPixmap
QStaticText m_staticTextName
float m_emptyTrackHeightRatio {0.5f}
float m_verticalPadding {0.15f}
float m_noteVerticalSpacing {0.2f}
float m_noteHorizontalSpacing {0.2f}
QColor m_noteColor {255, 255, 255}

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

Constructor & Destructor Documentation

◆ PatternClipView()

lmms::gui::PatternClipView::PatternClipView ( Clip * clip,
TrackView * tv )

◆ ~PatternClipView()

lmms::gui::PatternClipView::~PatternClipView ( )
overridedefault

Member Function Documentation

◆ changeName

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

◆ constructContextMenu()

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

Reimplemented from lmms::gui::ClipView.

◆ mouseDoubleClickEvent()

void lmms::gui::PatternClipView::mouseDoubleClickEvent ( QMouseEvent * _me)
overrideprotected

◆ openInPatternEditor

void lmms::gui::PatternClipView::openInPatternEditor ( )
protectedslot

◆ paintEvent()

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

◆ resetName

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

◆ update

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

Member Data Documentation

◆ m_emptyTrackHeightRatio

float lmms::gui::PatternClipView::m_emptyTrackHeightRatio {0.5f}
private

◆ m_noteColor

QColor lmms::gui::PatternClipView::m_noteColor {255, 255, 255}
private

◆ m_noteHorizontalSpacing

float lmms::gui::PatternClipView::m_noteHorizontalSpacing {0.2f}
private

◆ m_noteVerticalSpacing

float lmms::gui::PatternClipView::m_noteVerticalSpacing {0.2f}
private

◆ m_paintPixmap

QPixmap lmms::gui::PatternClipView::m_paintPixmap
private

◆ m_patternClip

PatternClip* lmms::gui::PatternClipView::m_patternClip
private

◆ m_staticTextName

QStaticText lmms::gui::PatternClipView::m_staticTextName
private

◆ m_verticalPadding

float lmms::gui::PatternClipView::m_verticalPadding {0.15f}
private

Property Documentation

◆ emptyTrackHeightRatio

float lmms::gui::PatternClipView::emptyTrackHeightRatio

◆ noteColor

QColor lmms::gui::PatternClipView::noteColor

◆ noteHorizontalSpacing

float lmms::gui::PatternClipView::noteHorizontalSpacing

◆ noteVerticalSpacing

float lmms::gui::PatternClipView::noteVerticalSpacing

◆ verticalPadding

float lmms::gui::PatternClipView::verticalPadding

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