moved MIDI-event-code to piano-class

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@764 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-03-04 00:57:47 +00:00
parent 48c3b8468b
commit 6f8b8c3a75
2 changed files with 69 additions and 68 deletions

View File

@@ -54,7 +54,9 @@ public:
virtual ~piano();
void setKeyState( int _key, bool _on = FALSE );
static int getKeyFromKeycode( int _kc );
void handleKeyPress( int _key );
void handleKeyRelease( int _key );
private:
@@ -75,14 +77,13 @@ public:
pianoView( QWidget * _parent );
virtual ~pianoView();
static int getKeyFromScancode( int _sc );
protected:
virtual void modelChanged( void );
virtual void keyPressEvent( QKeyEvent * ke );
virtual void keyReleaseEvent( QKeyEvent * ke );
#ifndef BUILD_WIN32
virtual bool x11Event( XEvent * _xe );
#endif
virtual void contextMenuEvent( QContextMenuEvent * _me );
virtual void paintEvent( QPaintEvent * );
virtual void mousePressEvent( QMouseEvent * me );
@@ -107,7 +108,6 @@ private:
octaves m_startOctave;
int m_lastKey;
unsigned int m_keyCode;
private slots: