summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_summary.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-07-24 02:58:28 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-07-24 02:58:28 +0000
commit4bcc3d377c04587e24895ed987159ef1d9cc1828 (patch)
tree8a9c62cfc98f606f05788af5a0705f4bdb000b81 /gtk2_ardour/editor_summary.h
parent6805a33f82263e0515d44c4b76c72ee227d2d40f (diff)
make rendering of the editor summary view a bit more efficient, enable key event handling there and make "p" do what it does in the main canvas (position the playhead) - this needs to be dynamic to follow bindings eventually
git-svn-id: svn://localhost/ardour2/branches/3.0@13073 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_summary.h')
-rw-r--r--gtk2_ardour/editor_summary.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_summary.h b/gtk2_ardour/editor_summary.h
index 0af8be5c91..c1afc3237f 100644
--- a/gtk2_ardour/editor_summary.h
+++ b/gtk2_ardour/editor_summary.h
@@ -57,13 +57,16 @@ private:
TO_LEFT_OR_RIGHT,
OTHERWISE_OUTSIDE
};
-
- bool on_expose_event (GdkEventExpose *);
+
void on_size_request (Gtk::Requisition *);
bool on_button_press_event (GdkEventButton *);
bool on_button_release_event (GdkEventButton *);
bool on_motion_notify_event (GdkEventMotion *);
bool on_scroll_event (GdkEventScroll *);
+ bool on_key_press_event (GdkEventKey*);
+ bool on_key_release_event (GdkEventKey*);
+ bool on_enter_notify_event (GdkEventCrossing*);
+ bool on_leave_notify_event (GdkEventCrossing*);
void centre_on_click (GdkEventButton *);
void render (cairo_t *);
@@ -84,6 +87,7 @@ private:
void route_gui_changed (std::string);
bool suspending_editor_updates () const;
double playhead_frame_to_position (framepos_t) const;
+ framepos_t position_to_playhead_frame_to_position (double pos) const;
void set_overlays_dirty (int, int, int, int);
framepos_t _start; ///< start frame of the overview