Add keyboard shortcut to tooltip text where possible.
[ardour.git] / gtk2_ardour / export_format_selector.h
index 78daf5b5c6e3ebef4063abb37fe8cad00736beb8..6e1dd527869a2f34a05ea42cea26d37b01d44bf2 100644 (file)
 #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:
 
@@ -45,16 +47,16 @@ class ExportFormatSelector : public Gtk::HBox {
 
        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:
@@ -67,7 +69,6 @@ class ExportFormatSelector : public Gtk::HBox {
        void update_format_description ();
 
        ARDOUR::ExportProfileManager::FormatStatePtr state;
-       ARDOUR::Session * session;
 
        /*** GUI componenets ***/
 
@@ -76,7 +77,7 @@ class ExportFormatSelector : public Gtk::HBox {
          public:
                Gtk::TreeModelColumn<FormatPtr>      format;
                Gtk::TreeModelColumn<Glib::ustring>  label;
-       
+
                FormatCols () { add (format); add (label); }
        };
        FormatCols                   format_cols;