„PianoKeyBoard.h“ löschen
This commit is contained in:
parent
9d3db194fb
commit
c3683bb203
@ -1,35 +0,0 @@
|
|||||||
/* PIANOKEYBOARD_H
|
|
||||||
* CLASS DECLARATION
|
|
||||||
*
|
|
||||||
* CHANGLOG:
|
|
||||||
* NAME: | CHANGES: | DATE: |
|
|
||||||
* Mewes, Lars | Neuerstellung | 24.09.2021 |
|
|
||||||
* | | |
|
|
||||||
* | | |
|
|
||||||
* | | |
|
|
||||||
*
|
|
||||||
* DESCRIPTION:
|
|
||||||
* Diese Klasse stellt eine Klaviatur in einer "QGraphicsScene" dar und besitzt alle "PianoKey"-Elemente, die mit getter-setter-Funktionen genutzt werden.
|
|
||||||
*
|
|
||||||
* TO-DOs:
|
|
||||||
* Beschriftung auf den Elementen ergänzen
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
#pragma once
|
|
||||||
#include <QGraphicsScene>
|
|
||||||
#include "PianoKey.h"
|
|
||||||
#include <QMouseEvent>
|
|
||||||
|
|
||||||
class MainWindow;
|
|
||||||
|
|
||||||
class PianoKeyBoard: public QGraphicsScene{
|
|
||||||
PianoKey * keys[12];
|
|
||||||
public:
|
|
||||||
|
|
||||||
void mousePressEvent(QGraphicsSceneMouseEvent *event);
|
|
||||||
|
|
||||||
PianoKeyBoard(qreal x, qreal y, qreal w, qreal h, MainWindow *parent=nullptr);
|
|
||||||
|
|
||||||
virtual ~PianoKeyBoard();
|
|
||||||
PianoKey * getKey(int number)const;
|
|
||||||
};
|
|
Loading…
x
Reference in New Issue
Block a user