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::PianoKeyboard Class Reference

#include <pianokeyboard.h>

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

Public Slots

void setYpos (int val)
 
void setNoteHeight (int)
 
void setPitch (int)
 

Signals

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

Public Member Functions

 PianoKeyboard (QWidget *parent=0)
 
Staffstaff ()
 
void setStaff (Staff *staff)
 
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 *)
 

Private Attributes

PianoOrientation _orientation
 
int _ypos
 
int noteHeight
 
int yRange
 
int curPitch
 
int curKeyPressed
 
Staff_staff
 

Static Private Attributes

static const QString pitchNames []
 

Constructor & Destructor Documentation

◆ PianoKeyboard()

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

Member Function Documentation

◆ keyPressed

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

◆ keyReleased

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

◆ leaveEvent()

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

◆ mouseMoveEvent()

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

◆ mousePressEvent()

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

◆ mouseReleaseEvent()

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

◆ paintEvent()

void Ms::PianoKeyboard::paintEvent ( QPaintEvent *  )
privatevirtual

◆ pitchChanged

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

◆ setNoteHeight

void Ms::PianoKeyboard::setNoteHeight ( int  nh)
slot

◆ setOrientation()

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

◆ setPitch

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

◆ setStaff()

void Ms::PianoKeyboard::setStaff ( Staff staff)

◆ setYpos

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

◆ staff()

Staff* Ms::PianoKeyboard::staff ( )
inline

Member Data Documentation

◆ _orientation

PianoOrientation Ms::PianoKeyboard::_orientation
private

◆ _staff

Staff* Ms::PianoKeyboard::_staff
private

◆ _ypos

int Ms::PianoKeyboard::_ypos
private

◆ curKeyPressed

int Ms::PianoKeyboard::curKeyPressed
private

◆ curPitch

int Ms::PianoKeyboard::curPitch
private

◆ noteHeight

int Ms::PianoKeyboard::noteHeight
private

◆ pitchNames

const QString Ms::PianoKeyboard::pitchNames
staticprivate
Initial value:
=
{"C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"}

◆ yRange

int Ms::PianoKeyboard::yRange
private

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