X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fsfdb_ui.h;h=4424c0db39f163a3d20af51ab31870aa410d395b;hb=c9f9bb263fc3f96e383216d515c62ac6706b56da;hp=5d8decddf4dcd5d7ad905dd910797946d32a0182;hpb=9a9f4276a05d6531bc41edc5ed1d546aa43b3665;p=ardour.git diff --git a/gtk2_ardour/sfdb_ui.h b/gtk2_ardour/sfdb_ui.h index 5d8decddf4..4424c0db39 100644 --- a/gtk2_ardour/sfdb_ui.h +++ b/gtk2_ardour/sfdb_ui.h @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include @@ -49,6 +50,7 @@ #include "ardour_window.h" #include "editing.h" #include "audio_clock.h" +#include "instrument_selector.h" namespace ARDOUR { class Session; @@ -57,7 +59,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 +71,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 +107,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&); 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 @@ -271,6 +285,7 @@ class SoundFileOmega : public SoundFileBrowser Gtk::ComboBoxText where_combo; Gtk::ComboBoxText channel_combo; Gtk::ComboBoxText src_combo; + InstrumentSelector instrument_combo; Gtk::CheckButton copy_files_btn; @@ -304,6 +319,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); };