]> git.sesse.net Git - kdenlive/blob - src/dvdwizard.h
Fix several DVD Wizard issues
[kdenlive] / src / dvdwizard.h
1 /***************************************************************************
2  *   Copyright (C) 2008 by Jean-Baptiste Mardelle (jb@kdenlive.org)        *
3  *                                                                         *
4  *   This program is free software; you can redistribute it and/or modify  *
5  *   it under the terms of the GNU General Public License as published by  *
6  *   the Free Software Foundation; either version 2 of the License, or     *
7  *   (at your option) any later version.                                   *
8  *                                                                         *
9  *   This program is distributed in the hope that it will be useful,       *
10  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12  *   GNU General Public License for more details.                          *
13  *                                                                         *
14  *   You should have received a copy of the GNU General Public License     *
15  *   along with this program; if not, write to the                         *
16  *   Free Software Foundation, Inc.,                                       *
17  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
18  ***************************************************************************/
19
20
21 #ifndef DVDWIZARD_H
22 #define DVDWIZARD_H
23
24 #include <QWizard>
25 #include <QVBoxLayout>
26 #include <QItemDelegate>
27 #include <QPainter>
28 #include <QProcess>
29
30
31 #include <KDebug>
32 #include <KTemporaryFile>
33
34 #include "dvdwizardvob.h"
35 #include "dvdwizardmenu.h"
36 #include "dvdwizardchapters.h"
37 #include "ui_dvdwizardstatus_ui.h"
38 #include "ui_dvdwizardchapters_ui.h"
39
40 class DvdWizard : public QWizard
41 {
42     Q_OBJECT
43 public:
44     explicit DvdWizard(const QString &url = QString(), QWidget * parent = 0);
45     virtual ~DvdWizard();
46     void processSpumux();
47
48 private:
49     DvdWizardVob *m_pageVob;
50     DvdWizardMenu *m_pageMenu;
51     Ui::DvdWizardStatus_UI m_status;
52
53 #if KDE_IS_VERSION(4,7,0)
54     KMessageWidget *m_isoMessage;
55 #endif
56
57     DvdWizardChapters *m_pageChapters;
58     KTemporaryFile m_authorFile;
59     KTemporaryFile m_menuFile;
60     KTemporaryFile m_menuVobFile;
61     KTemporaryFile m_letterboxMovie;
62     QProcess *m_dvdauthor;
63     QProcess *m_mkiso;
64     QProcess m_menuJob;
65     QString m_creationLog;
66     QListWidgetItem *m_vobitem;
67     KTemporaryFile m_selectedImage;
68     KTemporaryFile m_highlightedImage;
69     KTemporaryFile m_menuVideo;
70     KTemporaryFile m_menuFinalVideo;
71     KTemporaryFile m_menuImageBackground;
72     void cleanup();
73     QMenu *m_burnMenu;
74     void errorMessage(const QString &text);
75     void infoMessage(const QString &text);
76
77 private slots:
78     void slotPageChanged(int page);
79     void slotRenderFinished(int exitCode, QProcess::ExitStatus status);
80     void slotIsoFinished(int exitCode, QProcess::ExitStatus status);
81     void generateDvd();
82     void slotPreview();
83     void slotBurn();
84     void slotGenerate();
85     void slotAbort();
86     void slotLoad();
87     void slotSave();
88     void slotShowRenderInfo();
89     void slotShowIsoInfo();
90     void slotProcessMenuStatus(int, QProcess::ExitStatus status);
91 };
92
93 #endif
94