Catch new exception in other places.
[ardour.git] / gtk2_ardour / patch_change_dialog.h
index d19234d2c47ae1536d183fe87722668cdb274d0d..0390ecfffacb03028f2803c5efef67689a3b72b8 100644 (file)
@@ -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 ();
@@ -62,18 +66,22 @@ private:
        void bank_changed ();
        void program_changed ();
 
+       int get_14bit_bank () const;
+
        const ARDOUR::BeatsFramesConverter* _time_converter;
-        ARDOUR::InstrumentInfo& _info;
+       ARDOUR::InstrumentInfo& _info;
        AudioClock _time;
        Gtk::SpinButton _channel;
        Gtk::SpinButton _program;
-       Gtk::SpinButton _bank;
+       Gtk::SpinButton _bank_msb;
+       Gtk::SpinButton _bank_lsb;
        Gtk::ComboBoxText _bank_combo;
        Gtk::ComboBoxText _patch_combo;
 
        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;
 };