# -*- coding: utf-8 -*-
###########################################################################
# Copyright (C) 2003 by Wido Depping
# <widod@users.sourceforge.net>
#
# Copyright: See COPYING file that comes with this distribution
#
###########################################################################
from qt import *
import os.path
from plugins.browser_plugin.BrowserView import BrowserView
class TaskPlugin(object):
def __init__(self):
self.pluginName = "Browse LDAP Tree"
self.pluginPath = ""
self.pluginIconPath = ""
self.pluginWidget = None
###############################################################################
def postprocess (self):
pass
###############################################################################
def getIcon(self):
try:
iconPixmap = QPixmap (os.path.join (self.pluginIconPath,"plugin.png"))
except:
print "Debug: Icon could not be opened."
return iconPixmap
###############################################################################
def getPluginWidget(self, parent):
self.pluginWidget = BrowserView()
return self.pluginWidget
###############################################################################
def getPluginSettingsWidget(self, parent):
return
|