Debugger/StartDialog.py

changeset 5587
ea526b78ee6c
parent 5389
9b1c800daff3
child 5899
0516f6548ca6
diff -r 0e5421d679e7 -r ea526b78ee6c Debugger/StartDialog.py
--- a/Debugger/StartDialog.py	Tue Mar 07 18:46:09 2017 +0100
+++ b/Debugger/StartDialog.py	Tue Mar 07 18:53:18 2017 +0100
@@ -26,9 +26,9 @@
     whether exception reporting should be disabled.
     """
     def __init__(self, caption, argvList, wdList, envList, exceptions,
-                 parent=None, type=0, modfuncList=None, tracePython=False,
-                 autoClearShell=True, autoContinue=True, autoFork=False,
-                 forkChild=False):
+                 parent=None, dialogType=0, modfuncList=None,
+                 tracePython=False, autoClearShell=True, autoContinue=True,
+                 autoFork=False, forkChild=False):
         """
         Constructor
         
@@ -38,7 +38,7 @@
         @param envList history list of environment settings (list of strings)
         @param exceptions exception reporting flag (boolean)
         @param parent parent widget of this dialog (QWidget)
-        @param type type of the start dialog
+        @param dialogType type of the start dialog
                 <ul>
                 <li>0 = start debug dialog</li>
                 <li>1 = start run dialog</li>
@@ -60,17 +60,17 @@
         super(StartDialog, self).__init__(parent)
         self.setModal(True)
         
-        self.type = type
-        if type == 0:
+        self.dialogType = dialogType
+        if dialogType == 0:
             from .Ui_StartDebugDialog import Ui_StartDebugDialog
             self.ui = Ui_StartDebugDialog()
-        elif type == 1:
+        elif dialogType == 1:
             from .Ui_StartRunDialog import Ui_StartRunDialog
             self.ui = Ui_StartRunDialog()
-        elif type == 2:
+        elif dialogType == 2:
             from .Ui_StartCoverageDialog import Ui_StartCoverageDialog
             self.ui = Ui_StartCoverageDialog()
-        elif type == 3:
+        elif dialogType == 3:
             from .Ui_StartProfileDialog import Ui_StartProfileDialog
             self.ui = Ui_StartProfileDialog()
         self.ui.setupUi(self)
@@ -103,18 +103,18 @@
             Preferences.getDebugger("ConsoleDbgCommand") != "")
         self.ui.consoleCheckBox.setChecked(False)
         
-        if type == 0:        # start debug dialog
+        if dialogType == 0:        # start debug dialog
             self.ui.tracePythonCheckBox.setChecked(tracePython)
             self.ui.tracePythonCheckBox.show()
             self.ui.autoContinueCheckBox.setChecked(autoContinue)
             self.ui.forkModeCheckBox.setChecked(autoFork)
             self.ui.forkChildCheckBox.setChecked(forkChild)
         
-        if type == 1:       # start run dialog
+        if dialogType == 1:       # start run dialog
             self.ui.forkModeCheckBox.setChecked(autoFork)
             self.ui.forkChildCheckBox.setChecked(forkChild)
         
-        if type == 3:       # start coverage or profile dialog
+        if dialogType == 3:       # start coverage or profile dialog
             self.ui.eraseCheckBox.setChecked(True)
         
         self.__clearHistoryLists = False
@@ -161,7 +161,7 @@
             indicating, that the debugger should debug the child process after
             forking automatically (boolean)
         """
-        if self.type == 0:
+        if self.dialogType == 0:
             return (self.ui.tracePythonCheckBox.isChecked(),
                     self.ui.autoContinueCheckBox.isChecked(),
                     self.ui.forkModeCheckBox.isChecked(),
@@ -177,7 +177,7 @@
             should debug the child process after forking automatically
             (boolean)
         """
-        if self.type == 1:
+        if self.dialogType == 1:
             return (self.ui.forkModeCheckBox.isChecked(),
                     self.ui.forkChildCheckBox.isChecked())
         
@@ -188,7 +188,7 @@
         
         @return flag indicating erasure of coverage info (boolean)
         """
-        if self.type == 2:
+        if self.dialogType == 2:
             return self.ui.eraseCheckBox.isChecked()
         
     def getProfilingData(self):
@@ -198,7 +198,7 @@
         
         @return flag indicating erasure of profiling info (boolean)
         """
-        if self.type == 3:
+        if self.dialogType == 3:
             return self.ui.eraseCheckBox.isChecked()
         
     def __clearHistories(self):

eric ide

mercurial