diff options
author | Carl Hetherington <carl@carlh.net> | 2009-12-07 18:35:42 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-12-07 18:35:42 +0000 |
commit | dc86434283718b7c4a4ed6af52a950e6cfc5e86f (patch) | |
tree | fbb1ea6c2fda853e4201ca783a7d76f29416f3dc /gtk2_ardour/port_matrix.h | |
parent | 71f1b360a0c0ddeb9b7eb47f01dfbd87423b314a (diff) |
Redraw the matrix correctly when available ports change in the currently visible tab.
git-svn-id: svn://localhost/ardour2/branches/3.0@6322 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix.h')
-rw-r--r-- | gtk2_ardour/port_matrix.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/gtk2_ardour/port_matrix.h b/gtk2_ardour/port_matrix.h index f228a4101f..477b0947dc 100644 --- a/gtk2_ardour/port_matrix.h +++ b/gtk2_ardour/port_matrix.h @@ -88,7 +88,7 @@ public: } PortGroupList const * columns () const; - boost::shared_ptr<PortGroup> visible_columns () const; + boost::shared_ptr<const PortGroup> visible_columns () const; /** @return index into the _ports array for the list which is displayed as columns */ int column_index () const { @@ -96,7 +96,7 @@ public: } PortGroupList const * rows () const; - boost::shared_ptr<PortGroup> visible_rows () const; + boost::shared_ptr<const PortGroup> visible_rows () const; /** @return index into the _ports array for the list which is displayed as rows */ int row_index () const { @@ -107,9 +107,7 @@ public: return &_ports[d]; } - boost::shared_ptr<const PortGroup> visible_ports (int d) const { - return _visible_ports[d]; - } + boost::shared_ptr<const PortGroup> visible_ports (int d) const; void init (); void setup (); @@ -156,7 +154,6 @@ protected: from left to right as you go from list 0 to list 1. Hence subclasses which deal with inputs and outputs should put outputs in list 0 and inputs in list 1. */ PortGroupList _ports[2]; - boost::shared_ptr<PortGroup> _visible_ports[2]; ARDOUR::Session* _session; private: @@ -176,8 +173,7 @@ private: boost::shared_ptr<ARDOUR::IO> io_from_bundle (boost::shared_ptr<ARDOUR::Bundle>) const; void setup_notebooks (); void remove_notebook_pages (Gtk::Notebook &); - void v_page_selected (GtkNotebookPage *, guint); - void h_page_selected (GtkNotebookPage *, guint); + void notebook_page_selected (GtkNotebookPage *, guint); void route_processors_changed (ARDOUR::RouteProcessorChange); void body_dimensions_changed (); void session_going_away (); |