]> git.sesse.net Git - kdenlive/blob - src/dvdwizard.h
Fix label
[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 <QPainter>
26 #include <QProcess>
27
28
29 #include <KDebug>
30 #include <KTemporaryFile>
31
32 #include "dvdwizardvob.h"
33 #include "dvdwizardmenu.h"
34 #include "dvdwizardchapters.h"
35 #include "ui_dvdwizardstatus_ui.h"
36 #include "ui_dvdwizardchapters_ui.h"
37
38 typedef QMap <QString, QRect> stringRectMap;
39
40 class DvdWizard : public QWizard
41 {
42     Q_OBJECT
43 public:
44     explicit DvdWizard(MonitorManager *manager, 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_selectedLetterImage;
69     KTemporaryFile m_highlightedImage;
70     KTemporaryFile m_highlightedLetterImage;
71     KTemporaryFile m_menuVideo;
72     KTemporaryFile m_menuFinalVideo;
73     KTemporaryFile m_menuImageBackground;
74     QMenu *m_burnMenu;
75     void cleanup();
76     void errorMessage(const QString &text);
77     void infoMessage(const QString &text);
78     void processDvdauthor(const QString &menuMovieUrl = QString(), const stringRectMap &buttons = stringRectMap(), const QStringList &buttonsTarget = QStringList());
79
80 private slots:
81     void slotPageChanged(int page);
82     void slotRenderFinished(int exitCode, QProcess::ExitStatus status);
83     void slotIsoFinished(int exitCode, QProcess::ExitStatus status);
84     void generateDvd();
85     void slotPreview();
86     void slotBurn();
87     void slotGenerate();
88     void slotAbort();
89     void slotLoad();
90     void slotSave();
91     void slotShowRenderInfo();
92     void slotShowIsoInfo();
93     void slotProcessMenuStatus(int, QProcess::ExitStatus status);
94     void slotprepareMonitor();
95 };
96
97 #endif
98