Tweak some colours as per Chris' suggestions in #3254.
[ardour.git] / gtk2_ardour / export_file_notebook.h
index 4eed7dc2008855a157db3239a480f6ee941dea29..35768d72a91958c1858e8fb884d7df391a12c802 100644 (file)
 #include <gtkmm.h>
 
 #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:
 
@@ -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);
@@ -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;