示例#1
0
 def linkClicked(self, tree, explorer, url):
     TreeItem.linkClicked(self,tree, explorer, url)
     if url.toString() == 'kill':
         try:
             self.element.killSeedingTasks()
         except FailedRequestError:
             #TODO:
             return
     try:
         text = self.getDescriptionHtml(tree, explorer)
         self.description.setHtml(text)
     except:
         explorer.setDescriptionWidget()
示例#2
0
 def __init__(self, layer):
     icon = QtGui.QIcon(os.path.dirname(__file__) + "/../images/layer.png")
     TreeItem.__init__(self, layer, icon)
     self.setFlags(QtCore.Qt.ItemIsEnabled | QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsDropEnabled)
示例#3
0
 def __init__(self, catalog):
     self.catalog = catalog
     icon = QtGui.QIcon(os.path.dirname(__file__) + "/../images/gwc.png")
     TreeItem.__init__(self, None, icon, "GeoWebCache layers")
     self.setFlags(QtCore.Qt.ItemIsEnabled | QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsDropEnabled)