projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix verbose plugin scan
[ardour.git]
/
gtk2_ardour
/
sfdb_ui.h
diff --git
a/gtk2_ardour/sfdb_ui.h
b/gtk2_ardour/sfdb_ui.h
index 5d8decddf4dcd5d7ad905dd910797946d32a0182..4424c0db39f163a3d20af51ab31870aa410d395b 100644
(file)
--- 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/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>
#include <gtkmm/textview.h>
#include <gtkmm/table.h>
#include <gtkmm/liststore.h>
@@
-49,6
+50,7
@@
#include "ardour_window.h"
#include "editing.h"
#include "audio_clock.h"
#include "ardour_window.h"
#include "editing.h"
#include "audio_clock.h"
+#include "instrument_selector.h"
namespace ARDOUR {
class Session;
namespace ARDOUR {
class Session;
@@
-57,7
+59,7
@@
namespace ARDOUR {
class GainMeter;
class Mootcher;
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);
{
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 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;
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::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 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
};
class SoundFileBrowser : public ArdourWindow
@@
-271,6
+285,7
@@
class SoundFileOmega : public SoundFileBrowser
Gtk::ComboBoxText where_combo;
Gtk::ComboBoxText channel_combo;
Gtk::ComboBoxText src_combo;
Gtk::ComboBoxText where_combo;
Gtk::ComboBoxText channel_combo;
Gtk::ComboBoxText src_combo;
+ InstrumentSelector instrument_combo;
Gtk::CheckButton copy_files_btn;
Gtk::CheckButton copy_files_btn;
@@
-304,6
+319,8
@@
class SoundFileOmega : public SoundFileBrowser
bool reset_options ();
void reset_options_noret ();
bool bad_file_message ();
bool reset_options ();
void reset_options_noret ();
bool bad_file_message ();
+ void src_combo_changed ();
+ void where_combo_changed ();
void do_something (int action);
};
void do_something (int action);
};