136 def save(self): |
136 def save(self): |
137 """ |
137 """ |
138 Public slot to save the Debugger General (1) configuration. |
138 Public slot to save the Debugger General (1) configuration. |
139 """ |
139 """ |
140 Preferences.setDebugger("RemoteDbgEnabled", |
140 Preferences.setDebugger("RemoteDbgEnabled", |
141 int(self.remoteCheckBox.isChecked())) |
141 self.remoteCheckBox.isChecked()) |
142 Preferences.setDebugger("RemoteHost", |
142 Preferences.setDebugger("RemoteHost", |
143 self.hostLineEdit.text()) |
143 self.hostLineEdit.text()) |
144 Preferences.setDebugger("RemoteExecution", |
144 Preferences.setDebugger("RemoteExecution", |
145 self.execLineEdit.text()) |
145 self.execLineEdit.text()) |
146 |
146 |
147 Preferences.setDebugger("PassiveDbgEnabled", |
147 Preferences.setDebugger("PassiveDbgEnabled", |
148 int(self.passiveDbgCheckBox.isChecked())) |
148 self.passiveDbgCheckBox.isChecked()) |
149 Preferences.setDebugger("PassiveDbgPort", |
149 Preferences.setDebugger("PassiveDbgPort", |
150 self.passiveDbgPortSpinBox.value()) |
150 self.passiveDbgPortSpinBox.value()) |
151 Preferences.setDebugger("PassiveDbgType", |
151 Preferences.setDebugger("PassiveDbgType", |
152 self.passiveDbgBackendCombo.currentText()) |
152 self.passiveDbgBackendCombo.currentText()) |
153 |
153 |
167 for row in range(self.allowedHostsList.count()): |
167 for row in range(self.allowedHostsList.count()): |
168 allowedHosts.append(self.allowedHostsList.item(row).text()) |
168 allowedHosts.append(self.allowedHostsList.item(row).text()) |
169 Preferences.setDebugger("AllowedHosts", allowedHosts) |
169 Preferences.setDebugger("AllowedHosts", allowedHosts) |
170 |
170 |
171 Preferences.setDebugger("DebugEnvironmentReplace", |
171 Preferences.setDebugger("DebugEnvironmentReplace", |
172 int(self.debugEnvironReplaceCheckBox.isChecked())) |
172 self.debugEnvironReplaceCheckBox.isChecked()) |
173 Preferences.setDebugger("DebugEnvironment", |
173 Preferences.setDebugger("DebugEnvironment", |
174 self.debugEnvironEdit.text()) |
174 self.debugEnvironEdit.text()) |
175 Preferences.setDebugger("AutomaticReset", |
175 Preferences.setDebugger("AutomaticReset", |
176 int(self.automaticResetCheckBox.isChecked())) |
176 self.automaticResetCheckBox.isChecked()) |
177 Preferences.setDebugger("Autosave", |
177 Preferences.setDebugger("Autosave", |
178 int(self.debugAutoSaveScriptsCheckBox.isChecked())) |
178 self.debugAutoSaveScriptsCheckBox.isChecked()) |
179 Preferences.setDebugger("ConsoleDbgEnabled", |
179 Preferences.setDebugger("ConsoleDbgEnabled", |
180 int(self.consoleDbgCheckBox.isChecked())) |
180 self.consoleDbgCheckBox.isChecked()) |
181 Preferences.setDebugger("ConsoleDbgCommand", |
181 Preferences.setDebugger("ConsoleDbgCommand", |
182 self.consoleDbgEdit.text()) |
182 self.consoleDbgEdit.text()) |
183 Preferences.setDebugger("PathTranslation", |
183 Preferences.setDebugger("PathTranslation", |
184 int(self.dbgPathTranslationCheckBox.isChecked())) |
184 self.dbgPathTranslationCheckBox.isChecked()) |
185 Preferences.setDebugger("PathTranslationRemote", |
185 Preferences.setDebugger("PathTranslationRemote", |
186 self.dbgTranslationRemoteEdit.text()) |
186 self.dbgTranslationRemoteEdit.text()) |
187 Preferences.setDebugger("PathTranslationLocal", |
187 Preferences.setDebugger("PathTranslationLocal", |
188 self.dbgTranslationLocalEdit.text()) |
188 self.dbgTranslationLocalEdit.text()) |
189 Preferences.setDebugger("ThreeStateBreakPoints", |
189 Preferences.setDebugger("ThreeStateBreakPoints", |
190 int(self.debugThreeStateBreakPoint.isChecked())) |
190 self.debugThreeStateBreakPoint.isChecked()) |
191 Preferences.setDebugger("SuppressClientExit", |
191 Preferences.setDebugger("SuppressClientExit", |
192 int(self.dontShowClientExitCheckBox.isChecked())) |
192 self.dontShowClientExitCheckBox.isChecked()) |
193 Preferences.setDebugger("BreakAlways", |
193 Preferences.setDebugger("BreakAlways", |
194 int(self.exceptionBreakCheckBox.isChecked())) |
194 self.exceptionBreakCheckBox.isChecked()) |
195 |
195 |
196 def on_allowedHostsList_currentItemChanged(self, current, previous): |
196 def on_allowedHostsList_currentItemChanged(self, current, previous): |
197 """ |
197 """ |
198 Private method set the state of the edit and delete button. |
198 Private method set the state of the edit and delete button. |
199 |
199 |