~bzoltan/kubuntu-packaging/decouple_cmake_plugin

« back to all changes in this revision

Viewing changes to src/plugins/qt4projectmanager/wizards/html5appwizard.cpp

  • Committer: Timo Jyrinki
  • Date: 2013-11-15 12:25:23 UTC
  • mfrom: (1.1.28)
  • Revision ID: timo.jyrinki@canonical.com-20131115122523-i2kyamsu4gs2mu1m
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
#include "html5app.h"
33
33
#include "html5appwizardpages.h"
34
 
#include "targetsetuppage.h"
35
 
#include "qt4projectmanagerconstants.h"
 
34
#include <qt4projectmanager/qmakeprojectmanagerconstants.h>
36
35
 
37
36
#include <qtsupport/baseqtversion.h>
38
37
#include <projectexplorer/projectexplorerconstants.h>
 
38
#include <projectexplorer/targetsetuppage.h>
39
39
#include <qtsupport/qtsupportconstants.h>
40
40
#include <limits>
41
41
 
42
42
#include <QIcon>
43
43
 
44
 
namespace Qt4ProjectManager {
 
44
namespace QmakeProjectManager {
45
45
namespace Internal {
46
46
 
47
47
class Html5AppWizardDialog : public AbstractMobileAppWizardDialog
79
79
};
80
80
 
81
81
Html5AppWizard::Html5AppWizard()
82
 
    : AbstractMobileAppWizard(parameters())
83
 
    , d(new Html5AppWizardPrivate)
 
82
    : d(new Html5AppWizardPrivate)
84
83
{
 
84
    setWizardKind(ProjectWizard);
 
85
    setIcon(QIcon(QLatin1String(Constants::ICON_HTML5_APP)));
 
86
    setDisplayName(tr("HTML5 Application"));
 
87
    setId(QLatin1String("QA.HTML5A Application"));
 
88
    setDescription(tr("Creates an HTML5 application project that can contain "
 
89
                      "both HTML5 and C++ code and includes a WebKit view.\n\n"
 
90
                      "You can build the application and deploy it on desktop and "
 
91
                      "mobile target platforms."));
 
92
    setCategory(QLatin1String(ProjectExplorer::Constants::QT_APPLICATION_WIZARD_CATEGORY));
 
93
    setDisplayCategory(QLatin1String(ProjectExplorer::Constants::QT_APPLICATION_WIZARD_CATEGORY_DISPLAY));
 
94
    setRequiredFeatures(Core::Feature(QtSupport::Constants::FEATURE_QT_WEBKIT));
 
95
 
85
96
    d->app = new Html5App;
86
97
    d->wizardDialog = 0;
87
98
}
92
103
    delete d;
93
104
}
94
105
 
95
 
Core::FeatureSet Html5AppWizard::requiredFeatures() const
96
 
{
97
 
    return Core::Feature(QtSupport::Constants::FEATURE_QT_WEBKIT);
98
 
}
99
 
 
100
 
Core::BaseFileWizardParameters Html5AppWizard::parameters()
101
 
{
102
 
    Core::BaseFileWizardParameters parameters(ProjectWizard);
103
 
    parameters.setIcon(QIcon(QLatin1String(Constants::ICON_HTML5_APP)));
104
 
    parameters.setDisplayName(tr("HTML5 Application"));
105
 
    parameters.setId(QLatin1String("QA.HTML5A Application"));
106
 
    parameters.setDescription(tr("Creates an HTML5 application project that can contain "
107
 
                                 "both HTML5 and C++ code and includes a WebKit view.\n\n"
108
 
                                 "You can build the application and deploy it on desktop and "
109
 
                                 "mobile target platforms."));
110
 
    parameters.setCategory(QLatin1String(ProjectExplorer::Constants::QT_APPLICATION_WIZARD_CATEGORY));
111
 
    parameters.setDisplayCategory(QLatin1String(ProjectExplorer::Constants::QT_APPLICATION_WIZARD_CATEGORY_DISPLAY));
112
 
    return parameters;
113
 
}
114
 
 
115
106
AbstractMobileAppWizardDialog *Html5AppWizard::createWizardDialogInternal(QWidget *parent,
116
107
                                                                          const Core::WizardDialogParameters &parameters) const
117
108
{
124
115
void Html5AppWizard::projectPathChanged(const QString &path) const
125
116
{
126
117
    if (d->wizardDialog->targetsPage())
127
 
        d->wizardDialog->targetsPage()->setProFilePath(path);
 
118
        d->wizardDialog->targetsPage()->setProjectPath(path);
128
119
}
129
120
 
130
121
void Html5AppWizard::prepareGenerateFiles(const QWizard *w,
156
147
}
157
148
 
158
149
} // namespace Internal
159
 
} // namespace Qt4ProjectManager
 
150
} // namespace QmakeProjectManager
160
151
 
161
152
#include "html5appwizard.moc"