Exemple #1
0
 def __init__(self):
     QObject.__init__(self)
     Mode.__init__(self)
     self._root_node = None
     self._vars = []
     self._paragraphs = []
     self._runner = DelayJobRunner()
 def __init__(self):
     Mode.__init__(self)
     QtCore.QObject.__init__(self)
     self._pending = False
     self.action_goto = QtWidgets.QAction("Go to assignments", self)
     self.action_goto.setShortcut("F2")
     self.action_goto.triggered.connect(self.request_goto)
Exemple #3
0
 def __init__(self, delay=1000):
     Mode.__init__(self)
     QtCore.QObject.__init__(self)
     self._jobRunner = DelayJobRunner(delay=delay)
     #: The list of results (elements might have children; this is actually
     #: a tree).
     self.results = []
Exemple #4
0
 def __init__(self):
     Mode.__init__(self)
     QObject.__init__(self)
     self._pending = False
     self.aGotToDef = QAction("Go to assignments", self)
     self.aGotToDef.setShortcut('F3')
     self.aGotToDef.triggered.connect(self.requestGoTo)
 def __init__(self, delay=1000):
     Mode.__init__(self)
     QtCore.QObject.__init__(self)
     self._jobRunner = DelayJobRunner(delay=delay)
     #: The list of results (elements might have children; this is actually
     #: a tree).
     self.results = []
 def __init__(self, worker, delay=1000):
     Mode.__init__(self)
     QtCore.QObject.__init__(self)
     self._worker = worker
     self._jobRunner = DelayJobRunner(delay=delay)
     #: The list of definitions found in the file, each item is a
     #: pyqode.core.share.Definition.
     self._results = []
Exemple #7
0
 def __init__(self, worker, delay=1000):
     Mode.__init__(self)
     QtCore.QObject.__init__(self)
     self._worker = worker
     self._jobRunner = DelayJobRunner(delay=delay)
     #: The list of definitions found in the file, each item is a
     #: pyqode.core.share.Definition.
     self._results = []
Exemple #8
0
 def __init__(self):
     QObject.__init__(self)
     Mode.__init__(self)
     self._previous_cursor_start = -1
     self._previous_cursor_end = -1
     self._definition = None
     self._deco = None
     self._pending = False
     self.action_goto = QAction(_("Go to assignments"), self)
     self.action_goto.setShortcut('F7')
     self.action_goto.triggered.connect(self.request_goto)
     self.word_clicked.connect(self.request_goto)
     self._timer = DelayJobRunner(delay=200)
Exemple #9
0
 def __init__(self):
     QObject.__init__(self)
     Mode.__init__(self)
     self._previous_cursor_start = -1
     self._previous_cursor_end = -1
     self._definition = None
     self._deco = None
     self._pending = False
     self.action_goto = QAction(_("Go to assignments"), self)
     self.action_goto.setShortcut('F7')
     self.action_goto.triggered.connect(self.request_goto)
     self.word_clicked.connect(self.request_goto)
     self._timer = DelayJobRunner(delay=200)
Exemple #10
0
 def __init__(self):
     Mode.__init__(self)
     self._margin_pos = 79
     self._color = QtGui.QColor('red')
     self._pen = QtGui.QPen(self._color)
 def __init__(self):
     Mode.__init__(self)
     QtCore.QObject.__init__(self)
     self.tooltipDisplayRequested.connect(self._display_tooltip)
     self.tooltipHideRequested.connect(QtWidgets.QToolTip.hideText)
     self.__requestCnt = 0
 def __init__(self):
     Mode.__init__(self)
     QtCore.QObject.__init__(self)
     self.tooltipDisplayRequested.connect(self._display_tooltip)
     self.tooltipHideRequested.connect(QtWidgets.QToolTip.hideText)
     self.__requestCnt = 0
Exemple #13
0
 def __init__(self):
     QObject.__init__(self)
     Mode.__init__(self)
     self.__root_node = None
     self.__vars = []
     self.__paragraphs = []
 def __init__(self):
     Mode.__init__(self)
     self._margin_pos = 79
     self._color = QtGui.QColor('red')
     self._pen = QtGui.QPen(self._color)
Exemple #15
0
 def __init__(self):
     if '4' in os.environ['QT_API']:
         Mode.__init__(self)
     super().__init__()
Exemple #16
0
 def __init__(self):
     if os.environ['QT_API'] in (PYQT4_API + PYSIDE_API):
         QObject.__init__(self)
         Mode.__init__(self)
     else:
         super().__init__()
 def on_install(self, editor):
     Mode.on_install(self, editor)