+class SoundFileBox : public Gtk::VBox
+{
+ public:
+ SoundFileBox ();
+ virtual ~SoundFileBox () {};
+
+ void set_session (ARDOUR::Session* s);
+ bool setup_labels (std::string filename);
+
+ protected:
+ ARDOUR::Session* _session;
+ std::string path;
+
+ struct LabelModelColumns : public Gtk::TreeModel::ColumnRecord
+ {
+ public:
+ Gtk::TreeModelColumn<std::string> field;
+ Gtk::TreeModelColumn<std::string> data;
+
+ LabelModelColumns() { add(field); add(data); }
+ };
+
+ LabelModelColumns label_columns;
+
+ SF_INFO sf_info;
+
+ pid_t current_pid;
+
+ Gtk::Label length;
+ Gtk::Label format;
+ Gtk::Label channels;
+ Gtk::Label samplerate;
+
+ Gtk::TreeView field_view;
+ Glib::RefPtr<Gtk::ListStore> fields;
+ std::string selected_field;
+
+ Gtk::Frame border_frame;
+
+ Gtk::VBox main_box;
+ Gtk::VBox path_box;
+ Gtk::HBox top_box;
+ Gtk::HBox bottom_box;
+
+ Gtk::Button play_btn;
+ Gtk::Button stop_btn;
+ Gtk::Button add_field_btn;
+ Gtk::Button remove_field_btn;
+
+ void setup_fields ();
+
+ void play_btn_clicked ();
+ void stop_btn_clicked ();
+ void add_field_clicked ();
+ void remove_field_clicked ();
+ void delete_row (const Gtk::TreeModel::iterator& iter);
+
+ void field_selected ();
+ void audition_status_changed (bool state);
+};
+
+class SoundFileBrowser : public ArdourDialog