File indexing completed on 2024-05-05 04:51:49
0001 /* 0002 SPDX-FileCopyrightText: 2005-2007 Sebastian Trueg <trueg@k3b.org> 0003 SPDX-FileCopyrightText: 2009 Arthur Renato Mello <arthur@mandriva.com> 0004 SPDX-FileCopyrightText: 2009 Michal Malek <michalm@jabster.pl> 0005 SPDX-FileCopyrightText: 1998-2009 Sebastian Trueg <trueg@k3b.org> 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 #include "k3bvideodvdview.h" 0011 #include "k3bvideodvdburndialog.h" 0012 #include "k3bvideodvddoc.h" 0013 0014 #include <KLocalizedString> 0015 #include <KMessageBox> 0016 #include <KActionCollection> 0017 0018 #include <QAction> 0019 0020 0021 K3b::VideoDvdView::VideoDvdView( K3b::VideoDvdDoc* doc, QWidget *parent ) 0022 : K3b::DataView( doc, parent ), 0023 m_doc(doc) 0024 { 0025 QAction* actionImportSession = actionCollection()->action( "project_data_import_session" ); 0026 QAction* actionClearSession = actionCollection()->action( "project_data_clear_imported_session" ); 0027 QAction* actionEditBootImages = actionCollection()->action( "project_data_edit_boot_images" ); 0028 0029 actionImportSession->setEnabled( false ); 0030 actionImportSession->setVisible( false ); 0031 actionClearSession->setEnabled( false ); 0032 actionClearSession->setVisible( false ); 0033 actionEditBootImages->setEnabled( false ); 0034 actionEditBootImages->setVisible( false ); 0035 } 0036 0037 0038 K3b::VideoDvdView::~VideoDvdView() 0039 { 0040 } 0041 0042 0043 K3b::ProjectBurnDialog* K3b::VideoDvdView::newBurnDialog( QWidget* parent ) 0044 { 0045 return new K3b::VideoDvdBurnDialog( m_doc, parent ); 0046 } 0047 0048 0049 void K3b::VideoDvdView::init() 0050 { 0051 KMessageBox::information( this, 0052 i18n("Be aware that you need to provide the complete Video DVD filestructure. " 0053 "K3b does not support video transcoding and preparation of video object " 0054 "files yet. That means you need to already have the VTS_X_YY.VOB " 0055 "and VTS_X_YY.IFO files."), 0056 i18n("K3b Video DVD Restrictions"), 0057 "video_dvd_restrictions" ); 0058 } 0059 0060 #include "moc_k3bvideodvdview.cpp"