1 /***************************************************************************
2 * Copyright (C) 2008 by Jean-Baptiste Mardelle (jb@kdenlive.org) *
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. *
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. *
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 ***************************************************************************/
25 #include <QVBoxLayout>
26 #include <QItemDelegate>
32 #include <KTemporaryFile>
34 #include "dvdwizardvob.h"
35 #include "dvdwizardmenu.h"
36 #include "dvdwizardchapters.h"
37 #include "ui_dvdwizardstatus_ui.h"
38 #include "ui_dvdwizardchapters_ui.h"
40 class DvdWizard : public QWizard
44 explicit DvdWizard(MonitorManager *manager, const QString &url = QString(), QWidget * parent = 0);
49 DvdWizardVob *m_pageVob;
50 DvdWizardMenu *m_pageMenu;
51 Ui::DvdWizardStatus_UI m_status;
53 #if KDE_IS_VERSION(4,7,0)
54 KMessageWidget *m_isoMessage;
57 DvdWizardChapters *m_pageChapters;
58 KTemporaryFile m_authorFile;
59 KTemporaryFile m_menuFile;
60 KTemporaryFile m_menuVobFile;
61 KTemporaryFile m_letterboxMovie;
62 QProcess *m_dvdauthor;
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;
76 void errorMessage(const QString &text);
77 void infoMessage(const QString &text);
78 void processDvdauthor(QString menuMovieUrl = QString(), QMap <QString, QRect> buttons = QMap <QString, QRect>(), QStringList buttonsTarget = QStringList());
81 void slotPageChanged(int page);
82 void slotRenderFinished(int exitCode, QProcess::ExitStatus status);
83 void slotIsoFinished(int exitCode, QProcess::ExitStatus status);
91 void slotShowRenderInfo();
92 void slotShowIsoInfo();
93 void slotProcessMenuStatus(int, QProcess::ExitStatus status);