summaryrefslogtreecommitdiff
path: root/gtk2_ardour/patch_change_widget.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-09-08 19:37:48 +0200
committerRobin Gareus <robin@gareus.org>2017-09-08 23:35:00 +0200
commitc3e8cdb418008d05a927b442eb9291a1cd6f7111 (patch)
tree0ebbc1834b1cfe93620c5ac862e5d91045c1c8c6 /gtk2_ardour/patch_change_widget.h
parentb7227415ad70a2fd35344f783dcbdc9104d23c36 (diff)
PatchChange Dialog: update title & refresh midnam on change
Diffstat (limited to 'gtk2_ardour/patch_change_widget.h')
-rw-r--r--gtk2_ardour/patch_change_widget.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk2_ardour/patch_change_widget.h b/gtk2_ardour/patch_change_widget.h
index f3f7898508..81e73bda44 100644
--- a/gtk2_ardour/patch_change_widget.h
+++ b/gtk2_ardour/patch_change_widget.h
@@ -39,6 +39,8 @@ public:
PatchChangeWidget (boost::shared_ptr<ARDOUR::Route>);
~PatchChangeWidget ();
+ void refresh ();
+
protected:
int bank (uint8_t) const;
uint8_t program (uint8_t) const;
@@ -105,11 +107,14 @@ private:
class PatchChangeGridDialog : public ArdourDialog
{
public:
- PatchChangeGridDialog (std::string const&, boost::shared_ptr<ARDOUR::Route>);
+ PatchChangeGridDialog (boost::shared_ptr<ARDOUR::Route>);
void on_hide () { w.hide (); ArdourDialog::on_hide (); }
void on_show () { w.show (); ArdourDialog::on_show (); }
+ void refresh () { w.refresh (); }
private:
+ void route_property_changed (const PBD::PropertyChange&, boost::weak_ptr<ARDOUR::Route>);
+ PBD::ScopedConnection _route_connection;
PatchChangeWidget w;
};