redraw entire MidiStreamView after scroomer drag so that everything is redrawn
[ardour.git] / gtk2_ardour / patch_change.h
index fe54426e5f14ba448d035d8f7dd2f8d74788ce2e..652f9d66c176adb79e0d75037a44a9d0ae6c89b3 100644 (file)
@@ -40,15 +40,12 @@ public:
                double          height,
                double          x,
                double          y,
-               string&         model_name,
-               string&         custom_device_mode,
+               ARDOUR::InstrumentInfo& info,
                ARDOUR::MidiModel::PatchChangePtr patch
                );
 
        ~PatchChange();
 
-       string model_name () const { return _model_name; }
-       string custom_device_mode () const { return _custom_device_mode; }
        ARDOUR::MidiModel::PatchChangePtr patch () const { return _patch; }
 
        void initialize_popup_menus();
@@ -64,12 +61,13 @@ public:
        void hide ();
        void show ();
 
+        ArdourCanvas::Item& item() const { return *_flag; }
+
 private:
        bool event_handler (GdkEvent *);
 
        MidiRegionView& _region;
-       string        _model_name;
-       string        _custom_device_mode;
+        ARDOUR::InstrumentInfo& _info;
        ARDOUR::MidiModel::PatchChangePtr _patch;
        Gtk::Menu     _popup;
        bool          _popup_initialized;