2
* Copyright 2013 Canonical Ltd.
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License as published by
6
* the Free Software Foundation; version 2.1.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Lesser General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
* Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
19
#ifndef UBUNTUPROJECTAPPLICATIONWIZARD_H
20
#define UBUNTUPROJECTAPPLICATIONWIZARD_H
22
#include <coreplugin/basefilewizard.h>
23
#include <projectexplorer/baseprojectwizarddialog.h>
24
#include <qt4projectmanager/qt4project.h>
25
#include <qmlprojectmanager/qmlproject.h>
26
#include <extensionsystem/pluginmanager.h>
28
#include <QJsonObject>
29
#include "ubuntuprojectapp.h"
34
class UbuntuProjectApplicationWizardDialog : public ProjectExplorer::BaseProjectWizardDialog
38
explicit UbuntuProjectApplicationWizardDialog(QWidget *parent,
39
const Core::WizardDialogParameters ¶meters);
42
class UbuntuProjectApplicationWizard : public Core::BaseFileWizard
47
UbuntuProjectApplicationWizard(QJsonObject);
48
virtual ~UbuntuProjectApplicationWizard();
49
virtual Core::FeatureSet requiredFeatures() const;
51
Core::BaseFileWizardParameters parameters(QJsonObject);
53
static QByteArray getProjectTypesJSON();
55
static QString templatesPath(QString fileName);
58
virtual QWizard *createWizardDialog(QWidget *parent,
59
const Core::WizardDialogParameters &wizardDialogParameters) const;
61
virtual Core::GeneratedFiles generateFiles(const QWizard *w,
62
QString *errorMessage) const;
64
virtual bool postGenerateFiles(const QWizard *w, const Core::GeneratedFiles &l, QString *errorMessage);
67
UbuntuProjectApp* m_app;
74
#endif // UBUNTUPROJECTAPPLICATIONWIZARD_H