summaryrefslogtreecommitdiff
path: root/kberylsettings/pluginframe.py
diff options
context:
space:
mode:
authornatural <natural>2006-12-16 03:19:59 +0000
committernatural <natural>2006-12-16 03:19:59 +0000
commitfcfa23f8e1b16bc68329c9e9aa3cb31d906ee572 (patch)
treee848ae85999e5221acd8d001317807fd35068403 /kberylsettings/pluginframe.py
parentc32078c7602fd7a32100188aaa6b3fef3115afce (diff)
downloadkberylsettings-fcfa23f8e1b16bc68329c9e9aa3cb31d906ee572.tar.gz
kberylsettings-fcfa23f8e1b16bc68329c9e9aa3cb31d906ee572.tar.bz2
Added LICENCE file.
Removed TODO -- don't really need to see what's on my plate. Added plugindialog.py for selecting plugins. Updated pluginframe.py and main.py to reflect. Tweaked plugin.html -- still needs much work. Added Signals.okClicked and Signals.activated to lib.py.
Diffstat (limited to 'kberylsettings/pluginframe.py')
-rw-r--r--kberylsettings/pluginframe.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/kberylsettings/pluginframe.py b/kberylsettings/pluginframe.py
index 9ce1264..306a883 100644
--- a/kberylsettings/pluginframe.py
+++ b/kberylsettings/pluginframe.py
@@ -33,6 +33,7 @@ class PluginFrame(QFrame):
connect(view, Signals.pluginAbout, root.showAboutPlugin)
connect(view, Signals.statusMessage, root.showMessage)
connect(root, Signals.berylContextChanged, view.onBerylContext)
+ connect(root, Signals.berylPluginEnabled, view.enablePluginItem)
for receiver in views:
connect(view, Signals.berylPluginEnabled,
receiver.enablePluginItem)
@@ -98,7 +99,8 @@ class PluginView(KListView):
if not item:
item = QListViewItem(self, plugin.ShortDesc)
item.setVisible(True)
- item.setEnabled(plugin.Name in active or plugin.isGeneral)
+ ##item.setEnabled(plugin.Name in active or plugin.isGeneral)
+ item.setVisible(plugin.Name in active)
item.setPixmap(0, plugin.icon(self.iconSize, self.loader))
item.setText(0, plugin.ShortDesc)
return item
@@ -166,8 +168,9 @@ class PluginView(KListView):
"""
for item in self:
if item.text(0) == plugin.ShortDesc:
- item.setOpen(enable)
- item.setEnabled(enable)
+ #item.setOpen(enable)
+ #item.setEnabled(enable)
+ item.setVisible(enable)
class PluginIconView(PluginView):