namespace Qt4ProjectManager {
class Qt4Project;
+class TargetSetupPage;
namespace Internal {
-class TargetSetupPage;
class ProjectLoadWizard : public QWizard
{
#endif // CREATORLESSTEST
namespace Qt4ProjectManager {
-namespace Internal {
AbstractGeneratedFileInfo::AbstractGeneratedFileInfo()
: fileType(ExtendedFile)
QLatin1Char('(') + parameter + QLatin1Char(')'));
}
-} // namespace Internal
} // namespace Qt4ProjectManager
#ifndef ABSTRACTMOBILEAPP_H
#define ABSTRACTMOBILEAPP_H
+#include "../qt4projectmanager_global.h"
#include <QtCore/QFileInfo>
#include <QtCore/QPair>
QT_FORWARD_DECLARE_CLASS(QTextStream)
namespace Qt4ProjectManager {
-namespace Internal {
-struct AbstractGeneratedFileInfo
+/// \internal
+struct QT4PROJECTMANAGER_EXPORT AbstractGeneratedFileInfo
{
enum FileType {
MainCppFile,
typedef QPair<QString, QString> DeploymentFolder; // QPair<.source, .target>
-class AbstractMobileApp : public QObject
+/// \internal
+class QT4PROJECTMANAGER_EXPORT AbstractMobileApp : public QObject
{
Q_OBJECT
bool m_networkEnabled;
};
-} // namespace Internal
} // namespace Qt4ProjectManager
#endif // ABSTRACTMOBILEAPP_H
#include <QtGui/QIcon>
namespace Qt4ProjectManager {
-namespace Internal {
AbstractMobileAppWizardDialog::AbstractMobileAppWizardDialog(QWidget *parent)
: ProjectExplorer::BaseProjectWizardDialog(parent)
m_targetsPage->setMinimumQtVersion(QtVersionNumber(4,7,0));
resize(900, 450);
m_targetsPageId = addPageWithTitle(m_targetsPage, tr("Qt Versions"));
- m_genericOptionsPage = new MobileAppWizardGenericOptionsPage;
+ m_genericOptionsPage = new Internal::MobileAppWizardGenericOptionsPage;
m_genericOptionsPageId = addPageWithTitle(m_genericOptionsPage,
tr("Mobile Options"));
- m_symbianOptionsPage = new MobileAppWizardSymbianOptionsPage;
+ m_symbianOptionsPage = new Internal::MobileAppWizardSymbianOptionsPage;
m_symbianOptionsPageId = addPageWithTitle(m_symbianOptionsPage,
QLatin1String(" ") + tr("Symbian Specific"));
- m_maemoOptionsPage = new MobileAppWizardMaemoOptionsPage;
+ m_maemoOptionsPage = new Internal::MobileAppWizardMaemoOptionsPage;
m_maemoOptionsPageId = addPageWithTitle(m_maemoOptionsPage,
QLatin1String(" ") + tr("Maemo Specific"));
m_symbianItem->setNextShownItem(0);
}
+TargetSetupPage *AbstractMobileAppWizardDialog::targetsPage() const
+{
+ return m_targetsPage;
+}
+
int AbstractMobileAppWizardDialog::addPageWithTitle(QWizardPage *page, const QString &title)
{
const int pageId = addPage(page);
projectPathChanged(app()->path(AbstractMobileApp::AppPro));
}
-} // namespace Internal
} // namespace Qt4ProjectManager
#ifndef ABSTRACTMOBILEAPPWIZARD_H
#define ABSTRACTMOBILEAPPWIZARD_H
+#include <qt4projectmanager/qt4projectmanager_global.h>
#include <coreplugin/basefilewizard.h>
#include <projectexplorer/baseprojectwizarddialog.h>
namespace Qt4ProjectManager {
-namespace Internal {
class AbstractMobileApp;
+class TargetSetupPage;
+
+namespace Internal {
class MobileAppWizardGenericOptionsPage;
class MobileAppWizardSymbianOptionsPage;
class MobileAppWizardMaemoOptionsPage;
+}
-class AbstractMobileAppWizardDialog : public ProjectExplorer::BaseProjectWizardDialog
+/// \internal
+class QT4PROJECTMANAGER_EXPORT AbstractMobileAppWizardDialog : public ProjectExplorer::BaseProjectWizardDialog
{
Q_OBJECT
+
protected:
explicit AbstractMobileAppWizardDialog(QWidget *parent = 0);
public:
- MobileAppWizardGenericOptionsPage *m_genericOptionsPage;
- MobileAppWizardSymbianOptionsPage *m_symbianOptionsPage;
- MobileAppWizardMaemoOptionsPage *m_maemoOptionsPage;
- class TargetSetupPage *m_targetsPage;
+ TargetSetupPage *targetsPage() const;
protected:
int addPageWithTitle(QWizardPage *page, const QString &title);
virtual void cleanupPage(int id);
private:
+
virtual int nextId() const;
int idOfNextGenericPage() const;
Utils::WizardProgressItem *itemOfNextGenericPage() const;
+ Internal::MobileAppWizardGenericOptionsPage *m_genericOptionsPage;
+ Internal::MobileAppWizardSymbianOptionsPage *m_symbianOptionsPage;
+ Internal::MobileAppWizardMaemoOptionsPage *m_maemoOptionsPage;
+ TargetSetupPage *m_targetsPage;
+
int m_genericOptionsPageId;
int m_symbianOptionsPageId;
int m_maemoOptionsPageId;
Utils::WizardProgressItem *m_genericItem;
Utils::WizardProgressItem *m_symbianItem;
Utils::WizardProgressItem *m_maemoItem;
+
+ friend class AbstractMobileAppWizard;
};
-class AbstractMobileAppWizard : public Core::BaseFileWizard
+/// \internal
+class QT4PROJECTMANAGER_EXPORT AbstractMobileAppWizard : public Core::BaseFileWizard
{
Q_OBJECT
protected:
QString *errorMessage) const=0;
};
-} // namespace Internal
} // namespace Qt4ProjectManager
#endif // ABSTRACTMOBILEAPPWIZARD_H
void Html5AppWizard::projectPathChanged(const QString &path) const
{
- m_d->wizardDialog->m_targetsPage->setProFilePath(path);
+ m_d->wizardDialog->targetsPage()->setProFilePath(path);
}
void Html5AppWizard::prepareGenerateFiles(const QWizard *w,
AbstractMobileAppWizardDialog *MobileAppWizard::createWizardDialogInternal(QWidget *parent) const
{
m_d->wizardDialog = new MobileAppWizardDialog(parent);
- m_d->wizardDialog->m_targetsPage->setPreferMobile(true);
+ m_d->wizardDialog->targetsPage()->setPreferMobile(true);
return m_d->wizardDialog;
}
void MobileAppWizard::projectPathChanged(const QString &path) const
{
- m_d->wizardDialog->m_targetsPage->setProFilePath(path);
+ m_d->wizardDialog->targetsPage()->setProFilePath(path);
}
void MobileAppWizard::prepareGenerateFiles(const QWizard *w,
void QtQuickAppWizard::projectPathChanged(const QString &path) const
{
- m_d->wizardDialog->m_targetsPage->setProFilePath(path);
+ m_d->wizardDialog->targetsPage()->setProFilePath(path);
}
void QtQuickAppWizard::prepareGenerateFiles(const QWizard *w,
namespace Qt4ProjectManager {
class Qt4Project;
+class TargetSetupPage;
namespace Internal {
class ModulesPage;
-class TargetSetupPage;
/* Base class for wizard creating Qt projects using QtProjectParameters.
* To implement a project wizard, overwrite:
#include <QtGui/QLayout>
using namespace Qt4ProjectManager;
-using namespace Qt4ProjectManager::Internal;
TargetSetupPage::TargetSetupPage(QWidget *parent) :
QWizardPage(parent),
m_preferMobile(false),
m_importSearch(false),
m_spacer(new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding)),
- m_ui(new Ui::TargetSetupPage)
+ m_ui(new Internal::Ui::TargetSetupPage)
{
m_ui->setupUi(this);
QWidget *centralWidget = new QWidget(this);
#ifndef TARGETSETUPPAGE_H
#define TARGETSETUPPAGE_H
-#include "qt4target.h"
-#include "qtversionmanager.h"
+#include <qt4target.h>
+#include <qtversionmanager.h>
+#include <qt4projectmanager_global.h>
#include <QtCore/QString>
#include <QtGui/QWizard>
class Qt4Project;
namespace Internal {
-
namespace Ui {
class TargetSetupPage;
}
+}
-class TargetSetupPage : public QWizardPage
+/// \internal
+class QT4PROJECTMANAGER_EXPORT TargetSetupPage : public QWizardPage
{
Q_OBJECT
QVBoxLayout *m_layout;
QSpacerItem *m_spacer;
- Ui::TargetSetupPage *m_ui;
+ Internal::Ui::TargetSetupPage *m_ui;
QList<BuildConfigurationInfo> m_importInfos;
};
-} // namespace Internal
} // namespace Qt4ProjectManager
#endif // TARGETSETUPPAGE_H
#include "html5app.h"
#include <QtCore>
+using namespace Qt4ProjectManager;
using namespace Qt4ProjectManager::Internal;
static bool writeFile(const QByteArray &data, const QString &targetFile)