kapptemplate
generatepage.cpp
Go to the documentation of this file.
100 if (!QFile(QDir::cleanPath(tdir.name()+'/'+file->name())).copy(KMacroExpander::expandMacros(destName, m_variables))) {
172 QString templateArchive = KGlobal::dirs()->findResource("data", QString("kdevappwizard/templates/%1.zip").arg(templateName));
174 templateArchive = KGlobal::dirs()->findResource("data", QString("kdevappwizard/templates/%1.tar.bz2").arg(templateName));
191 m_variables["PROJECTDIRNAME"] = appName.toLower()+"-"+version;// TODO what for? change "dest" to that?
212 resume = i18n("Your project name is: <b>%1</b>, based on the %2 template.<br />", appName, templateName);
215 resume.append(i18n("You will find a README in your project folder <b>%1</b><br /> to help you get started with your project.", url+'/'+appName.toLower()));
QString & append(QChar ch)
QString toUpper() const
QString join(const QString &separator) const
QDir root()
bool copy(const QString &newName)
int size() const
bool isEmpty() const
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
QVariant field(const QString &name) const
void clear()
QString toLower() const
bool contains(QChar ch, Qt::CaseSensitivity cs) const
QString & replace(int position, int n, QChar after)
QString cleanPath(const QString &path)
char * toString(const T &value)
bool mkdir(const QString &dirName) const
QString & setNum(short n, int base)
QDate currentDate()
const QChar at(int position) const
QTextCodec * codecForName(const QByteArray &name)
QString toString() const
void setTitle(const QString &title)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:39:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:39:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.