コード例 #1
0
ファイル: manageComplex.py プロジェクト: ronaldomsjr/DsgTools
 def __init__(self, parent, itemsDict, column):
     """
     Constructor
     """
     QItemDelegate.__init__(self, parent)
     self.itemsDict = itemsDict
     self.column = column
コード例 #2
0
 def __init__(self, parent):
     QItemDelegate.__init__(self, parent)
     self.margin_left = 5
     self.margin_top = 7
     self.height = 10
     self.icon_size = 17
     self.width = 300
コード例 #3
0
ファイル: manageComplex.py プロジェクト: lcoandrade/DsgTools
 def __init__(self, parent, itemsDict, column):
     """
     Constructor
     """
     QItemDelegate.__init__(self, parent)
     self.itemsDict = itemsDict
     self.column = column
コード例 #4
0
ファイル: Delegates.py プロジェクト: bbreslauer/PySciPlot
 def __init__(self, min, max, *args):
     """
     min and max are the limits that the spin box can scroll to/accept.
     """
     QItemDelegate.__init__(self, *args)
     self.min = min
     self.max = max
コード例 #5
0
    def __init__(self, columns=(), parent=None):
        """ Construtor.

        @param columns sequence of column numbers for LCD widgets
        @param parent ancestor object
        """
        QItemDelegate.__init__(self, parent)
        self.columns = columns
コード例 #6
0
ファイル: tracepointmodel.py プロジェクト: gledr/ricodebug
 def __init__(self, distObjects, parent=None):
     """Init TracepointModel
     """
     QAbstractTableModel.__init__(self, parent)
     QItemDelegate.__init__(self, parent)
     self.tracepoints = []
     self.distObjects = distObjects
     self.connector = distObjects.gdb_connector
コード例 #7
0
    def __init__(self, owner):
        """
        Checkbox delegate

        @param value: 
        @type value:
        """
        QItemDelegate.__init__(self, owner)
コード例 #8
0
    def __init__(self, parent_view):
        '''
        @param parent_view (QAbstractItemView): parent view for this item editor
        '''
        QItemDelegate.__init__(self, parent_view)
        self.parent_view = parent_view

        # List of database connection names. Used for populating the editor for a db_connection_hook
        self.known_db_connection_names = []
コード例 #9
0
    def __init__(self, parent_view):
        """
        @param parent_view (QAbstractItemView): parent view for this item editor
        """
        QItemDelegate.__init__(self, parent_view)
        self.parent_view = parent_view

        # List of database connection names. Used for populating the editor for a db_connection_hook
        self.known_db_connection_names = []
コード例 #10
0
ファイル: Agents.py プロジェクト: eagle842/extensivetesting
    def __init__(self, parent, col_):
        """
        @param value: 
        @type value:

        @param value: 
        @type value:
        """
        QItemDelegate.__init__(self, parent)
        self.col_ = col_
コード例 #11
0
    def __init__(self, parent=None, editable=True, **kwargs):
        """:param parent: the parent object for the delegate
        :param editable: a boolean indicating if the field associated to the delegate
        is editable

        """
        QItemDelegate.__init__(self, parent)
        self.editable = editable
        self.kwargs = kwargs
        self._font_metrics = QtGui.QFontMetrics(QtGui.QApplication.font())
        self._height = self._font_metrics.lineSpacing() + 10
        self._width = self._font_metrics.averageCharWidth() * 20
コード例 #12
0
    def __init__(self, data, options, parent=None):
        """
        Initializes STRTypeDelegate and QItemDelegate.
        :param spatial_unit: The current spatial unit.
        :param type: Object
        :param parent: The parent of the item delegate.
        :type parent: QWidget
        """
        QItemDelegate.__init__(self, parent)
        self.data = data
        self.options = options

        self._view = parent
