Loading...
Searching...
No Matches
Patternist::View Class Referencefinal
Inheritance diagram for Patternist::View:
Process::LayerView

Classes

struct  Cell
 
struct  PasteTarget
 

Public Types

enum class  Mode { Fit , Timeline }
 

Public Member Functions

 View (const Patternist::ProcessModel &model, QGraphicsItem *parent)
 
void setMode (Mode m)
 
void setAdvanced (bool b)
 
void setTimeGrid (const TimeGrid &g)
 
void setZoom (ZoomRatio z)
 
void setField (StepField f)
 
void setSelectedLane (int lane)
 
int selectedLane () const noexcept
 
int headerLaneAt (QPointF pos) const noexcept
 Lane whose header is at pos, or -1.
 
const StepSelection & selection () const
 
const std::vector< int > & selectedLanes () const noexcept
 
void setSelectedLanes (std::vector< int > lanes)
 
void clearSelection ()
 Both the steps and the lanes.
 
void selectAll ()
 
void setSelectMode (bool b)
 
void setRings (bool b)
 In the editor: the lanes as concentric rings, each its own loop.
 
bool rings () const noexcept
 
PasteTarget pasteTarget (int lanes) const
 
StepField field () const noexcept
 
double minimumHeight () const noexcept
 The height under which the editor's lanes would get too low to use.
 
const std::vector< float > & draggedValues () const noexcept
 What a Shift- or Alt-drag in the parameter bars sets, for every step.
 
void paintStep (int lane, int step, Patternist::Note n)
 Set a step while painting: emitted for every step the mouse enters.
 
void paintFinished ()
 
void noteChanged (int lane, int note)
 
void noteChangeFinished ()
 
void muteToggled (int lane)
 
void soloToggled (int lane)
 
void laneSelected (int lane)
 
void fieldEdited (int lane, int step, int field, float value)
 A bar of the parameter lane was dragged to value.
 
void fieldEditFinished ()
 
void fieldValuesEdited (int lane, int field)
 
void stepMenuRequested (int lane, int step, QPoint screen)
 
void selectionChanged ()
 
void fieldSelected (int field)
 
void fieldRandomized (int lane, int field)
 For lane, or every lane when it is -1.
 
void fieldReset (int lane, int field)
 
void laneValueEdited (int lane, int which, int value)
 
void laneValueEditFinished ()
 
- Public Member Functions inherited from Process::LayerView
 LayerView (QGraphicsItem *parent)
 
QRectF boundingRect () const final override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) final override
 
void setHeight (qreal height) noexcept
 
qreal height () const noexcept
 
void setWidth (qreal width) noexcept
 
qreal width () const noexcept
 
virtual QPixmap pixmap () noexcept
 
void dragEnterEvent (QGraphicsSceneDragDropEvent *event) override
 
void dragLeaveEvent (QGraphicsSceneDragDropEvent *event) override
 
void dropEvent (QGraphicsSceneDragDropEvent *event) override
 
void clearPressed ()
 
void escPressed ()
 
void pressed (QPointF arg_1)
 
void released (QPointF arg_1)
 
void moved (QPointF arg_1)
 
void doubleClicked (QPointF arg_1)
 
void askContextMenu (const QPoint &arg_1, const QPointF &arg_2)
 
void dropReceived (const QPointF &pos, const QMimeData &arg_2)
 
void presetDropReceived (const QPointF &pos, const QMimeData &arg_2)
 
void keyPressed (int arg_1)
 
void keyReleased (int arg_1)
 
void dragEnter (const QPointF &pos, const QMimeData &arg_2)
 
void dragMove (const QPointF &pos, const QMimeData &arg_2)
 
void dragLeave (const QPointF &pos, const QMimeData &arg_2)
 

Additional Inherited Members

- Protected Member Functions inherited from Process::LayerView
void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override
 
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 
void contextMenuEvent (QGraphicsSceneContextMenuEvent *event) override
 

Member Enumeration Documentation

◆ Mode

enum class Patternist::View::Mode
strong
Enumerator
Fit 

The steps share the whole layer: in a node, or in the editor.

Timeline 

The steps fall where they play, on the parent's bar grid.

Member Function Documentation

◆ field()

StepField Patternist::View::field ( ) const
noexcept

The parameter the bars show: the one chosen, unless the selected lane is an accent or a slide that has no use for it.

◆ fieldValuesEdited()

void Patternist::View::fieldValuesEdited ( int  lane,
int  field 
)

The values of a parameter for every step of a lane changed, while Shift- or Alt-dragging in the parameter bars: see draggedValues().

◆ laneValueEdited()

void Patternist::View::laneValueEdited ( int  lane,
int  which,
int  value 
)

A lane's steps (0) or rate (1) dragged in its header; 0 follows the pattern.

◆ selectedLanes()

const std::vector< int > & Patternist::View::selectedLanes ( ) const
inlinenoexcept

Lanes picked whole, with Ctrl-click on their header or the All lanes button: what Copy, Paste and Clear act on when no step is selected. Picking lanes drops the steps selected, and the other way round.

◆ selection()

const StepSelection & Patternist::View::selection ( ) const

Steps selected by dragging in the select mode, or with Ctrl: in every lane, those under the stretch of time dragged over.

◆ setAdvanced()

void Patternist::View::setAdvanced ( bool  b)

Mute and solo buttons, step numbers, the selected lane and its parameter bars, a step menu on right-click.


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