X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Feditor_summary.h;h=96d20fffa6ceb5515c2cdc2dcd37f025447ce658;hb=162c48b84381335ff90fe64b5324467693dee736;hp=1d68e3b7936e6d1d68f4a81df7e2aceb30d67ff0;hpb=b895b677bf29cca95fe0626616d7495113386b04;p=ardour.git diff --git a/gtk2_ardour/editor_summary.h b/gtk2_ardour/editor_summary.h index 1d68e3b793..96d20fffa6 100644 --- a/gtk2_ardour/editor_summary.h +++ b/gtk2_ardour/editor_summary.h @@ -21,6 +21,7 @@ #define __gtk_ardour_editor_summary_h__ #include "cairo_widget.h" +#include "editor_component.h" namespace ARDOUR { class Session; @@ -31,12 +32,12 @@ class Editor; /** Class to provide a visual summary of the contents of an editor window; represents * the whole session as a set of lines, one per region view. */ -class EditorSummary : public CairoWidget +class EditorSummary : public CairoWidget, public EditorComponent { public: EditorSummary (Editor *); - void set_session (ARDOUR::Session *); + void connect_to_session (ARDOUR::Session *); void set_overlays_dirty (); private: @@ -54,8 +55,6 @@ private: void set_editor (std::pair const &, std::pair const &); void playhead_position_changed (nframes64_t); - Editor* _editor; ///< our editor - ARDOUR::Session* _session; ///< our session double _x_scale; ///< pixels per frame for the x axis of the pixmap double _y_scale; double _last_playhead;