[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/libs/flake
From: Thomas Zander <zander () kde ! org>
Date: 2007-04-14 8:22:06
Message-ID: 1176538926.534460.32387.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 653785 by zander:
Use config for loading plugins
M +8 -2 KoShapeRegistry.cpp
M +6 -0 KoToolRegistry.cpp
--- trunk/koffice/libs/flake/KoShapeRegistry.cpp #653784:653785
@@ -33,10 +33,16 @@
}
void KoShapeRegistry::init() {
+ KoPluginLoader::PluginsConfig config;
+ config.whiteList = "FlakePlugins";
+ config.blacklist = "FlakePluginsDisabled";
+ config.group = "koffice";
KoPluginLoader::instance()->load( QString::fromLatin1("KOffice/Flake"),
- QString::fromLatin1("[X-Flake-Version] == 1"));
+ QString::fromLatin1("[X-Flake-Version] == 1"), config);
+ config.whiteList = "ShapePlugins";
+ config.blacklist = "ShapePluginsDisabled";
KoPluginLoader::instance()->load(QString::fromLatin1("KOffice/Shape"),
- QString::fromLatin1("[X-Flake-Version] == 1"));
+ QString::fromLatin1("[X-Flake-Version] == 1"), config);
// Also add our hard-coded basic shape
add( new KoPathShapeFactory(this, QStringList()) );
--- trunk/koffice/libs/flake/KoToolRegistry.cpp #653784:653785
@@ -27,8 +27,14 @@
}
void KoToolRegistry::init() {
+ KoPluginLoader::PluginsConfig config;
+ config.whiteList = "FlakePlugins";
+ config.blacklist = "FlakePluginsDisabled";
+ config.group = "koffice";
KoPluginLoader::instance()->load( QString::fromLatin1("KOffice/Flake"),
QString::fromLatin1("[X-Flake-Version] == 1"));
+ config.whiteList = "ToolPlugins";
+ config.blacklist = "ToolPluginsDisabled";
KoPluginLoader::instance()->load( QString::fromLatin1("KOffice/Tool"),
QString::fromLatin1("[X-Flake-Version] == 1"));
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic