From b4462b3d22f57f3fe7f4e933b2df0e2c89148e78 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 17 Jan 2014 00:20:58 +0100 Subject: add seeking to sfdb auditioner --- gtk2_ardour/sfdb_ui.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour/sfdb_ui.h') diff --git a/gtk2_ardour/sfdb_ui.h b/gtk2_ardour/sfdb_ui.h index 5d8decddf4..ccfd3799be 100644 --- a/gtk2_ardour/sfdb_ui.h +++ b/gtk2_ardour/sfdb_ui.h @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include @@ -57,7 +58,7 @@ namespace ARDOUR { class GainMeter; class Mootcher; -class SoundFileBox : public Gtk::VBox, public ARDOUR::SessionHandlePtr +class SoundFileBox : public Gtk::VBox, public ARDOUR::SessionHandlePtr, public PBD::ScopedConnectionList { public: SoundFileBox (bool persistent); @@ -103,11 +104,19 @@ class SoundFileBox : public Gtk::VBox, public ARDOUR::SessionHandlePtr Gtk::Button stop_btn; Gtk::CheckButton autoplay_btn; Gtk::Button apply_btn; + Gtk::HScale seek_slider; + + PBD::ScopedConnectionList auditioner_connections; + void audition_active(bool); + void audition_progress(ARDOUR::framecnt_t, ARDOUR::framecnt_t); bool tags_entry_left (GdkEventFocus* event); void tags_changed (); void save_tags (const std::vector&); void stop_audition (); + bool seek_button_press(GdkEventButton*); + bool seek_button_release(GdkEventButton*); + bool _seeking; }; class SoundFileBrowser : public ArdourWindow -- cgit v1.2.3