25 |
25 |
26 class DebuggerPropertiesDialog(QDialog, Ui_DebuggerPropertiesDialog): |
26 class DebuggerPropertiesDialog(QDialog, Ui_DebuggerPropertiesDialog): |
27 """ |
27 """ |
28 Class implementing a dialog for entering project specific debugger settings. |
28 Class implementing a dialog for entering project specific debugger settings. |
29 """ |
29 """ |
30 def __init__(self, project, parent = None, name = None): |
30 def __init__(self, project, parent=None, name=None): |
31 """ |
31 """ |
32 Constructor |
32 Constructor |
33 |
33 |
34 @param project reference to the project object |
34 @param project reference to the project object |
35 @param parent parent widget of this dialog (QWidget) |
35 @param parent parent widget of this dialog (QWidget) |
55 self.interpreterEdit.setText("/usr/bin/ruby") |
55 self.interpreterEdit.setText("/usr/bin/ruby") |
56 if self.project.debugProperties["DEBUGCLIENT"]: |
56 if self.project.debugProperties["DEBUGCLIENT"]: |
57 self.debugClientEdit.setText(self.project.debugProperties["DEBUGCLIENT"]) |
57 self.debugClientEdit.setText(self.project.debugProperties["DEBUGCLIENT"]) |
58 else: |
58 else: |
59 if self.project.pdata["PROGLANGUAGE"][0] in ["Python", "Python2"]: |
59 if self.project.pdata["PROGLANGUAGE"][0] in ["Python", "Python2"]: |
60 debugClient = os.path.join(getConfig('ericDir'), |
60 debugClient = os.path.join(getConfig('ericDir'), |
61 "DebugClients", "Python", "DebugClient.py") |
61 "DebugClients", "Python", "DebugClient.py") |
62 elif self.project.pdata["PROGLANGUAGE"][0] == "Python3": |
62 elif self.project.pdata["PROGLANGUAGE"][0] == "Python3": |
63 debugClient = os.path.join(getConfig('ericDir'), |
63 debugClient = os.path.join(getConfig('ericDir'), |
64 "DebugClients", "Python3", "DebugClient.py") |
64 "DebugClients", "Python3", "DebugClient.py") |
65 elif self.project.pdata["PROGLANGUAGE"][0] == "Ruby": |
65 elif self.project.pdata["PROGLANGUAGE"][0] == "Ruby": |
66 debugClient = os.path.join(getConfig('ericDir'), |
66 debugClient = os.path.join(getConfig('ericDir'), |
67 "DebugClients", "Ruby", "DebugClient.rb") |
67 "DebugClients", "Ruby", "DebugClient.rb") |
68 else: |
68 else: |
69 debugClient = "" |
69 debugClient = "" |
70 self.debugClientEdit.setText(debugClient) |
70 self.debugClientEdit.setText(debugClient) |
71 self.debugEnvironmentOverrideCheckBox.setChecked( |
71 self.debugEnvironmentOverrideCheckBox.setChecked( |
137 |
137 |
138 self.project.debugProperties["DEBUGCLIENT"] = \ |
138 self.project.debugProperties["DEBUGCLIENT"] = \ |
139 self.debugClientEdit.text() |
139 self.debugClientEdit.text() |
140 if not self.project.debugProperties["DEBUGCLIENT"]: |
140 if not self.project.debugProperties["DEBUGCLIENT"]: |
141 if self.project.pdata["PROGLANGUAGE"][0] in ["Python", "Python2"]: |
141 if self.project.pdata["PROGLANGUAGE"][0] in ["Python", "Python2"]: |
142 debugClient = os.path.join(getConfig('ericDir'), |
142 debugClient = os.path.join(getConfig('ericDir'), |
143 "DebugClients", "Python", "DebugClient.py") |
143 "DebugClients", "Python", "DebugClient.py") |
144 elif self.project.pdata["PROGLANGUAGE"][0] == "Python3": |
144 elif self.project.pdata["PROGLANGUAGE"][0] == "Python3": |
145 debugClient = os.path.join(getConfig('ericDir'), |
145 debugClient = os.path.join(getConfig('ericDir'), |
146 "DebugClients", "Python3", "DebugClient.py") |
146 "DebugClients", "Python3", "DebugClient.py") |
147 elif self.project.pdata["PROGLANGUAGE"][0] == "Ruby": |
147 elif self.project.pdata["PROGLANGUAGE"][0] == "Ruby": |
148 debugClient = os.path.join(getConfig('ericDir'), |
148 debugClient = os.path.join(getConfig('ericDir'), |
149 "DebugClients", "Ruby", "DebugClient.rb") |
149 "DebugClients", "Ruby", "DebugClient.rb") |
150 else: |
150 else: |
151 debugClient = "" |
151 debugClient = "" |
152 self.project.debugProperties["DEBUGCLIENT"] = debugClient |
152 self.project.debugProperties["DEBUGCLIENT"] = debugClient |
153 |
153 |