importdlg.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2001-2002 by Bernd Gehrmann * 00003 * bernd@kdevelop.org * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 ***************************************************************************/ 00011 00012 #ifndef _IMPORTDLG_H_ 00013 #define _IMPORTDLG_H_ 00014 00015 #include "importdlgbase.h" 00016 #include <qstringlist.h> 00017 00018 00019 class AppWizardPart; 00020 00021 struct InfrastructureCmd{ 00022 bool isOn; 00023 QString comment; 00024 QString command; 00025 QString existingPattern; 00026 }; 00027 00028 class ImportDialog : public ImportDialogBase 00029 { 00030 Q_OBJECT 00031 00032 public: 00033 ImportDialog( AppWizardPart *part, QWidget *parent=0, const char *name=0 ); 00034 ~ImportDialog(); 00035 00036 protected: 00037 virtual void accept(); 00038 00039 protected slots: 00040 virtual void dirChanged(); 00041 virtual void projectTypeChanged(const QString &type); 00042 virtual void projectTypeChanged(int type); 00043 00044 private slots: 00045 // void slotFinishedCheckout( QString destinationDir ); 00046 // void slotFetchModulesFromRepository(); 00047 void slotProjectNameChanged( const QString &_text ); 00048 private: 00049 // void scanAvailableVCS(); 00050 void scanLegacyKDevelopProject(const QString &fileName); 00051 void scanLegacyStudioProject(const QString &fileName); 00052 void scanAutomakeProject(const QString &dirName); 00053 void setProjectType(const QString &type); 00054 00055 void createProjectInfrastructure(); 00056 00057 QStringList importNames; 00058 AppWizardPart *m_part; 00059 00060 QMap<QString, InfrastructureCmd> m_infrastructure; 00061 }; 00062 00063 #endif