[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdevelop/parts/appwizard
From: Alexander Neundorf <neundorf () kde ! org>
Date: 2004-12-04 20:58:19
Message-ID: 20041204205819.A14CA19D27 () office ! kde ! org
[Download RAW message or body]
CVS commit by neundorf:
-implement support for a "run tool when template creation has finished",
could be used e.g. for qmake (or cmake...)
Alex
M +10 -0 appwizarddlg.cpp 1.102
M +2 -0 appwizarddlg.h 1.32
--- kdevelop/parts/appwizard/appwizarddlg.cpp #1.101:1.102
@@ -67,4 +67,6 @@
#include "kdevmakefrontend.h"
#include "kdevpartcontroller.h"
+#include "kdevappfrontend.h"
+#include "kdevplugininfo.h"
#include "kdevlicense.h"
#include "kdevcore.h"
@@ -220,4 +222,9 @@ AppWizardDialog::AppWizardDialog(AppWiza
info->dirList.append(dir);
}
+ else if( type == "finishcmd" )
+ {
+ \
info->finishCmd=templateConfig.readPathEntry("Command"); + \
info->finishCmdDir=templateConfig.readPathEntry("Directory"); + \
} else if( type == "ui")
{
@@ -628,4 +635,7 @@ void AppWizardDialog::accept()
}
+ if (KDevAppFrontend *appFrontend = \
extension<KDevAppFrontend>("KDevelop/AppFrontend")) + \
appFrontend->startAppCommand(KMacroExpander::expandMacros(m_pCurrentAppInfo->finishCmdDir, \
m_pCurrentAppInfo->subMap), \
KMacroExpander::expandMacros(m_pCurrentAppInfo->finishCmd, \
m_pCurrentAppInfo->subMap), false); +
openAfterGeneration();
--- kdevelop/parts/appwizard/appwizarddlg.h #1.31:1.32
@@ -84,4 +84,6 @@ struct ApplicationInfo
QString customUI;
QString message;
+ QString finishCmd;
+ QString finishCmdDir;
QString sourceArchive;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic