Ejemplo n.º 1
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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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()
Ejemplo n.º 6
0
    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)
Ejemplo n.º 7
0
    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)
Ejemplo n.º 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)
Ejemplo n.º 9
0
 def __init__(self, result):
     QTreeWidgetItem.__init__(self)
     self.filename = result.filename
     self.setText(0, result.name)
Ejemplo n.º 10
0
 def __init__(self, name, value):
     QTreeWidgetItem.__init__(self)
     self.value = value
     self.setText(0, name + ': ' + unicode(value))
Ejemplo n.º 11
0
 def __init__(self, action):
     QTreeWidgetItem.__init__(self)
     self.action = action
     self.setText(0, action.name)
     self.setIcon(0, action.getIcon())
Ejemplo n.º 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])
Ejemplo n.º 13
0
 def __init__(self, result):
     QTreeWidgetItem.__init__(self)
     self.filename = result.filename
     self.setText(0, result.name)
Ejemplo n.º 14
0
 def __init__(self, name, value):
     QTreeWidgetItem.__init__(self)
     self.value = value
     self.setText(0, name + ': ' + unicode(value))
Ejemplo n.º 15
0
 def __init__(self, action):
     QTreeWidgetItem.__init__(self)
     self.action = action
     self.setText(0, action.name)
     self.setIcon(0, action.getIcon())
Ejemplo n.º 16
0
 def __init__(self, description, name):
     QTreeWidgetItem.__init__(self)
     self.name = name
     self.description = description
     self.setText(0, description)
Ejemplo n.º 17
0
 def __init__(self, description, name):
     QTreeWidgetItem.__init__(self)
     self.name = name
     self.description = description
     self.setText(0, description)
Ejemplo n.º 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])