diff options
author | Robin Gareus <robin@gareus.org> | 2017-08-24 23:41:21 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-24 23:41:21 +0200 |
commit | 0e9dab6aabc2efddc957c7c71bc55354c16626ed (patch) | |
tree | f85f642b628e277f47d62cee5bf4728a4e3766a1 /gtk2_ardour/patch_change_dialog.h | |
parent | 18cf003aa9faf99cbc0cb1b2ec8596aef6cd68e0 (diff) |
Allow to send immediate PC messages without closing the dialog.
Perhaps every change should trigger a PC (without "Apply") button?!
Diffstat (limited to 'gtk2_ardour/patch_change_dialog.h')
-rw-r--r-- | gtk2_ardour/patch_change_dialog.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk2_ardour/patch_change_dialog.h b/gtk2_ardour/patch_change_dialog.h index 65b107c8a5..0390ecfffa 100644 --- a/gtk2_ardour/patch_change_dialog.h +++ b/gtk2_ardour/patch_change_dialog.h @@ -46,11 +46,15 @@ public: Evoral::PatchChange<Evoral::Beats> const &, ARDOUR::InstrumentInfo&, const Gtk::BuiltinStockID &, - bool allow_delete = false + bool allow_delete = false, + bool modal = true ); Evoral::PatchChange<Evoral::Beats> patch () const; +protected: + void on_response (int); + private: void fill_bank_combo (); void set_active_bank_combo (); @@ -76,6 +80,7 @@ private: boost::shared_ptr<MIDI::Name::PatchBank> _current_patch_bank; bool _ignore_signals; + bool _keep_open; void instrument_info_changed (); PBD::ScopedConnection _info_changed_connection; |