summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_summary.h
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2014-06-17 21:44:36 +1000
committernick_m <mainsbridge@gmail.com>2014-06-17 21:44:36 +1000
commit46c158d8c6760fc127a73647bb25f9d5a16926a5 (patch)
treeb6d81f5764e8604886edcc57add5135ab59c3030 /gtk2_ardour/editor_summary.h
parente426c603b679903502989b2b36966e3fb2facd23 (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.h5
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;