diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-09-11 14:34:21 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-09-11 14:34:21 +0000 |
commit | ced90fa400b25f3b2ad385ff889215463766a32d (patch) | |
tree | 93ca36f90a18f911ce93bc85a68edf1e20ed264f /gtk2_ardour/sfdb_ui.h | |
parent | 772b002fea964485b73fd4f73957a6c72b67d504 (diff) |
add SRC quality to import dialog; fix instances of missing waveforms where new sources are created; add fader+meter to import dialog; metering now doesn't return -inf for ninputs == 0, only if ninputs & noutputs == 0
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2457 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/sfdb_ui.h')
-rw-r--r-- | gtk2_ardour/sfdb_ui.h | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/gtk2_ardour/sfdb_ui.h b/gtk2_ardour/sfdb_ui.h index ec057814be..366dcea4e9 100644 --- a/gtk2_ardour/sfdb_ui.h +++ b/gtk2_ardour/sfdb_ui.h @@ -47,6 +47,8 @@ namespace ARDOUR { class Session; }; +class GainMeter; + class SoundFileBox : public Gtk::VBox { public: @@ -133,6 +135,7 @@ class SoundFileBrowser : public ArdourDialog Gtk::FileFilter custom_filter; Gtk::FileFilter matchall_filter; SoundFileBox preview; + Gtk::HBox hpacker; static Glib::ustring persistent_folder; @@ -140,6 +143,15 @@ class SoundFileBrowser : public ArdourDialog Gtk::Button found_search_btn; Gtk::Notebook notebook; + GainMeter* gm; + Gtk::VBox meter_packer; + void add_gain_meter (); + void remove_gain_meter (); + void meter (); + void start_metering (); + void stop_metering (); + sigc::connection metering_connection; + void update_preview (); void found_list_view_selected (); void found_list_view_activated (const Gtk::TreeModel::Path& path, Gtk::TreeViewColumn*); @@ -150,6 +162,10 @@ class SoundFileBrowser : public ArdourDialog bool on_custom (const Gtk::FileFilter::Info& filter_info); virtual bool reset_options() { return true; } + + protected: + void on_show(); + }; class SoundFileChooser : public SoundFileBrowser @@ -162,9 +178,6 @@ class SoundFileChooser : public SoundFileBrowser protected: void on_hide(); - - private: - // SoundFileBrowser browser; }; class SoundFileOmega : public SoundFileBrowser @@ -178,12 +191,14 @@ class SoundFileOmega : public SoundFileBrowser Gtk::ComboBoxText action_combo; Gtk::ComboBoxText where_combo; Gtk::ComboBoxText channel_combo; - + Gtk::ComboBoxText src_combo; + Gtk::CheckButton copy_files_btn; Editing::ImportMode get_mode() const; Editing::ImportPosition get_position() const; Editing::ImportDisposition get_channel_disposition() const; + ARDOUR::SrcQuality get_src_quality() const; protected: void on_hide(); @@ -199,7 +214,9 @@ class SoundFileOmega : public SoundFileBrowser Gtk::VBox block_three; Gtk::VBox block_four; - static bool check_multichannel_status (const std::vector<Glib::ustring>& paths, bool& same_size, bool& err); + bool check_info (const std::vector<Glib::ustring>& paths, + bool& same_size, bool& src_needed, bool& multichannel); + static bool check_link_status (const ARDOUR::Session&, const std::vector<Glib::ustring>& paths); void file_selection_changed (); |