def __init__(self, filename, name, icon):
     QTreeWidgetItem.__init__(self)
     self.name = name
     self.filename = filename
     self.setText(0, name)
     self.setIcon(0, icon)
     self.setCheckState(0, Qt.Unchecked)
Beispiel #2
0
 def __init__(self, filename, name, icon):
     QTreeWidgetItem.__init__(self)
     self.name = name
     self.filename = filename
     self.setText(0, name)
     self.setIcon(0, icon)
     self.setCheckState(0, Qt.Unchecked)
Beispiel #3
0
 def __init__(self, alg):
     QTreeWidgetItem.__init__(self)
     self.alg = alg
     icon = alg.getIcon()
     name = AlgorithmClassification.getDisplayName(alg)
     self.setIcon(0, icon)
     self.setToolTip(0, name)
     self.setText(0, name)
Beispiel #4
0
 def __init__(self, alg):
     QTreeWidgetItem.__init__(self)
     self.alg = alg
     icon = alg.getIcon()
     name = AlgorithmClassification.getDisplayName(alg)
     self.setIcon(0, icon)
     self.setToolTip(0, name)
     self.setText(0, name)
Beispiel #5
0
 def __init__(self, providerName, tree, toolbox):
     QTreeWidgetItem.__init__(self, tree)
     self.tree = tree
     self.toolbox = toolbox
     self.providerName = providerName
     self.provider = Processing.getProviderFromName(providerName)
     self.setIcon(0, self.provider.getIcon())
     self.populate()
    def __init__(self, connection):
        self.connIcon = QIcon(os.path.dirname(__file__) + '/../images/postgis.png')
        self.schemaIcon = QIcon(os.path.dirname(__file__) + '/../images/namespace.png')

        QTreeWidgetItem.__init__(self)
        self.setChildIndicatorPolicy(QTreeWidgetItem.ShowIndicator)
        self.connection = connection
        self.setText(0, connection)
        self.setIcon(0, self.connIcon)
    def __init__(self, connection):
        self.connIcon = QIcon(
            os.path.dirname(__file__) + '/../images/postgis.png')
        self.schemaIcon = QIcon(
            os.path.dirname(__file__) + '/../images/namespace.png')

        QTreeWidgetItem.__init__(self)
        self.setChildIndicatorPolicy(QTreeWidgetItem.ShowIndicator)
        self.connection = connection
        self.setText(0, connection)
        self.setIcon(0, self.connIcon)
Beispiel #8
0
 def __init__(self, action):
     QTreeWidgetItem.__init__(self)
     self.action = action
     self.setText(0, action.i18n_name)
     self.setIcon(0, action.getIcon())
     self.setData(0, Qt.UserRole, action.name)
Beispiel #9
0
 def __init__(self, result):
     QTreeWidgetItem.__init__(self)
     self.filename = result.filename
     self.setText(0, result.name)
Beispiel #10
0
 def __init__(self, name, value):
     QTreeWidgetItem.__init__(self)
     self.value = value
     self.setText(0, name + ': ' + unicode(value))
Beispiel #11
0
 def __init__(self, action):
     QTreeWidgetItem.__init__(self)
     self.action = action
     self.setText(0, action.name)
     self.setIcon(0, action.getIcon())
Beispiel #12
0
 def __init__(self, entry, isAlg):
     QTreeWidgetItem.__init__(self)
     self.entry = entry
     self.isAlg = isAlg
     self.setText(0, '[' + entry.date + '] ' + entry.text.split('|')[0])
Beispiel #13
0
 def __init__(self, result):
     QTreeWidgetItem.__init__(self)
     self.filename = result.filename
     self.setText(0, result.name)
Beispiel #14
0
 def __init__(self, name, value):
     QTreeWidgetItem.__init__(self)
     self.value = value
     self.setText(0, name + ': ' + unicode(value))
Beispiel #15
0
 def __init__(self, action):
     QTreeWidgetItem.__init__(self)
     self.action = action
     self.setText(0, action.name)
     self.setIcon(0, action.getIcon())
Beispiel #16
0
 def __init__(self, description, name):
     QTreeWidgetItem.__init__(self)
     self.name = name
     self.description = description
     self.setText(0, description)
Beispiel #17
0
 def __init__(self, description, name):
     QTreeWidgetItem.__init__(self)
     self.name = name
     self.description = description
     self.setText(0, description)
Beispiel #18
0
 def __init__(self, entry, isAlg):
     QTreeWidgetItem.__init__(self)
     self.entry = entry
     self.isAlg = isAlg
     self.setText(0, '[' + entry.date + '] ' + entry.text.split('|')[0])