Allow strips to add or remove personal sends
[ardour.git] / gtk2_ardour / export_format_dialog.h
index 9e395da01d46d787fd4866e384167e10419a6576..7df227ccb9c2cdabcfbf358e365b5f2c448d724e 100644 (file)
 #include "ardour_dialog.h"
 #include "audio_clock.h"
 
-#include <gtkmm.h>
-
-class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList {
-  private:
+#ifdef interface
+#undef interface
+#endif
+
+#include <gtkmm/adjustment.h>
+#include <gtkmm/box.h>
+#include <gtkmm/checkbutton.h>
+#include <gtkmm/combobox.h>
+#include <gtkmm/entry.h>
+#include <gtkmm/label.h>
+#include <gtkmm/liststore.h>
+#include <gtkmm/radiobutton.h>
+#include <gtkmm/spinbutton.h>
+#include <gtkmm/table.h>
+#include <gtkmm/treeview.h>
+
+class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
+{
+private:
 
        typedef ARDOUR::WeakExportFormatCompatibilityPtr WeakCompatPtr;
        typedef ARDOUR::WeakExportFormatPtr WeakFormatPtr;
@@ -47,14 +62,14 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
        typedef boost::shared_ptr<ARDOUR::ExportFormatSpecification> FormatPtr;
 
 
-  public:
+public:
 
        explicit ExportFormatDialog (FormatPtr format, bool new_dialog = false);
        ~ExportFormatDialog ();
 
        void set_session (ARDOUR::Session* s);
 
-  private:
+private:
 
        FormatPtr                   format;
        ARDOUR::ExportFormatManager manager;
@@ -110,6 +125,8 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
        void change_compatibility (bool compatibility, boost::weak_ptr<T> w_ptr, Glib::RefPtr<Gtk::ListStore> & list, ColsT & cols,
                                   std::string const & c_incompatible = "red", std::string const & c_compatible = "white");
 
+       void update_description();
+
        uint32_t applying_changes_from_engine;
 
        /*** Non-interactive selections ***/
@@ -120,6 +137,7 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
        void update_trim_end_selection ();
 
        void update_normalize_selection ();
+       void update_normalize_sensitivity ();
        void update_silence_start_selection ();
        void update_silence_end_selection ();
 
@@ -151,14 +169,23 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
 
        Gtk::Label name_label;
        Gtk::Entry name_entry;
+       Gtk::Label name_generated_part;
 
        /* Normalize */
 
        Gtk::HBox        normalize_hbox;
        Gtk::CheckButton normalize_checkbox;
-       Gtk::SpinButton  normalize_spinbutton;
-       Gtk::Adjustment  normalize_adjustment;
-       Gtk::Label       normalize_db_label;
+       Gtk::RadioButton normalize_peak_rb;
+       Gtk::RadioButton normalize_loudness_rb;
+       Gtk::SpinButton  normalize_dbfs_spinbutton;
+       Gtk::Adjustment  normalize_dbfs_adjustment;
+       Gtk::SpinButton  normalize_lufs_spinbutton;
+       Gtk::Adjustment  normalize_lufs_adjustment;
+       Gtk::SpinButton  normalize_dbtp_spinbutton;
+       Gtk::Adjustment  normalize_dbtp_adjustment;
+       Gtk::Label       normalize_dbfs_label;
+       Gtk::Label       normalize_lufs_label;
+       Gtk::Label       normalize_dbtp_label;
 
        /* Silence  */
 
@@ -172,11 +199,16 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
        Gtk::CheckButton silence_end_checkbox;
        AudioClock       silence_end_clock;
 
+       /* Post-export hook */
+
+       Gtk::Label       command_label;
+       Gtk::Entry       command_entry;
+
        /* Format table */
 
        struct CompatibilityCols : public Gtk::TreeModelColumnRecord
        {
-         public:
+       public:
                Gtk::TreeModelColumn<ARDOUR::ExportFormatCompatibilityPtr>  ptr;
                Gtk::TreeModelColumn<bool>                                  selected;
                Gtk::TreeModelColumn<std::string>                           label;
@@ -192,7 +224,7 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
 
        struct QualityCols : public Gtk::TreeModelColumnRecord
        {
-         public:
+       public:
                Gtk::TreeModelColumn<ARDOUR::ExportFormatManager::QualityPtr>  ptr;
                Gtk::TreeModelColumn<std::string>                            color;
                Gtk::TreeModelColumn<std::string>                            label;
@@ -204,7 +236,7 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
 
        struct FormatCols : public Gtk::TreeModelColumnRecord
        {
-         public:
+       public:
                Gtk::TreeModelColumn<ARDOUR::ExportFormatPtr>  ptr;
                Gtk::TreeModelColumn<std::string>              color;
                Gtk::TreeModelColumn<std::string>              label;
@@ -216,7 +248,7 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
 
        struct SampleRateCols : public Gtk::TreeModelColumnRecord
        {
-         public:
+       public:
                Gtk::TreeModelColumn<ARDOUR::ExportFormatManager::SampleRatePtr>  ptr;
                Gtk::TreeModelColumn<std::string>                               color;
                Gtk::TreeModelColumn<std::string>                               label;
@@ -242,7 +274,7 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
 
        struct SRCQualityCols : public Gtk::TreeModelColumnRecord
        {
-         public:
+       public:
                Gtk::TreeModelColumn<ARDOUR::ExportFormatBase::SRCQuality>  id;
                Gtk::TreeModelColumn<std::string>                         label;
 
@@ -272,7 +304,7 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
 
        struct SampleFormatCols : public Gtk::TreeModelColumnRecord
        {
-         public:
+       public:
                Gtk::TreeModelColumn<ARDOUR::HasSampleFormat::SampleFormatPtr>   ptr;
                Gtk::TreeModelColumn<std::string>                              color;
                Gtk::TreeModelColumn<std::string>                              label;
@@ -284,7 +316,7 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
 
        struct DitherTypeCols : public Gtk::TreeModelColumnRecord
        {
-         public:
+       public:
                Gtk::TreeModelColumn<ARDOUR::HasSampleFormat::DitherTypePtr>   ptr;
                Gtk::TreeModelColumn<std::string>                            color;
                Gtk::TreeModelColumn<std::string>                            label;
@@ -299,11 +331,14 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
 
        Gtk::CheckButton with_cue;
        Gtk::CheckButton with_toc;
+       Gtk::CheckButton with_mp4chaps;
 
        Gtk::VBox cue_toc_vbox;
 
        void update_with_toc ();
        void update_with_cue ();
+       void update_with_mp4chaps();
+       void update_command ();
 
        Gtk::TreeView sample_format_view;
        Gtk::TreeView dither_type_view;