[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdevelop/parts/appwizard
From: Jens Dagerbo <jens.dagerbo () swipnet ! se>
Date: 2004-08-24 16:50:31
Message-ID: 20040824165031.1460324E7 () office ! kde ! org
[Download RAW message or body]
CVS commit by dagerbo:
Start of "Plugin Profiles". This is very basic, but at least lets us configure on a \
project type basis what project plugins to load, instead of hardcode this like we do \
now. Ideally this will be expanded to include the "global" plugins.
M +13 -10 appwizarddlg.cpp 1.96
--- kdevelop/parts/appwizard/appwizarddlg.cpp #1.95:1.96
@@ -65,4 +65,5 @@
#include <qlayout.h>
+#include "profiles.h"
#include "domutil.h"
#include "kdevversioncontrol.h"
@@ -606,5 +607,5 @@ void AppWizardDialog::accept()
}
*/
- KMessageBox::information(this, \
KMacroExpander::expandMacros(m_pCurrentAppInfo->message, m_pCurrentAppInfo->subMap)); \
+// KMessageBox::information(this, \
KMacroExpander::expandMacros(m_pCurrentAppInfo->message, m_pCurrentAppInfo->subMap)); \
QStringList::Iterator cleanIt = cleanUpSubstMap.begin();
@@ -873,13 +874,15 @@ void AppWizardDialog::openAfterGeneratio
DomUtil::writeMapEntry( projectDOM, "substmap", m_pCurrentAppInfo->subMap );
-////////////////////////
+//BEGIN Plugin Profile
+
+ QString category = m_pCurrentAppInfo->category;
+ if ( category.left( 1 ) == "/" )
+ {
+ category = category.right( category.length() -1 );
+ }
+
+ QString profile = Profiles::getProfileForCategory( category );
+ QStringList loadList = Profiles::getPluginsForProfile( profile );
- QStringList loadList = QStringList::split( ',', \
"KDevBookmarks,KDevCTags2,KDevClassView,KDevFileView,KDevQuickOpen" \
);
- QString lang = DomUtil::readEntry(projectDOM, "/general/primarylanguage");
- if ((lang == "C") || (lang == "C++"))
- loadList << "KDevDebugger" << "KDevDoxygen";
- QString bs = DomUtil::readEntry(projectDOM, "/general/projectmanagement");
- if ((bs == "KDevAutoProject") || (bs == "KDevKDEAutoProject"))
- loadList << "KDevdistpart";
QStringList ignoreList;
@@ -897,5 +900,5 @@ void AppWizardDialog::openAfterGeneratio
DomUtil::writeListEntry( projectDOM, "/general/ignoreparts", "part", \
ignoreList );
-////////////////////////
+//END Plugin Profile
// write the dom back
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic