#include <sigc++/signal.h>
#include <boost/shared_ptr.hpp>
+#include "ardour/session_handle.h"
+
namespace ARDOUR {
- class Session;
class ExportFormatSpecification;
class ExportProfileManager;
}
-///
-class ExportFormatSelector : public Gtk::HBox {
+///
+class ExportFormatSelector : public Gtk::HBox, public ARDOUR::SessionHandlePtr
+{
private:
ExportFormatSelector ();
~ExportFormatSelector ();
-
+
void set_state (ARDOUR::ExportProfileManager::FormatStatePtr state_, ARDOUR::Session * session_);
void update_format_list ();
-
+
sigc::signal<void, FormatPtr> FormatEdited;
sigc::signal<void, FormatPtr> FormatRemoved;
sigc::signal<FormatPtr, FormatPtr> NewFormat;
-
+
/* Compatibility with other elements */
-
+
sigc::signal<void> CriticalSelectionChanged;
private:
void update_format_description ();
ARDOUR::ExportProfileManager::FormatStatePtr state;
- ARDOUR::Session * session;
/*** GUI componenets ***/
public:
Gtk::TreeModelColumn<FormatPtr> format;
Gtk::TreeModelColumn<Glib::ustring> label;
-
+
FormatCols () { add (format); add (label); }
};
FormatCols format_cols;