summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mini_timeline.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-12-18 22:21:10 +0100
committerRobin Gareus <robin@gareus.org>2016-12-18 22:21:10 +0100
commit1bc0f9a1783cd3b854f425ddbf9e350badc265e1 (patch)
treefab2be5cd1bade3432d9aa05c16fa132946ff3ca /gtk2_ardour/mini_timeline.h
parent06938105a4c4ed4e343acaebf82087002b53e591 (diff)
consolidate mini-timeline code, latch expose
Diffstat (limited to 'gtk2_ardour/mini_timeline.h')
-rw-r--r--gtk2_ardour/mini_timeline.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/mini_timeline.h b/gtk2_ardour/mini_timeline.h
index 2d50c11ddf..fd703d3d1a 100644
--- a/gtk2_ardour/mini_timeline.h
+++ b/gtk2_ardour/mini_timeline.h
@@ -50,12 +50,14 @@ private:
void super_rapid_update ();
void on_size_request (Gtk::Requisition*);
+ void on_size_allocate (Gtk::Allocation&);
void on_style_changed (const Glib::RefPtr<Gtk::Style>&);
void on_name_changed ();
void set_colors ();
void parameter_changed (std::string const &);
void calculate_time_width ();
+ void calculate_time_spacing ();
void update_minitimeline ();
void draw_dots (cairo_t*, int left, int right, int y, ArdourCanvas::Color);
int draw_mark (cairo_t*, int x0, int x1, int h, const std::string&);
@@ -76,6 +78,11 @@ private:
int _time_width;
int _time_height;
+ int _n_labels;
+ double _px_per_sample;
+ framepos_t _time_granularity;
+ framepos_t _time_span_samples;
+
struct JumpRange {
JumpRange (int l, int r, framepos_t t)
: left (l), right (r), to (t) {}