22#include <QGraphicsView>
23#include <QScopedPointer>
24#include <QGraphicsScene>
33#if defined(DRUMSTICK_STATIC)
34#define DRUMSTICK_WIDGETS_EXPORT
36#if defined(drumstick_widgets_EXPORTS)
37#define DRUMSTICK_WIDGETS_EXPORT Q_DECL_EXPORT
39#define DRUMSTICK_WIDGETS_EXPORT Q_DECL_IMPORT
92 virtual void noteOn(
const int note,
const int vel ) = 0;
98 virtual void noteOff(
const int note,
const int vel ) = 0;
126 Q_ENUM_NS(LabelVisibility)
136 Q_ENUM_NS(LabelAlteration)
146 Q_ENUM_NS(LabelOrientation)
167 Q_ENUM_NS(LabelCentralOctave)
178 Q_PROPERTY(
int baseOctave READ baseOctave WRITE
setBaseOctave )
179 Q_PROPERTY(
int numKeys READ numKeys WRITE
setNumKeys )
187 Q_PROPERTY(
int startKey READ startKey WRITE
setStartKey )
188 Q_PROPERTY( QFont labelFont READ font WRITE
setFont )
191 Q_CLASSINFO(
"Author",
"Pedro Lopez-Cabanillas <plcl@users.sf.net>")
192 Q_CLASSINFO(
"URL",
"https://sourceforge.net/projects/drumstick")
193 Q_CLASSINFO(
"Version", QT_STRINGIFY(VERSION))
197 explicit PianoKeybd(QWidget *parent =
nullptr);
198 PianoKeybd(
const int baseOctave,
const int numKeys,
const int startKey, QWidget *parent =
nullptr);
201 void setFont(
const QFont &font);
221 int baseOctave()
const;
224 int startKey()
const;
266 void showNoteOn(
const int note, QColor color,
int vel = -1 );
267 void showNoteOn(
const int note,
int vel = -1 );
314 void initDefaultMap();
315 void initScene(
int base,
int num,
int ini,
const QColor& c = QColor());
320 class PianoKeybdPrivate;
321 QScopedPointer<PianoKeybdPrivate> d;
The QEvent class is the base class of all event classes.
The QGraphicsView class provides a widget for displaying the contents of a QGraphicsScene.
Piano Palette declarations.