MuseScore  3.4
Music composition and notation
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
Ms::ChordView Class Reference

#include <chordview.h>

Inheritance diagram for Ms::ChordView:
Inheritance graph
[legend]
Collaboration diagram for Ms::ChordView:
Collaboration graph
[legend]

Public Slots

void moveLocator ()
 
void selectionChanged ()
 

Signals

void magChanged (double, double)
 
void xposChanged (int)
 
void pitchChanged (int)
 
void posChanged (int)
 

Public Member Functions

 ChordView ()
 
void setChord (Chord *)
 
void ensureVisible (int tick)
 
QList< QGraphicsItem * > items ()
 
bool evenGrid () const
 
void setEvenGrid (bool val)
 
GripItemrightGrip () const
 
void setCurItem (ChordItem *)
 
bool dirty () const
 
void setDirty (bool b)
 
NotecurNote () const
 

Static Public Member Functions

static int pos2pix (int pos)
 
static int pix2pos (int pix)
 
static int y2pitch (int pix)
 
static int pitch2y (int pitch)
 

Protected Slots

void deleteItem ()
 

Protected Member Functions

virtual void wheelEvent (QWheelEvent *)
 
virtual void mouseMoveEvent (QMouseEvent *)
 
virtual void leaveEvent (QEvent *)
 
virtual void mousePressEvent (QMouseEvent *)
 

Private Member Functions

virtual void drawBackground (QPainter *, const QRectF &rect)
 

Private Attributes

Chordchord
 
Note_curNote
 
int _locator
 
int _pos
 
QGraphicsLineItem * locatorLine
 
int ticks
 
int magStep
 
GripItemlg
 
GripItemrg
 
ChordItemcurEvent
 
bool _evenGrid
 
bool _dirty
 

Constructor & Destructor Documentation

◆ ChordView()

Ms::ChordView::ChordView ( )

Member Function Documentation

◆ curNote()

Note* Ms::ChordView::curNote ( ) const
inline

◆ deleteItem

void Ms::ChordView::deleteItem ( )
protectedslot

◆ dirty()

bool Ms::ChordView::dirty ( ) const
inline

◆ drawBackground()

void Ms::ChordView::drawBackground ( QPainter *  p,
const QRectF &  rect 
)
privatevirtual

◆ ensureVisible()

void Ms::ChordView::ensureVisible ( int  tick)

◆ evenGrid()

bool Ms::ChordView::evenGrid ( ) const
inline

◆ items()

QList<QGraphicsItem*> Ms::ChordView::items ( )
inline

◆ leaveEvent()

void Ms::ChordView::leaveEvent ( QEvent *  event)
protectedvirtual

◆ magChanged

void Ms::ChordView::magChanged ( double  ,
double   
)
signal

◆ mouseMoveEvent()

void Ms::ChordView::mouseMoveEvent ( QMouseEvent *  event)
protectedvirtual

◆ mousePressEvent()

void Ms::ChordView::mousePressEvent ( QMouseEvent *  event)
protectedvirtual

◆ moveLocator

void Ms::ChordView::moveLocator ( )
slot

◆ pitch2y()

int Ms::ChordView::pitch2y ( int  pitch)
static

◆ pitchChanged

void Ms::ChordView::pitchChanged ( int  )
signal

◆ pix2pos()

int Ms::ChordView::pix2pos ( int  pix)
static

◆ pos2pix()

int Ms::ChordView::pos2pix ( int  pos)
static

◆ posChanged

void Ms::ChordView::posChanged ( int  )
signal

◆ rightGrip()

GripItem* Ms::ChordView::rightGrip ( ) const
inline

◆ selectionChanged

void Ms::ChordView::selectionChanged ( )
slot

◆ setChord()

void Ms::ChordView::setChord ( Chord c)

◆ setCurItem()

void Ms::ChordView::setCurItem ( ChordItem item)

◆ setDirty()

void Ms::ChordView::setDirty ( bool  b)
inline

◆ setEvenGrid()

void Ms::ChordView::setEvenGrid ( bool  val)
inline

◆ wheelEvent()

void Ms::ChordView::wheelEvent ( QWheelEvent *  event)
protectedvirtual

◆ xposChanged

void Ms::ChordView::xposChanged ( int  )
signal

◆ y2pitch()

int Ms::ChordView::y2pitch ( int  pix)
static

Member Data Documentation

◆ _curNote

Note* Ms::ChordView::_curNote
private

◆ _dirty

bool Ms::ChordView::_dirty
private

◆ _evenGrid

bool Ms::ChordView::_evenGrid
private

◆ _locator

int Ms::ChordView::_locator
private

◆ _pos

int Ms::ChordView::_pos
private

◆ chord

Chord* Ms::ChordView::chord
private

◆ curEvent

ChordItem* Ms::ChordView::curEvent
private

◆ lg

GripItem* Ms::ChordView::lg
private

◆ locatorLine

QGraphicsLineItem* Ms::ChordView::locatorLine
private

◆ magStep

int Ms::ChordView::magStep
private

◆ rg

GripItem* Ms::ChordView::rg
private

◆ ticks

int Ms::ChordView::ticks
private

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