Fix edit point selector on Mixbus.
[ardour.git] / gtk2_ardour / sfdb_ui.h
index 5d8decddf4dcd5d7ad905dd910797946d32a0182..aa0aa334989d4faec4af9869de41b71a4343a1d0 100644 (file)
@@ -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);
@@ -69,6 +70,8 @@ class SoundFileBox : public Gtk::VBox, public ARDOUR::SessionHandlePtr
        void audition();
        bool audition_oneshot();
        bool autoplay () const;
+       void set_src_quality(ARDOUR::SrcQuality q) { _src_quality = q; }
+       void set_import_position(Editing::ImportPosition p) { _import_position = p; }
 
   protected:
        std::string path;
@@ -103,11 +106,21 @@ 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;
+       ARDOUR::SrcQuality _src_quality;
+       Editing::ImportPosition _import_position;
 };
 
 class SoundFileBrowser : public ArdourWindow
@@ -304,6 +317,8 @@ class SoundFileOmega : public SoundFileBrowser
        bool reset_options ();
        void reset_options_noret ();
        bool bad_file_message ();
+       void src_combo_changed ();
+       void where_combo_changed ();
 
         void do_something (int action);
 };