eric7/Debugger/DebugUI.py

branch
eric7
changeset 8318
962bce857696
parent 8314
e3642a6a1e71
child 8322
b422b4e77d19
equal deleted inserted replaced
8316:0c7a44af84bc 8318:962bce857696
9 9
10 import os 10 import os
11 import copy 11 import copy
12 import contextlib 12 import contextlib
13 13
14 from PyQt5.QtCore import pyqtSignal, pyqtSlot, QObject, Qt 14 from PyQt6.QtCore import pyqtSignal, pyqtSlot, QObject, Qt, QKeyCombination
15 from PyQt5.QtGui import QKeySequence 15 from PyQt6.QtGui import QKeySequence
16 from PyQt5.QtWidgets import QMenu, QToolBar, QApplication, QDialog 16 from PyQt6.QtWidgets import QMenu, QToolBar, QApplication, QDialog
17 17
18 from E5Gui.E5Action import E5Action, createActionGroup 18 from E5Gui.E5Action import E5Action, createActionGroup
19 from E5Gui import E5MessageBox 19 from E5Gui import E5MessageBox
20 20
21 from UI.Info import Program 21 from UI.Info import Program
222 222
223 self.runProjectAct = E5Action( 223 self.runProjectAct = E5Action(
224 self.tr('Run Project'), 224 self.tr('Run Project'),
225 UI.PixmapCache.getIcon("runProject"), 225 UI.PixmapCache.getIcon("runProject"),
226 self.tr('Run &Project...'), 226 self.tr('Run &Project...'),
227 Qt.Modifier.SHIFT + Qt.Key.Key_F2, 227 QKeyCombination(Qt.Modifier.SHIFT, Qt.Key.Key_F2),
228 0, self, 'dbg_run_project') 228 0, self, 'dbg_run_project')
229 self.runProjectAct.setStatusTip(self.tr('Run the current Project')) 229 self.runProjectAct.setStatusTip(self.tr('Run the current Project'))
230 self.runProjectAct.setWhatsThis(self.tr( 230 self.runProjectAct.setWhatsThis(self.tr(
231 """<b>Run Project</b>""" 231 """<b>Run Project</b>"""
232 """<p>Set the command line arguments and run the current project""" 232 """<p>Set the command line arguments and run the current project"""
317 317
318 self.debugProjectAct = E5Action( 318 self.debugProjectAct = E5Action(
319 self.tr('Debug Project'), 319 self.tr('Debug Project'),
320 UI.PixmapCache.getIcon("debugProject"), 320 UI.PixmapCache.getIcon("debugProject"),
321 self.tr('Debug &Project...'), 321 self.tr('Debug &Project...'),
322 Qt.Modifier.SHIFT + Qt.Key.Key_F5, 322 QKeyCombination(Qt.Modifier.SHIFT, Qt.Key.Key_F5),
323 0, self, 'dbg_debug_project') 323 0, self, 'dbg_debug_project')
324 self.debugProjectAct.setStatusTip(self.tr( 324 self.debugProjectAct.setStatusTip(self.tr(
325 'Debug the current Project')) 325 'Debug the current Project'))
326 self.debugProjectAct.setWhatsThis(self.tr( 326 self.debugProjectAct.setWhatsThis(self.tr(
327 """<b>Debug Project</b>""" 327 """<b>Debug Project</b>"""
350 self.actions.append(self.restartAct) 350 self.actions.append(self.restartAct)
351 351
352 self.stopAct = E5Action( 352 self.stopAct = E5Action(
353 self.tr('Stop'), 353 self.tr('Stop'),
354 UI.PixmapCache.getIcon("stopScript"), 354 UI.PixmapCache.getIcon("stopScript"),
355 self.tr('Stop'), Qt.Modifier.SHIFT + Qt.Key.Key_F10, 0, 355 self.tr('Stop'),
356 QKeyCombination(Qt.Modifier.SHIFT, Qt.Key.Key_F10),
357 0,
356 self, 'dbg_stop_script') 358 self, 'dbg_stop_script')
357 self.stopAct.setStatusTip(self.tr("""Stop the running script.""")) 359 self.stopAct.setStatusTip(self.tr("""Stop the running script."""))
358 self.stopAct.setWhatsThis(self.tr( 360 self.stopAct.setWhatsThis(self.tr(
359 """<b>Stop</b>""" 361 """<b>Stop</b>"""
360 """<p>This stops the script running in the debugger backend.</p>""" 362 """<p>This stops the script running in the debugger backend.</p>"""
382 384
383 act = E5Action( 385 act = E5Action(
384 self.tr('Continue to Cursor'), 386 self.tr('Continue to Cursor'),
385 UI.PixmapCache.getIcon("continueToCursor"), 387 UI.PixmapCache.getIcon("continueToCursor"),
386 self.tr('Continue &To Cursor'), 388 self.tr('Continue &To Cursor'),
387 Qt.Modifier.SHIFT + Qt.Key.Key_F6, 389 QKeyCombination(Qt.Modifier.SHIFT, Qt.Key.Key_F6),
388 0, self.debugActGrp, 'dbg_continue_to_cursor') 390 0, self.debugActGrp, 'dbg_continue_to_cursor')
389 act.setStatusTip(self.tr( 391 act.setStatusTip(self.tr(
390 """Continue running the program from the""" 392 """Continue running the program from the"""
391 """ current line to the current cursor position""")) 393 """ current line to the current cursor position"""))
392 act.setWhatsThis(self.tr( 394 act.setWhatsThis(self.tr(
398 self.actions.append(act) 400 self.actions.append(act)
399 401
400 act = E5Action( 402 act = E5Action(
401 self.tr('Continue Until'), 403 self.tr('Continue Until'),
402 UI.PixmapCache.getIcon("continueUntil"), 404 UI.PixmapCache.getIcon("continueUntil"),
403 self.tr('Continue &Until'), Qt.Modifier.CTRL + Qt.Key.Key_F6, 0, 405 self.tr('Continue &Until'),
406 QKeyCombination(Qt.Modifier.CTRL, Qt.Key.Key_F6),
407 0,
404 self.debugActGrp, 'dbg_continue_until') 408 self.debugActGrp, 'dbg_continue_until')
405 act.setStatusTip(self.tr( 409 act.setStatusTip(self.tr(
406 """Continue running the program from the current line to the""" 410 """Continue running the program from the current line to the"""
407 """ current cursor position or until leaving the current frame""")) 411 """ current cursor position or until leaving the current frame"""))
408 act.setWhatsThis(self.tr( 412 act.setWhatsThis(self.tr(

eric ide

mercurial