summaryrefslogtreecommitdiff
path: root/gtk2_ardour/note_select_dialog.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-11-03 16:37:19 -0500
committerDavid Robillard <d@drobilla.net>2014-11-03 16:37:19 -0500
commit35672fb80a2258b01da60ba9514266b94c1493ff (patch)
tree34bc78495a708078321696cf7acb11b89d470a94 /gtk2_ardour/note_select_dialog.h
parent7204702c3ffbd3a1c6747511104d9c6af1b9c93d (diff)
Note selector dialog for note controls.
Diffstat (limited to 'gtk2_ardour/note_select_dialog.h')
-rw-r--r--gtk2_ardour/note_select_dialog.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/gtk2_ardour/note_select_dialog.h b/gtk2_ardour/note_select_dialog.h
new file mode 100644
index 0000000000..607dbe1506
--- /dev/null
+++ b/gtk2_ardour/note_select_dialog.h
@@ -0,0 +1,41 @@
+/*
+ Copyright (C) 2014 Paul Davis
+ Author: David Robillard
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+#ifndef __gtk2_ardour_note_select_dialog_h__
+#define __gtk2_ardour_note_select_dialog_h__
+
+#include "ardour_dialog.h"
+#include "gtk_pianokeyboard.h"
+
+class NoteSelectDialog : public ArdourDialog
+{
+public:
+ NoteSelectDialog();
+
+ uint8_t note_number() const { return _note_number; }
+
+ void note_on_event_handler(int note);
+
+private:
+ PianoKeyboard* _piano;
+ Gtk::Widget* _pianomm;
+ uint8_t _note_number;
+};
+
+#endif /* __gtk2_ardour_note_select_dialog_h__ */