[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Tue Jul 13 21:13:17 CEST 2004
CVS commit by arwalker:
Added a location field to the plugin manager. This is useful as a plugin can be located in one of several locations, and different versions of the same plugin may be at various locations.
M +11 -0 pluginmanager.ui 1.11
M +11 -2 pluginmanager.ui.h 1.19
--- kdeextragear-2/kst/kst/pluginmanager.ui #1.10:1.11
@@ -87,4 +87,15 @@
</property>
</column>
+ <column>
+ <property name="text">
+ <string>Location</string>
+ </property>
+ <property name="clickable">
+ <bool>true</bool>
+ </property>
+ <property name="resizable">
+ <bool>true</bool>
+ </property>
+ </column>
<property name="name">
<cstring>_pluginList</cstring>
--- kdeextragear-2/kst/kst/pluginmanager.ui.h #1.18:1.19
@@ -111,4 +111,6 @@ void PluginManager::rescan()
void PluginManager::reloadList()
{
+ QString strPath;
+
_pluginList->clear();
PluginCollection *pc = PluginCollection::self();
@@ -118,4 +120,10 @@ void PluginManager::reloadList()
for (it = pluginList.begin(); it != pluginList.end(); ++it) {
+ KstSharedPtr<Plugin> plugin = pc->plugin(it.data()._name);
+ if (plugin) {
+ strPath = plugin->xmlFile();
+ } else {
+ strPath = "";
+ }
QListViewItem *i = new QListViewItem(_pluginList,
it.data()._readableName,
@@ -124,5 +132,6 @@ void PluginManager::reloadList()
it.data()._version,
it.data()._author,
- it.data()._name);
+ it.data()._name,
+ strPath);
if (loadedPluginList.contains(it.data()._name)) {
i->setPixmap(COLUMN_LOADED, locate("data", "kst/pics/yes.png"));
More information about the Kst
mailing list