X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fexport_file_notebook.h;h=9f357ab1d548f01537acef0aa231509184f7c08c;hb=e827bb2bff271f99abd3531ddd0e5a01c8ac5014;hp=4eed7dc2008855a157db3239a480f6ee941dea29;hpb=bb9cc45cd22af67ac275a5e73accbe14fee664d8;p=ardour.git diff --git a/gtk2_ardour/export_file_notebook.h b/gtk2_ardour/export_file_notebook.h index 4eed7dc200..9f357ab1d5 100644 --- a/gtk2_ardour/export_file_notebook.h +++ b/gtk2_ardour/export_file_notebook.h @@ -25,16 +25,12 @@ #include #include "ardour/export_profile_manager.h" +#include "ardour/session_handle.h" #include "export_format_selector.h" #include "export_filename_selector.h" -namespace ARDOUR { - class Session; -} - - -class ExportFileNotebook : public Gtk::Notebook +class ExportFileNotebook : public Gtk::Notebook, public ARDOUR::SessionHandlePtr { public: @@ -43,7 +39,7 @@ class ExportFileNotebook : public Gtk::Notebook void set_session_and_manager (ARDOUR::Session * s, boost::shared_ptr manager); void sync_with_manager (); - Glib::ustring get_nth_format_name (uint32_t n); + std::string get_nth_format_name (uint32_t n); sigc::signal CriticalSelectionChanged; @@ -55,7 +51,6 @@ class ExportFileNotebook : public Gtk::Notebook class FilePage; ManagerPtr profile_manager; - ARDOUR::Session * session; void add_new_file_page (); void add_file_page (ARDOUR::ExportProfileManager::FormatStatePtr format_state, ARDOUR::ExportProfileManager::FilenameStatePtr filename_state); @@ -82,7 +77,7 @@ class ExportFileNotebook : public Gtk::Notebook Gtk::Widget & get_tab_widget () { return tab_widget; } void set_remove_sensitive (bool value); - Glib::ustring get_format_name () const; + std::string get_format_name () const; ARDOUR::ExportProfileManager::FormatStatePtr get_format_state () const { return format_state; } ARDOUR::ExportProfileManager::FilenameStatePtr get_filename_state () const { return filename_state; } @@ -102,6 +97,7 @@ class ExportFileNotebook : public Gtk::Notebook Gtk::Label format_label; Gtk::Alignment format_align; ExportFormatSelector format_selector; + PBD::ScopedConnection format_connection; Gtk::Label filename_label; Gtk::Alignment filename_align;