VKeybd: Pass on primary (Ctrl/Cmd) shortcuts
[ardour.git] / gtk2_ardour / export_video_infobox.cc
1 /*
2  * Copyright (C) 2013-2016 Paul Davis <paul@linuxaudiosystems.com>
3  * Copyright (C) 2013-2017 Robin Gareus <robin@gareus.org>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 #ifdef interface
20 #undef interface
21 #endif
22
23 #include <gtkmm/box.h>
24 #include <gtkmm/label.h>
25 #include <gtkmm/separator.h>
26 #include <gtkmm/stock.h>
27
28 #include "ardour/session.h"
29
30 #include "export_video_infobox.h"
31 #include "pbd/i18n.h"
32
33 using namespace Gtk;
34 using namespace std;
35 using namespace PBD;
36 using namespace ARDOUR;
37
38 ExportVideoInfobox::ExportVideoInfobox (Session* s)
39         : ArdourDialog (_("Video Export Info"))
40         , showagain_checkbox (_("Do Not Show This Dialog Again (Reset in Edit > Preferences > Video)."))
41 {
42         set_session (s);
43
44         set_name ("ExportVideoInfobox");
45         set_modal (true);
46         set_skip_taskbar_hint (true);
47         set_resizable (false);
48
49         Gtk::Label* l;
50         VBox* vbox = manage (new VBox);
51
52         l = manage (new Label (_("<b>Video Export Info</b>"), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false));
53         l->set_use_markup ();
54         vbox->pack_start (*l, false, true);
55         l = manage (new Label (
56                                 string_compose(
57                                 _("%1 does not include commercial licenses for encoding audio/video. Visit mpegla.com for information about licensing various audio/video codecs.\n\nVideo encoding is a non-trivial task with many details.\n\nPlease see the manual at %2/video-timeline/operations/#export.\n\nOpen Manual in Browser? "),
58                                 PROGRAM_NAME, Config->get_reference_manual_url()
59                                 ), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false));
60         l->set_size_request(700,-1);
61         l->set_line_wrap();
62         vbox->pack_start (*l, false, true,4);
63
64         vbox->pack_start (*(manage (new  HSeparator())), true, true, 2);
65         vbox->pack_start (showagain_checkbox, false, true, 2);
66
67         get_vbox()->set_spacing (4);
68         get_vbox()->pack_start (*vbox, false, false);
69
70         showagain_checkbox.set_active(false);
71         show_all_children ();
72         add_button (Stock::YES, RESPONSE_YES);
73         add_button (Stock::NO, RESPONSE_NO);
74 }
75
76 ExportVideoInfobox::~ExportVideoInfobox ()
77 {
78 }