diff options
author | nick_m <mainsbridge@gmail.com> | 2014-06-17 21:44:36 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2014-06-17 21:44:36 +1000 |
commit | 46c158d8c6760fc127a73647bb25f9d5a16926a5 (patch) | |
tree | b6d81f5764e8604886edcc57add5135ab59c3030 /gtk2_ardour/editor_summary.h | |
parent | e426c603b679903502989b2b36966e3fb2facd23 (diff) |
Render tracks and regions to a background image in the editor summary.
Connect to editor's SelectionChanged signal to display corresponding region colour change.
Diffstat (limited to 'gtk2_ardour/editor_summary.h')
-rw-r--r-- | gtk2_ardour/editor_summary.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_summary.h b/gtk2_ardour/editor_summary.h index 87474188b1..6f9f78d712 100644 --- a/gtk2_ardour/editor_summary.h +++ b/gtk2_ardour/editor_summary.h @@ -39,9 +39,11 @@ public: void set_session (ARDOUR::Session *); void set_overlays_dirty (); + void set_background_dirty (); void routes_added (std::list<RouteTimeAxisView*> const &); private: + void on_size_allocate (Gtk::Allocation& alloc); enum Position { LEFT, @@ -120,6 +122,9 @@ private: Position _zoom_position; bool _old_follow_playhead; + cairo_surface_t* _image; + void render_background_image (); + bool _background_dirty; PBD::ScopedConnectionList position_connection; PBD::ScopedConnection route_ctrl_id_connection; |