summaryrefslogtreecommitdiff
path: root/gtk2_ardour/patch_change_dialog.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-06-02 13:02:01 +0000
committerCarl Hetherington <carl@carlh.net>2012-06-02 13:02:01 +0000
commit2010c0489fb1e482d54c008f6c58fc64e6c406cf (patch)
tree58e5da63dda75488ee4b3a4718294fcc887ca74c /gtk2_ardour/patch_change_dialog.h
parente16bb2a07826592f26dd200160358bf37453bb9d (diff)
Put MIDNAM stuff into the patch change dialog.
git-svn-id: svn://localhost/ardour2/branches/3.0@12539 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/patch_change_dialog.h')
-rw-r--r--gtk2_ardour/patch_change_dialog.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/gtk2_ardour/patch_change_dialog.h b/gtk2_ardour/patch_change_dialog.h
index 02eb311d48..0691260126 100644
--- a/gtk2_ardour/patch_change_dialog.h
+++ b/gtk2_ardour/patch_change_dialog.h
@@ -19,6 +19,8 @@
*/
#include <gtkmm/spinbutton.h>
+#include <gtkmm/comboboxtext.h>
+#include "midi++/midnam_patch.h"
#include "evoral/PatchChange.hpp"
#include "ardour_dialog.h"
#include "audio_clock.h"
@@ -28,6 +30,12 @@ namespace ARDOUR {
class Session;
}
+namespace MIDI {
+ namespace Name {
+ class PatchBank;
+ }
+}
+
class PatchChangeDialog : public ArdourDialog
{
public:
@@ -35,15 +43,36 @@ public:
const ARDOUR::BeatsFramesConverter *,
ARDOUR::Session *,
Evoral::PatchChange<Evoral::MusicalTime> const &,
+ std::string const &,
+ std::string const &,
const Gtk::BuiltinStockID &
);
Evoral::PatchChange<Evoral::MusicalTime> patch () const;
private:
+ void fill_bank_combo ();
+ void set_active_bank_combo ();
+ void fill_patch_combo ();
+ void set_active_patch_combo ();
+ void bank_combo_changed ();
+ void patch_combo_changed ();
+ void channel_changed ();
+ void bank_changed ();
+ void program_changed ();
+
+ MIDI::Name::ChannelNameSet::PatchBanks const * get_banks ();
+
const ARDOUR::BeatsFramesConverter* _time_converter;
+ std::string _model_name;
+ std::string _custom_device_mode;
AudioClock _time;
Gtk::SpinButton _channel;
Gtk::SpinButton _program;
Gtk::SpinButton _bank;
+ Gtk::ComboBoxText _bank_combo;
+ Gtk::ComboBoxText _patch_combo;
+
+ boost::shared_ptr<MIDI::Name::PatchBank> _current_patch_bank;
+ bool _ignore_signals;
};