def _GM_IndexRange_t(self, m, node): if (node.sidsName() != CGK.ElementRange_s): v = 0 a = QAction('Range size: %d' % (v), self) m.addAction(a) else: v = node.sidsValue()[1] - node.sidsValue()[0] etp = CGU.getEnumAsString(node.sidsParent()) a = QAction('Number of elements of type [%s]: %d' % (etp, v), self) m.addAction(a) return True
def _GM_Elements_t(self, m, node): etp = CGU.getEnumAsString(node.sidsNode()) npe = CGK.ElementTypeNPE[etp] a = QAction('Element type [%s] npe [%d]' % (etp, npe), self) m.addAction(a) return True