~zeller-benjamin/qtcreator-plugin-ubuntu/qtc41-beta

« back to all changes in this revision

Viewing changes to src/ubuntu/ubuntuprojectapplicationwizard.h

  • Committer: Juhapekka Piiroinen
  • Date: 2013-09-04 15:30:00 UTC
  • mto: (23.1.14 binary-plugin)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: juhapekka.piiroinen@canonical.com-20130904153000-r4lhfhrjlwmop277
Added cordova plugin from ubuntu-qtcreator-plugins.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2013 Canonical Ltd.
 
3
 *
 
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.
 
7
 *
 
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.
 
12
 *
 
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/>.
 
15
 *
 
16
 * Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
 
17
 */
 
18
 
 
19
#ifndef UBUNTUPROJECTAPPLICATIONWIZARD_H
 
20
#define UBUNTUPROJECTAPPLICATIONWIZARD_H
 
21
 
 
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>
 
27
 
 
28
#include <QJsonObject>
 
29
#include "ubuntuprojectapp.h"
 
30
 
 
31
namespace Ubuntu {
 
32
namespace Internal {
 
33
 
 
34
class UbuntuProjectApplicationWizardDialog : public ProjectExplorer::BaseProjectWizardDialog
 
35
{
 
36
    Q_OBJECT
 
37
public:
 
38
    explicit UbuntuProjectApplicationWizardDialog(QWidget *parent,
 
39
                                               const Core::WizardDialogParameters &parameters);
 
40
};
 
41
 
 
42
class UbuntuProjectApplicationWizard : public Core::BaseFileWizard
 
43
{
 
44
    Q_OBJECT
 
45
 
 
46
public:
 
47
    UbuntuProjectApplicationWizard(QJsonObject);
 
48
    virtual ~UbuntuProjectApplicationWizard();
 
49
    virtual Core::FeatureSet requiredFeatures() const;
 
50
 
 
51
    Core::BaseFileWizardParameters parameters(QJsonObject);
 
52
 
 
53
    static QByteArray getProjectTypesJSON();
 
54
 
 
55
    static QString templatesPath(QString fileName);
 
56
 
 
57
protected:
 
58
    virtual QWizard *createWizardDialog(QWidget *parent,
 
59
                                        const Core::WizardDialogParameters &wizardDialogParameters) const;
 
60
 
 
61
    virtual Core::GeneratedFiles generateFiles(const QWizard *w,
 
62
                                               QString *errorMessage) const;
 
63
 
 
64
    virtual bool postGenerateFiles(const QWizard *w, const Core::GeneratedFiles &l, QString *errorMessage);
 
65
 
 
66
private:
 
67
    UbuntuProjectApp* m_app;
 
68
};
 
69
 
 
70
} // Internal
 
71
} // Ubuntu
 
72
 
 
73
 
 
74
#endif // UBUNTUPROJECTAPPLICATIONWIZARD_H