Put the sidechain ports into a dedicated tab in PortMatrix
[ardour.git] / gtk2_ardour / export_format_dialog.cc
index 14f4530825e58f18f3c52c89bba42a73d14aa784..bc9a55357472f0e71d69a73462636e0feecd2720 100644 (file)
 
 */
 
+#include <gtkmm/stock.h>
+
 #include "ardour/session.h"
 #include "ardour/export_format_specification.h"
 
+#include "widgets/tooltips.h"
+
 #include "export_format_dialog.h"
 #include "gui_thread.h"
-#include "tooltips.h"
-#include "i18n.h"
+
+#include "pbd/i18n.h"
 
 using namespace ARDOUR;
 
@@ -120,7 +124,7 @@ ExportFormatDialog::ExportFormatDialog (FormatPtr format, bool new_dialog) :
        normalize_hbox.pack_start (normalize_dbtp_spinbutton, false, false, 2);
        normalize_hbox.pack_start (normalize_dbtp_label, false, false, 0);
 
-       ARDOUR_UI_UTILS::set_tooltip (normalize_loudness_rb,
+       ArdourWidgets::set_tooltip (normalize_loudness_rb,
                        _("Normalize to EBU-R128 LUFS target loudness without exceeding the given true-peak limit. EBU-R128 normalization is only available for mono and stereo targets, true-peak works for any channel layout."));
 
        normalize_dbfs_spinbutton.configure (normalize_dbfs_adjustment, 0.1, 2);
@@ -147,22 +151,31 @@ ExportFormatDialog::ExportFormatDialog (FormatPtr format, bool new_dialog) :
        get_vbox()->pack_start (command_label, false, false);
        get_vbox()->pack_start (command_entry, false, false);
 
-       ARDOUR_UI_UTILS::set_tooltip (command_entry,
+       ArdourWidgets::set_tooltip (command_entry,
                        _(
                                "%a Artist name\n"
                                "%b File's base-name\n"
+                               "%c Copyright\n"
                                "%d File's directory\n"
                                "%f File's full absolute path\n"
+                               "%l Lyricist\n"
                                "%n Session name\n"
+                               "%o Conductor\n"
                                "%t Title\n"
+                               "%z Organization\n"
                                "%A Album\n"
                                "%C Comment\n"
                                "%E Engineer\n"
                                "%G Genre\n"
+                               "%L Total track count\n"
+                               "%M Mixer\n"
                                "%N Timespan name\n"
+                               "%O Composer\n"
                                "%P Producer\n"
+                               "%S Disc subtitle\n"
                                "%T Track number\n"
-                               "%Y Year"
+                               "%Y Year\n"
+                               "%Z Country"
                         ));
 
        /* Format table */
@@ -287,7 +300,7 @@ ExportFormatDialog::set_session (ARDOUR::Session* s)
        if (sample_rate_view.get_selection()->count_selected_rows() == 0) {
                Gtk::ListStore::Children::iterator it;
                for (it = sample_rate_list->children().begin(); it != sample_rate_list->children().end(); ++it) {
-                       if ((framecnt_t) (*it)->get_value (sample_rate_cols.ptr)->rate == _session->nominal_frame_rate()) {
+                       if ((samplecnt_t) (*it)->get_value (sample_rate_cols.ptr)->rate == _session->nominal_sample_rate()) {
                                sample_rate_view.get_selection()->select (it);
                                break;
                        }
@@ -678,7 +691,7 @@ ExportFormatDialog::change_sample_rate_selection (bool select, WeakSampleRatePtr
        if (select) {
                ExportFormatManager::SampleRatePtr ptr = rate.lock();
                if (ptr && _session) {
-                       src_quality_combo.set_sensitive ((uint32_t) ptr->rate != _session->frame_rate());
+                       src_quality_combo.set_sensitive ((uint32_t) ptr->rate != _session->sample_rate());
                }
        }
 }
@@ -864,7 +877,7 @@ void
 ExportFormatDialog::update_clock (AudioClock & clock, ARDOUR::AnyTime const & time)
 {
        // TODO position
-       clock.set (_session->convert_to_frames (time), true);
+       clock.set (_session->convert_to_samples (time), true);
 
        AudioClock::Mode mode(AudioClock::Timecode);
 
@@ -875,8 +888,8 @@ ExportFormatDialog::update_clock (AudioClock & clock, ARDOUR::AnyTime const & ti
          case AnyTime::BBT:
                mode = AudioClock::BBT;
                break;
-         case AnyTime::Frames:
-               mode = AudioClock::Frames;
+         case AnyTime::Samples:
+               mode = AudioClock::Samples;
                break;
          case AnyTime::Seconds:
                mode = AudioClock::MinSec;
@@ -893,24 +906,25 @@ ExportFormatDialog::update_time (AnyTime & time, AudioClock const & clock)
                return;
        }
 
-       framecnt_t frames = clock.current_duration();
+       samplecnt_t samples = clock.current_duration();
 
        switch (clock.mode()) {
          case AudioClock::Timecode:
                time.type = AnyTime::Timecode;
-               _session->timecode_time (frames, time.timecode);
+               _session->timecode_time (samples, time.timecode);
                break;
          case AudioClock::BBT:
                time.type = AnyTime::BBT;
-               _session->bbt_time (frames, time.bbt);
+               _session->bbt_time (samples, time.bbt);
                break;
+         case AudioClock::Seconds:
          case AudioClock::MinSec:
                time.type = AnyTime::Seconds;
-               time.seconds = (double) frames / _session->frame_rate();
+               time.seconds = (double) samples / _session->sample_rate();
                break;
-         case AudioClock::Frames:
-               time.type = AnyTime::Frames;
-               time.frames = frames;
+         case AudioClock::Samples:
+               time.type = AnyTime::Samples;
+               time.samples = samples;
                break;
        }
 }