1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
/***************************************************************************
* Copyright 2007 Alexander Dymo <adymo@kdevelop.org> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef _APPWIZARDDIALOG_H_
#define _APPWIZARDDIALOG_H_
#include <QMap>
#include <QUrl>
#include <KAssistantDialog>
#include <vcs/vcslocation.h>
class KPageWidgetItem;
class ProjectSelectionPage;
class ProjectVcsPage;
class ProjectTemplatesModel;
namespace KDevelop
{
class IPluginController;
}
class ApplicationInfo
{
public:
QString name;
QUrl location;
QString vcsPluginName;
QUrl sourceLocation;
KDevelop::VcsLocation repository;
QString importCommitMessage;
QString appTemplate;
};
class AppWizardDialog: public KAssistantDialog {
Q_OBJECT
public:
AppWizardDialog( KDevelop::IPluginController*, ProjectTemplatesModel*,
QWidget *parent = nullptr);
ApplicationInfo appInfo() const;
private Q_SLOTS:
void pageInValid( QWidget* w );
void pageValid( QWidget* w );
void next() override;
private:
QMap<QWidget*, KPageWidgetItem*> m_pageItems;
ProjectSelectionPage* m_selectionPage;
ProjectVcsPage* m_vcsPage;
};
#endif
|