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

#include <piano.h>

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

Public Slots

void setYpos (int val)
 
void setMag (double, double)
 
void setPitch (int)
 

Signals

void pitchChanged (int)
 
void keyPressed (int pitch)
 
void keyReleased (int pitch)
 

Public Member Functions

 Piano (QWidget *parent=0)
 
void setOrientation (PianoOrientation)
 

Private Member Functions

virtual void paintEvent (QPaintEvent *)
 
virtual void mousePressEvent (QMouseEvent *)
 
virtual void mouseReleaseEvent (QMouseEvent *)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void leaveEvent (QEvent *)
 
int pitch2y (int pitch) const
 
int y2pitch (int y) const
 

Private Attributes

PianoOrientation _orientation
 
double _ymag
 
int _ypos
 
int yRange
 
int curPitch
 
int curKeyPressed
 

Static Private Attributes

static QPixmap * octave
 
static QPixmap * mk1
 
static QPixmap * mk2
 
static QPixmap * mk3
 
static QPixmap * mk4
 

Constructor & Destructor Documentation

◆ Piano()

Ms::Piano::Piano ( QWidget *  parent = 0)

Member Function Documentation

◆ keyPressed

void Ms::Piano::keyPressed ( int  pitch)
signal

◆ keyReleased

void Ms::Piano::keyReleased ( int  pitch)
signal

◆ leaveEvent()

void Ms::Piano::leaveEvent ( QEvent *  )
privatevirtual

◆ mouseMoveEvent()

void Ms::Piano::mouseMoveEvent ( QMouseEvent *  event)
privatevirtual

◆ mousePressEvent()

void Ms::Piano::mousePressEvent ( QMouseEvent *  event)
privatevirtual

◆ mouseReleaseEvent()

void Ms::Piano::mouseReleaseEvent ( QMouseEvent *  )
privatevirtual

◆ paintEvent()

void Ms::Piano::paintEvent ( QPaintEvent *  event)
privatevirtual

◆ pitch2y()

int Ms::Piano::pitch2y ( int  pitch) const
private

◆ pitchChanged

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

◆ setMag

void Ms::Piano::setMag ( double  ,
double  ym 
)
slot

◆ setOrientation()

void Ms::Piano::setOrientation ( PianoOrientation  o)

◆ setPitch

void Ms::Piano::setPitch ( int  val)
slot

◆ setYpos

void Ms::Piano::setYpos ( int  val)
slot

◆ y2pitch()

int Ms::Piano::y2pitch ( int  y) const
private

Member Data Documentation

◆ _orientation

PianoOrientation Ms::Piano::_orientation
private

◆ _ymag

double Ms::Piano::_ymag
private

◆ _ypos

int Ms::Piano::_ypos
private

◆ curKeyPressed

int Ms::Piano::curKeyPressed
private

◆ curPitch

int Ms::Piano::curPitch
private

◆ mk1

QPixmap * Ms::Piano::mk1
staticprivate

◆ mk2

QPixmap * Ms::Piano::mk2
staticprivate

◆ mk3

QPixmap * Ms::Piano::mk3
staticprivate

◆ mk4

QPixmap * Ms::Piano::mk4
staticprivate

◆ octave

QPixmap * Ms::Piano::octave
staticprivate

◆ yRange

int Ms::Piano::yRange
private

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