X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fpatch_change_dialog.h;h=9a35778986489598ed020ca644d72d7bd5b2d847;hb=5de24ac02c36de2b1aeec323f130f1267dc9c9df;hp=ed98df78a3c083fc9e571abade56274cdde8ae30;hpb=03dc458645d6f8e7cbb7ea95d3e1f6143aac64ef;p=ardour.git diff --git a/gtk2_ardour/patch_change_dialog.h b/gtk2_ardour/patch_change_dialog.h index ed98df78a3..9a35778986 100644 --- a/gtk2_ardour/patch_change_dialog.h +++ b/gtk2_ardour/patch_change_dialog.h @@ -26,7 +26,7 @@ #include "audio_clock.h" namespace ARDOUR { - class BeatsFramesConverter; + class BeatsSamplesConverter; class Session; class InstrumentInfo; } @@ -41,16 +41,20 @@ class PatchChangeDialog : public ArdourDialog { public: PatchChangeDialog ( - const ARDOUR::BeatsFramesConverter *, + const ARDOUR::BeatsSamplesConverter *, ARDOUR::Session *, Evoral::PatchChange const &, ARDOUR::InstrumentInfo&, const Gtk::BuiltinStockID &, - bool allow_delete = false + bool allow_delete = false, + bool modal = true ); Evoral::PatchChange patch () const; +protected: + void on_response (int); + private: void fill_bank_combo (); void set_active_bank_combo (); @@ -64,7 +68,7 @@ private: int get_14bit_bank () const; - const ARDOUR::BeatsFramesConverter* _time_converter; + const ARDOUR::BeatsSamplesConverter* _time_converter; ARDOUR::InstrumentInfo& _info; AudioClock _time; Gtk::SpinButton _channel; @@ -76,7 +80,8 @@ private: boost::shared_ptr _current_patch_bank; bool _ignore_signals; + bool _keep_open; - void instrument_info_changed (); - PBD::ScopedConnection _info_changed_connection; + void instrument_info_changed (); + PBD::ScopedConnection _info_changed_connection; };