コード例 #13
0
ファイル: generic_delegate.py プロジェクト: gltn/stdm
    def __init__(self, data, options, parent=None):
        """
        Initializes STRTypeDelegate and QItemDelegate.
        :param spatial_unit: The current spatial unit.
        :param type: Object
        :param parent: The parent of the item delegate.
        :type parent: QWidget
        """
        QItemDelegate.__init__(self, parent)
        self.data = data
        self.options = options

        self._view = parent
コード例 #14
0
    def __init__ (self, parent, colId):
        """
        Contructs ItemComboDelegate item delegate
        
        @param parent: 
        @type parent:

        @param colId: 
        @type colId:
        """
        QItemDelegate.__init__(self, parent)
        self.owner = parent
        self.colId = colId
コード例 #15
0
ファイル: genericdelegates.py プロジェクト: maximerobin/Ufwi
    def __init__(self, role, pixmap_on, pixmap_off, text_on, text_off, style_on, style_off, parent=None):
        QItemDelegate.__init__(self, parent)
        self.pixmap_on = pixmap_on
        self.pixmap_off = pixmap_off
        self.text_on = text_on
        self.text_off = text_off
        self.style_on = style_on
        self.style_off = style_off
        self.role = role

        self.icon = QIcon()
        self.icon.addPixmap(pixmap_on, QIcon.Normal, QIcon.On)
        self.icon.addPixmap(pixmap_off, QIcon.Normal, QIcon.Off)
コード例 #16
0
    def __init__(self, str_type_id=0, parent=None):
        """
        Initializes STRTypeDelegate and QItemDelegate.
        :param str_type_id: The tenure type id.
        :type str_type_id: Integer
        :param parent: The parent of the item delegate.
        :type parent: QWidget
        """
        QItemDelegate.__init__(self, parent)
        self.str_type_id = str_type_id
        self.curr_profile = current_profile()

        self.social_tenure = self.curr_profile.social_tenure
コード例 #17
0
    def __init__(self, spatial_unit, parent=None):
        """
        Initializes STRTypeDelegate and QItemDelegate.
        :param spatial_unit: The current spatial unit.
        :param type: Object
        :param parent: The parent of the item delegate.
        :type parent: QWidget
        """
        QItemDelegate.__init__(self, parent)

        self.curr_profile = current_profile()

        self.social_tenure = self.curr_profile.social_tenure
        self.spatial_unit = spatial_unit
コード例 #18
0
ファイル: featureTableWidget.py プロジェクト: bheuer/ilastik
 def __init__(self, parent, width, height):
     QItemDelegate.__init__(self, parent)
     
     self.itemWidth = width
     self.itemHeight = height
     self.checkedIcon = None
     self.partiallyCheckedIcon = None
     self.uncheckedIcon = None
     self.pixmapUnckecked = QPixmap(self.itemWidth, self.itemHeight)
     self.drawPixmapForUnckecked()
     self.pixmapCkecked = QPixmap(self.itemWidth, self.itemHeight)
     self.drawPixmapForCkecked()
     self.pixmapPartiallyChecked = QPixmap(self.itemWidth, self.itemHeight)
     self.drawPixmapForPartiallyChecked()
コード例 #19
0
    def __init__(self, parent, width, height):
        QItemDelegate.__init__(self, parent)

        self.itemWidth = width
        self.itemHeight = height
        self.checkedIcon = None
        self.partiallyCheckedIcon = None
        self.uncheckedIcon = None
        self.pixmapUnckecked = QPixmap(self.itemWidth, self.itemHeight)
        self.drawPixmapForUnckecked()
        self.pixmapCkecked = QPixmap(self.itemWidth, self.itemHeight)
        self.drawPixmapForCkecked()
        self.pixmapPartiallyChecked = QPixmap(self.itemWidth, self.itemHeight)
        self.drawPixmapForPartiallyChecked()
