diff options
author | Robin Gareus <robin@gareus.org> | 2014-01-17 00:20:58 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-01-17 00:20:58 +0100 |
commit | b4462b3d22f57f3fe7f4e933b2df0e2c89148e78 (patch) | |
tree | 114d4c04b6206b199c1c627900a2cbfe1d31007d /gtk2_ardour/sfdb_ui.h | |
parent | 10933e200369ecceb2c8b3a52be41b930955d269 (diff) |
add seeking to sfdb auditioner
Diffstat (limited to 'gtk2_ardour/sfdb_ui.h')
-rw-r--r-- | gtk2_ardour/sfdb_ui.h | 11 |
1 files changed, 10 insertions, 1 deletions
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 <gtkmm/filechooserwidget.h> #include <gtkmm/frame.h> #include <gtkmm/label.h> +#include <gtkmm/scale.h> #include <gtkmm/textview.h> #include <gtkmm/table.h> #include <gtkmm/liststore.h> @@ -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<std::string>&); void stop_audition (); + bool seek_button_press(GdkEventButton*); + bool seek_button_release(GdkEventButton*); + bool _seeking; }; class SoundFileBrowser : public ArdourWindow |