1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
/*
*
* $Id: k3bvideodvdview.cpp 644513 2007-03-20 09:07:44Z trueg $
* Copyright (C) 2005 Sebastian Trueg <trueg@k3b.org>
*
* This file is part of the K3b project.
* Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.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.
* See the file "COPYING" for the exact licensing terms.
*/
#include "k3bvideodvdview.h"
#include "k3bvideodvddoc.h"
#include "k3bvideodvdburndialog.h"
#include "k3bdatadirtreeview.h"
#include "k3bdatafileview.h"
#include "k3bdataurladdingdialog.h"
#include <k3bfillstatusdisplay.h>
#include <k3bdatafileview.h>
#include <k3btoolbox.h>
#include <k3bprojectplugin.h>
#include <klocale.h>
#include <kmessagebox.h>
#include <kactioncollection.h>
#include <tqsplitter.h>
K3bVideoDvdView::K3bVideoDvdView( K3bVideoDvdDoc* doc, TQWidget *tqparent, const char *name )
: K3bView( doc, tqparent, name ),
m_doc(doc)
{
fillStatusDisplay()->showDvdSizes(true);
// --- setup GUI ---------------------------------------------------
TQSplitter* mainSplitter = new TQSplitter( this );
m_dataDirTree = new K3bDataDirTreeView( this, doc, mainSplitter );
m_dataFileView = new K3bDataFileView( this, m_dataDirTree, doc, mainSplitter );
m_dataDirTree->setFileView( m_dataFileView );
setMainWidget( mainSplitter );
connect( m_dataFileView, TQT_SIGNAL(dirSelected(K3bDirItem*)), m_dataDirTree, TQT_SLOT(setCurrentDir(K3bDirItem*)) );
m_dataDirTree->checkForNewItems();
m_dataFileView->checkForNewItems();
addPluginButtons( K3bProjectPlugin::VIDEO_DVD );
}
K3bVideoDvdView::~K3bVideoDvdView()
{
}
K3bProjectBurnDialog* K3bVideoDvdView::newBurnDialog( TQWidget* tqparent, const char* name )
{
return new K3bVideoDvdBurnDialog( m_doc, tqparent, name, true );
}
void K3bVideoDvdView::init()
{
KMessageBox::information( this,
i18n("Be aware that you need to provide the complete Video DVD filestructure. "
"K3b does not support video transcoding and preparation of video object "
"files yet. That means you need to already have the VTS_X_YY.VOB "
"and VTS_X_YY.IFO files."),
i18n("K3b Video DVD Restrictions"),
"video_dvd_restrictions" );
}
void K3bVideoDvdView::addUrls( const KURL::List& urls )
{
K3bDataUrlAddingDialog::addUrls( urls, m_dataFileView->currentDir() );
}
#include "k3bvideodvdview.moc"
|