コード例 #20
0
ファイル: str_helpers.py プロジェクト: gltn/stdm
    def __init__(self, spatial_unit, parent=None):
        """
        Initializes STRTypeDelegate and QItemDelegate.
        :param spatial_unit: The current spatial unit.
        :param type: Object
        :param parent: The parent of the item delegate.
        :type parent: QWidget
        """
        QItemDelegate.__init__(self, parent)

        self.curr_profile = current_profile()

        self.social_tenure = self.curr_profile.social_tenure
        self.spatial_unit = spatial_unit
コード例 #21
0
ファイル: Agents.py プロジェクト: eagle842/extensivetesting
    def __init__ (self, parent, col_ ):
        """
        Contructs NameDelegate item delegate
        
        @param parent: 
        @type parent:

        @param items_: 
        @type items_:

        @param col_: 
        @type col_:
        """
        QItemDelegate.__init__(self, parent)
        self.col_ = col_
コード例 #22
0
ファイル: Agents.py プロジェクト: eagle842/extensivetesting
    def __init__ (self, parent, col_ ):
        """
        Contructs ComboValueDelegate item delegate
        
        @param parent: 
        @type parent:

        @param items_: 
        @type items_:

        @param col_: 
        @type col_:
        """
        QItemDelegate.__init__(self, parent)
        self.parent = parent
コード例 #23
0
ファイル: Adapters.py プロジェクト: eagle842/extensivetesting
    def __init__(self, parent):
        """
        Contructs Action item delegate
        
        @param parent: 
        @type parent:

        @param items_: 
        @type items_:

        @param col_: 
        @type col_:
        """
        QItemDelegate.__init__(self, parent)
        self.owner = parent
コード例 #24
0
    def __init__(self, parent, items_, col_):
        """
        ComboBox delegate

        @param parent: 
        @type parent:

        @param items_: 
        @type items_:

        @param col_: 
        @type col_:
        """
        QItemDelegate.__init__(self, parent)
        self.items_ = items_
        self.col_ = col_
コード例 #25
0
 def __init__(self, delta):
     QItemDelegate.__init__(self)
     self.delta = delta
     self.lastHeight = 0
     return
コード例 #26
0
ファイル: arrayeditor.py プロジェクト: koll00/Gui_SM
 def __init__(self, dtype, parent=None):
     QItemDelegate.__init__(self, parent)
     self.dtype = dtype
コード例 #27
0
 def __init__(self, view):
     QItemDelegate.__init__(self, None)
     self._view = view
     self._selected_indexes = None
コード例 #28
0
ファイル: ComboBoxSelector.py プロジェクト: Pharisaeus/Neural
 def __init__(self, parent, items):
     QItemDelegate.__init__(self, parent)
     self.items = items
コード例 #29
0
 def __init__(self, parent):
     # The parent is not an optional argument for the delegate as
     # we need to reference it in the paint method (see below)
     QItemDelegate.__init__(self, parent)
コード例 #30
0
ファイル: genericdelegates.py プロジェクト: maximerobin/Ufwi
 def __init__(self, role, icon, text, action, parent=None):
     QItemDelegate.__init__(self, parent)
     self.role = role
     self.text = text
     self.action = action
     self.icon = icon
コード例 #31
0
 def __init__(self, parent=None, inplace=False):
     QItemDelegate.__init__(self, parent)
     self.inplace = inplace
コード例 #32
0
ファイル: itemdelegates.py プロジェクト: eaglexmw/codimension
 def __init__( self, delta ):
     QItemDelegate.__init__( self )
     self.delta = delta
     self.lastHeight = 0
     return
コード例 #33
0
 def __init__(self, parent):
     QItemDelegate.__init__(self, parent)
コード例 #34
0
 def __init__(self, parent=None):
     QItemDelegate.__init__(self, parent)
     self.modifiers = sorted(Key.MODIFIERNAMES.values())
     self.mod = None
     self.keys = sorted(Key.KEYS.values())
     self.key = None
