Merge branch 'master' into cairocanvas
[ardour.git] / gtk2_ardour / export_video_infobox.cc
1 /*
2     Copyright (C) 2010 Paul Davis
3     Author: 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
16     along with this program; if not, write to the Free Software
17     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19 */
20 #include "ardour/session.h"
21 #include "export_video_infobox.h"
22 #include "i18n.h"
23
24 using namespace Gtk;
25 using namespace std;
26 using namespace PBD;
27 using namespace ARDOUR;
28
29 ExportVideoInfobox::ExportVideoInfobox (Session* s)
30         : ArdourDialog (_("Video Export Info"))
31         , showagain_checkbox (_("Do Not Show This Dialog Again (Reset in Edit > Preferences > Video)."))
32 {
33         set_session (s);
34
35         set_name ("ExportVideoInfobox");
36         set_modal (true);
37         set_skip_taskbar_hint (true);
38         set_resizable (false);
39
40         Gtk::Label* l;
41         VBox* vbox = manage (new VBox);
42
43         l = manage (new Label (_("<b>Video Export Info</b>"), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false));
44         l->set_use_markup ();
45         vbox->pack_start (*l, false, true);
46         l = manage (new Label (
47                                 string_compose(
48                                 _("Video encoding is a non-trivial task with many details.\n\nPlease see the manual at %1/video-timeline/operations/#export.\n\nOpen Manual in Browser? "),
49                                 Config->get_reference_manual_url()
50                                 ), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false));
51         l->set_size_request(700,-1);
52         l->set_line_wrap();
53         vbox->pack_start (*l, false, true,4);
54
55         vbox->pack_start (*(manage (new  HSeparator())), true, true, 2);
56         vbox->pack_start (showagain_checkbox, false, true, 2);
57
58         get_vbox()->set_spacing (4);
59         get_vbox()->pack_start (*vbox, false, false);
60
61         showagain_checkbox.set_active(false);
62         show_all_children ();
63         add_button (Stock::YES, RESPONSE_YES);
64         add_button (Stock::NO, RESPONSE_NO);
65 }
66
67 ExportVideoInfobox::~ExportVideoInfobox ()
68 {
69 }