Gracefully handle templates that lack contents in their description or created_with...
[ardour.git] / gtk2_ardour / transcode_video_dialog.h
index eb2808e560a6d2d27ac151f0a380bde19a1b0bf3..74e00356452279551875b06ce8f00c65b5ab413a 100644 (file)
 
 #include <string>
 
-#include <gtkmm.h>
+#include <gtkmm/adjustment.h>
+#include <gtkmm/box.h>
+#include <gtkmm/button.h>
+#include <gtkmm/checkbutton.h>
+#include <gtkmm/comboboxtext.h>
+#include <gtkmm/label.h>
+#include <gtkmm/entry.h>
+#include <gtkmm/progressbar.h>
+#include <gtkmm/spinbutton.h>
 
 #include "ardour/types.h"
 #include "ardour/template_utils.h"
@@ -31,9 +39,9 @@
 #include "transcode_ffmpeg.h"
 
 enum VtlTranscodeOption {
- VTL_IMPORT_NO_VIDEO = 0,
- VTL_IMPORT_REFERENCE = 1,
- VTL_IMPORT_TRANSCODED = 2
+ VTL_IMPORT_REFERENCE = 0,
+ VTL_IMPORT_TRANSCODED = 1,
+ VTL_IMPORT_NO_VIDEO = 2
 };
 
 /** @class TranscodeVideoDialog
@@ -41,15 +49,20 @@ enum VtlTranscodeOption {
  */
 class TranscodeVideoDialog : public ArdourDialog , public PBD::ScopedConnectionList
 {
-  public:
+public:
        TranscodeVideoDialog (ARDOUR::Session*, std::string);
        ~TranscodeVideoDialog ();
 
        std::string get_filename () { return path_entry.get_text(); }
        std::string get_audiofile () { return audiofile; }
        VtlTranscodeOption import_option ();
+       bool detect_ltc () { return ltc_detect.get_active (); }
 
-  private:
+       void on_response (int response_id) {
+               Gtk::Dialog::on_response (response_id);
+       }
+
+private:
        void on_show ();
        void open_browse_dialog ();
        void abort_clicked ();
@@ -61,7 +74,7 @@ class TranscodeVideoDialog : public ArdourDialog , public PBD::ScopedConnectionL
        void update_bitrate ();
        void launch_audioonly ();
        void launch_transcode ();
-  void launch_extract ();
+       void launch_extract ();
        void dialog_progress_mode ();
        bool aborted;
        bool pending_audio_extract;
@@ -94,6 +107,7 @@ class TranscodeVideoDialog : public ArdourDialog , public PBD::ScopedConnectionL
        Gtk::Adjustment   height_adjustment;
        Gtk::SpinButton   height_spinner;
        Gtk::ComboBoxText audio_combo;
+       Gtk::CheckButton  ltc_detect;
        Gtk::CheckButton  bitrate_checkbox;
        Gtk::Adjustment   bitrate_adjustment;
        Gtk::SpinButton   bitrate_spinner;