コード例 #35
0
ファイル: dicteditor.py プロジェクト: cheesinglee/spyder
 def __init__(self, parent=None, inplace=False):
     QItemDelegate.__init__(self, parent)
     self.inplace = inplace
コード例 #36
0
 def __init__(self, config):
     QItemDelegate.__init__(self)
     self.setOneLine(config.oneLinePlaylist)
コード例 #37
0
ファイル: Delegates.py プロジェクト: bbreslauer/PySciPlot
 def __init__(self, model, *args):
     """
     model is the model used for the combo box.
     """
     QItemDelegate.__init__(self, *args)
     self.model = model
コード例 #38
0
 def __init__(self, parent, itemList, defaultItem = ""):
     QItemDelegate.__init__(self, parent)
     self.itemList = itemList
     self.defaultItem = defaultItem
コード例 #39
0
 def __init__(self, parent=None):
     QItemDelegate.__init__(self, parent)
     self.comboDel = ComboDelegate()
コード例 #40
0
 def __init__(self):
     QItemDelegate.__init__(self)
コード例 #41
0
 def __init__(self, parent=None):
     QItemDelegate.__init__(self)
コード例 #42
0
 def __init__(self, parent):
     QItemDelegate.__init__(self, parent)
     self.document = QTextDocument(self)
     self.document.setDocumentMargin(0)
     self.hl_color = QApplication.palette().highlight().color()
     self.hl_color = ",".join([repr(self.hl_color.red()), repr(self.hl_color.green()), repr(self.hl_color.blue())])
コード例 #43
0
ファイル: genericdelegates.py プロジェクト: maximerobin/Ufwi
 def __init__(self, values, parent=None):
     QItemDelegate.__init__(self, parent)
     self.values = []
     self._update(values)
コード例 #44
0
ファイル: randstudent6.py プロジェクト: iefan/randstudent
 def __init__(self, parent, itemslist=["a", "b", "c"], db=""):
     QItemDelegate.__init__(self, parent)
     # itemslist = ["a", "b", "c"]
     self.itemslist = itemslist
     self.parent = parent
     self.db = db
コード例 #45
0
ファイル: manageComplex.py プロジェクト: alexdsz/DsgTools
 def __init__(self, parent, itemsDict, column):
     QItemDelegate.__init__(self, parent)
     self.itemsDict = itemsDict
     self.column = column
コード例 #46
0
 def __init__(self, parent, module):
     self.module = module
     QItemDelegate.__init__(self, parent)
コード例 #47
0
 def __init__(self, parent=None):
     QItemDelegate.__init__(self, parent)
コード例 #48
0
 def __init__(self, parent, dataList=[]):
     QItemDelegate.__init__(self, parent)
     self.dataList = dataList
コード例 #49
0
ファイル: pages_list.py プロジェクト: maximerobin/Ufwi
    def __init__(self, treeview, parent=None):

        QItemDelegate.__init__(self, parent)
        self.m_view = treeview
コード例 #50
0
 def __init__(self, field_types, parent=None):
     QItemDelegate.__init__(self, parent)
     self.fieldTypes = field_types
コード例 #51
0
 def __init__(self, dtype, parent=None):
     QItemDelegate.__init__(self, parent)
     self.dtype = dtype
コード例 #52
0
ファイル: fields_tree.py プロジェクト: cuulee/QgisODK
 def __init__(self, parent, iface):
     self.parent = parent
     QItemDelegate.__init__(self, parent)
     self.iface = iface
コード例 #53
0
ファイル: dlg_create_table.py プロジェクト: Geoneer/QGIS
 def __init__(self, field_types, parent=None):
     QItemDelegate.__init__(self, parent)
     self.fieldTypes = field_types
コード例 #54
0
ファイル: manageComplex.py プロジェクト: alexdsz/DsgTools
 def __init__(self, parent, itemsDict, column):
     QItemDelegate.__init__(self, parent)
     self.itemsDict = itemsDict
     self.column = column