Explicit key-event forwarding for MacVST
[ardour.git] / gtk2_ardour / patch_change_dialog.h
index ed98df78a3c083fc9e571abade56274cdde8ae30..9a35778986489598ed020ca644d72d7bd5b2d847 100644 (file)
@@ -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<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 ();
@@ -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<MIDI::Name::PatchBank> _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;
 };