summaryrefslogtreecommitdiff
path: root/kberylsettings/plugindialog.py
diff options
context:
space:
mode:
authornatural <natural>2006-12-25 01:45:59 +0000
committernatural <natural>2006-12-25 01:45:59 +0000
commitc8ad4394c474f9f6854904f377ab28a38172b867 (patch)
treea21e740fc8025ba86b9a0006317c58ef316cea46 /kberylsettings/plugindialog.py
parentefa1df0939d879cf18e0cf9fa342aaf86d3e9ea1 (diff)
downloadkberylsettings-c8ad4394c474f9f6854904f377ab28a38172b867.tar.gz
kberylsettings-c8ad4394c474f9f6854904f377ab28a38172b867.tar.bz2
Added (copies of) missing beryl-settings icon svgs.
Added catetories column to plugin dialog. Added bell binding to setting widgets. Finally enabled binding setting value() functions -- now saves!
Diffstat (limited to 'kberylsettings/plugindialog.py')
-rw-r--r--kberylsettings/plugindialog.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/kberylsettings/plugindialog.py b/kberylsettings/plugindialog.py
index eec70c0..578d2d8 100644
--- a/kberylsettings/plugindialog.py
+++ b/kberylsettings/plugindialog.py
@@ -19,6 +19,7 @@ class PluginList(KListView):
def __init__(self, parent):
KListView.__init__(self, parent)
self.addColumn(i18n('Plugin'))
+ self.addColumn(i18n('Categories'))
self.addColumn(i18n('Description'))
def addPlugins(self, context):
@@ -31,10 +32,14 @@ class PluginList(KListView):
active = context.active
count = textlen = 0
loader = iconLoader()
+ cats = context.categories
+
for p in context.plugins:
item = QCheckListItem(self, p.ShortDesc, QCheckListItem.CheckBox)
item.setEnabled(not p.isGeneral)
- item.setText(1, p.LongDesc)
+ cnames = str.join(',', [c.ShortDesc for c in cats if p in c.Plugins])
+ item.setText(1, cnames)
+ item.setText(2, p.LongDesc)
item.setPixmap(0, p.icon(KIcon.SizeSmall, loader))
if p.Name in active:
stateMap[p.Name] = 1