22#include <QGraphicsView>
23#include <QScopedPointer>
24#include <QGraphicsScene>
80 virtual void noteOn(
const int note,
const int vel ) = 0;
86 virtual void noteOff(
const int note,
const int vel ) = 0;
161 Q_PROPERTY(
int baseOctave READ baseOctave WRITE
setBaseOctave )
162 Q_PROPERTY(
int numKeys READ numKeys WRITE
setNumKeys )
172 Q_CLASSINFO(
"Author",
"Pedro Lopez-Cabanillas <plcl@users.sf.net>")
173 Q_CLASSINFO(
"URL",
"https://sourceforge.net/projects/drumstick")
174 Q_CLASSINFO(
"Version", QT_STRINGIFY(VERSION))
178 explicit PianoKeybd(QWidget *parent =
nullptr);
179 PianoKeybd(
const int baseOctave,
const int numKeys,
const int startKey, QWidget *parent =
nullptr);
188 void setFont(
const QFont &font);
208 int baseOctave()
const;
253 void showNoteOn(
const int note, QColor color,
int vel = -1 );
254 void showNoteOn(
const int note,
int vel = -1 );
287 void initDefaultMap();
288 void initScene(
int base,
int num,
int ini,
const QColor& c = QColor());
292 class PianoKeybdPrivate;
293 QScopedPointer<PianoKeybdPrivate> d;
The QGraphicsView class provides a widget for displaying the contents of a QGraphicsScene.
Drumstick visibility macros.
Piano Palette declarations.