2013-03-12 17:00:09 -04:00
/*
Copyright ( C ) 2010 Paul Davis
Author : Robin Gareus < robin @ gareus . org >
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program ; if not , write to the Free Software
Foundation , Inc . , 675 Mass Ave , Cambridge , MA 0213 9 , USA .
*/
2013-07-21 04:49:29 -04:00
# ifdef interface
# undef interface
# endif
2017-07-16 21:48:18 -04:00
# include <gtkmm/box.h>
# include <gtkmm/label.h>
# include <gtkmm/separator.h>
# include <gtkmm/stock.h>
# include "ardour/session.h"
2013-03-12 17:00:09 -04:00
# include "export_video_infobox.h"
2016-07-14 14:44:52 -04:00
# include "pbd/i18n.h"
2013-03-12 17:00:09 -04:00
using namespace Gtk ;
using namespace std ;
using namespace PBD ;
using namespace ARDOUR ;
ExportVideoInfobox : : ExportVideoInfobox ( Session * s )
: ArdourDialog ( _ ( " Video Export Info " ) )
2013-04-02 10:37:28 -04:00
, showagain_checkbox ( _ ( " Do Not Show This Dialog Again (Reset in Edit > Preferences > Video). " ) )
2013-03-12 17:00:09 -04:00
{
set_session ( s ) ;
set_name ( " ExportVideoInfobox " ) ;
set_modal ( true ) ;
set_skip_taskbar_hint ( true ) ;
set_resizable ( false ) ;
Gtk : : Label * l ;
VBox * vbox = manage ( new VBox ) ;
l = manage ( new Label ( _ ( " <b>Video Export Info</b> " ) , Gtk : : ALIGN_LEFT , Gtk : : ALIGN_CENTER , false ) ) ;
l - > set_use_markup ( ) ;
vbox - > pack_start ( * l , false , true ) ;
2013-06-19 14:26:53 -04:00
l = manage ( new Label (
string_compose (
2015-11-17 06:18:51 -05:00
_ ( " %1 does not include commercial licenses for encoding audio/video. Visit mpegla.com for information about licensing various audio/video codecs. \n \n Video encoding is a non-trivial task with many details. \n \n Please see the manual at %2/video-timeline/operations/#export. \n \n Open Manual in Browser? " ) ,
PROGRAM_NAME , Config - > get_reference_manual_url ( )
2013-06-19 14:26:53 -04:00
) , Gtk : : ALIGN_LEFT , Gtk : : ALIGN_CENTER , false ) ) ;
2013-03-12 17:00:09 -04:00
l - > set_size_request ( 700 , - 1 ) ;
l - > set_line_wrap ( ) ;
vbox - > pack_start ( * l , false , true , 4 ) ;
vbox - > pack_start ( * ( manage ( new HSeparator ( ) ) ) , true , true , 2 ) ;
vbox - > pack_start ( showagain_checkbox , false , true , 2 ) ;
get_vbox ( ) - > set_spacing ( 4 ) ;
get_vbox ( ) - > pack_start ( * vbox , false , false ) ;
showagain_checkbox . set_active ( false ) ;
show_all_children ( ) ;
2013-06-19 14:26:53 -04:00
add_button ( Stock : : YES , RESPONSE_YES ) ;
add_button ( Stock : : NO , RESPONSE_NO ) ;
2013-03-12 17:00:09 -04:00
}
ExportVideoInfobox : : ~ ExportVideoInfobox ( )
{
}