Sat, 04 Sep 2010 19:51:48 +0200
Did some code cleanup.
--- a/Cooperation/ChatWidget.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Cooperation/ChatWidget.py Sat Sep 04 19:51:48 2010 +0200 @@ -529,7 +529,7 @@ """ txt = self.chatEdit.toPlainText() if txt: - fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter(\ + fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter( self, self.trUtf8("Save Chat"), "",
--- a/DebugClients/Ruby/Debuggee.rb Sat Sep 04 19:51:19 2010 +0200 +++ b/DebugClients/Ruby/Debuggee.rb Sat Sep 04 19:51:48 2010 +0200 @@ -583,7 +583,7 @@ if ["AsyncFile.rb", "AsyncIO.rb", "Config.rb", "DebugClient.rb", "DebugClientBaseModule.rb", "DebugClientCapabilities.rb", - "DebugProtocol.rb", "DebugQuit.rb", "Debuggee.rb"].include?(\ + "DebugProtocol.rb", "DebugQuit.rb", "Debuggee.rb"].include?( File.basename(file)) return true end @@ -1205,4 +1205,4 @@ end Thread.main["name"] = 'Main' -end +end \ No newline at end of file
--- a/Debugger/BreakPointViewer.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Debugger/BreakPointViewer.py Sat Sep 04 19:51:48 2010 +0200 @@ -124,10 +124,10 @@ return if selected: - flags = QItemSelectionModel.SelectionFlags(\ + flags = QItemSelectionModel.SelectionFlags( QItemSelectionModel.ClearAndSelect | QItemSelectionModel.Rows) else: - flags = QItemSelectionModel.SelectionFlags(\ + flags = QItemSelectionModel.SelectionFlags( QItemSelectionModel.Deselect | QItemSelectionModel.Rows) self.selectionModel().select(index, flags) @@ -436,4 +436,4 @@ """ Private method to open the configuration dialog. """ - e5App().getObject("UserInterface").showPreferences("debuggerGeneralPage") + e5App().getObject("UserInterface").showPreferences("debuggerGeneralPage") \ No newline at end of file
--- a/Debugger/DebugUI.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Debugger/DebugUI.py Sat Sep 04 19:51:48 2010 +0200 @@ -188,7 +188,7 @@ self.coverageAct = E5Action(self.trUtf8('Coverage run of Script'), UI.PixmapCache.getIcon("coverageScript.png"), self.trUtf8('Coverage run of Script...'),0,0,self,'dbg_coverage_script') - self.coverageAct.setStatusTip(\ + self.coverageAct.setStatusTip( self.trUtf8('Perform a coverage run of the current Script')) self.coverageAct.setWhatsThis(self.trUtf8( """<b>Coverage run of Script</b>""" @@ -202,7 +202,7 @@ self.coverageProjectAct = E5Action(self.trUtf8('Coverage run of Project'), UI.PixmapCache.getIcon("coverageProject.png"), self.trUtf8('Coverage run of Project...'),0,0,self,'dbg_coverage_project') - self.coverageProjectAct.setStatusTip(\ + self.coverageProjectAct.setStatusTip( self.trUtf8('Perform a coverage run of the current Project')) self.coverageProjectAct.setWhatsThis(self.trUtf8( """<b>Coverage run of Project</b>""" @@ -298,7 +298,7 @@ UI.PixmapCache.getIcon("continue.png"), self.trUtf8('&Continue'),Qt.Key_F6,0, self.debugActGrp,'dbg_continue') - act.setStatusTip(\ + act.setStatusTip( self.trUtf8('Continue running the program from the current line')) act.setWhatsThis(self.trUtf8( """<b>Continue</b>""" @@ -399,7 +399,7 @@ act = E5Action(self.trUtf8('Execute'), self.trUtf8('E&xecute...'), 0,0,self.debugActGrp2,'dbg_execute') - act.setStatusTip(\ + act.setStatusTip( self.trUtf8('Execute a one line statement in the current context')) act.setWhatsThis(self.trUtf8( """<b>Execute</b>""" @@ -819,7 +819,7 @@ Private slot to handle the projectOpened signal. """ self.projectOpen = True - cap = self.debugServer.getClientCapabilities(\ + cap = self.debugServer.getClientCapabilities( self.project.pdata["PROGLANGUAGE"][0]) if not self.passive: self.debugProjectAct.setEnabled(cap & HasDebugger) @@ -1003,11 +1003,11 @@ else: if stackTrace: if exceptionType.startswith('unhandled'): - buttons = E5MessageBox.StandardButtons(\ + buttons = E5MessageBox.StandardButtons( E5MessageBox.No | \ E5MessageBox.Yes) else: - buttons = E5MessageBox.StandardButtons(\ + buttons = E5MessageBox.StandardButtons( E5MessageBox.No | \ E5MessageBox.Yes | \ E5MessageBox.Ignore) @@ -1173,7 +1173,7 @@ cond, special, temp, enabled, count = wp[:5] - dlg = EditWatchpointDialog(\ + dlg = EditWatchpointDialog( (cond, temp, enabled, count, special), self) if dlg.exec_() == QDialog.Accepted: cond, temp, enabled, count, special = dlg.getData() @@ -1911,7 +1911,7 @@ else: curr = -1 - arg, ok = QInputDialog.getItem(\ + arg, ok = QInputDialog.getItem( self.ui, self.trUtf8("Evaluate"), self.trUtf8("Enter the statement to evaluate"), @@ -1940,7 +1940,7 @@ else: curr = -1 - stmt, ok = QInputDialog.getItem(\ + stmt, ok = QInputDialog.getItem( self.ui, self.trUtf8("Execute"), self.trUtf8("Enter the statement to execute"), @@ -1978,4 +1978,4 @@ @return list of all actions (list of E5Action) """ - return self.actions[:] + return self.actions[:] \ No newline at end of file
--- a/Debugger/DebugViewer.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Debugger/DebugViewer.py Sat Sep 04 19:51:48 2010 +0200 @@ -111,10 +111,10 @@ self.globalsFilterEdit = QLineEdit(self.glvWidget) self.globalsFilterEdit.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed) self.glvWidgetHLayout.addWidget(self.globalsFilterEdit) - self.globalsFilterEdit.setToolTip(\ + self.globalsFilterEdit.setToolTip( self.trUtf8("Enter regular expression patterns separated by ';' to define " "variable filters. ")) - self.globalsFilterEdit.setWhatsThis(\ + self.globalsFilterEdit.setWhatsThis( self.trUtf8("Enter regular expression patterns separated by ';' to define " "variable filters. All variables and class attributes matched by one of " "the expressions are not shown in the list above.")) @@ -158,10 +158,10 @@ self.localsFilterEdit = QLineEdit(self.lvWidget) self.localsFilterEdit.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed) self.lvWidgetHLayout2.addWidget(self.localsFilterEdit) - self.localsFilterEdit.setToolTip(\ + self.localsFilterEdit.setToolTip( self.trUtf8("Enter regular expression patterns separated by ';' to define " "variable filters. ")) - self.localsFilterEdit.setWhatsThis(\ + self.localsFilterEdit.setWhatsThis( self.trUtf8("Enter regular expression patterns separated by ';' to define " "variable filters. All variables and class attributes matched by one of " "the expressions are not shown in the list above.")) @@ -425,4 +425,4 @@ """ if current is not None and self.__doThreadListUpdate: tid = int(current.text(0)) - self.debugServer.remoteSetThread(tid) + self.debugServer.remoteSetThread(tid) \ No newline at end of file
--- a/Debugger/DebuggerInterfacePython.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Debugger/DebuggerInterfacePython.py Sat Sep 04 19:51:48 2010 +0200 @@ -147,7 +147,7 @@ if interpreter == "": E5MessageBox.critical(None, self.trUtf8("Start Debugger"), - self.trUtf8(\ + self.trUtf8( """<p>No Python2 interpreter configured.</p>""")) return None, False @@ -183,7 +183,7 @@ if process is None: E5MessageBox.critical(None, self.trUtf8("Start Debugger"), - self.trUtf8(\ + self.trUtf8( """<p>The debugger backend could not be started.</p>""")) # set translation function @@ -205,7 +205,7 @@ clientEnv = {} else: clientEnv = os.environ.copy() - envlist = Utilities.parseEnvironmentString(\ + envlist = Utilities.parseEnvironmentString( Preferences.getDebugger("DebugEnvironment")) for el in envlist: try: @@ -228,7 +228,7 @@ if process is None: E5MessageBox.critical(None, self.trUtf8("Start Debugger"), - self.trUtf8(\ + self.trUtf8( """<p>The debugger backend could not be started.</p>""")) return process, self.__isNetworked @@ -278,7 +278,7 @@ if process is None: E5MessageBox.critical(None, self.trUtf8("Start Debugger"), - self.trUtf8(\ + self.trUtf8( """<p>The debugger backend could not be started.</p>""")) # set translation function if project.getDebugProperty("PATHTRANSLATION"): @@ -321,7 +321,7 @@ if process is None: E5MessageBox.critical(None, self.trUtf8("Start Debugger"), - self.trUtf8(\ + self.trUtf8( """<p>The debugger backend could not be started.</p>""")) return process, self.__isNetworked @@ -718,7 +718,7 @@ Private method to ask the user which branch of a fork to follow. """ selections = [self.trUtf8("Parent Process"), self.trUtf8("Child process")] - res, ok = QInputDialog.getItem(\ + res, ok = QInputDialog.getItem( None, self.trUtf8("Client forking"), self.trUtf8("Select the fork branch to follow."), @@ -945,4 +945,4 @@ if self.qsock is not None: self.qsock.write(cmd.encode('utf8')) else: - self.queue.append(cmd) + self.queue.append(cmd) \ No newline at end of file
--- a/Debugger/DebuggerInterfacePython3.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Debugger/DebuggerInterfacePython3.py Sat Sep 04 19:51:48 2010 +0200 @@ -182,7 +182,7 @@ if process is None: E5MessageBox.critical(None, self.trUtf8("Start Debugger"), - self.trUtf8(\ + self.trUtf8( """<p>The debugger backend could not be started.</p>""")) # set translation function @@ -204,7 +204,7 @@ clientEnv = {} else: clientEnv = os.environ.copy() - envlist = Utilities.parseEnvironmentString(\ + envlist = Utilities.parseEnvironmentString( Preferences.getDebugger("DebugEnvironment")) for el in envlist: try: @@ -227,7 +227,7 @@ if process is None: E5MessageBox.critical(None, self.trUtf8("Start Debugger"), - self.trUtf8(\ + self.trUtf8( """<p>The debugger backend could not be started.</p>""")) return process, self.__isNetworked @@ -277,7 +277,7 @@ if process is None: E5MessageBox.critical(None, self.trUtf8("Start Debugger"), - self.trUtf8(\ + self.trUtf8( """<p>The debugger backend could not be started.</p>""")) # set translation function if project.getDebugProperty("PATHTRANSLATION"): @@ -296,7 +296,7 @@ clientEnv = {} else: clientEnv = os.environ.copy() - envlist = Utilities.parseEnvironmentString(\ + envlist = Utilities.parseEnvironmentString( project.getDebugProperty("ENVIRONMENTSTRING")) for el in envlist: try: @@ -320,7 +320,7 @@ if process is None: E5MessageBox.critical(None, self.trUtf8("Start Debugger"), - self.trUtf8(\ + self.trUtf8( """<p>The debugger backend could not be started.</p>""")) return process, self.__isNetworked @@ -717,7 +717,7 @@ Private method to ask the user which branch of a fork to follow. """ selections = [self.trUtf8("Parent Process"), self.trUtf8("Child process")] - res, ok = QInputDialog.getItem(\ + res, ok = QInputDialog.getItem( None, self.trUtf8("Client forking"), self.trUtf8("Select the fork branch to follow."), @@ -944,4 +944,4 @@ if self.qsock is not None: self.qsock.write(cmd.encode('utf8', 'backslashreplace')) else: - self.queue.append(cmd) + self.queue.append(cmd) \ No newline at end of file
--- a/Debugger/DebuggerInterfaceRuby.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Debugger/DebuggerInterfaceRuby.py Sat Sep 04 19:51:48 2010 +0200 @@ -160,7 +160,7 @@ if process is None: E5MessageBox.critical(None, self.trUtf8("Start Debugger"), - self.trUtf8(\ + self.trUtf8( """<p>The debugger backend could not be started.</p>""")) # set translation function @@ -182,7 +182,7 @@ clientEnv = {} else: clientEnv = os.environ.copy() - envlist = Utilities.parseEnvironmentString(\ + envlist = Utilities.parseEnvironmentString( Preferences.getDebugger("DebugEnvironment")) for el in envlist: try: @@ -205,7 +205,7 @@ if process is None: E5MessageBox.critical(None, self.trUtf8("Start Debugger"), - self.trUtf8(\ + self.trUtf8( """<p>The debugger backend could not be started.</p>""")) return process, self.__isNetworked @@ -253,7 +253,7 @@ if process is None: E5MessageBox.critical(None, self.trUtf8("Start Debugger"), - self.trUtf8(\ + self.trUtf8( """<p>The debugger backend could not be started.</p>""")) # set translation function if project.getDebugProperty("PATHTRANSLATION"): @@ -272,7 +272,7 @@ clientEnv = {} else: clientEnv = os.environ.copy() - envlist = Utilities.parseEnvironmentString(\ + envlist = Utilities.parseEnvironmentString( project.getDebugProperty("ENVIRONMENTSTRING")) for el in envlist: try: @@ -296,7 +296,7 @@ if process is None: E5MessageBox.critical(None, self.trUtf8("Start Debugger"), - self.trUtf8(\ + self.trUtf8( """<p>The debugger backend could not be started.</p>""")) return process, self.__isNetworked @@ -834,4 +834,4 @@ if self.qsock is not None: self.qsock.write(cmd.encode('utf8')) else: - self.queue.append(cmd) + self.queue.append(cmd) \ No newline at end of file
--- a/Debugger/EditBreakpointDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Debugger/EditBreakpointDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -110,7 +110,7 @@ """ Private slot to select a file via a file selection dialog. """ - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( self, self.trUtf8("Select filename of the breakpoint"), self.filenameCombo.currentText(),
--- a/Debugger/StartDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Debugger/StartDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -71,7 +71,7 @@ self.ui = Ui_StartProfileDialog() self.ui.setupUi(self) - self.clearButton = self.ui.buttonBox.addButton(\ + self.clearButton = self.ui.buttonBox.addButton( self.trUtf8("Clear Histories"), QDialogButtonBox.ActionRole) self.workdirCompleter = E5DirCompleter(self.ui.workdirCombo) @@ -115,7 +115,7 @@ Private method used to open a directory selection dialog. """ cwd = self.ui.workdirCombo.currentText() - d = QFileDialog.getExistingDirectory(\ + d = QFileDialog.getExistingDirectory( self, self.trUtf8("Working directory"), cwd, @@ -128,7 +128,7 @@ """ Private slot to enable/disable the OK button. """ - self.ui.buttonBox.button(QDialogButtonBox.Ok).setDisabled(\ + self.ui.buttonBox.button(QDialogButtonBox.Ok).setDisabled( self.ui.modFuncCombo.currentText() == "") def getData(self): @@ -223,4 +223,4 @@ @param button button that was clicked (QAbstractButton) """ if button == self.clearButton: - self.__clearHistories() + self.__clearHistories() \ No newline at end of file
--- a/Debugger/VariablesFilterDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Debugger/VariablesFilterDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -37,7 +37,7 @@ self.setModal(modal) self.setupUi(self) - self.defaultButton = self.buttonBox.addButton(\ + self.defaultButton = self.buttonBox.addButton( self.trUtf8("Save Default"), QDialogButtonBox.ActionRole) lDefaultFilter, gDefaultFilter = Preferences.getVarFilters() @@ -94,4 +94,4 @@ @param button button that was clicked (QAbstractButton) """ if button == self.defaultButton: - Preferences.setVarFilters(self.getSelection()) + Preferences.setVarFilters(self.getSelection()) \ No newline at end of file
--- a/Debugger/VariablesViewer.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Debugger/VariablesViewer.py Sat Sep 04 19:51:48 2010 +0200 @@ -155,7 +155,7 @@ # step 2: request the variable from the debugger filter = e5App().getObject("DebugUI").variablesFilter(self.scope) - e5App().getObject("DebugServer").remoteClientVariable(\ + e5App().getObject("DebugServer").remoteClientVariable( self.scope, filter, pathlist, self.framenr) class ArrayElementVarItem(VariableItem): @@ -562,7 +562,7 @@ dvtype = self.trUtf8(ConfigVarTypeDispStrings[i]) except ValueError: if vtype == 'classobj': - dvtype = self.trUtf8(\ + dvtype = self.trUtf8( ConfigVarTypeDispStrings[ConfigVarTypeStrings.index('instance')]\ ) else: @@ -704,4 +704,4 @@ """ Private method to open the configuration dialog. """ - e5App().getObject("UserInterface").showPreferences("debuggerGeneralPage") + e5App().getObject("UserInterface").showPreferences("debuggerGeneralPage") \ No newline at end of file
--- a/Debugger/WatchPointViewer.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Debugger/WatchPointViewer.py Sat Sep 04 19:51:48 2010 +0200 @@ -119,10 +119,10 @@ return if selected: - flags = QItemSelectionModel.SelectionFlags(\ + flags = QItemSelectionModel.SelectionFlags( QItemSelectionModel.ClearAndSelect | QItemSelectionModel.Rows) else: - flags = QItemSelectionModel.SelectionFlags(\ + flags = QItemSelectionModel.SelectionFlags( QItemSelectionModel.Deselect | QItemSelectionModel.Rows) self.selectionModel().select(index, flags) @@ -276,7 +276,7 @@ cond, special, temp, enabled, count = wp[:5] - dlg = EditWatchpointDialog(\ + dlg = EditWatchpointDialog( (cond, temp, enabled, count, special), self) if dlg.exec_() == QDialog.Accepted: cond, temp, enabled, count, special = dlg.getData()
--- a/Documentation/Help/source.qhp Sat Sep 04 19:51:19 2010 +0200 +++ b/Documentation/Help/source.qhp Sat Sep 04 19:51:48 2010 +0200 @@ -9327,7 +9327,7 @@ <keyword name="MessageBoxWizardDialog" id="MessageBoxWizardDialog" ref="eric5.Plugins.WizardPlugins.MessageBoxWizard.MessageBoxWizardDialog.html#MessageBoxWizardDialog" /> <keyword name="MessageBoxWizardDialog (Constructor)" id="MessageBoxWizardDialog (Constructor)" ref="eric5.Plugins.WizardPlugins.MessageBoxWizard.MessageBoxWizardDialog.html#MessageBoxWizardDialog.__init__" /> <keyword name="MessageBoxWizardDialog.__enabledGroups" id="MessageBoxWizardDialog.__enabledGroups" ref="eric5.Plugins.WizardPlugins.MessageBoxWizard.MessageBoxWizardDialog.html#MessageBoxWizardDialog.__enabledGroups" /> - <keyword name="MessageBoxWizardDialog.__getQt42ButtonCode" id="MessageBoxWizardDialog.__getQt42ButtonCode" ref="eric5.Plugins.WizardPlugins.MessageBoxWizard.MessageBoxWizardDialog.html#MessageBoxWizardDialog.__getQt42ButtonCode" /> + <keyword name="MessageBoxWizardDialog.__getButtonCode" id="MessageBoxWizardDialog.__getButtonCode" ref="eric5.Plugins.WizardPlugins.MessageBoxWizard.MessageBoxWizardDialog.html#MessageBoxWizardDialog.__getButtonCode" /> <keyword name="MessageBoxWizardDialog.__testQt42" id="MessageBoxWizardDialog.__testQt42" ref="eric5.Plugins.WizardPlugins.MessageBoxWizard.MessageBoxWizardDialog.html#MessageBoxWizardDialog.__testQt42" /> <keyword name="MessageBoxWizardDialog.getCode" id="MessageBoxWizardDialog.getCode" ref="eric5.Plugins.WizardPlugins.MessageBoxWizard.MessageBoxWizardDialog.html#MessageBoxWizardDialog.getCode" /> <keyword name="MessageBoxWizardDialog.on_bTest_clicked" id="MessageBoxWizardDialog.on_bTest_clicked" ref="eric5.Plugins.WizardPlugins.MessageBoxWizard.MessageBoxWizardDialog.html#MessageBoxWizardDialog.on_bTest_clicked" />
--- a/Documentation/Source/eric5.Plugins.WizardPlugins.MessageBoxWizard.MessageBoxWizardDialog.html Sat Sep 04 19:51:19 2010 +0200 +++ b/Documentation/Source/eric5.Plugins.WizardPlugins.MessageBoxWizard.MessageBoxWizardDialog.html Sat Sep 04 19:51:48 2010 +0200 @@ -63,8 +63,8 @@ <td><a href="#MessageBoxWizardDialog.__enabledGroups">__enabledGroups</a></td> <td>Private method to enable/disable some group boxes.</td> </tr><tr> -<td><a href="#MessageBoxWizardDialog.__getQt42ButtonCode">__getQt42ButtonCode</a></td> -<td>Private method to generate the button code for Qt 4.2.0.</td> +<td><a href="#MessageBoxWizardDialog.__getButtonCode">__getButtonCode</a></td> +<td>Private method to generate the button code.</td> </tr><tr> <td><a href="#MessageBoxWizardDialog.__testQt42">__testQt42</a></td> <td>Private method to test the selected options for Qt 4.2.0.</td> @@ -100,11 +100,11 @@ <b>__enabledGroups</b>(<i></i>) <p> Private method to enable/disable some group boxes. -</p><a NAME="MessageBoxWizardDialog.__getQt42ButtonCode" ID="MessageBoxWizardDialog.__getQt42ButtonCode"></a> -<h4>MessageBoxWizardDialog.__getQt42ButtonCode</h4> -<b>__getQt42ButtonCode</b>(<i>istring, indString</i>) +</p><a NAME="MessageBoxWizardDialog.__getButtonCode" ID="MessageBoxWizardDialog.__getButtonCode"></a> +<h4>MessageBoxWizardDialog.__getButtonCode</h4> +<b>__getButtonCode</b>(<i>istring, indString</i>) <p> - Private method to generate the button code for Qt 4.2.0. + Private method to generate the button code. </p><dl> <dt><i>istring</i></dt> <dd>
--- a/DocumentationTools/ModuleDocumentor.py Sat Sep 04 19:51:19 2010 +0200 +++ b/DocumentationTools/ModuleDocumentor.py Sat Sep 04 19:51:48 2010 +0200 @@ -604,7 +604,7 @@ funcBody = self.functionTemplate.format(**{ \ 'Anchor' : funcName, 'Function' : self.module.functions[funcName].name, - 'FunctionDescription' : self.__formatDescription(\ + 'FunctionDescription' : self.__formatDescription( self.module.functions[funcName].description), 'Params' : ', '.join(self.module.functions[funcName].parameters), }) @@ -1032,4 +1032,4 @@ if not self.generated: self.genDocument() - return self.keywords + return self.keywords \ No newline at end of file
--- a/E5Gui/E5Completers.py Sat Sep 04 19:51:19 2010 +0200 +++ b/E5Gui/E5Completers.py Sat Sep 04 19:51:48 2010 +0200 @@ -30,11 +30,11 @@ QCompleter.__init__(self, parent) self.__model = QDirModel(self) if showHidden: - self.__model.setFilter(\ + self.__model.setFilter( QDir.Filters(QDir.Dirs | QDir.Files | QDir.Drives | \ QDir.AllDirs | QDir.Hidden)) else: - self.__model.setFilter(\ + self.__model.setFilter( QDir.Filters(QDir.Dirs | QDir.Files | QDir.Drives | QDir.AllDirs)) self.setModel(self.__model) self.setCompletionMode(completionMode) @@ -61,10 +61,10 @@ QCompleter.__init__(self, parent) self.__model = QDirModel(self) if showHidden: - self.__model.setFilter(\ + self.__model.setFilter( QDir.Filters(QDir.Drives | QDir.AllDirs | QDir.Hidden)) else: - self.__model.setFilter(\ + self.__model.setFilter( QDir.Filters(QDir.Drives | QDir.AllDirs)) self.setModel(self.__model) self.setCompletionMode(completionMode) @@ -92,4 +92,4 @@ self.setModel(self.__model) self.setCompletionMode(completionMode) if parent: - parent.setCompleter(self) + parent.setCompleter(self) \ No newline at end of file
--- a/E5Gui/E5MessageBox.py Sat Sep 04 19:51:19 2010 +0200 +++ b/E5Gui/E5MessageBox.py Sat Sep 04 19:51:48 2010 +0200 @@ -80,11 +80,14 @@ self.setIcon(icon) if modal and parent is not None: self.setWindowModality(Qt.WindowModal) - self.setWindowTitle("{0} - {1}".format( - QApplication.applicationName(), title)) + if title == "": + self.setWindowTitle("{0}".format( + QApplication.applicationName())) + else: + self.setWindowTitle("{0} - {1}".format( + QApplication.applicationName(), title)) self.setText(text) - if buttons != QMessageBox.NoButton: - self.setStandardButtons(buttons) + self.setStandardButtons(buttons) ################################################################################ ## Replacements for QMessageBox static methods ## @@ -109,8 +112,12 @@ messageBox.setIcon(icon) if parent is not None: messageBox.setWindowModality(Qt.WindowModal) - messageBox.setWindowTitle("{0} - {1}".format( - QApplication.applicationName(), title)) + if title == "": + messageBox.setWindowTitle("{0}".format( + QApplication.applicationName())) + else: + messageBox.setWindowTitle("{0} - {1}".format( + QApplication.applicationName(), title)) messageBox.setText(text) messageBox.setStandardButtons(buttons) messageBox.setDefaultButton(defaultButton)
--- a/E5Gui/E5ToolBarDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/E5Gui/E5ToolBarDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -120,7 +120,7 @@ """ Private slot to create a new toolbar. """ - name, ok = QInputDialog.getText(\ + name, ok = QInputDialog.getText( self, self.trUtf8("New Toolbar"), self.trUtf8("Toolbar Name:"), @@ -172,7 +172,7 @@ Private slot to rename a custom toolbar. """ oldName = self.toolbarComboBox.currentText() - newName, ok = QInputDialog.getText(\ + newName, ok = QInputDialog.getText( self, self.trUtf8("Rename Toolbar"), self.trUtf8("New Toolbar Name:"), @@ -452,4 +452,4 @@ tbID = self.__currentToolBarItem.toolBarId actions = self.__manager.defaultToolBarActions(tbID) self.__restoreCurrentToolbar(actions) - self.__currentToolBarItem.isChanged = True + self.__currentToolBarItem.isChanged = True \ No newline at end of file
--- a/E5XML/XMLErrorHandler.py Sat Sep 04 19:51:19 2010 +0200 +++ b/E5XML/XMLErrorHandler.py Sat Sep 04 19:51:48 2010 +0200 @@ -48,7 +48,7 @@ """ self.errors += 1 self.totals += 1 - self.msgs.append((\ + self.msgs.append(( "E", exception.getSystemId(), exception.getLineNumber(), @@ -65,7 +65,7 @@ """ self.fatals += 1 self.totals += 1 - self.msgs.append((\ + self.msgs.append(( "F", exception.getSystemId(), exception.getLineNumber(), @@ -82,7 +82,7 @@ """ self.warnings += 1 self.totals += 1 - self.msgs.append((\ + self.msgs.append(( "W", exception.getSystemId(), exception.getLineNumber(), @@ -105,4 +105,4 @@ """ if self.totals: dlg = XMLMessageDialog(self.msgs, None) - dlg.exec_() + dlg.exec_() \ No newline at end of file
--- a/Graphics/ApplicationDiagram.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Graphics/ApplicationDiagram.py Sat Sep 04 19:51:48 2010 +0200 @@ -231,7 +231,7 @@ """ for package in shapes: for rel in shapes[package][1]: - assoc = AssociationItem(\ + assoc = AssociationItem( shapes[package][0], shapes[rel][0], Imports) self.scene.addItem(assoc) @@ -247,4 +247,4 @@ """ Method to relayout the diagram. """ - self.__buildPackages() + self.__buildPackages() \ No newline at end of file
--- a/Graphics/ImportsDiagram.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Graphics/ImportsDiagram.py Sat Sep 04 19:51:48 2010 +0200 @@ -102,7 +102,7 @@ initlist = glob.glob(os.path.join(self.packagePath, '__init__.*')) if len(initlist) == 0: ct = QGraphicsTextItem(None, self.scene) - ct.setHtml(\ + ct.setHtml( self.trUtf8("The directory <b>'{0}'</b> is not a Python package.")\ .format(self.package)) return @@ -139,7 +139,7 @@ i = n else: if self.showExternalImports: - n = '.'.join(\ + n = '.'.join( packageList[:packageListLen - dots + 1] + [i[dots:]]) else: n = i @@ -222,7 +222,7 @@ """ for module in list(shapes.keys()): for rel in shapes[module][1]: - assoc = AssociationItem(\ + assoc = AssociationItem( shapes[module][0], shapes[rel][0], Imports) self.scene.addItem(assoc) @@ -238,4 +238,4 @@ """ Method to relayout the diagram. """ - self.__buildImports() + self.__buildImports() \ No newline at end of file
--- a/Graphics/PackageDiagram.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Graphics/PackageDiagram.py Sat Sep 04 19:51:48 2010 +0200 @@ -106,7 +106,7 @@ initlist = glob.glob(os.path.join(self.package, '__init__.*')) if len(initlist) == 0: ct = QGraphicsTextItem(None, self.scene) - ct.setHtml(\ + ct.setHtml( self.trUtf8("The directory <b>'{0}'</b> is not a package.")\ .format(self.package)) return @@ -114,7 +114,7 @@ modules = self.__buildModulesDict() if not modules: ct = QGraphicsTextItem(None, self.scene) - ct.setHtml(\ + ct.setHtml( self.trUtf8("The package <b>'{0}'</b> does not contain any modules.") .format(self.package)) return @@ -129,7 +129,7 @@ self.__addLocalClass(cls, module.classes[cls], 0, 0) if not classesFound: ct = QGraphicsTextItem(None, self.scene) - ct.setHtml(\ + ct.setHtml( self.trUtf8("The package <b>'{0}'</b> does not contain any classes.") .format(self.package)) return @@ -290,7 +290,7 @@ """ for route in routes: if len(route) > 1: - assoc = AssociationItem(\ + assoc = AssociationItem( self.__getCurrentShape(route[1]), self.__getCurrentShape(route[0]), Generalisation) @@ -308,4 +308,4 @@ Method to relayout the diagram. """ self.allClasses.clear() - self.__buildClasses() + self.__buildClasses() \ No newline at end of file
--- a/Graphics/UMLClassDiagram.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Graphics/UMLClassDiagram.py Sat Sep 04 19:51:48 2010 +0200 @@ -66,7 +66,7 @@ module = Utilities.ModuleParser.readModule(self.file) except ImportError: ct = QGraphicsTextItem(None, self.scene) - ct.setHtml(\ + ct.setHtml( self.trUtf8("The module <b>'{0}'</b> could not be found.") .format(self.file)) return @@ -103,11 +103,11 @@ else: if className in module.classes: # this is a local class (defined in this module) - self.__addLocalClass(\ + self.__addLocalClass( className, module.classes[className], 0, 0) elif className in module.modules: # this is a local module (defined in this module) - self.__addLocalClass(\ + self.__addLocalClass( className, module.modules[className], 0, 0, True) else: self.__addExternalClass(className, 0, 0) @@ -127,7 +127,7 @@ self.__createAssociations(routes) else: ct = QGraphicsTextItem(None, self.scene) - ct.setHtml(\ + ct.setHtml( self.trUtf8("The module <b>'{0}'</b> does not contain any classes.")\ .format(self.file)) @@ -243,7 +243,7 @@ """ for route in routes: if len(route) > 1: - assoc = AssociationItem(\ + assoc = AssociationItem( self.__getCurrentShape(route[1]), self.__getCurrentShape(route[0]), Generalisation) @@ -262,4 +262,4 @@ """ self.allClasses.clear() self.allModules.clear() - self.__buildClasses() + self.__buildClasses() \ No newline at end of file
--- a/Graphics/UMLGraphicsView.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Graphics/UMLGraphicsView.py Sat Sep 04 19:51:48 2010 +0200 @@ -322,7 +322,7 @@ """ Private method to handle the save context menu entry. """ - fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter(\ + fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter( self, self.trUtf8("Save Diagram"), "",
--- a/Helpviewer/DownloadDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Helpviewer/DownloadDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -127,7 +127,7 @@ self.trUtf8("Downloading"), self.trUtf8("""<p>You are about to download the file <b>{0}</b>.</p>""" """<p>What do you want to do?</p>""").format(fileName), - E5MessageBox.StandardButtons(\ + E5MessageBox.StandardButtons( E5MessageBox.Open | \ E5MessageBox.Save | \ E5MessageBox.Cancel)) @@ -432,4 +432,4 @@ self.__reply.close() self.__reply.deleteLater() - self.done.emit() + self.done.emit() \ No newline at end of file
--- a/Helpviewer/HelpBrowserWV.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Helpviewer/HelpBrowserWV.py Sat Sep 04 19:51:48 2010 +0200 @@ -1200,7 +1200,7 @@ .format(self.__dataString(securityOrigin.databaseQuota()), databaseName), yesDefault = True) if res: - newQuota, ok = QInputDialog.getInteger(\ + newQuota, ok = QInputDialog.getInteger( self, self.trUtf8("New Web Database Quota"), self.trUtf8("Enter the new quota in MB (current = {0}, used = {1}; " @@ -1246,4 +1246,4 @@ """ Public method to indicate a change of the settings. """ - self.reload() + self.reload() \ No newline at end of file
--- a/Helpviewer/HelpWindow.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Helpviewer/HelpWindow.py Sat Sep 04 19:51:48 2010 +0200 @@ -395,7 +395,7 @@ self.trUtf8('Open File in New &Tab'), QKeySequence(self.trUtf8("Shift+Ctrl+O","File|Open in new tab")), 0, self, 'help_file_open_tab') - self.openTabAct.setStatusTip(\ + self.openTabAct.setStatusTip( self.trUtf8('Open a help file for display in a new tab')) self.openTabAct.setWhatsThis(self.trUtf8( """<b>Open File in New Tab</b>""" @@ -410,7 +410,7 @@ self.trUtf8('&Save As...'), QKeySequence(self.trUtf8("Shift+Ctrl+S","File|Save As")), 0, self, 'help_file_save_as') - self.saveAsAct.setStatusTip(\ + self.saveAsAct.setStatusTip( self.trUtf8('Save the current page to disk')) self.saveAsAct.setWhatsThis(self.trUtf8( """<b>Save As...</b>""" @@ -423,7 +423,7 @@ self.importBookmarksAct = E5Action(self.trUtf8('Import Bookmarks'), self.trUtf8('&Import Bookmarks...'), 0, 0, self, 'help_file_import_bookmarks') - self.importBookmarksAct.setStatusTip(\ + self.importBookmarksAct.setStatusTip( self.trUtf8('Import bookmarks from other browsers')) self.importBookmarksAct.setWhatsThis(self.trUtf8( """<b>Import Bookmarks</b>""" @@ -435,7 +435,7 @@ self.exportBookmarksAct = E5Action(self.trUtf8('Export Bookmarks'), self.trUtf8('&Export Bookmarks...'), 0, 0, self, 'help_file_export_bookmarks') - self.exportBookmarksAct.setStatusTip(\ + self.exportBookmarksAct.setStatusTip( self.trUtf8('Export the bookmarks into a file')) self.exportBookmarksAct.setWhatsThis(self.trUtf8( """<b>Export Bookmarks</b>""" @@ -652,7 +652,7 @@ self.trUtf8('Find &previous'), QKeySequence(self.trUtf8("Shift+F3","Edit|Find previous")), 0, self, 'help_edit_find_previous') - self.findPrevAct.setStatusTip(\ + self.findPrevAct.setStatusTip( self.trUtf8('Find previous occurrence of text in page')) self.findPrevAct.setWhatsThis(self.trUtf8( """<b>Find previous</b>""" @@ -745,7 +745,7 @@ self.aboutQtAct = E5Action(self.trUtf8('About Qt'), self.trUtf8('About &Qt'), 0, 0, self, 'help_help_about_qt') - self.aboutQtAct.setStatusTip(\ + self.aboutQtAct.setStatusTip( self.trUtf8('Display information about the Qt toolkit')) self.aboutQtAct.setWhatsThis(self.trUtf8( """<b>About Qt</b>""" @@ -1571,7 +1571,7 @@ """ Private slot called to open a file. """ - fn = QFileDialog.getOpenFileName(\ + fn = QFileDialog.getOpenFileName( self, self.trUtf8("Open File"), "", @@ -1591,7 +1591,7 @@ """ Private slot called to open a file in a new tab. """ - fn = QFileDialog.getOpenFileName(\ + fn = QFileDialog.getOpenFileName( self, self.trUtf8("Open File"), "",
--- a/Helpviewer/OpenSearch/OpenSearchDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Helpviewer/OpenSearch/OpenSearchDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -50,7 +50,7 @@ """ Private slot to add a new search engine. """ - fileNames = QFileDialog.getOpenFileNames(\ + fileNames = QFileDialog.getOpenFileNames( self, self.trUtf8("Add search engine"), "", @@ -109,4 +109,4 @@ @param deselected item selection of deselected items (QItemSelection) """ self.editButton.setEnabled( - len(self.enginesTable.selectionModel().selectedRows()) <= 1) + len(self.enginesTable.selectionModel().selectedRows()) <= 1) \ No newline at end of file
--- a/Helpviewer/QtHelpFiltersDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Helpviewer/QtHelpFiltersDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -99,7 +99,7 @@ """ Private slot to add a new filter. """ - filter, ok = QInputDialog.getText(\ + filter, ok = QInputDialog.getText( None, self.trUtf8("Add Filter"), self.trUtf8("Filter name:"), @@ -163,4 +163,4 @@ self.__engine.setupData() - self.accept() + self.accept() \ No newline at end of file
--- a/IconEditor/IconEditorWindow.py Sat Sep 04 19:51:19 2010 +0200 +++ b/IconEditor/IconEditorWindow.py Sat Sep 04 19:51:48 2010 +0200 @@ -217,7 +217,7 @@ self.trUtf8('Save &As...'), QKeySequence(self.trUtf8("Shift+Ctrl+S","File|Save As")), 0, self, 'iconEditor_file_save_as') - self.saveAsAct.setStatusTip(\ + self.saveAsAct.setStatusTip( self.trUtf8('Save the current icon to a new file')) self.saveAsAct.setWhatsThis(self.trUtf8( """<b>Save As...</b>""" @@ -277,7 +277,7 @@ QKeySequence(self.trUtf8("Alt+Backspace", "Edit|Undo")), self, 'iconEditor_edit_undo') self.undoAct.setStatusTip(self.trUtf8('Undo the last change')) - self.undoAct.setWhatsThis(self.trUtf8(\ + self.undoAct.setWhatsThis(self.trUtf8( """<b>Undo</b>""" """<p>Undo the last change done.</p>""" )) @@ -290,7 +290,7 @@ QKeySequence(self.trUtf8("Ctrl+Shift+Z", "Edit|Redo")), 0, self, 'iconEditor_edit_redo') self.redoAct.setStatusTip(self.trUtf8('Redo the last change')) - self.redoAct.setWhatsThis(self.trUtf8(\ + self.redoAct.setWhatsThis(self.trUtf8( """<b>Redo</b>""" """<p>Redo the last change done.</p>""" )) @@ -304,7 +304,7 @@ QKeySequence(self.trUtf8("Shift+Del", "Edit|Cut")), self, 'iconEditor_edit_cut') self.cutAct.setStatusTip(self.trUtf8('Cut the selection')) - self.cutAct.setWhatsThis(self.trUtf8(\ + self.cutAct.setWhatsThis(self.trUtf8( """<b>Cut</b>""" """<p>Cut the selected image area to the clipboard.</p>""" )) @@ -318,7 +318,7 @@ QKeySequence(self.trUtf8("Ctrl+Ins", "Edit|Copy")), self, 'iconEditor_edit_copy') self.copyAct.setStatusTip(self.trUtf8('Copy the selection')) - self.copyAct.setWhatsThis(self.trUtf8(\ + self.copyAct.setWhatsThis(self.trUtf8( """<b>Copy</b>""" """<p>Copy the selected image area to the clipboard.</p>""" )) @@ -332,7 +332,7 @@ QKeySequence(self.trUtf8("Shift+Ins", "Edit|Paste")), self, 'iconEditor_edit_paste') self.pasteAct.setStatusTip(self.trUtf8('Paste the clipboard image')) - self.pasteAct.setWhatsThis(self.trUtf8(\ + self.pasteAct.setWhatsThis(self.trUtf8( """<b>Paste</b>""" """<p>Paste the clipboard image.</p>""" )) @@ -344,7 +344,7 @@ 0, 0, self, 'iconEditor_edit_paste_as_new') self.pasteNewAct.setStatusTip(self.trUtf8( 'Paste the clipboard image replacing the current one')) - self.pasteNewAct.setWhatsThis(self.trUtf8(\ + self.pasteNewAct.setWhatsThis(self.trUtf8( """<b>Paste as New</b>""" """<p>Paste the clipboard image replacing the current one.</p>""" )) @@ -358,7 +358,7 @@ 0, self, 'iconEditor_edit_clear') self.deleteAct.setStatusTip(self.trUtf8('Clear the icon image')) - self.deleteAct.setWhatsThis(self.trUtf8(\ + self.deleteAct.setWhatsThis(self.trUtf8( """<b>Clear</b>""" """<p>Clear the icon image and set it to be completely transparent.</p>""" )) @@ -371,7 +371,7 @@ 0, self, 'iconEditor_edit_select_all') self.selectAllAct.setStatusTip(self.trUtf8('Select the complete icon image')) - self.selectAllAct.setWhatsThis(self.trUtf8(\ + self.selectAllAct.setWhatsThis(self.trUtf8( """<b>Select All</b>""" """<p>Selects the complete icon image.</p>""" )) @@ -384,7 +384,7 @@ 0, 0, self, 'iconEditor_edit_change_size') self.resizeAct.setStatusTip(self.trUtf8('Change the icon size')) - self.resizeAct.setWhatsThis(self.trUtf8(\ + self.resizeAct.setWhatsThis(self.trUtf8( """<b>Change Size...</b>""" """<p>Changes the icon size.</p>""" )) @@ -397,7 +397,7 @@ 0, 0, self, 'iconEditor_edit_grayscale') self.grayscaleAct.setStatusTip(self.trUtf8('Change the icon to grayscale')) - self.grayscaleAct.setWhatsThis(self.trUtf8(\ + self.grayscaleAct.setWhatsThis(self.trUtf8( """<b>Grayscale</b>""" """<p>Changes the icon to grayscale.</p>""" )) @@ -711,7 +711,7 @@ self.aboutQtAct = E5Action(self.trUtf8('About Qt'), self.trUtf8('About &Qt'), 0, 0, self, 'iconEditor_help_about_qt') - self.aboutQtAct.setStatusTip(\ + self.aboutQtAct.setStatusTip( self.trUtf8('Display information about the Qt toolkit')) self.aboutQtAct.setWhatsThis(self.trUtf8( """<b>About Qt</b>"""
--- a/MultiProject/MultiProject.py Sat Sep 04 19:51:19 2010 +0200 +++ b/MultiProject/MultiProject.py Sat Sep 04 19:51:48 2010 +0200 @@ -527,7 +527,7 @@ return if fn is None: - fn = QFileDialog.getOpenFileName(\ + fn = QFileDialog.getOpenFileName( self.parent(), self.trUtf8("Open multiproject"), "", @@ -863,7 +863,7 @@ formatStr = '&{0:d}. {1}' else: formatStr = '{0:d}. {1}' - act = self.recentMenu.addAction(\ + act = self.recentMenu.addAction( formatStr.format(idx, Utilities.compactPath(rp, self.ui.maxMenuFilePathLen))) act.setData(rp)
--- a/PluginManager/PluginInstallDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/PluginManager/PluginInstallDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -215,10 +215,10 @@ self.__restartNeeded = True self.summaryEdit.append("\n") if res: - self.summaryEdit.append(self.trUtf8(\ + self.summaryEdit.append(self.trUtf8( """The plugins were installed successfully.""")) else: - self.summaryEdit.append(self.trUtf8(\ + self.summaryEdit.append(self.trUtf8( """Some plugins could not be installed.""")) return res
--- a/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -40,9 +40,9 @@ QDialog.__init__(self, parent) self.setupUi(self) - self.showButton = self.buttonBox.addButton(\ + self.showButton = self.buttonBox.addButton( self.trUtf8("Show"), QDialogButtonBox.ActionRole) - self.showButton.setToolTip(\ + self.showButton.setToolTip( self.trUtf8("Press to show all files containing an issue")) self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) @@ -256,4 +256,4 @@ for file in openFiles: editor = vm.getOpenEditor(file) editor.clearSyntaxError() - editor.clearFlakesWarnings() + editor.clearFlakesWarnings() \ No newline at end of file
--- a/Plugins/DocumentationPlugins/Ericapi/EricapiConfigDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/DocumentationPlugins/Ericapi/EricapiConfigDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -162,7 +162,7 @@ It displays a file selection dialog to select the file the api is written to. """ - filename = QFileDialog.getSaveFileName(\ + filename = QFileDialog.getSaveFileName( self, self.trUtf8("Select output file"), self.outputFileEdit.text(), @@ -193,7 +193,7 @@ startDir = self.ignoreDirEdit.text() if not startDir: startDir = self.ppath - directory = QFileDialog.getExistingDirectory(\ + directory = QFileDialog.getExistingDirectory( self, self.trUtf8("Select directory to exclude"), startDir, @@ -242,7 +242,7 @@ self.parameters['ignoreDirectories'] = [] for row in range(0, self.ignoreDirsList.count()): itm = self.ignoreDirsList.item(row) - self.parameters['ignoreDirectories'].append(\ + self.parameters['ignoreDirectories'].append( os.path.normpath(itm.text())) extensions = self.sourceExtEdit.text().split(',') self.parameters['sourceExtensions'] = \ @@ -255,4 +255,4 @@ self.parameters['languages'].append(itm.text()) # call the accept slot of the base class - QDialog.accept(self) + QDialog.accept(self) \ No newline at end of file
--- a/Plugins/DocumentationPlugins/Ericdoc/EricdocConfigDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/DocumentationPlugins/Ericdoc/EricdocConfigDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -41,7 +41,7 @@ self.__initializeDefaults() - self.sampleText = self.trUtf8(\ + self.sampleText = self.trUtf8( '''<?xml version="1.0" encoding="utf-8"?>''' '''<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"''' '''"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">''' @@ -257,7 +257,7 @@ It displays a directory selection dialog to select the directory the documentations is written to. """ - directory = QFileDialog.getExistingDirectory(\ + directory = QFileDialog.getExistingDirectory( self, self.trUtf8("Select output directory"), self.outputDirEdit.text(), @@ -282,7 +282,7 @@ startDir = self.ignoreDirEdit.text() if not startDir: startDir = self.ppath - directory = QFileDialog.getExistingDirectory(\ + directory = QFileDialog.getExistingDirectory( self, self.trUtf8("Select directory to exclude"), startDir, @@ -320,7 +320,7 @@ """ Private slot to select a css style sheet. """ - cssFile = QFileDialog.getOpenFileName(\ + cssFile = QFileDialog.getOpenFileName( self, self.trUtf8("Select CSS style sheet"), getConfig('ericCSSDir'), @@ -468,7 +468,7 @@ It displays a directory selection dialog to select the directory the QtHelp files are written to. """ - directory = QFileDialog.getExistingDirectory(\ + directory = QFileDialog.getExistingDirectory( self, self.trUtf8("Select output directory for QtHelp files"), self.qtHelpDirEdit.text(), @@ -500,7 +500,7 @@ self.parameters['ignoreDirectories'] = [] for row in range(0, self.ignoreDirsList.count()): itm = self.ignoreDirsList.item(row) - self.parameters['ignoreDirectories'].append(\ + self.parameters['ignoreDirectories'].append( os.path.normpath(itm.text())) cssFile = self.cssEdit.text() if cssFile != '': @@ -525,4 +525,4 @@ self.qtHelpGenerateCollectionCheckBox.isChecked() # call the accept slot of the base class - QDialog.accept(self) + QDialog.accept(self) \ No newline at end of file
--- a/Plugins/PluginAbout.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/PluginAbout.py Sat Sep 04 19:51:48 2010 +0200 @@ -88,7 +88,7 @@ self.aboutQtAct = E5Action(self.trUtf8('About Qt'), UI.PixmapCache.getIcon("helpAboutQt.png"), self.trUtf8('About &Qt'), 0, 0, self, 'about_qt') - self.aboutQtAct.setStatusTip(\ + self.aboutQtAct.setStatusTip( self.trUtf8('Display information about the Qt toolkit')) self.aboutQtAct.setWhatsThis(self.trUtf8( """<b>About Qt</b>""" @@ -124,4 +124,4 @@ """ Private slot to handle the About Qt dialog. """ - E5MessageBox.aboutQt(self.__ui, Program) + E5MessageBox.aboutQt(self.__ui, Program) \ No newline at end of file
--- a/Plugins/PluginEricapi.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/PluginEricapi.py Sat Sep 04 19:51:48 2010 +0200 @@ -95,7 +95,7 @@ self.__projectAct = E5Action(self.trUtf8('Generate API file (eric5-api)'), self.trUtf8('Generate &API file (eric5-api)'), 0, 0, self, 'doc_eric5_api') - self.__projectAct.setStatusTip(\ + self.__projectAct.setStatusTip( self.trUtf8('Generate an API file using eric5-api')) self.__projectAct.setWhatsThis(self.trUtf8( """<b>Generate API file</b>""" @@ -131,7 +131,7 @@ """ if menuName == "Apidoc": if self.__projectAct is not None: - self.__projectAct.setEnabled(\ + self.__projectAct.setEnabled( e5App().getObject("Project").getProjectLanguage() in \ ["Python", "Python3", "Ruby"]) @@ -178,4 +178,4 @@ if outfile not in project.pdata['OTHERS']: project.pdata['OTHERS'].append(outfile) project.setDirty(True) - project.othersAdded(outfile) + project.othersAdded(outfile) \ No newline at end of file
--- a/Plugins/PluginEricdoc.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/PluginEricdoc.py Sat Sep 04 19:51:48 2010 +0200 @@ -131,7 +131,7 @@ E5Action(self.trUtf8('Generate documentation (eric5-doc)'), self.trUtf8('Generate &documentation (eric5-doc)'), 0, 0, self, 'doc_eric5_doc') - self.__projectAct.setStatusTip(\ + self.__projectAct.setStatusTip( self.trUtf8('Generate API documentation using eric5-doc')) self.__projectAct.setWhatsThis(self.trUtf8( """<b>Generate documentation</b>""" @@ -167,7 +167,7 @@ """ if menuName == "Apidoc": if self.__projectAct is not None: - self.__projectAct.setEnabled(\ + self.__projectAct.setEnabled( e5App().getObject("Project").getProjectLanguage() in \ ["Python", "Python3", "Ruby"]) @@ -218,4 +218,4 @@ if outdir not in project.pdata['OTHERS']: project.pdata['OTHERS'].append(outdir) project.setDirty(True) - project.othersAdded(outdir) + project.othersAdded(outdir) \ No newline at end of file
--- a/Plugins/PluginSyntaxChecker.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/PluginSyntaxChecker.py Sat Sep 04 19:51:48 2010 +0200 @@ -75,7 +75,7 @@ self.__projectAct = E5Action(self.trUtf8('Check Syntax'), self.trUtf8('&Syntax...'), 0, 0, self, 'project_check_syntax') - self.__projectAct.setStatusTip(\ + self.__projectAct.setStatusTip( self.trUtf8('Check syntax.')) self.__projectAct.setWhatsThis(self.trUtf8( """<b>Check Syntax...</b>""" @@ -140,7 +140,7 @@ @param menu reference to the menu (QMenu) """ if menuName == "Checks" and self.__projectAct is not None: - self.__projectAct.setEnabled(\ + self.__projectAct.setEnabled( e5App().getObject("Project").getProjectLanguage() == "Python3") def __projectBrowserShowMenu(self, menuName, menu): @@ -243,4 +243,4 @@ self.__editorSyntaxCheckerDialog = SyntaxCheckerDialog() self.__editorSyntaxCheckerDialog.show() self.__editorSyntaxCheckerDialog.start(editor.getFileName(), - editor.text()) + editor.text()) \ No newline at end of file
--- a/Plugins/PluginTabnanny.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/PluginTabnanny.py Sat Sep 04 19:51:48 2010 +0200 @@ -75,7 +75,7 @@ self.__projectAct = E5Action(self.trUtf8('Check Indentations'), self.trUtf8('&Indentations...'), 0, 0, self,'project_check_indentations') - self.__projectAct.setStatusTip(\ + self.__projectAct.setStatusTip( self.trUtf8('Check indentations using tabnanny.')) self.__projectAct.setWhatsThis(self.trUtf8( """<b>Check Indentations...</b>""" @@ -142,7 +142,7 @@ @param menu reference to the menu (QMenu) """ if menuName == "Checks" and self.__projectAct is not None: - self.__projectAct.setEnabled(\ + self.__projectAct.setEnabled( e5App().getObject("Project").getProjectLanguage() == "Python3") def __projectBrowserShowMenu(self, menuName, menu): @@ -248,4 +248,4 @@ self.__editorTabnannyDialog = TabnannyDialog() self.__editorTabnannyDialog.show() - self.__editorTabnannyDialog.start(editor.getFileName()) + self.__editorTabnannyDialog.start(editor.getFileName()) \ No newline at end of file
--- a/Plugins/VcsPlugins/vcsMercurial/HgCopyDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsMercurial/HgCopyDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -62,13 +62,13 @@ selection dialog. """ if os.path.isdir(self.source): - target = QFileDialog.getExistingDirectory(\ + target = QFileDialog.getExistingDirectory( self, self.trUtf8("Select target"), self.targetEdit.text(), QFileDialog.Options(QFileDialog.ShowDirsOnly)) else: - target = QFileDialog.getSaveFileName(\ + target = QFileDialog.getSaveFileName( self, self.trUtf8("Select target"), self.targetEdit.text(), @@ -76,4 +76,4 @@ QFileDialog.Options(QFileDialog.DontConfirmOverwrite)) if target: - self.targetEdit.setText(target) + self.targetEdit.setText(target) \ No newline at end of file
--- a/Plugins/VcsPlugins/vcsMercurial/HgDiffDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsMercurial/HgDiffDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -169,7 +169,7 @@ self.inputGroup.hide() if self.paras == 0: - self.contents.insertPlainText(\ + self.contents.insertPlainText( self.trUtf8('There is no difference.')) return @@ -260,7 +260,7 @@ else: fname = self.vcs.splitPath(self.filename)[0] - fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter(\ + fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter( self, self.trUtf8("Save Diff"), fname,
--- a/Plugins/VcsPlugins/vcsMercurial/HgLogDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsMercurial/HgLogDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -51,7 +51,7 @@ self.mode = "log" self.bundle = bundle - self.contents.setHtml(\ + self.contents.setHtml( self.trUtf8('<b>Processing your request, please wait...</b>')) self.process.finished.connect(self.__procFinished) @@ -425,4 +425,4 @@ self.intercept = False evt.accept() return - QWidget.keyPressEvent(self, evt) + QWidget.keyPressEvent(self, evt) \ No newline at end of file
--- a/Plugins/VcsPlugins/vcsMercurial/HgNewProjectOptionsDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsMercurial/HgNewProjectOptionsDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -54,7 +54,7 @@ Private slot to display a selection dialog. """ if self.protocolCombo.currentText() == "file://": - directory = QFileDialog.getExistingDirectory(\ + directory = QFileDialog.getExistingDirectory( self, self.trUtf8("Select Repository-Directory"), self.vcsUrlEdit.text(), @@ -68,7 +68,7 @@ """ Private slot to display a directory selection dialog. """ - directory = QFileDialog.getExistingDirectory(\ + directory = QFileDialog.getExistingDirectory( self, self.trUtf8("Select Project Directory"), self.vcsProjectDirEdit.text(), @@ -110,4 +110,4 @@ "url" : '{0}{1}'.format(scheme, url), "revision" : self.vcsRevisionEdit.text(), } - return (self.vcsProjectDirEdit.text(), vcsdatadict) + return (self.vcsProjectDirEdit.text(), vcsdatadict) \ No newline at end of file
--- a/Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -54,14 +54,14 @@ self.menuactions = [] self.menu = QMenu() - self.menuactions.append(self.menu.addAction(\ + self.menuactions.append(self.menu.addAction( self.trUtf8("Commit changes to repository..."), self.__commit)) self.menu.addSeparator() - self.menuactions.append(self.menu.addAction(\ + self.menuactions.append(self.menu.addAction( self.trUtf8("Add to repository"), self.__add)) - self.menuactions.append(self.menu.addAction(\ + self.menuactions.append(self.menu.addAction( self.trUtf8("Remove from repository"), self.__forget)) - self.menuactions.append(self.menu.addAction(\ + self.menuactions.append(self.menu.addAction( self.trUtf8("Revert changes"), self.__revert)) self.menu.addSeparator() self.menuactions.append(self.menu.addAction(self.trUtf8("Adjust column sizes"), @@ -476,4 +476,4 @@ for itm in self.statusList.selectedItems(): if itm.text(self.__statusColumn) in self.missingIndicators: missingItems.append(itm) - return missingItems + return missingItems \ No newline at end of file
--- a/Plugins/VcsPlugins/vcsMercurial/hg.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsMercurial/hg.py Sat Sep 04 19:51:48 2010 +0200 @@ -474,7 +474,7 @@ if noDialog: self.startSynchronizedProcess(QProcess(), "hg", args, repodir) else: - dia = HgDialog(\ + dia = HgDialog( self.trUtf8('Adding files/directories to the Mercurial repository')) res = dia.startProcess(args, repodir) if res: @@ -534,7 +534,7 @@ if noDialog: res = self.startSynchronizedProcess(QProcess(), "hg", args, repodir) else: - dia = HgDialog(\ + dia = HgDialog( self.trUtf8('Removing files/directories from the Mercurial repository')) res = dia.startProcess(args, repodir) if res: @@ -1240,7 +1240,7 @@ @param name file/directory name to show the log of (string) """ - noEntries, ok = QInputDialog.getInteger(\ + noEntries, ok = QInputDialog.getInteger( None, self.trUtf8("Mercurial Log"), self.trUtf8("Select number of entries to show."), @@ -1716,7 +1716,7 @@ if dlg.exec_() == QDialog.Accepted: rev, compression, all = dlg.getParameters() - fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter(\ + fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter( None, self.trUtf8("Create changegroup"), repodir, @@ -1776,7 +1776,7 @@ if repodir == os.sep: return - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( None, self.trUtf8("Preview changegroup"), repodir, @@ -1807,7 +1807,7 @@ if repodir == os.sep: return - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( None, self.trUtf8("Preview changegroup"), repodir, @@ -1837,7 +1837,7 @@ if repodir == os.sep: return - files = QFileDialog.getOpenFileNames(\ + files = QFileDialog.getOpenFileNames( None, self.trUtf8("Apply changegroups"), repodir, @@ -1927,7 +1927,7 @@ if repodir == os.sep: return - dia = HgDialog(\ + dia = HgDialog( self.trUtf8('Removing files from the Mercurial repository only')) res = dia.startProcess(args, repodir) if res:
--- a/Plugins/VcsPlugins/vcsPySvn/SvnCommandDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsPySvn/SvnCommandDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -65,7 +65,7 @@ cwd = self.workdirCombo.currentText() if not cwd: cwd = self.projectDirLabel.text() - d = QFileDialog.getExistingDirectory(\ + d = QFileDialog.getExistingDirectory( self, self.trUtf8("Working directory"), cwd,
--- a/Plugins/VcsPlugins/vcsPySvn/SvnCopyDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsPySvn/SvnCopyDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -62,13 +62,13 @@ selection dialog. """ if os.path.isdir(self.source): - target = QFileDialog.getExistingDirectory(\ + target = QFileDialog.getExistingDirectory( None, self.trUtf8("Select target"), self.targetEdit.text(), QFileDialog.Options(QFileDialog.ShowDirsOnly)) else: - target = QFileDialog.getSaveFileName(\ + target = QFileDialog.getSaveFileName( None, self.trUtf8("Select target"), self.targetEdit.text(),
--- a/Plugins/VcsPlugins/vcsPySvn/SvnDiffDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsPySvn/SvnDiffDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -194,7 +194,7 @@ url1 = "{0}/{1}{2}".format(urls[0], dname, name) url2 = "{0}/{1}{2}".format(urls[1], dname, name) if summary: - diff_summary = self.client.diff_summarize(\ + diff_summary = self.client.diff_summarize( url1, revision1 = rev1, url_or_path2 = url2, revision2 = rev2, recurse = recurse) @@ -235,7 +235,7 @@ self.__finish() if self.paras == 0: - self.contents.insertPlainText(\ + self.contents.insertPlainText( self.trUtf8('There is no difference.')) return @@ -313,7 +313,7 @@ else: fname = self.vcs.splitPath(self.filename)[0] - fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter(\ + fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter( self, self.trUtf8("Save Diff"), fname,
--- a/Plugins/VcsPlugins/vcsPySvn/SvnInfoDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsPySvn/SvnInfoDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -61,36 +61,36 @@ entries = self.client.info2(fn, recurse = False) infoStr = "<table>" for path, info in entries: - infoStr += self.trUtf8(\ + infoStr += self.trUtf8( "<tr><td><b>Path (relative to project):</b></td><td>{0}</td></tr>")\ .format(path) if info['URL']: - infoStr += self.trUtf8(\ + infoStr += self.trUtf8( "<tr><td><b>Url:</b></td><td>{0}</td></tr>")\ .format(info['URL']) if info['rev']: - infoStr += self.trUtf8(\ + infoStr += self.trUtf8( "<tr><td><b>Revision:</b></td><td>{0}</td></tr>")\ .format(info['rev'].number) if info['repos_root_URL']: - infoStr += self.trUtf8(\ + infoStr += self.trUtf8( "<tr><td><b>Repository root URL:</b></td><td>{0}</td></tr>")\ .format(info['repos_root_URL']) if info['repos_UUID']: - infoStr += self.trUtf8(\ + infoStr += self.trUtf8( "<tr><td><b>Repository UUID:</b></td><td>{0}</td></tr>")\ .format(info['repos_UUID']) if info['last_changed_author']: - infoStr += self.trUtf8(\ + infoStr += self.trUtf8( "<tr><td><b>Last changed author:</b></td><td>{0}</td></tr>")\ .format(info['last_changed_author']) if info['last_changed_date']: - infoStr += self.trUtf8(\ + infoStr += self.trUtf8( "<tr><td><b>Last Changed Date:</b></td><td>{0}</td></tr>")\ .format(formatTime(info['last_changed_date'])) if info['last_changed_rev'] and \ info['last_changed_rev'].kind == pysvn.opt_revision_kind.number: - infoStr += self.trUtf8(\ + infoStr += self.trUtf8( "<tr><td><b>Last changed revision:</b></td><td>{0}</td></tr>")\ .format(info['last_changed_rev'].number) if info['kind']: @@ -102,26 +102,26 @@ nodeKind = self.trUtf8("none") else: nodeKind = self.trUtf8("unknown") - infoStr += self.trUtf8(\ + infoStr += self.trUtf8( "<tr><td><b>Node kind:</b></td><td>{0}</td></tr>")\ .format(nodeKind) if info['lock']: lockInfo = info['lock'] - infoStr += self.trUtf8(\ + infoStr += self.trUtf8( "<tr><td><b>Lock Owner:</b></td><td>{0}</td></tr>")\ .format(lockInfo['owner']) - infoStr += self.trUtf8(\ + infoStr += self.trUtf8( "<tr><td><b>Lock Creation Date:</b></td><td>{0}</td></tr>")\ .format(formatTime(lockInfo['creation_date'])) if lockInfo['expiration_date'] is not None: infoStr += \ - self.trUtf8(\ + self.trUtf8( "<tr><td><b>Lock Expiration Date:</b></td><td>{0}</td></tr>")\ .format(formatTime(lockInfo['expiration_date'])) - infoStr += self.trUtf8(\ + infoStr += self.trUtf8( "<tr><td><b>Lock Token:</b></td><td>{0}</td></tr>")\ .format(lockInfo['token']) - infoStr += self.trUtf8(\ + infoStr += self.trUtf8( "<tr><td><b>Lock Comment:</b></td><td>{0}</td></tr>")\ .format(lockInfo['comment']) if info['wc_info']: @@ -135,26 +135,26 @@ schedule = self.trUtf8("delete") elif wcInfo['schedule'] == pysvn.wc_schedule.replace: schedule = self.trUtf8("replace") - infoStr += self.trUtf8(\ + infoStr += self.trUtf8( "<tr><td><b>Schedule:</b></td><td>{0}</td></tr>")\ .format(schedule) if wcInfo['copyfrom_url']: - infoStr += self.trUtf8(\ + infoStr += self.trUtf8( "<tr><td><b>Copied From URL:</b></td><td>{0}</td></tr>")\ .format(wcInfo['copyfrom_url']) - infoStr += self.trUtf8(\ + infoStr += self.trUtf8( "<tr><td><b>Copied From Rev:</b></td><td>{0}</td></tr>")\ .format(wcInfo['copyfrom_rev'].number) if wcInfo['text_time']: - infoStr += self.trUtf8(\ + infoStr += self.trUtf8( "<tr><td><b>Text Last Updated:</b></td><td>{0}</td></tr>")\ .format(formatTime(wcInfo['text_time'])) if wcInfo['prop_time']: - infoStr += self.trUtf8(\ + infoStr += self.trUtf8( "<tr><td><b>Properties Last Updated:</b></td><td>{0}</td></tr>")\ .format(formatTime(wcInfo['prop_time'])) if wcInfo['checksum']: - infoStr += self.trUtf8(\ + infoStr += self.trUtf8( "<tr><td><b>Checksum:</b></td><td>{0}</td></tr>")\ .format(wcInfo['checksum']) infoStr += "</table>" @@ -171,4 +171,4 @@ @param msg error message to show (string) """ infoStr = "<p>{0}</p>".format(msg) - self.infoBrowser.setHtml(infoStr) + self.infoBrowser.setHtml(infoStr) \ No newline at end of file
--- a/Plugins/VcsPlugins/vcsPySvn/SvnLogBrowserDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsPySvn/SvnLogBrowserDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -230,7 +230,7 @@ if fetched == 0: revstart = start else: - revstart = pysvn.Revision(\ + revstart = pysvn.Revision( pysvn.opt_revision_kind.number, nextRev) allLogs = self.client.log(self.fname, revision_start = revstart, @@ -352,7 +352,7 @@ self.__resizeColumnsFiles() self.__resortFiles() - self.diffPreviousButton.setEnabled(\ + self.diffPreviousButton.setEnabled( current != self.logTree.topLevelItem(self.logTree.topLevelItemCount() - 1)) @pyqtSlot()
--- a/Plugins/VcsPlugins/vcsPySvn/SvnLogDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsPySvn/SvnLogDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -45,7 +45,7 @@ self.vcs = vcs - self.contents.setHtml(\ + self.contents.setHtml( self.trUtf8('<b>Processing your request, please wait...</b>')) self.contents.anchorClicked.connect(self.__sourceChanged) @@ -103,7 +103,7 @@ if fetched == 0: revstart = pysvn.Revision(pysvn.opt_revision_kind.head) else: - revstart = pysvn.Revision(\ + revstart = pysvn.Revision( pysvn.opt_revision_kind.number, nextRev) allLogs = self.client.log(fname, revision_start = revstart, @@ -239,4 +239,4 @@ """ self.errorGroup.show() self.errors.insertPlainText(msg) - self.errors.ensureCursorVisible() + self.errors.ensureCursorVisible() \ No newline at end of file
--- a/Plugins/VcsPlugins/vcsPySvn/SvnNewProjectOptionsDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsPySvn/SvnNewProjectOptionsDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -55,7 +55,7 @@ Private slot to display a selection dialog. """ if self.protocolCombo.currentText() == "file://": - directory = QFileDialog.getExistingDirectory(\ + directory = QFileDialog.getExistingDirectory( self, self.trUtf8("Select Repository-Directory"), self.vcsUrlEdit.text(), @@ -71,7 +71,7 @@ if url: protocol = url.split("://")[0] path = url.split("://")[1] - self.protocolCombo.setCurrentIndex(\ + self.protocolCombo.setCurrentIndex( self.protocolCombo.findText(protocol + "://")) self.vcsUrlEdit.setText(path) @@ -80,7 +80,7 @@ """ Private slot to display a directory selection dialog. """ - directory = QFileDialog.getExistingDirectory(\ + directory = QFileDialog.getExistingDirectory( self, self.trUtf8("Select Project Directory"), self.vcsProjectDirEdit.text(), @@ -133,4 +133,4 @@ "tag" : self.vcsTagEdit.text(), "standardLayout" : self.layoutCheckBox.isChecked(), } - return (self.vcsProjectDirEdit.text(), vcsdatadict) + return (self.vcsProjectDirEdit.text(), vcsdatadict) \ No newline at end of file
--- a/Plugins/VcsPlugins/vcsPySvn/SvnOptionsDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsPySvn/SvnOptionsDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -58,7 +58,7 @@ Private slot to display a selection dialog. """ if self.protocolCombo.currentText() == "file://": - directory = QFileDialog.getExistingDirectory(\ + directory = QFileDialog.getExistingDirectory( self, self.trUtf8("Select Repository-Directory"), self.vcsUrlEdit.text(), @@ -74,7 +74,7 @@ if url: protocol = url.split("://")[0] path = url.split("://")[1] - self.protocolCombo.setCurrentIndex(\ + self.protocolCombo.setCurrentIndex( self.protocolCombo.findText(protocol + "://")) self.vcsUrlEdit.setText(path) @@ -108,4 +108,4 @@ "message" : self.vcsLogEdit.text(), "standardLayout" : self.layoutCheckBox.isChecked(), } - return vcsdatadict + return vcsdatadict \ No newline at end of file
--- a/Plugins/VcsPlugins/vcsPySvn/SvnRepoBrowserDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsPySvn/SvnRepoBrowserDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -188,7 +188,7 @@ except pysvn.ClientError as e: self.__showError(e.args[0]) except AttributeError: - self.__showError(\ + self.__showError( self.trUtf8("The installed version of PySvn should be " "1.4.0 or better.")) finally:
--- a/Plugins/VcsPlugins/vcsPySvn/SvnStatusDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsPySvn/SvnStatusDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -62,12 +62,12 @@ self.menuactions = [] self.menu = QMenu() - self.menuactions.append(self.menu.addAction(\ + self.menuactions.append(self.menu.addAction( self.trUtf8("Commit changes to repository..."), self.__commit)) self.menu.addSeparator() - self.menuactions.append(self.menu.addAction(\ + self.menuactions.append(self.menu.addAction( self.trUtf8("Add to repository"), self.__add)) - self.menuactions.append(self.menu.addAction(\ + self.menuactions.append(self.menu.addAction( self.trUtf8("Revert changes"), self.__revert)) if pysvn.svn_version >= (1, 5, 0) and pysvn.version >= (1, 6, 0): self.menu.addSeparator() @@ -278,7 +278,7 @@ else: changelist = "" - self.__generateItem(\ + self.__generateItem( changelist, file.text_status, file.prop_status,
--- a/Plugins/VcsPlugins/vcsPySvn/SvnTagBranchListDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsPySvn/SvnTagBranchListDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -97,7 +97,7 @@ else: path = "{0}/branches".format(reposRoot) else: - reposPath, ok = QInputDialog.getText(\ + reposPath, ok = QInputDialog.getText( self, self.trUtf8("Subversion List"), self.trUtf8("Enter the repository URL containing the tags or branches"), @@ -138,7 +138,7 @@ self.__showError(e.args[0]) res = False except AttributeError: - self.__showError(\ + self.__showError( self.trUtf8("The installed version of PySvn should be 1.4.0 or better.")) res = False locker.unlock()
--- a/Plugins/VcsPlugins/vcsPySvn/subversion.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsPySvn/subversion.py Sat Sep 04 19:51:48 2010 +0200 @@ -354,7 +354,7 @@ svnUrl = '{0}/trunk'.format(vcsDir) else: if not tag.startswith('tags') and not tag.startswith('branches'): - type_, ok = QInputDialog.getItem(\ + type_, ok = QInputDialog.getItem( None, self.trUtf8("Subversion Checkout"), self.trUtf8("The tag must be a normal tag (tags) or" @@ -416,7 +416,7 @@ svnUrl = '{0}/trunk'.format(vcsDir) else: if not tag.startswith('tags') and not tag.startswith('branches'): - type_, ok = QInputDialog.getItem(\ + type_, ok = QInputDialog.getItem( None, self.trUtf8("Subversion Export"), self.trUtf8("The tag must be a normal tag (tags) or" @@ -650,7 +650,7 @@ client = self.getClient() if not noDialog: dlg = \ - SvnDialog(\ + SvnDialog( self.trUtf8('Adding files/directories to the Subversion repository'), "add --non-recursive{0}{1} {2}".format( force and " --force" or "", @@ -723,7 +723,7 @@ ignore = "--ignore" in opts client = self.getClient() dlg = \ - SvnDialog(\ + SvnDialog( self.trUtf8('Adding directory trees to the Subversion repository'), "add{0}{1} {2}".format( force and " --force" or "", @@ -758,7 +758,7 @@ client = self.getClient() if not noDialog: dlg = \ - SvnDialog(\ + SvnDialog( self.trUtf8('Removing files/directories from the Subversion repository'), "remove{0} {1}".format( force and " --force" or "", @@ -820,7 +820,7 @@ target = target if not noDialog: dlg = \ - SvnDialog(\ + SvnDialog( self.trUtf8('Moving {0}').format(name), "move{0}{1} {2} {3}".format( force and " --force" or "", @@ -963,7 +963,7 @@ if tagOp in [1, 2]: log = 'Created tag <{0}>'.format(self.tagName) dlg = \ - SvnDialog(\ + SvnDialog( self.trUtf8('Tagging {0} in the Subversion repository').format(name), "copy --message {0} {1} {2}".format(log, reposURL, url), client, log = log) @@ -977,7 +977,7 @@ else: log = 'Deleted tag <{0}>'.format(self.tagName) dlg = \ - SvnDialog(\ + SvnDialog( self.trUtf8('Tagging {0} in the Subversion repository').format(name), "remove --message {0} {1}".format(log, url), client, log = log) @@ -988,7 +988,7 @@ except pysvn.ClientError as e: dlg.showError(e.args[0]) locker.unlock() - rev and dlg.showMessage(\ + rev and dlg.showMessage( self.trUtf8("Revision {0}.\n").format(rev.number)) dlg.finish() dlg.exec_() @@ -1176,7 +1176,7 @@ rev2 = "" client = self.getClient() dlg = \ - SvnDialog(\ + SvnDialog( self.trUtf8('Merging {0}').format(name), "merge{0}{1} {2} {3} {4}".format( (not recurse) and " --non-recursive" or "", @@ -1478,7 +1478,7 @@ log = "" target = target dlg = \ - SvnDialog(\ + SvnDialog( self.trUtf8('Copying {0}').format(name), "copy{0} {1} {2}".format( log and (" --message {0}".format(log)) or "", @@ -1545,7 +1545,7 @@ skipchecks = "--skip-checks" in opts client = self.getClient() dlg = \ - SvnDialog(\ + SvnDialog( self.trUtf8('Subversion Set Property'), "propset{0}{1} {2} {3} {4}".format( recurse and " --recurse" or "", @@ -1596,7 +1596,7 @@ skipchecks = "--skip-checks" in opts client = self.getClient() dlg = \ - SvnDialog(\ + SvnDialog( self.trUtf8('Subversion Delete Property'), "propdel{0}{1} {2} {3}".format( recurse and " --recurse" or "", @@ -1729,7 +1729,7 @@ @param name file/directory name to show the log of (string) """ - noEntries, ok = QInputDialog.getInteger(\ + noEntries, ok = QInputDialog.getInteger( None, self.trUtf8("Subversion Log"), self.trUtf8("Select number of entries to show."), @@ -1760,7 +1760,7 @@ @param stealIt flag indicating a forced operation (boolean) @param parent reference to the parent object of the subversion dialog (QWidget) """ - comment, ok = QInputDialog.getText(\ + comment, ok = QInputDialog.getText( None, self.trUtf8("Subversion Lock"), self.trUtf8("Enter lock comment"), @@ -1780,7 +1780,7 @@ os.chdir(dname) client = self.getClient() dlg = \ - SvnDialog(\ + SvnDialog( self.trUtf8('Locking in the Subversion repository'), "lock{0}{1} {2}".format( stealIt and " --force" or "", @@ -1818,7 +1818,7 @@ os.chdir(dname) client = self.getClient() dlg = \ - SvnDialog(\ + SvnDialog( self.trUtf8('Unlocking in the Subversion repository'), "unlock{0} {1}".format( breakIt and " --force" or "", @@ -1889,7 +1889,7 @@ url = None if url is None: - url, ok = QInputDialog.getText(\ + url, ok = QInputDialog.getText( None, self.trUtf8("Repository Browser"), self.trUtf8("Enter the repository URL."), @@ -1939,7 +1939,7 @@ if not isinstance(names, list): names = [names] - clname, ok = QInputDialog.getText(\ + clname, ok = QInputDialog.getText( None, self.trUtf8("Add to changelist"), self.trUtf8("Enter name of the changelist:"),
--- a/Plugins/VcsPlugins/vcsSubversion/SvnCommandDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsSubversion/SvnCommandDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -65,7 +65,7 @@ cwd = self.workdirCombo.currentText() if not cwd: cwd = self.projectDirLabel.text() - d = QFileDialog.getExistingDirectory(\ + d = QFileDialog.getExistingDirectory( self, self.trUtf8("Working directory"), cwd,
--- a/Plugins/VcsPlugins/vcsSubversion/SvnCopyDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsSubversion/SvnCopyDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -62,13 +62,13 @@ selection dialog. """ if os.path.isdir(self.source): - target = QFileDialog.getExistingDirectory(\ + target = QFileDialog.getExistingDirectory( None, self.trUtf8("Select target"), self.targetEdit.text(), QFileDialog.Options(QFileDialog.ShowDirsOnly)) else: - target = QFileDialog.getSaveFileName(\ + target = QFileDialog.getSaveFileName( None, self.trUtf8("Select target"), self.targetEdit.text(),
--- a/Plugins/VcsPlugins/vcsSubversion/SvnDiffDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsSubversion/SvnDiffDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -179,7 +179,7 @@ self.inputGroup.setEnabled(False) if self.paras == 0: - self.contents.insertPlainText(\ + self.contents.insertPlainText( self.trUtf8('There is no difference.')) return @@ -273,7 +273,7 @@ else: fname = self.vcs.splitPath(self.filename)[0] - fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter(\ + fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter( self, self.trUtf8("Save Diff"), fname,
--- a/Plugins/VcsPlugins/vcsSubversion/SvnLogBrowserDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsSubversion/SvnLogBrowserDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -452,7 +452,7 @@ self.__resizeColumnsFiles() self.__resortFiles() - self.diffPreviousButton.setEnabled(\ + self.diffPreviousButton.setEnabled( current != self.logTree.topLevelItem(self.logTree.topLevelItemCount() - 1)) @pyqtSlot()
--- a/Plugins/VcsPlugins/vcsSubversion/SvnLogDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsSubversion/SvnLogDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -42,7 +42,7 @@ self.process = QProcess() self.vcs = vcs - self.contents.setHtml(\ + self.contents.setHtml( self.trUtf8('<b>Processing your request, please wait...</b>')) self.process.finished.connect(self.__procFinished)
--- a/Plugins/VcsPlugins/vcsSubversion/SvnNewProjectOptionsDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsSubversion/SvnNewProjectOptionsDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -55,7 +55,7 @@ Private slot to display a selection dialog. """ if self.protocolCombo.currentText() == "file://": - directory = QFileDialog.getExistingDirectory(\ + directory = QFileDialog.getExistingDirectory( self, self.trUtf8("Select Repository-Directory"), self.vcsUrlEdit.text(), @@ -71,7 +71,7 @@ if url: protocol = url.split("://")[0] path = url.split("://")[1] - self.protocolCombo.setCurrentIndex(\ + self.protocolCombo.setCurrentIndex( self.protocolCombo.findText(protocol + "://")) self.vcsUrlEdit.setText(path) @@ -80,7 +80,7 @@ """ Private slot to display a directory selection dialog. """ - directory = QFileDialog.getExistingDirectory(\ + directory = QFileDialog.getExistingDirectory( self, self.trUtf8("Select Project Directory"), self.vcsProjectDirEdit.text(), @@ -133,4 +133,4 @@ "tag" : self.vcsTagEdit.text(), "standardLayout" : self.layoutCheckBox.isChecked(), } - return (self.vcsProjectDirEdit.text(), vcsdatadict) + return (self.vcsProjectDirEdit.text(), vcsdatadict) \ No newline at end of file
--- a/Plugins/VcsPlugins/vcsSubversion/SvnOptionsDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsSubversion/SvnOptionsDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -58,7 +58,7 @@ Private slot to display a selection dialog. """ if self.protocolCombo.currentText() == "file://": - directory = QFileDialog.getExistingDirectory(\ + directory = QFileDialog.getExistingDirectory( self, self.trUtf8("Select Repository-Directory"), self.vcsUrlEdit.text(), @@ -74,7 +74,7 @@ if url: protocol = url.split("://")[0] path = url.split("://")[1] - self.protocolCombo.setCurrentIndex(\ + self.protocolCombo.setCurrentIndex( self.protocolCombo.findText(protocol + "://")) self.vcsUrlEdit.setText(path) @@ -108,4 +108,4 @@ "message" : self.vcsLogEdit.text(), "standardLayout" : self.layoutCheckBox.isChecked(), } - return vcsdatadict + return vcsdatadict \ No newline at end of file
--- a/Plugins/VcsPlugins/vcsSubversion/SvnPropSetDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsSubversion/SvnPropSetDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -36,7 +36,7 @@ """ Private slot called by pressing the file selection button. """ - fn = QFileDialog.getOpenFileName(\ + fn = QFileDialog.getOpenFileName( self, self.trUtf8("Select file for property"), self.propFileEdit.text(),
--- a/Plugins/VcsPlugins/vcsSubversion/SvnStatusDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsSubversion/SvnStatusDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -58,12 +58,12 @@ self.menuactions = [] self.menu = QMenu() - self.menuactions.append(self.menu.addAction(\ + self.menuactions.append(self.menu.addAction( self.trUtf8("Commit changes to repository..."), self.__commit)) self.menu.addSeparator() - self.menuactions.append(self.menu.addAction(\ + self.menuactions.append(self.menu.addAction( self.trUtf8("Add to repository"), self.__add)) - self.menuactions.append(self.menu.addAction(\ + self.menuactions.append(self.menu.addAction( self.trUtf8("Revert changes"), self.__revert)) if self.vcs.versionStr >= '1.5.0': self.menu.addSeparator()
--- a/Plugins/VcsPlugins/vcsSubversion/SvnTagBranchListDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsSubversion/SvnTagBranchListDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -119,7 +119,7 @@ args.append("{0}/branches".format(reposRoot)) self.path = None else: - reposPath, ok = QInputDialog.getText(\ + reposPath, ok = QInputDialog.getText( self, self.trUtf8("Subversion List"), self.trUtf8("Enter the repository URL containing the tags or branches"),
--- a/Plugins/VcsPlugins/vcsSubversion/subversion.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/VcsPlugins/vcsSubversion/subversion.py Sat Sep 04 19:51:48 2010 +0200 @@ -333,7 +333,7 @@ svnUrl = '{0}/trunk'.format(vcsDir) else: if not tag.startswith('tags') and not tag.startswith('branches'): - type, ok = QInputDialog.getItem(\ + type, ok = QInputDialog.getItem( None, self.trUtf8("Subversion Checkout"), self.trUtf8("The tag must be a normal tag (tags) or" @@ -385,7 +385,7 @@ svnUrl = '{0}/trunk'.format(vcsDir) else: if not tag.startswith('tags') and not tag.startswith('branches'): - type, ok = QInputDialog.getItem(\ + type, ok = QInputDialog.getItem( None, self.trUtf8("Subversion Export"), self.trUtf8("The tag must be a normal tag (tags) or" @@ -582,7 +582,7 @@ if noDialog: self.startSynchronizedProcess(QProcess(), "svn", args, wdir) else: - dia = SvnDialog(\ + dia = SvnDialog( self.trUtf8('Adding files/directories to the Subversion repository')) res = dia.startProcess(args, wdir) if res: @@ -637,7 +637,7 @@ else: args.append(path) - dia = SvnDialog(\ + dia = SvnDialog( self.trUtf8('Adding directory trees to the Subversion repository')) res = dia.startProcess(args, dname) if res: @@ -669,7 +669,7 @@ if noDialog: res = self.startSynchronizedProcess(QProcess(), "svn", args) else: - dia = SvnDialog(\ + dia = SvnDialog( self.trUtf8('Removing files/directories from the Subversion repository')) res = dia.startProcess(args) if res: @@ -1418,7 +1418,7 @@ @param name file/directory name (string or list of strings) @param recursive flag indicating a recursive list is requested """ - propName, ok = QInputDialog.getText(\ + propName, ok = QInputDialog.getText( None, self.trUtf8("Subversion Delete Property"), self.trUtf8("Enter property name"), @@ -1567,7 +1567,7 @@ @param name file/directory name to show the log of (string) """ - noEntries, ok = QInputDialog.getInteger(\ + noEntries, ok = QInputDialog.getInteger( None, self.trUtf8("Subversion Log"), self.trUtf8("Select number of entries to show."), @@ -1673,7 +1673,7 @@ url = None if url is None: - url, ok = QInputDialog.getText(\ + url, ok = QInputDialog.getText( None, self.trUtf8("Repository Browser"), self.trUtf8("Enter the repository URL."), @@ -1720,7 +1720,7 @@ @param names name or list of names of file or directory to add (string) """ - clname, ok = QInputDialog.getText(\ + clname, ok = QInputDialog.getText( None, self.trUtf8("Add to changelist"), self.trUtf8("Enter name of the changelist:"),
--- a/Plugins/WizardPlugins/E5MessageBoxWizard/E5MessageBoxWizardDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/WizardPlugins/E5MessageBoxWizard/E5MessageBoxWizardDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -127,6 +127,8 @@ ) self.bTest.setEnabled(not self.rStandard.isChecked()) + + self.eMessage.setEnabled(not self.rAboutQt.isChecked()) @pyqtSlot(bool) def on_rInformation_toggled(self, checked):
--- a/Plugins/WizardPlugins/FileDialogWizard/FileDialogWizardDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/WizardPlugins/FileDialogWizard/FileDialogWizardDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -64,7 +64,7 @@ options = QFileDialog.Options(QFileDialog.DontResolveSymlinks) else: options = QFileDialog.Options() - QFileDialog.getOpenFileName(\ + QFileDialog.getOpenFileName( None, self.eCaption.text(), self.eStartWith.text(), @@ -75,7 +75,7 @@ options = QFileDialog.Options(QFileDialog.DontResolveSymlinks) else: options = QFileDialog.Options() - QFileDialog.getOpenFileNames(\ + QFileDialog.getOpenFileNames( None, self.eCaption.text(), self.eStartWith.text(), @@ -86,7 +86,7 @@ options = QFileDialog.Options(QFileDialog.DontResolveSymlinks) else: options = QFileDialog.Options() - QFileDialog.getSaveFileName(\ + QFileDialog.getSaveFileName( None, self.eCaption.text(), self.eStartWith.text(), @@ -100,7 +100,7 @@ options |= QFileDialog.Options(QFileDialog.ShowDirsOnly) else: options |= QFileDialog.Options(QFileDialog.Option(0)) - QFileDialog.getExistingDirectory(\ + QFileDialog.getExistingDirectory( None, self.eCaption.text(), self.eWorkDir.text(), @@ -124,7 +124,7 @@ else: self.filePropertiesGroup.setEnabled(True) self.dirPropertiesGroup.setEnabled(False) - self.bTest.setDisabled(\ + self.bTest.setDisabled( self.cStartWith.isChecked() or self.cFilters.isChecked()) def __getCode4(self, indLevel, indString): @@ -284,4 +284,4 @@ @param indString string used for indentation (space or tab) (string) @return generated code (string) """ - return self.__getCode4(indLevel, indString) + return self.__getCode4(indLevel, indString) \ No newline at end of file
--- a/Plugins/WizardPlugins/InputDialogWizard/InputDialogWizardDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/WizardPlugins/InputDialogWizard/InputDialogWizardDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -31,11 +31,11 @@ self.setupUi(self) # set the validators for the double line edots - self.eDoubleDefault.setValidator(\ + self.eDoubleDefault.setValidator( QDoubleValidator(-2147483647, 2147483647, 99, self.eDoubleDefault)) - self.eDoubleFrom.setValidator(\ + self.eDoubleFrom.setValidator( QDoubleValidator(-2147483647, 2147483647, 99, self.eDoubleFrom)) - self.eDoubleTo.setValidator(\ + self.eDoubleTo.setValidator( QDoubleValidator(-2147483647, 2147483647, 99, self.eDoubleTo)) self.bTest = \ @@ -71,14 +71,14 @@ echomode = QLineEdit.NoEcho else: echomode = QLineEdit.Password - QInputDialog.getText(\ + QInputDialog.getText( None, self.eCaption.text(), self.eLabel.text(), echomode, self.eTextDefault.text()) elif self.rInteger.isChecked(): - QInputDialog.getInteger(\ + QInputDialog.getInteger( None, self.eCaption.text(), self.eLabel.text(), @@ -99,7 +99,7 @@ doubleTo = float(self.eDoubleTo.text()) except ValueError: doubleTo = 2147483647 - QInputDialog.getDouble(\ + QInputDialog.getDouble( None, self.eCaption.text(), self.eLabel.text(), @@ -193,4 +193,4 @@ @param indString string used for indentation (space or tab) (string) @return generated code (string) """ - return self.__getCode4(indLevel, indString) + return self.__getCode4(indLevel, indString) \ No newline at end of file
--- a/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -76,7 +76,7 @@ self.nextButton = \ self.buttonBox.addButton(self.trUtf8("Next match"), QDialogButtonBox.ActionRole) - self.nextButton.setToolTip(\ + self.nextButton.setToolTip( self.trUtf8("Show the next match of the regular expression")) self.nextButton.setEnabled(False) @@ -86,7 +86,7 @@ else: self.copyButton = \ self.buttonBox.addButton(self.trUtf8("Copy"), QDialogButtonBox.ActionRole) - self.copyButton.setToolTip(\ + self.copyButton.setToolTip( self.trUtf8("Copy the regular expression to the clipboard")) self.buttonBox.button(QDialogButtonBox.Ok).hide() self.buttonBox.button(QDialogButtonBox.Cancel).hide() @@ -169,7 +169,7 @@ self.trUtf8("""No named groups have been defined yet.""")) return - groupName, ok = QInputDialog.getItem(\ + groupName, ok = QInputDialog.getItem( self, self.trUtf8("Named reference"), self.trUtf8("Select group name:"), @@ -297,7 +297,7 @@ """ Private slot to save the regexp to a file. """ - fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter(\ + fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter( self, self.trUtf8("Save regular expression"), "", @@ -334,7 +334,7 @@ """ Private slot to load a regexp from a file. """ - fname = QFileDialog.getOpenFileName(\ + fname = QFileDialog.getOpenFileName( self, self.trUtf8("Load regular expression"), "", @@ -390,7 +390,7 @@ self.verboseCheckBox.isChecked() and re.VERBOSE or 0 | \ (not self.unicodeCheckBox.isChecked() and re.UNICODE or 0)) E5MessageBox.information(self, - self.trUtf8(""), + self.trUtf8("Validation"), self.trUtf8("""The regular expression is valid.""")) except re.error as e: E5MessageBox.critical(self,
--- a/Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -68,7 +68,7 @@ self.nextButton = \ self.buttonBox.addButton(self.trUtf8("Next match"), QDialogButtonBox.ActionRole) - self.nextButton.setToolTip(\ + self.nextButton.setToolTip( self.trUtf8("Show the next match of the regular expression")) self.nextButton.setEnabled(False) @@ -78,7 +78,7 @@ else: self.copyButton = \ self.buttonBox.addButton(self.trUtf8("Copy"), QDialogButtonBox.ActionRole) - self.copyButton.setToolTip(\ + self.copyButton.setToolTip( self.trUtf8("Copy the regular expression to the clipboard")) self.buttonBox.button(QDialogButtonBox.Ok).hide() self.buttonBox.button(QDialogButtonBox.Cancel).hide() @@ -211,7 +211,7 @@ """ Private slot to save the regexp to a file. """ - fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter(\ + fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter( self, self.trUtf8("Save regular expression"), "", @@ -248,7 +248,7 @@ """ Private slot to load a regexp from a file. """ - fname = QFileDialog.getOpenFileName(\ + fname = QFileDialog.getOpenFileName( self, self.trUtf8("Load regular expression"), "", @@ -299,7 +299,7 @@ re.setPatternSyntax(QRegExp.RegExp) if re.isValid(): E5MessageBox.information(self, - self.trUtf8(""), + self.trUtf8("Validation"), self.trUtf8("""The regular expression is valid.""")) else: E5MessageBox.critical(self,
--- a/Preferences/ConfigurationPages/ApplicationPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/ApplicationPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -25,9 +25,9 @@ self.setObjectName("ApplicationPage") # set initial values - self.singleApplicationCheckBox.setChecked(\ + self.singleApplicationCheckBox.setChecked( Preferences.getUI("SingleApplicationMode")) - self.splashScreenCheckBox.setChecked(\ + self.splashScreenCheckBox.setChecked( Preferences.getUI("ShowSplash")) openOnStartup = Preferences.getUI("OpenOnStartup") @@ -106,4 +106,4 @@ @param dlg reference to the configuration dialog """ page = ApplicationPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/CorbaPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/CorbaPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -46,7 +46,7 @@ """ Private slot to handle the IDL compiler selection. """ - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( self, self.trUtf8("Select IDL compiler"), self.idlEdit.text(), @@ -62,4 +62,4 @@ @param dlg reference to the configuration dialog """ page = CorbaPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/DebuggerGeneralPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/DebuggerGeneralPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -87,20 +87,20 @@ break self.interfacesCombo.setCurrentIndex(index) - self.allowedHostsList.addItems(\ + self.allowedHostsList.addItems( Preferences.getDebugger("AllowedHosts")) - self.remoteCheckBox.setChecked(\ + self.remoteCheckBox.setChecked( Preferences.getDebugger("RemoteDbgEnabled")) - self.hostLineEdit.setText(\ + self.hostLineEdit.setText( Preferences.getDebugger("RemoteHost")) - self.execLineEdit.setText(\ + self.execLineEdit.setText( Preferences.getDebugger("RemoteExecution")) if self.passiveDbgGroup.isEnabled(): - self.passiveDbgCheckBox.setChecked(\ + self.passiveDbgCheckBox.setChecked( Preferences.getDebugger("PassiveDbgEnabled")) - self.passiveDbgPortSpinBox.setValue(\ + self.passiveDbgPortSpinBox.setValue( Preferences.getDebugger("PassiveDbgPort")) index = self.passiveDbgBackendCombo.findText( Preferences.getDebugger("PassiveDbgType")) @@ -108,29 +108,29 @@ index = 0 self.passiveDbgBackendCombo.setCurrentIndex(index) - self.debugEnvironReplaceCheckBox.setChecked(\ + self.debugEnvironReplaceCheckBox.setChecked( Preferences.getDebugger("DebugEnvironmentReplace")) - self.debugEnvironEdit.setText(\ + self.debugEnvironEdit.setText( Preferences.getDebugger("DebugEnvironment")) - self.automaticResetCheckBox.setChecked(\ + self.automaticResetCheckBox.setChecked( Preferences.getDebugger("AutomaticReset")) - self.debugAutoSaveScriptsCheckBox.setChecked(\ + self.debugAutoSaveScriptsCheckBox.setChecked( Preferences.getDebugger("Autosave")) - self.consoleDbgCheckBox.setChecked(\ + self.consoleDbgCheckBox.setChecked( Preferences.getDebugger("ConsoleDbgEnabled")) - self.consoleDbgEdit.setText(\ + self.consoleDbgEdit.setText( Preferences.getDebugger("ConsoleDbgCommand")) - self.dbgPathTranslationCheckBox.setChecked(\ + self.dbgPathTranslationCheckBox.setChecked( Preferences.getDebugger("PathTranslation")) - self.dbgTranslationRemoteEdit.setText(\ + self.dbgTranslationRemoteEdit.setText( Preferences.getDebugger("PathTranslationRemote")) - self.dbgTranslationLocalEdit.setText(\ + self.dbgTranslationLocalEdit.setText( Preferences.getDebugger("PathTranslationLocal")) - self.debugThreeStateBreakPoint.setChecked(\ + self.debugThreeStateBreakPoint.setChecked( Preferences.getDebugger("ThreeStateBreakPoints")) - self.dontShowClientExitCheckBox.setChecked(\ + self.dontShowClientExitCheckBox.setChecked( Preferences.getDebugger("SuppressClientExit")) - self.exceptionBreakCheckBox.setChecked(\ + self.exceptionBreakCheckBox.setChecked( Preferences.getDebugger("BreakAlways")) def save(self): @@ -208,7 +208,7 @@ """ Private slot called to add a new allowed host. """ - allowedHost, ok = QInputDialog.getText(\ + allowedHost, ok = QInputDialog.getText( None, self.trUtf8("Add allowed host"), self.trUtf8("Enter the IP address of an allowed host"), @@ -237,7 +237,7 @@ Private slot called to edit an allowed host. """ allowedHost = self.allowedHostsList.currentItem().text() - allowedHost, ok = QInputDialog.getText(\ + allowedHost, ok = QInputDialog.getText( None, self.trUtf8("Edit allowed host"), self.trUtf8("Enter the IP address of an allowed host"),
--- a/Preferences/ConfigurationPages/DebuggerPython3Page.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/DebuggerPython3Page.py Sat Sep 04 19:51:48 2010 +0200 @@ -34,9 +34,9 @@ self.debugClientCompleter = E5FileCompleter(self.debugClientEdit) # set initial values - self.customPyCheckBox.setChecked(\ + self.customPyCheckBox.setChecked( Preferences.getDebugger("CustomPython3Interpreter")) - self.interpreterEdit.setText(\ + self.interpreterEdit.setText( Preferences.getDebugger("Python3Interpreter")) dct = Preferences.getDebugger("DebugClientType3") if dct == "standard": @@ -83,14 +83,14 @@ """ Private slot to handle the Python interpreter selection. """ - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( self, self.trUtf8("Select Python interpreter for Debug Client"), self.interpreterEdit.text(), "") if file: - self.interpreterEdit.setText(\ + self.interpreterEdit.setText( Utilities.toNativeSeparators(file)) @pyqtSlot() @@ -98,14 +98,14 @@ """ Private slot to handle the Debug Client selection. """ - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( None, self.trUtf8("Select Debug Client"), self.debugClientEdit.text(), self.trUtf8("Python Files (*.py *.py3)")) if file: - self.debugClientEdit.setText(\ + self.debugClientEdit.setText( Utilities.toNativeSeparators(file)) def create(dlg): @@ -115,4 +115,4 @@ @param dlg reference to the configuration dialog """ page = DebuggerPython3Page() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/DebuggerPythonPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/DebuggerPythonPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -34,7 +34,7 @@ self.debugClientCompleter = E5FileCompleter(self.debugClientEdit) # set initial values - self.interpreterEdit.setText(\ + self.interpreterEdit.setText( Preferences.getDebugger("PythonInterpreter")) dct = Preferences.getDebugger("DebugClientType") if dct == "standard": @@ -43,11 +43,11 @@ self.threadedButton.setChecked(True) else: self.customButton.setChecked(True) - self.debugClientEdit.setText(\ + self.debugClientEdit.setText( Preferences.getDebugger("DebugClient")) - self.pyRedirectCheckBox.setChecked(\ + self.pyRedirectCheckBox.setChecked( Preferences.getDebugger("PythonRedirect")) - self.pyNoEncodingCheckBox.setChecked(\ + self.pyNoEncodingCheckBox.setChecked( Preferences.getDebugger("PythonNoEncoding")) self.sourceExtensionsEdit.setText( Preferences.getDebugger("PythonExtensions")) @@ -79,14 +79,14 @@ """ Private slot to handle the Python interpreter selection. """ - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( self, self.trUtf8("Select Python interpreter for Debug Client"), self.interpreterEdit.text(), "") if file: - self.interpreterEdit.setText(\ + self.interpreterEdit.setText( Utilities.toNativeSeparators(file)) @pyqtSlot() @@ -94,14 +94,14 @@ """ Private slot to handle the Debug Client selection. """ - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( None, self.trUtf8("Select Debug Client"), self.debugClientEdit.text(), self.trUtf8("Python Files (*.py *.py2)")) if file: - self.debugClientEdit.setText(\ + self.debugClientEdit.setText( Utilities.toNativeSeparators(file)) def create(dlg): @@ -111,4 +111,4 @@ @param dlg reference to the configuration dialog """ page = DebuggerPythonPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/DebuggerRubyPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/DebuggerRubyPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -33,9 +33,9 @@ self.rubyInterpreterCompleter = E5FileCompleter(self.rubyInterpreterEdit) # set initial values - self.rubyInterpreterEdit.setText(\ + self.rubyInterpreterEdit.setText( Preferences.getDebugger("RubyInterpreter")) - self.rbRedirectCheckBox.setChecked(\ + self.rbRedirectCheckBox.setChecked( Preferences.getDebugger("RubyRedirect")) def save(self): @@ -52,13 +52,13 @@ """ Private slot to handle the Ruby interpreter selection. """ - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( self, self.trUtf8("Select Ruby interpreter for Debug Client"), self.rubyInterpreterEdit.text()) if file: - self.rubyInterpreterEdit.setText(\ + self.rubyInterpreterEdit.setText( Utilities.toNativeSeparators(file)) def create(dlg): @@ -68,4 +68,4 @@ @param dlg reference to the configuration dialog """ page = DebuggerRubyPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/EditorAPIsPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/EditorAPIsPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -43,7 +43,7 @@ # set initial values self.pluginManager = e5App().getObject("PluginManager") - self.apiAutoPrepareCheckBox.setChecked(\ + self.apiAutoPrepareCheckBox.setChecked( Preferences.getEditor("AutoPrepareAPIs")) self.apis = {} @@ -101,7 +101,7 @@ self.__apiPreparationCancelled) self.__currentAPI.apiPreparationStarted.connect( self.__apiPreparationStarted) - self.addInstalledApiFileButton.setEnabled(\ + self.addInstalledApiFileButton.setEnabled( self.__currentAPI.installedAPIFiles() != "") else: self.addInstalledApiFileButton.setEnabled(False) @@ -125,7 +125,7 @@ """ Private method to select an api file. """ - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( self, self.trUtf8("Select API file"), self.apiFileEdit.text(), @@ -165,14 +165,14 @@ installedAPIFilesShort = [] for installedAPIFile in installedAPIFiles: installedAPIFilesShort.append(QFileInfo(installedAPIFile).fileName()) - file, ok = QInputDialog.getItem(\ + file, ok = QInputDialog.getItem( self, self.trUtf8("Add from installed APIs"), self.trUtf8("Select from the list of installed API files"), installedAPIFilesShort, 0, False) if ok: - self.apiList.addItem(Utilities.toNativeSeparators(\ + self.apiList.addItem(Utilities.toNativeSeparators( QFileInfo(QDir(installedAPIFilesPath), file).absoluteFilePath())) @pyqtSlot() @@ -185,7 +185,7 @@ pluginAPIFilesDict = {} for apiFile in pluginAPIFiles: pluginAPIFilesDict[QFileInfo(apiFile).fileName()] = apiFile - file, ok = QInputDialog.getItem(\ + file, ok = QInputDialog.getItem( self, self.trUtf8("Add from Plugin APIs"), self.trUtf8( @@ -193,7 +193,7 @@ sorted(pluginAPIFilesDict.keys()), 0, False) if ok: - self.apiList.addItem(Utilities.toNativeSeparators(\ + self.apiList.addItem(Utilities.toNativeSeparators( pluginAPIFilesDict[file])) @pyqtSlot() @@ -205,7 +205,7 @@ self.__currentAPI and self.__currentAPI.cancelPreparation() else: if self.__currentAPI is not None: - self.__currentAPI.prepareAPIs(\ + self.__currentAPI.prepareAPIs( ondemand = True, rawList = self.__editorGetApisFromApiList()) @@ -258,4 +258,4 @@ @param dlg reference to the configuration dialog """ page = EditorAPIsPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/EditorAutocompletionPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/EditorAutocompletionPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -25,13 +25,13 @@ self.setObjectName("EditorAutocompletionPage") # set initial values - self.acEnabledCheckBox.setChecked(\ + self.acEnabledCheckBox.setChecked( Preferences.getEditor("AutoCompletionEnabled")) - self.acCaseSensitivityCheckBox.setChecked(\ + self.acCaseSensitivityCheckBox.setChecked( Preferences.getEditor("AutoCompletionCaseSensitivity")) - self.acReplaceWordCheckBox.setChecked(\ + self.acReplaceWordCheckBox.setChecked( Preferences.getEditor("AutoCompletionReplaceWord")) - self.acThresholdSlider.setValue(\ + self.acThresholdSlider.setValue( Preferences.getEditor("AutoCompletionThreshold")) def save(self): @@ -54,4 +54,4 @@ @param dlg reference to the configuration dialog """ page = EditorAutocompletionPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/EditorAutocompletionQScintillaPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/EditorAutocompletionQScintillaPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -28,9 +28,9 @@ self.setObjectName("EditorAutocompletionQScintillaPage") # set initial values - self.acShowSingleCheckBox.setChecked(\ + self.acShowSingleCheckBox.setChecked( Preferences.getEditor("AutoCompletionShowSingle")) - self.acFillupsCheckBox.setChecked(\ + self.acFillupsCheckBox.setChecked( Preferences.getEditor("AutoCompletionFillups")) acSource = Preferences.getEditor("AutoCompletionSource") @@ -63,4 +63,4 @@ @param dlg reference to the configuration dialog """ page = EditorAutocompletionQScintillaPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/EditorCalltipsPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/EditorCalltipsPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -27,10 +27,10 @@ self.setObjectName("EditorCalltipsPage") # set initial values - self.ctEnabledCheckBox.setChecked(\ + self.ctEnabledCheckBox.setChecked( Preferences.getEditor("CallTipsEnabled")) - self.ctVisibleSlider.setValue(\ + self.ctVisibleSlider.setValue( Preferences.getEditor("CallTipsVisible")) self.callTipsBackgroundColour = \ self.initColour("CallTipsBackground", self.calltipsBackgroundButton, @@ -69,4 +69,4 @@ @param dlg reference to the configuration dialog """ page = EditorCalltipsPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/EditorExportersPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/EditorExportersPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -47,55 +47,55 @@ self.pdfPageSizeCombo.addItem(self.trUtf8("Letter"), "Letter") # HTML - self.htmlWysiwygCheckBox.setChecked(\ + self.htmlWysiwygCheckBox.setChecked( Preferences.getEditorExporter("HTML/WYSIWYG")) - self.htmlFoldingCheckBox.setChecked(\ + self.htmlFoldingCheckBox.setChecked( Preferences.getEditorExporter("HTML/Folding")) - self.htmlStylesCheckBox.setChecked(\ + self.htmlStylesCheckBox.setChecked( Preferences.getEditorExporter("HTML/OnlyStylesUsed")) - self.htmlTitleCheckBox.setChecked(\ + self.htmlTitleCheckBox.setChecked( Preferences.getEditorExporter("HTML/FullPathAsTitle")) - self.htmlTabsCheckBox.setChecked(\ + self.htmlTabsCheckBox.setChecked( Preferences.getEditorExporter("HTML/UseTabs")) # ODT - self.odtWysiwygCheckBox.setChecked(\ + self.odtWysiwygCheckBox.setChecked( Preferences.getEditorExporter("ODT/WYSIWYG")) - self.odtStylesCheckBox.setChecked(\ + self.odtStylesCheckBox.setChecked( Preferences.getEditorExporter("ODT/OnlyStylesUsed")) - self.odtTabsCheckBox.setChecked(\ + self.odtTabsCheckBox.setChecked( Preferences.getEditorExporter("ODT/UseTabs")) # PDF - self.pdfMagnificationSlider.setValue(\ + self.pdfMagnificationSlider.setValue( Preferences.getEditorExporter("PDF/Magnification")) - ind = self.pdfFontCombo.findData(\ + ind = self.pdfFontCombo.findData( Preferences.getEditorExporter("PDF/Font")) self.pdfFontCombo.setCurrentIndex(ind) - ind = self.pdfPageSizeCombo.findData(\ + ind = self.pdfPageSizeCombo.findData( Preferences.getEditorExporter("PDF/PageSize")) self.pdfPageSizeCombo.setCurrentIndex(ind) - self.pdfMarginTopSpin.setValue(\ + self.pdfMarginTopSpin.setValue( Preferences.getEditorExporter("PDF/MarginTop")) - self.pdfMarginBottomSpin.setValue(\ + self.pdfMarginBottomSpin.setValue( Preferences.getEditorExporter("PDF/MarginBottom")) - self.pdfMarginLeftSpin.setValue(\ + self.pdfMarginLeftSpin.setValue( Preferences.getEditorExporter("PDF/MarginLeft")) - self.pdfMarginRightSpin.setValue(\ + self.pdfMarginRightSpin.setValue( Preferences.getEditorExporter("PDF/MarginRight")) # RTF - self.rtfWysiwygCheckBox.setChecked(\ + self.rtfWysiwygCheckBox.setChecked( Preferences.getEditorExporter("RTF/WYSIWYG")) - self.rtfTabsCheckBox.setChecked(\ + self.rtfTabsCheckBox.setChecked( Preferences.getEditorExporter("RTF/UseTabs")) self.rtfFont = Preferences.getEditorExporter("RTF/Font") self.rtfFontSample.setFont(self.rtfFont) # TeX - self.texStylesCheckBox.setChecked(\ + self.texStylesCheckBox.setChecked( Preferences.getEditorExporter("TeX/OnlyStylesUsed")) - self.texTitleCheckBox.setChecked(\ + self.texTitleCheckBox.setChecked( Preferences.getEditorExporter("TeX/FullPathAsTitle")) self.on_exportersCombo_activated(' ') @@ -183,4 +183,4 @@ @param dlg reference to the configuration dialog """ page = EditorExportersPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/EditorFilePage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/EditorFilePage.py Sat Sep 04 19:51:48 2010 +0200 @@ -29,40 +29,40 @@ self.setupUi(self) self.setObjectName("EditorFilePage") - self.openFilesFilterComboBox.addItems(\ + self.openFilesFilterComboBox.addItems( QScintilla.Lexers.getOpenFileFiltersList(True)) - self.saveFilesFilterComboBox.addItems(\ + self.saveFilesFilterComboBox.addItems( QScintilla.Lexers.getSaveFileFiltersList(True)) self.defaultEncodingComboBox.addItems(sorted(supportedCodecs)) # set initial values - self.autosaveSlider.setValue(\ + self.autosaveSlider.setValue( Preferences.getEditor("AutosaveInterval")) - self.createBackupFileCheckBox.setChecked(\ + self.createBackupFileCheckBox.setChecked( Preferences.getEditor("CreateBackupFile")) - self.automaticSyntaxCheckCheckBox.setChecked(\ + self.automaticSyntaxCheckCheckBox.setChecked( Preferences.getEditor("AutoCheckSyntax")) - self.defaultEncodingComboBox.setCurrentIndex(\ - self.defaultEncodingComboBox.findText(\ + self.defaultEncodingComboBox.setCurrentIndex( + self.defaultEncodingComboBox.findText( Preferences.getEditor("DefaultEncoding"))) - self.advEncodingCheckBox.setChecked(\ + self.advEncodingCheckBox.setChecked( Preferences.getEditor("AdvancedEncodingDetection")) - self.warnFilesizeSpinBox.setValue(\ + self.warnFilesizeSpinBox.setValue( Preferences.getEditor("WarnFilesize")) - self.clearBreakpointsCheckBox.setChecked(\ + self.clearBreakpointsCheckBox.setChecked( Preferences.getEditor("ClearBreaksOnClose")) - self.automaticReopenCheckBox.setChecked(\ + self.automaticReopenCheckBox.setChecked( Preferences.getEditor("AutoReopen")) - self.stripWhitespaceCheckBox.setChecked(\ + self.stripWhitespaceCheckBox.setChecked( Preferences.getEditor("StripTrailingWhitespace")) - self.openFilesFilterComboBox.setCurrentIndex(\ - self.openFilesFilterComboBox.findText(\ + self.openFilesFilterComboBox.setCurrentIndex( + self.openFilesFilterComboBox.findText( Preferences.getEditor("DefaultOpenFilter"))) - self.saveFilesFilterComboBox.setCurrentIndex(\ - self.saveFilesFilterComboBox.findText(\ + self.saveFilesFilterComboBox.setCurrentIndex( + self.saveFilesFilterComboBox.findText( Preferences.getEditor("DefaultSaveFilter"))) - self.automaticEolConversionCheckBox.setChecked(\ + self.automaticEolConversionCheckBox.setChecked( Preferences.getEditor("AutomaticEOLConversion")) eolMode = Preferences.getEditor("EOLMode") @@ -118,4 +118,4 @@ @param dlg reference to the configuration dialog """ page = EditorFilePage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/EditorGeneralPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/EditorGeneralPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -25,19 +25,19 @@ self.setObjectName("EditorGeneralPage") # set initial values - self.tabwidthSlider.setValue(\ + self.tabwidthSlider.setValue( Preferences.getEditor("TabWidth")) - self.indentwidthSlider.setValue(\ + self.indentwidthSlider.setValue( Preferences.getEditor("IndentWidth")) - self.indentguidesCheckBox.setChecked(\ + self.indentguidesCheckBox.setChecked( Preferences.getEditor("IndentationGuides")) - self.tabforindentationCheckBox.setChecked(\ + self.tabforindentationCheckBox.setChecked( Preferences.getEditor("TabForIndentation")) - self.tabindentsCheckBox.setChecked(\ + self.tabindentsCheckBox.setChecked( Preferences.getEditor("TabIndents")) - self.converttabsCheckBox.setChecked(\ + self.converttabsCheckBox.setChecked( Preferences.getEditor("ConvertTabsOnLoad")) - self.autoindentCheckBox.setChecked(\ + self.autoindentCheckBox.setChecked( Preferences.getEditor("AutoIndentation")) self.comment0CheckBox.setChecked( Preferences.getEditor("CommentColumn0")) @@ -80,4 +80,4 @@ @param dlg reference to the configuration dialog """ page = EditorGeneralPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/EditorHighlightersPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/EditorHighlightersPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -61,7 +61,7 @@ Public slot to save the Editor Highlighter Associations configuration. """ lexerAssocs = {} - for index in range(\ + for index in range( self.editorLexerList.topLevelItemCount()): itm = self.editorLexerList.topLevelItem(index) lexerAssocs[itm.text(0)] = itm.text(1) @@ -83,7 +83,7 @@ else: lexer = "Pygments|{0}".format(pygmentsLexer) if ext and lexer: - itmList = self.editorLexerList.findItems(\ + itmList = self.editorLexerList.findItems( ext, Qt.MatchFlags(Qt.MatchExactly), 0) if itmList: index = self.editorLexerList.indexOfTopLevelItem(itmList[0]) @@ -163,4 +163,4 @@ @param dlg reference to the configuration dialog """ page = EditorHighlightersPage(dlg.getLexers()) - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/EditorHighlightingStylesPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/EditorHighlightingStylesPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -289,7 +289,7 @@ """ on = self.trUtf8("Enabled") off = self.trUtf8("Disabled") - selection, ok = QInputDialog.getItem(\ + selection, ok = QInputDialog.getItem( self, self.trUtf8("Fill to end of line"), self.trUtf8("Select fill to end of line for all styles"), @@ -368,7 +368,7 @@ @param lexers list of lexer objects for which to export the styles """ - fn, selectedFilter = QFileDialog.getSaveFileNameAndFilter(\ + fn, selectedFilter = QFileDialog.getSaveFileNameAndFilter( self, self.trUtf8("Export Highlighting Styles"), "", @@ -403,7 +403,7 @@ @param lexers dictionary of lexer objects for which to import the styles """ - fn = QFileDialog.getOpenFileName(\ + fn = QFileDialog.getOpenFileName( self, self.trUtf8("Import Highlighting Styles"), "", @@ -511,4 +511,4 @@ @param dlg reference to the configuration dialog """ page = EditorHighlightingStylesPage(dlg.getLexers()) - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/EditorPropertiesPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/EditorPropertiesPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -32,51 +32,51 @@ # set initial values # All - self.allFoldCompactCheckBox.setChecked(\ + self.allFoldCompactCheckBox.setChecked( Preferences.getEditor("AllFoldCompact")) # Bash - self.foldBashCommentCheckBox.setChecked(\ + self.foldBashCommentCheckBox.setChecked( Preferences.getEditor("BashFoldComment")) # CMake - self.cmakeFoldAtElseCheckBox.setChecked(\ + self.cmakeFoldAtElseCheckBox.setChecked( Preferences.getEditor("CMakeFoldAtElse")) # C++ - self.foldCppCommentCheckBox.setChecked(\ + self.foldCppCommentCheckBox.setChecked( Preferences.getEditor("CppFoldComment")) - self.foldCppPreprocessorCheckBox.setChecked(\ + self.foldCppPreprocessorCheckBox.setChecked( Preferences.getEditor("CppFoldPreprocessor")) - self.foldCppAtElseCheckBox.setChecked(\ + self.foldCppAtElseCheckBox.setChecked( Preferences.getEditor("CppFoldAtElse")) - self.cppIndentOpeningBraceCheckBox.setChecked(\ + self.cppIndentOpeningBraceCheckBox.setChecked( Preferences.getEditor("CppIndentOpeningBrace")) - self.cppIndentClosingBraceCheckBox.setChecked(\ + self.cppIndentClosingBraceCheckBox.setChecked( Preferences.getEditor("CppIndentClosingBrace")) - self.cppCaseInsensitiveCheckBox.setChecked(\ + self.cppCaseInsensitiveCheckBox.setChecked( Preferences.getEditor("CppCaseInsensitiveKeywords")) self.cppDollarAllowedCheckBox.setChecked( Preferences.getEditor("CppDollarsAllowed")) # CSS - self.foldCssCommentCheckBox.setChecked(\ + self.foldCssCommentCheckBox.setChecked( Preferences.getEditor("CssFoldComment")) # D - self.foldDCommentCheckBox.setChecked(\ + self.foldDCommentCheckBox.setChecked( Preferences.getEditor("DFoldComment")) - self.foldDAtElseCheckBox.setChecked(\ + self.foldDAtElseCheckBox.setChecked( Preferences.getEditor("DFoldAtElse")) - self.dIndentOpeningBraceCheckBox.setChecked(\ + self.dIndentOpeningBraceCheckBox.setChecked( Preferences.getEditor("DIndentOpeningBrace")) - self.dIndentClosingBraceCheckBox.setChecked(\ + self.dIndentClosingBraceCheckBox.setChecked( Preferences.getEditor("DIndentClosingBrace")) # HTML - self.foldHtmlPreprocessorCheckBox.setChecked(\ + self.foldHtmlPreprocessorCheckBox.setChecked( Preferences.getEditor("HtmlFoldPreprocessor")) - self.htmlCaseSensitiveTagsCheckBox.setChecked(\ + self.htmlCaseSensitiveTagsCheckBox.setChecked( Preferences.getEditor("HtmlCaseSensitiveTags")) self.foldHtmlScriptCommentsCheckBox.setChecked( Preferences.getEditor("HtmlFoldScriptComments")) @@ -86,9 +86,9 @@ # Pascal if "Pascal" in self.languages: self.pascalGroup.setEnabled(True) - self.foldPascalCommentCheckBox.setChecked(\ + self.foldPascalCommentCheckBox.setChecked( Preferences.getEditor("PascalFoldComment")) - self.foldPascalPreprocessorCheckBox.setChecked(\ + self.foldPascalPreprocessorCheckBox.setChecked( Preferences.getEditor("PascalFoldPreprocessor")) if QSCINTILLA_VERSION() >= 0x020400: self.pascalSmartHighlightingCheckBox.setChecked( @@ -99,7 +99,7 @@ self.pascalGroup.setEnabled(False) # Perl - self.foldPerlCommentCheckBox.setChecked(\ + self.foldPerlCommentCheckBox.setChecked( Preferences.getEditor("PerlFoldComment")) self.foldPerlPackagesCheckBox.setChecked( Preferences.getEditor("PerlFoldPackages")) @@ -109,29 +109,29 @@ # PostScript if "PostScript" in self.languages: self.postscriptGroup.setEnabled(True) - self.psFoldAtElseCheckBox.setChecked(\ + self.psFoldAtElseCheckBox.setChecked( Preferences.getEditor("PostScriptFoldAtElse")) - self.psMarkTokensCheckBox.setChecked(\ + self.psMarkTokensCheckBox.setChecked( Preferences.getEditor("PostScriptTokenize")) - self.psLevelSpinBox.setValue(\ + self.psLevelSpinBox.setValue( Preferences.getEditor("PostScriptLevel")) else: self.postscriptGroup.setEnabled(False) # Povray - self.foldPovrayCommentCheckBox.setChecked(\ + self.foldPovrayCommentCheckBox.setChecked( Preferences.getEditor("PovFoldComment")) - self.foldPovrayDirectivesCheckBox.setChecked(\ + self.foldPovrayDirectivesCheckBox.setChecked( Preferences.getEditor("PovFoldDirectives")) # Python - self.foldPythonCommentCheckBox.setChecked(\ + self.foldPythonCommentCheckBox.setChecked( Preferences.getEditor("PythonFoldComment")) - self.foldPythonStringCheckBox.setChecked(\ + self.foldPythonStringCheckBox.setChecked( Preferences.getEditor("PythonFoldString")) - self.pythonBadIndentationCheckBox.setChecked(\ + self.pythonBadIndentationCheckBox.setChecked( Preferences.getEditor("PythonBadIndentation")) - self.pythonAutoindentCheckBox.setChecked(\ + self.pythonAutoindentCheckBox.setChecked( Preferences.getEditor("PythonAutoIndent")) self.pythonV2UnicodeAllowedCheckBox.setChecked( Preferences.getEditor("PythonAllowV2Unicode")) @@ -141,19 +141,19 @@ Preferences.getEditor("PythonAllowV3Bytes")) # SQL - self.foldSqlCommentCheckBox.setChecked(\ + self.foldSqlCommentCheckBox.setChecked( Preferences.getEditor("SqlFoldComment")) - self.sqlBackslashEscapesCheckBox.setChecked(\ + self.sqlBackslashEscapesCheckBox.setChecked( Preferences.getEditor("SqlBackslashEscapes")) # VHDL - self.vhdlFoldCommentCheckBox.setChecked(\ + self.vhdlFoldCommentCheckBox.setChecked( Preferences.getEditor("VHDLFoldComment")) - self.vhdlFoldAtElseCheckBox.setChecked(\ + self.vhdlFoldAtElseCheckBox.setChecked( Preferences.getEditor("VHDLFoldAtElse")) - self.vhdlFoldAtBeginCheckBox.setChecked(\ + self.vhdlFoldAtBeginCheckBox.setChecked( Preferences.getEditor("VHDLFoldAtBegin")) - self.vhdlFoldAtParenthesisCheckBox.setChecked(\ + self.vhdlFoldAtParenthesisCheckBox.setChecked( Preferences.getEditor("VHDLFoldAtParenthesis")) # XML @@ -163,7 +163,7 @@ # YAML if "YAML" in self.languages: self.yamlGroup.setEnabled(True) - self.foldYamlCommentCheckBox.setChecked(\ + self.foldYamlCommentCheckBox.setChecked( Preferences.getEditor("YAMLFoldComment")) else: self.yamlGroup.setEnabled(False) @@ -304,4 +304,4 @@ @param dlg reference to the configuration dialog """ page = EditorPropertiesPage(dlg.getLexers()) - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/EditorSearchPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/EditorSearchPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -29,11 +29,11 @@ self.editorColours = {} # set initial values - self.searchMarkersEnabledCheckBox.setChecked(\ + self.searchMarkersEnabledCheckBox.setChecked( Preferences.getEditor("SearchMarkersEnabled")) - self.quicksearchMarkersEnabledCheckBox.setChecked(\ + self.quicksearchMarkersEnabledCheckBox.setChecked( Preferences.getEditor("QuickSearchMarkersEnabled")) - self.occurrencesMarkersEnabledCheckBox.setChecked(\ + self.occurrencesMarkersEnabledCheckBox.setChecked( Preferences.getEditor("MarkOccurrencesEnabled")) self.markOccurrencesTimeoutSpinBox.setValue( @@ -76,4 +76,4 @@ @param dlg reference to the configuration dialog """ page = EditorSearchPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/EditorSpellCheckingPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/EditorSpellCheckingPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -65,7 +65,7 @@ self.pelEdit.setText(Preferences.getEditor("SpellCheckingPersonalExcludeList")) if self.spellingFrame.isEnabled(): - self.enabledCheckBox.setChecked(\ + self.enabledCheckBox.setChecked( Preferences.getEditor("AutoSpellCheckingEnabled")) else: self.enabledCheckBox.setChecked(False) # not available @@ -110,7 +110,7 @@ """ Private method to select the personal word list file. """ - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( self, self.trUtf8("Select personal word list"), self.pwlEdit.text(), @@ -124,7 +124,7 @@ """ Private method to select the personal exclude list file. """ - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( self, self.trUtf8("Select personal exclude list"), self.pelEdit.text(), @@ -140,4 +140,4 @@ @param dlg reference to the configuration dialog """ page = EditorSpellCheckingPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/EditorStylesPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/EditorStylesPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -59,26 +59,26 @@ self.defaultFontSample.setFont(self.defaultFont) self.monospacedFont = Preferences.getEditorOtherFonts("MonospacedFont") self.monospacedFontSample.setFont(self.monospacedFont) - self.monospacedCheckBox.setChecked(\ + self.monospacedCheckBox.setChecked( Preferences.getEditor("UseMonospacedFont")) - self.linenowidthSlider.setValue(\ + self.linenowidthSlider.setValue( Preferences.getEditor("LinenoWidth")) - self.linenoCheckBox.setChecked(\ + self.linenoCheckBox.setChecked( Preferences.getEditor("LinenoMargin")) - self.foldingCheckBox.setChecked(\ + self.foldingCheckBox.setChecked( Preferences.getEditor("FoldingMargin")) - self.unifiedMarginsCheckBox.setChecked(\ + self.unifiedMarginsCheckBox.setChecked( Preferences.getEditor("UnifiedMargins")) - self.caretlineVisibleCheckBox.setChecked(\ + self.caretlineVisibleCheckBox.setChecked( Preferences.getEditor("CaretLineVisible")) - self.caretWidthSpinBox.setValue(\ + self.caretWidthSpinBox.setValue( Preferences.getEditor("CaretWidth")) - self.colourizeSelTextCheckBox.setChecked(\ + self.colourizeSelTextCheckBox.setChecked( Preferences.getEditor("ColourizeSelText")) - self.customSelColourCheckBox.setChecked(\ + self.customSelColourCheckBox.setChecked( Preferences.getEditor("CustomSelectionColours")) - self.extentSelEolCheckBox.setChecked(\ + self.extentSelEolCheckBox.setChecked( Preferences.getEditor("ExtendSelectionToEol")) self.editorColours["CaretForeground"] = \ @@ -116,18 +116,18 @@ Preferences.getEditorColour) self.eolCheckBox.setChecked(Preferences.getEditor("ShowEOL")) - self.wrapLongLinesCheckBox.setChecked(\ + self.wrapLongLinesCheckBox.setChecked( Preferences.getEditor("WrapLongLines")) self.edgeModeCombo.setCurrentIndex( self.edgeModes.index(Preferences.getEditor("EdgeMode"))) - self.edgeLineColumnSlider.setValue(\ + self.edgeLineColumnSlider.setValue( Preferences.getEditor("EdgeColumn")) self.editorColours["Edge"] = \ self.initColour("Edge", self.edgeBackgroundColorButton, Preferences.getEditorColour) - self.bracehighlightingCheckBox.setChecked(\ + self.bracehighlightingCheckBox.setChecked( Preferences.getEditor("BraceHighlighting")) self.editorColours["MatchingBrace"] = \ self.initColour("MatchingBrace", self.matchingBracesButton, @@ -145,9 +145,9 @@ self.zoomfactorSlider.setValue( Preferences.getEditor("ZoomFactor")) - self.whitespaceCheckBox.setChecked(\ + self.whitespaceCheckBox.setChecked( Preferences.getEditor("ShowWhitespace")) - self.miniMenuCheckBox.setChecked(\ + self.miniMenuCheckBox.setChecked( Preferences.getEditor("MiniContextMenu")) def save(self): @@ -386,4 +386,4 @@ @param dlg reference to the configuration dialog """ page = EditorStylesPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/EditorTypingPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/EditorTypingPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -36,49 +36,49 @@ self.languageCombo.addItem(language, self.pageIds[language]) # Python - self.pythonGroup.setChecked(\ + self.pythonGroup.setChecked( Preferences.getEditorTyping("Python/EnabledTypingAids")) - self.pythonInsertClosingBraceCheckBox.setChecked(\ + self.pythonInsertClosingBraceCheckBox.setChecked( Preferences.getEditorTyping("Python/InsertClosingBrace")) - self.pythonSkipBraceCheckBox.setChecked(\ + self.pythonSkipBraceCheckBox.setChecked( Preferences.getEditorTyping("Python/SkipBrace")) - self.pythonIndentBraceCheckBox.setChecked(\ + self.pythonIndentBraceCheckBox.setChecked( Preferences.getEditorTyping("Python/IndentBrace")) - self.pythonInsertQuoteCheckBox.setChecked(\ + self.pythonInsertQuoteCheckBox.setChecked( Preferences.getEditorTyping("Python/InsertQuote")) - self.pythonDedentElseCheckBox.setChecked(\ + self.pythonDedentElseCheckBox.setChecked( Preferences.getEditorTyping("Python/DedentElse")) - self.pythonDedentExceptCheckBox.setChecked(\ + self.pythonDedentExceptCheckBox.setChecked( Preferences.getEditorTyping("Python/DedentExcept")) - self.pythonDedentExceptPy24CheckBox.setChecked(\ + self.pythonDedentExceptPy24CheckBox.setChecked( Preferences.getEditorTyping("Python/Py24StyleTry")) - self.pythonInsertImportCheckBox.setChecked(\ + self.pythonInsertImportCheckBox.setChecked( Preferences.getEditorTyping("Python/InsertImport")) - self.pythonInsertSelfCheckBox.setChecked(\ + self.pythonInsertSelfCheckBox.setChecked( Preferences.getEditorTyping("Python/InsertSelf")) - self.pythonInsertBlankCheckBox.setChecked(\ + self.pythonInsertBlankCheckBox.setChecked( Preferences.getEditorTyping("Python/InsertBlank")) - self.pythonColonDetectionCheckBox.setChecked(\ + self.pythonColonDetectionCheckBox.setChecked( Preferences.getEditorTyping("Python/ColonDetection")) self.pythonDedentDefCheckBox.setChecked( Preferences.getEditorTyping("Python/DedentDef")) # Ruby - self.rubyGroup.setChecked(\ + self.rubyGroup.setChecked( Preferences.getEditorTyping("Ruby/EnabledTypingAids")) - self.rubyInsertClosingBraceCheckBox.setChecked(\ + self.rubyInsertClosingBraceCheckBox.setChecked( Preferences.getEditorTyping("Ruby/InsertClosingBrace")) - self.rubySkipBraceCheckBox.setChecked(\ + self.rubySkipBraceCheckBox.setChecked( Preferences.getEditorTyping("Ruby/SkipBrace")) - self.rubyIndentBraceCheckBox.setChecked(\ + self.rubyIndentBraceCheckBox.setChecked( Preferences.getEditorTyping("Ruby/IndentBrace")) - self.rubyInsertQuoteCheckBox.setChecked(\ + self.rubyInsertQuoteCheckBox.setChecked( Preferences.getEditorTyping("Ruby/InsertQuote")) - self.rubyInsertBlankCheckBox.setChecked(\ + self.rubyInsertBlankCheckBox.setChecked( Preferences.getEditorTyping("Ruby/InsertBlank")) - self.rubyInsertHereDocCheckBox.setChecked(\ + self.rubyInsertHereDocCheckBox.setChecked( Preferences.getEditorTyping("Ruby/InsertHereDoc")) - self.rubyInsertInlineDocCheckBox.setChecked(\ + self.rubyInsertInlineDocCheckBox.setChecked( Preferences.getEditorTyping("Ruby/InsertInlineDoc")) self.on_languageCombo_activated(' ') @@ -153,4 +153,4 @@ @param dlg reference to the configuration dialog """ page = EditorTypingPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/EmailPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/EmailPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -29,12 +29,12 @@ self.portSpin.setValue(Preferences.getUser("MailServerPort")) self.emailEdit.setText(Preferences.getUser("Email")) self.signatureEdit.setPlainText(Preferences.getUser("Signature")) - self.mailAuthenticationCheckBox.setChecked(\ + self.mailAuthenticationCheckBox.setChecked( Preferences.getUser("MailServerAuthentication")) self.mailUserEdit.setText(Preferences.getUser("MailServerUser")) - self.mailPasswordEdit.setText(\ + self.mailPasswordEdit.setText( Preferences.getUser("MailServerPassword")) - self.useTlsCheckBox.setChecked(\ + self.useTlsCheckBox.setChecked( Preferences.getUser("MailServerUseTLS")) def save(self): @@ -65,4 +65,4 @@ @param dlg reference to the configuration dialog """ page = EmailPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/HelpAppearancePage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/HelpAppearancePage.py Sat Sep 04 19:51:48 2010 +0200 @@ -100,7 +100,7 @@ """ Private slot to handle the user style sheet selection. """ - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( self, self.trUtf8("Select Style Sheet"), self.styleSheetEdit.text(), @@ -116,4 +116,4 @@ @param dlg reference to the configuration dialog """ page = HelpAppearancePage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/HelpDocumentationPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/HelpDocumentationPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -43,13 +43,13 @@ self.pysideGroup.setEnabled(False) # set initial values - self.pythonDocDirEdit.setText(\ + self.pythonDocDirEdit.setText( Preferences.getHelp("PythonDocDir")) - self.qt4DocDirEdit.setText(\ + self.qt4DocDirEdit.setText( Preferences.getHelp("Qt4DocDir")) - self.pyqt4DocDirEdit.setText(\ + self.pyqt4DocDirEdit.setText( Preferences.getHelp("PyQt4DocDir")) - self.pysideDocDirEdit.setText(\ + self.pysideDocDirEdit.setText( Preferences.getHelp("PySideDocDir")) def save(self): @@ -70,7 +70,7 @@ """ Private slot to select the Python documentation directory. """ - entry = QFileDialog.getOpenFileName(\ + entry = QFileDialog.getOpenFileName( self, self.trUtf8("Select Python documentation entry"), QUrl(self.pythonDocDirEdit.text()).path(), @@ -86,7 +86,7 @@ """ Private slot to select the Qt4 documentation directory. """ - entry = QFileDialog.getOpenFileName(\ + entry = QFileDialog.getOpenFileName( self, self.trUtf8("Select Qt4 documentation entry"), QUrl(self.qt4DocDirEdit.text()).path(), @@ -100,7 +100,7 @@ """ Private slot to select the PyQt4 documentation directory. """ - entry = QFileDialog.getOpenFileName(\ + entry = QFileDialog.getOpenFileName( self, self.trUtf8("Select PyQt4 documentation entry"), QUrl(self.pyqt4DocDirEdit.text()).path(), @@ -114,7 +114,7 @@ """ Private slot to select the PySide documentation directory. """ - entry = QFileDialog.getOpenFileName(\ + entry = QFileDialog.getOpenFileName( self, self.trUtf8("Select PySide documentation entry"), QUrl(self.pysideDocDirEdit.text()).path(), @@ -130,4 +130,4 @@ @param dlg reference to the configuration dialog """ page = HelpDocumentationPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/HelpViewersPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/HelpViewersPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -48,7 +48,7 @@ self.webBrowserButton.setChecked(True) else: self.customViewerButton.setChecked(True) - self.customViewerEdit.setText(\ + self.customViewerEdit.setText( Preferences.getHelp("CustomViewer")) def save(self): @@ -72,7 +72,7 @@ """ Private slot to handle the custom viewer selection. """ - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( self, self.trUtf8("Select Custom Viewer"), self.customViewerEdit.text(), @@ -86,7 +86,7 @@ """ Private slot to handle the Web browser selection. """ - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( self, self.trUtf8("Select Web-Browser"), self.webbrowserEdit.text(), @@ -100,7 +100,7 @@ """ Private slot to handle the PDF viewer selection. """ - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( self, self.trUtf8("Select PDF-Viewer"), self.pdfviewerEdit.text(), @@ -114,7 +114,7 @@ """ Private slot to handle the CHM viewer selection. """ - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( self, self.trUtf8("Select CHM-Viewer"), self.chmviewerEdit.text(), @@ -130,4 +130,4 @@ @param dlg reference to the configuration dialog """ page = HelpViewersPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/IconsPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/IconsPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -58,7 +58,7 @@ self.deleteIconDirectoryButton.setEnabled(False) self.upButton.setEnabled(False) self.downButton.setEnabled(False) - self.showIconsButton.setEnabled(\ + self.showIconsButton.setEnabled( self.iconDirectoryEdit.text() != "") else: maxIndex = self.iconDirectoryList.count() - 1 @@ -121,7 +121,7 @@ """ Private slot to select an icon directory. """ - dir = QFileDialog.getExistingDirectory(\ + dir = QFileDialog.getExistingDirectory( None, self.trUtf8("Select icon directory"), "", @@ -174,4 +174,4 @@ @param dlg reference to the configuration dialog """ page = IconsPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/InterfacePage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/InterfacePage.py Sat Sep 04 19:51:48 2010 +0200 @@ -57,7 +57,7 @@ self.uiCaptionShowsFilenameGroupBox.setChecked( Preferences.getUI("CaptionShowsFilename")) - self.filenameLengthSpinBox.setValue(\ + self.filenameLengthSpinBox.setValue( Preferences.getUI("CaptionFilenameLength")) self.styleSheetEdit.setText(Preferences.getUI("StyleSheet")) @@ -247,7 +247,7 @@ """ Private method to select the style sheet file via a dialog. """ - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( self, self.trUtf8("Select style sheet file"), self.styleSheetEdit.text(), @@ -280,4 +280,4 @@ @param dlg reference to the configuration dialog """ page = InterfacePage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/MultiProjectPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/MultiProjectPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -25,9 +25,9 @@ self.setObjectName("MultiProjectPage") # set initial values - self.openMasterAutomaticallyCheckBox.setChecked(\ + self.openMasterAutomaticallyCheckBox.setChecked( Preferences.getMultiProject("OpenMasterAutomatically")) - self.multiProjectTimestampCheckBox.setChecked(\ + self.multiProjectTimestampCheckBox.setChecked( Preferences.getMultiProject("XMLTimestamp")) self.multiProjectRecentSpinBox.setValue( Preferences.getMultiProject("RecentNumber")) @@ -50,4 +50,4 @@ @param dlg reference to the configuration dialog """ page = MultiProjectPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/NetworkPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/NetworkPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -39,7 +39,7 @@ self.requestFilenameCheckBox.setChecked( Preferences.getUI("RequestDownloadFilename")) - self.proxyGroup.setChecked(\ + self.proxyGroup.setChecked( Preferences.getUI("UseProxy")) if Preferences.getUI("UseSystemProxy"): self.systemProxyButton.setChecked(True) @@ -47,17 +47,17 @@ self.manualProxyButton.setChecked(True) self.httpProxyForAllCheckBox.setChecked( Preferences.getUI("UseHttpProxyForAll")) - self.httpProxyHostEdit.setText(\ + self.httpProxyHostEdit.setText( Preferences.getUI("ProxyHost/Http")) - self.httpsProxyHostEdit.setText(\ + self.httpsProxyHostEdit.setText( Preferences.getUI("ProxyHost/Https")) - self.ftpProxyHostEdit.setText(\ + self.ftpProxyHostEdit.setText( Preferences.getUI("ProxyHost/Ftp")) - self.httpProxyPortSpin.setValue(\ + self.httpProxyPortSpin.setValue( Preferences.getUI("ProxyPort/Http")) - self.httpsProxyPortSpin.setValue(\ + self.httpsProxyPortSpin.setValue( Preferences.getUI("ProxyPort/Https")) - self.ftpProxyPortSpin.setValue(\ + self.ftpProxyPortSpin.setValue( Preferences.getUI("ProxyPort/Ftp")) def save(self): @@ -93,7 +93,7 @@ """ Private slot to handle the directory selection via dialog. """ - directory = QFileDialog.getExistingDirectory(\ + directory = QFileDialog.getExistingDirectory( self, self.trUtf8("Select download directory"), self.downloadDirEdit.text(), @@ -112,4 +112,4 @@ @param dlg reference to the configuration dialog """ page = NetworkPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/PluginManagerPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/PluginManagerPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -35,9 +35,9 @@ self.downloadDirCompleter = E5DirCompleter(self.downloadDirEdit) # set initial values - self.activateExternalPluginsCheckBox.setChecked(\ + self.activateExternalPluginsCheckBox.setChecked( Preferences.getPluginManager("ActivateExternal")) - self.downloadDirEdit.setText(\ + self.downloadDirEdit.setText( Preferences.getPluginManager("DownloadPath")) def save(self): @@ -54,7 +54,7 @@ """ Private slot to handle the directory selection via dialog. """ - directory = QFileDialog.getExistingDirectory(\ + directory = QFileDialog.getExistingDirectory( self, self.trUtf8("Select plugins download directory"), self.downloadDirEdit.text(), @@ -73,4 +73,4 @@ @param dlg reference to the configuration dialog """ page = PluginManagerPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/PrinterPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/PrinterPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -27,7 +27,7 @@ self.setObjectName("PrinterPage") # set initial values - self.printerNameEdit.setText(\ + self.printerNameEdit.setText( Preferences.getPrinter("PrinterName")) if Preferences.getPrinter("ColorMode"): self.printerColorButton.setChecked(True) @@ -37,17 +37,17 @@ self.printFirstPageFirstButton.setChecked(True) else: self.printFirstPageLastButton.setChecked(True) - self.printMagnificationSpinBox.setValue(\ + self.printMagnificationSpinBox.setValue( Preferences.getPrinter("Magnification")) self.printheaderFont = Preferences.getPrinter("HeaderFont") self.printheaderFontSample.setFont(self.printheaderFont) - self.leftMarginSpinBox.setValue(\ + self.leftMarginSpinBox.setValue( Preferences.getPrinter("LeftMargin")) - self.rightMarginSpinBox.setValue(\ + self.rightMarginSpinBox.setValue( Preferences.getPrinter("RightMargin")) - self.topMarginSpinBox.setValue(\ + self.topMarginSpinBox.setValue( Preferences.getPrinter("TopMargin")) - self.bottomMarginSpinBox.setValue(\ + self.bottomMarginSpinBox.setValue( Preferences.getPrinter("BottomMargin")) def save(self): @@ -97,4 +97,4 @@ @param dlg reference to the configuration dialog """ page = PrinterPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/ProjectBrowserPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/ProjectBrowserPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -52,9 +52,9 @@ self.initColour("Highlighted", self.pbHighlightedButton, Preferences.getProjectBrowserColour) - self.followEditorCheckBox.setChecked(\ + self.followEditorCheckBox.setChecked( Preferences.getProject("FollowEditor")) - self.hideGeneratedCheckBox.setChecked(\ + self.hideGeneratedCheckBox.setChecked( Preferences.getProject("HideGeneratedForms")) def save(self): @@ -70,7 +70,7 @@ self.hideGeneratedCheckBox.isChecked()) if self.pbGroup.isEnabled(): - self.__storeProjectBrowserFlags(\ + self.__storeProjectBrowserFlags( self.projectTypeCombo.itemData(self.__currentProjectTypeIndex)) for projectType, flags in list(self.__projectBrowserFlags.items()): if projectType != '': @@ -134,9 +134,9 @@ if self.__currentProjectTypeIndex == index: return - self.__storeProjectBrowserFlags(\ + self.__storeProjectBrowserFlags( self.projectTypeCombo.itemData(self.__currentProjectTypeIndex)) - self.__setProjectBrowsersCheckBoxes(\ + self.__setProjectBrowsersCheckBoxes( self.projectTypeCombo.itemData(index)) self.__currentProjectTypeIndex = index @@ -147,4 +147,4 @@ @param dlg reference to the configuration dialog """ page = ProjectBrowserPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/ProjectPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/ProjectPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -25,29 +25,29 @@ self.setObjectName("ProjectPage") # set initial values - self.projectCompressedProjectFilesCheckBox.setChecked(\ + self.projectCompressedProjectFilesCheckBox.setChecked( Preferences.getProject("CompressedProjectFiles")) - self.projectSearchNewFilesRecursiveCheckBox.setChecked(\ + self.projectSearchNewFilesRecursiveCheckBox.setChecked( Preferences.getProject("SearchNewFilesRecursively")) - self.projectSearchNewFilesCheckBox.setChecked(\ + self.projectSearchNewFilesCheckBox.setChecked( Preferences.getProject("SearchNewFiles")) - self.projectAutoIncludeNewFilesCheckBox.setChecked(\ + self.projectAutoIncludeNewFilesCheckBox.setChecked( Preferences.getProject("AutoIncludeNewFiles")) - self.projectLoadSessionCheckBox.setChecked(\ + self.projectLoadSessionCheckBox.setChecked( Preferences.getProject("AutoLoadSession")) - self.projectSaveSessionCheckBox.setChecked(\ + self.projectSaveSessionCheckBox.setChecked( Preferences.getProject("AutoSaveSession")) - self.projectSessionAllBpCheckBox.setChecked(\ + self.projectSessionAllBpCheckBox.setChecked( Preferences.getProject("SessionAllBreakpoints")) - self.projectLoadDebugPropertiesCheckBox.setChecked(\ + self.projectLoadDebugPropertiesCheckBox.setChecked( Preferences.getProject("AutoLoadDbgProperties")) - self.projectSaveDebugPropertiesCheckBox.setChecked(\ + self.projectSaveDebugPropertiesCheckBox.setChecked( Preferences.getProject("AutoSaveDbgProperties")) - self.projectAutoCompileFormsCheckBox.setChecked(\ + self.projectAutoCompileFormsCheckBox.setChecked( Preferences.getProject("AutoCompileForms")) - self.projectAutoCompileResourcesCheckBox.setChecked(\ + self.projectAutoCompileResourcesCheckBox.setChecked( Preferences.getProject("AutoCompileResources")) - self.projectTimestampCheckBox.setChecked(\ + self.projectTimestampCheckBox.setChecked( Preferences.getProject("XMLTimestamp")) self.projectRecentSpinBox.setValue( Preferences.getProject("RecentNumber")) @@ -90,4 +90,4 @@ @param dlg reference to the configuration dialog """ page = ProjectPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/PythonPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/PythonPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -29,10 +29,10 @@ self.ioEncodingComboBox.addItems(sorted(supportedCodecs)) # set initial values - index = self.stringEncodingComboBox.findText(\ + index = self.stringEncodingComboBox.findText( Preferences.getSystem("StringEncoding")) self.stringEncodingComboBox.setCurrentIndex(index) - index = self.ioEncodingComboBox.findText(\ + index = self.ioEncodingComboBox.findText( Preferences.getSystem("IOEncoding")) self.ioEncodingComboBox.setCurrentIndex(index) @@ -68,4 +68,4 @@ @param dlg reference to the configuration dialog """ page = PythonPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/QtPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/QtPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -59,7 +59,7 @@ """ Private slot to handle the Qt4 directory selection. """ - dir = QFileDialog.getExistingDirectory(\ + dir = QFileDialog.getExistingDirectory( self, self.trUtf8("Select Qt4 Directory"), self.qt4Edit.text(), @@ -73,7 +73,7 @@ """ Private slot to handle the Qt4 translations directory selection. """ - dir = QFileDialog.getExistingDirectory(\ + dir = QFileDialog.getExistingDirectory( self, self.trUtf8("Select Qt4 Translations Directory"), self.qt4TransEdit.text(), @@ -115,4 +115,4 @@ @param dlg reference to the configuration dialog """ page = QtPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/ShellPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/ShellPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -46,7 +46,7 @@ self.monospacedFont = Preferences.getShell("MonospacedFont") self.monospacedFontSample.setFont(self.monospacedFont) - self.monospacedCheckBox.setChecked(\ + self.monospacedCheckBox.setChecked( Preferences.getShell("UseMonospacedFont")) self.marginsFont = Preferences.getShell("MarginsFont") self.marginsFontSample.setFont(self.marginsFont) @@ -106,4 +106,4 @@ @param dlg reference to the configuration dialog """ page = ShellPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/TasksPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/TasksPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -30,7 +30,7 @@ # set initial values self.tasksMarkerEdit.setText(Preferences.getTasks("TasksMarkers")) - self.tasksMarkerBugfixEdit.setText(\ + self.tasksMarkerBugfixEdit.setText( Preferences.getTasks("TasksMarkersBugfix")) self.tasksColours["TasksColour"] = \ @@ -97,4 +97,4 @@ @param dlg reference to the configuration dialog """ page = TasksPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/TemplatesPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/TemplatesPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -25,15 +25,15 @@ self.setObjectName("TemplatesPage") # set initial values - self.templatesAutoOpenGroupsCheckBox.setChecked(\ + self.templatesAutoOpenGroupsCheckBox.setChecked( Preferences.getTemplates("AutoOpenGroups")) - self.templatesSeparatorCharEdit.setText(\ + self.templatesSeparatorCharEdit.setText( Preferences.getTemplates("SeparatorChar")) if Preferences.getTemplates("SingleDialog"): self.templatesSingleDialogButton.setChecked(True) else: self.templatesMultiDialogButton.setChecked(True) - self.templatesToolTipCheckBox.setChecked(\ + self.templatesToolTipCheckBox.setChecked( Preferences.getTemplates("ShowTooltip")) def save(self): @@ -57,4 +57,4 @@ @param dlg reference to the configuration dialog """ page = TemplatesPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/TerminalPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/TerminalPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -33,18 +33,18 @@ self.shellCombo.addItems(["ash", "bash", "csh", "ksh", "sh", "tcsh", "zsh"]) # set initial values - self.linenowidthSlider.setValue(\ + self.linenowidthSlider.setValue( Preferences.getTerminal("LinenoWidth")) - self.linenoCheckBox.setChecked(\ + self.linenoCheckBox.setChecked( Preferences.getTerminal("LinenoMargin")) - self.syntaxHighlightingCheckBox.setChecked(\ + self.syntaxHighlightingCheckBox.setChecked( Preferences.getTerminal("SyntaxHighlightingEnabled")) - self.historySpinBox.setValue(\ + self.historySpinBox.setValue( Preferences.getTerminal("MaxHistoryEntries")) self.monospacedFont = Preferences.getTerminal("MonospacedFont") self.monospacedFontSample.setFont(self.monospacedFont) - self.monospacedCheckBox.setChecked(\ + self.monospacedCheckBox.setChecked( Preferences.getTerminal("UseMonospacedFont")) self.marginsFont = Preferences.getTerminal("MarginsFont") self.marginsFontSample.setFont(self.marginsFont) @@ -106,4 +106,4 @@ @param dlg reference to the configuration dialog """ page = TerminalPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/ViewmanagerPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/ViewmanagerPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -37,7 +37,7 @@ keys = sorted(self.viewmanagers.keys()) for key in keys: self.windowComboBox.addItem(self.trUtf8(self.viewmanagers[key]), key) - currentIndex = self.windowComboBox.findText(\ + currentIndex = self.windowComboBox.findText( self.trUtf8(self.viewmanagers[currentVm])) self.windowComboBox.setCurrentIndex(currentIndex) self.on_windowComboBox_activated(currentIndex) @@ -86,4 +86,4 @@ @param dlg reference to the configuration dialog """ page = ViewmanagerPage() - return page + return page \ No newline at end of file
--- a/Preferences/ShortcutsDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ShortcutsDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -295,7 +295,7 @@ if keystr == itmseq: res = E5MessageBox.yesNo(self, self.trUtf8("Edit shortcuts"), - self.trUtf8(\ + self.trUtf8( """<p><b>{0}</b> has already been allocated""" """ to the <b>{1}</b> action. """ """Remove this binding?</p>""") @@ -314,7 +314,7 @@ if itmseq.startswith("{0}+".format(keystr)): res = E5MessageBox.yesNo(self, self.trUtf8("Edit shortcuts"), - self.trUtf8(\ + self.trUtf8( """<p><b>{0}</b> hides the <b>{1}</b> action. """ """Remove this binding?</p>""") .format(keystr, itm.text(0)), @@ -329,7 +329,7 @@ if keystr.startswith("{0}+".format(itmseq)): res = E5MessageBox.yesNo(self, self.trUtf8("Edit shortcuts"), - self.trUtf8(\ + self.trUtf8( """<p><b>{0}</b> is hidden by the """ """<b>{1}</b> action. """ """Remove this binding?</p>""")
--- a/Preferences/ToolConfigurationDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ToolConfigurationDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -247,7 +247,7 @@ """ Private slot to handle the executable selection via a file selection dialog. """ - execfile = QFileDialog.getOpenFileName(\ + execfile = QFileDialog.getOpenFileName( self, self.trUtf8("Select executable"), self.executableEdit.text(), @@ -268,7 +268,7 @@ """ Private slot to handle the icon selection via a file selection dialog. """ - icon = QFileDialog.getOpenFileName(\ + icon = QFileDialog.getOpenFileName( self, self.trUtf8("Select icon file"), self.iconEdit.text(),
--- a/Preferences/__init__.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/__init__.py Sat Sep 04 19:51:48 2010 +0200 @@ -766,15 +766,15 @@ items = int(prefClass.settings.value( "Toolgroups/{0:02d}/Items".format(groupIndex), 0)) for ind in range(items): - menutext = prefClass.settings.value(\ + menutext = prefClass.settings.value( "Toolgroups/{0:02d}/{1:02d}/Menutext".format(groupIndex, ind)) - icon = prefClass.settings.value(\ + icon = prefClass.settings.value( "Toolgroups/{0:02d}/{1:02d}/Icon".format(groupIndex, ind)) - executable = prefClass.settings.value(\ + executable = prefClass.settings.value( "Toolgroups/{0:02d}/{1:02d}/Executable".format(groupIndex, ind)) - arguments = prefClass.settings.value(\ + arguments = prefClass.settings.value( "Toolgroups/{0:02d}/{1:02d}/Arguments".format(groupIndex, ind)) - redirect = prefClass.settings.value(\ + redirect = prefClass.settings.value( "Toolgroups/{0:02d}/{1:02d}/Redirect".format(groupIndex, ind)) if menutext: @@ -821,19 +821,19 @@ "Toolgroups/{0:02d}/Items".format(groupIndex), len(group[1])) ind = 0 for tool in group[1]: - prefClass.settings.setValue(\ + prefClass.settings.setValue( "Toolgroups/{0:02d}/{1:02d}/Menutext".format(groupIndex, ind), tool['menutext']) - prefClass.settings.setValue(\ + prefClass.settings.setValue( "Toolgroups/{0:02d}/{1:02d}/Icon".format(groupIndex, ind), tool['icon']) - prefClass.settings.setValue(\ + prefClass.settings.setValue( "Toolgroups/{0:02d}/{1:02d}/Executable".format(groupIndex, ind), tool['executable']) - prefClass.settings.setValue(\ + prefClass.settings.setValue( "Toolgroups/{0:02d}/{1:02d}/Arguments".format(groupIndex, ind), tool['arguments']) - prefClass.settings.setValue(\ + prefClass.settings.setValue( "Toolgroups/{0:02d}/{1:02d}/Redirect".format(groupIndex, ind), tool['redirect']) ind += 1 @@ -872,7 +872,7 @@ @param prefClass preferences class used as the storage area """ - filename = QtGui.QFileDialog.getSaveFileName(\ + filename = QtGui.QFileDialog.getSaveFileName( None, QtCore.QCoreApplication.translate("Preferences", "Export Preferences"), "", @@ -891,7 +891,7 @@ @param prefClass preferences class used as the storage area """ - filename = QtGui.QFileDialog.getOpenFileName(\ + filename = QtGui.QFileDialog.getOpenFileName( None, QtCore.QCoreApplication.translate("Preferences", "Import Preferences"), "", @@ -1045,7 +1045,7 @@ @return the UI layout as a tuple of main layout, flag for an embedded shell and a value for an embedded file browser """ - layout = (\ + layout = ( prefClass.settings.value("UI/LayoutType", prefClass.uiDefaults["LayoutType"]), toBool(prefClass.settings.value("UI/LayoutShellEmbedded", @@ -1135,12 +1135,12 @@ # adjust entries for individual windows vpLength = len(viewProfiles[name][0]) if vpLength < prefClass.viewProfilesLength: - viewProfiles[name][0].extend(\ + viewProfiles[name][0].extend( prefClass.uiDefaults["ViewProfiles"][name][0][vpLength:]) vpLength = len(viewProfiles[name][2]) if vpLength < prefClass.viewProfilesLength: - viewProfiles[name][2].extend(\ + viewProfiles[name][2].extend( prefClass.uiDefaults["ViewProfiles"][name][2][vpLength:]) # adjust profile @@ -1152,11 +1152,11 @@ # adjust entries for toolboxes and sidebars vpLength = len(viewProfiles[name][5]) if vpLength < len(prefClass.uiDefaults["ViewProfiles"][name][5]): - viewProfiles[name][5].extend(\ + viewProfiles[name][5].extend( prefClass.uiDefaults["ViewProfiles"][name][5][vpLength:]) vpLength = len(viewProfiles[name][6]) if vpLength < len(prefClass.uiDefaults["ViewProfiles"][name][6]): - viewProfiles[name][6].extend(\ + viewProfiles[name][6].extend( prefClass.uiDefaults["ViewProfiles"][name][6][vpLength:]) else: viewProfiles = prefClass.uiDefaults["ViewProfiles"] @@ -2235,4 +2235,4 @@ return value initPreferences() -initRecentSettings() +initRecentSettings() \ No newline at end of file
--- a/Project/AddFoundFilesDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Project/AddFoundFilesDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -35,10 +35,10 @@ self.setObjectName(name) self.setupUi(self) - self.addAllButton = self.buttonBox.addButton(\ + self.addAllButton = self.buttonBox.addButton( self.trUtf8("Add All"), QDialogButtonBox.AcceptRole) self.addAllButton.setToolTip(self.trUtf8("Add all files.")) - self.addSelectedButton = self.buttonBox.addButton(\ + self.addSelectedButton = self.buttonBox.addButton( self.trUtf8("Add Selected"), QDialogButtonBox.AcceptRole) self.addSelectedButton.setToolTip(self.trUtf8("Add selected files only.")) @@ -82,4 +82,4 @@ list_ = [] for itm in self.fileList.selectedItems(): list_.append(itm.text()) - return list_ + return list_ \ No newline at end of file
--- a/Project/CreateDialogCodeDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Project/CreateDialogCodeDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -249,7 +249,7 @@ itm2.setData(pyqtSignature, pyqtSignatureRole) itm2.setData(pythonSignature, pythonSignatureRole) - itm2.setFlags(Qt.ItemFlags(\ + itm2.setFlags(Qt.ItemFlags( Qt.ItemIsUserCheckable | \ Qt.ItemIsEnabled | \ Qt.ItemIsSelectable)
--- a/Project/DebuggerPropertiesDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Project/DebuggerPropertiesDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -67,29 +67,29 @@ else: debugClient = "" self.debugClientEdit.setText(debugClient) - self.debugEnvironmentOverrideCheckBox.setChecked(\ + self.debugEnvironmentOverrideCheckBox.setChecked( self.project.debugProperties["ENVIRONMENTOVERRIDE"]) - self.debugEnvironmentEdit.setText(\ + self.debugEnvironmentEdit.setText( self.project.debugProperties["ENVIRONMENTSTRING"]) - self.remoteDebuggerGroup.setChecked(\ + self.remoteDebuggerGroup.setChecked( self.project.debugProperties["REMOTEDEBUGGER"]) - self.remoteHostEdit.setText(\ + self.remoteHostEdit.setText( self.project.debugProperties["REMOTEHOST"]) - self.remoteCommandEdit.setText(\ + self.remoteCommandEdit.setText( self.project.debugProperties["REMOTECOMMAND"]) - self.pathTranslationGroup.setChecked(\ + self.pathTranslationGroup.setChecked( self.project.debugProperties["PATHTRANSLATION"]) - self.translationRemoteEdit.setText(\ + self.translationRemoteEdit.setText( self.project.debugProperties["REMOTEPATH"]) - self.translationLocalEdit.setText(\ + self.translationLocalEdit.setText( self.project.debugProperties["LOCALPATH"]) - self.consoleDebuggerGroup.setChecked(\ + self.consoleDebuggerGroup.setChecked( self.project.debugProperties["CONSOLEDEBUGGER"]) - self.consoleCommandEdit.setText(\ + self.consoleCommandEdit.setText( self.project.debugProperties["CONSOLECOMMAND"]) - self.redirectCheckBox.setChecked(\ + self.redirectCheckBox.setChecked( self.project.debugProperties["REDIRECT"]) - self.noEncodingCheckBox.setChecked(\ + self.noEncodingCheckBox.setChecked( self.project.debugProperties["NOENCODING"]) @pyqtSlot() @@ -97,7 +97,7 @@ """ Private slot to handle the interpreter selection. """ - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( self, self.trUtf8("Select interpreter for Debug Client"), self.interpreterEdit.text(), @@ -113,7 +113,7 @@ """ filters = self.project.dbgFilters[self.project.pdata["PROGLANGUAGE"][0]] filters += self.trUtf8("All Files (*)") - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( self, self.trUtf8("Select Debug Client"), self.debugClientEdit.text(),
--- a/Project/FiletypeAssociationDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Project/FiletypeAssociationDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -99,10 +99,10 @@ pattern = self.filePatternEdit.text() filetype = self.filetypeCombo.currentText() if pattern: - items = self.filetypeAssociationList.findItems(\ + items = self.filetypeAssociationList.findItems( pattern, Qt.MatchFlags(Qt.MatchExactly), 0) for itm in items: - itm = self.filetypeAssociationList.takeTopLevelItem(\ + itm = self.filetypeAssociationList.takeTopLevelItem( self.filetypeAssociationList.indexOfTopLevelItem(itm)) del itm itm = self.__createItem(pattern, filetype) @@ -118,7 +118,7 @@ Private slot to delete the currently selected association of the listbox. """ for itm in self.filetypeAssociationList.selectedItems(): - itm = self.filetypeAssociationList.takeTopLevelItem(\ + itm = self.filetypeAssociationList.takeTopLevelItem( self.filetypeAssociationList.indexOfTopLevelItem(itm)) del itm @@ -140,7 +140,7 @@ if len(self.filetypeAssociationList.selectedItems()) == 0: self.deleteAssociationButton.setEnabled(False) else: - self.deleteAssociationButton.setEnabled(\ + self.deleteAssociationButton.setEnabled( self.filetypeAssociationList.selectedItems()[0].text(0) == txt) def transferData(self): @@ -152,4 +152,4 @@ itm = self.filetypeAssociationList.topLevelItem(index) pattern = itm.text(0) index = self.filetypeStrings.index(itm.text(1)) - self.project.pdata["FILETYPES"][pattern] = self.filetypes[index] + self.project.pdata["FILETYPES"][pattern] = self.filetypes[index] \ No newline at end of file
--- a/Project/LexerAssociationDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Project/LexerAssociationDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -72,7 +72,7 @@ else: lexer = "Pygments|{0}".format(pygmentsLexer) if ext and lexer: - itmList = self.editorLexerList.findItems(\ + itmList = self.editorLexerList.findItems( ext, Qt.MatchFlags(Qt.MatchExactly), 0) if itmList: index = self.editorLexerList.indexOfTopLevelItem(itmList[0]) @@ -155,4 +155,4 @@ for index in range(self.editorLexerList.topLevelItemCount()): itm = self.editorLexerList.topLevelItem(index) pattern = itm.text(0) - self.project.pdata["LEXERASSOCS"][pattern] = itm.text(1) + self.project.pdata["LEXERASSOCS"][pattern] = itm.text(1) \ No newline at end of file
--- a/Project/NewDialogClassDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Project/NewDialogClassDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -46,7 +46,7 @@ """ Private slot called to open a directory selection dialog. """ - path = QFileDialog.getExistingDirectory(\ + path = QFileDialog.getExistingDirectory( self, self.trUtf8("Select source directory"), QDir.fromNativeSeparators(self.pathnameEdit.text()), @@ -58,7 +58,7 @@ """ Private slot to set the enable state of theok button. """ - self.okButton.setEnabled(\ + self.okButton.setEnabled( self.classnameEdit.text() != "" and \ self.filenameEdit.text() != "" and \ self.pathnameEdit.text() != "")
--- a/Project/Project.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Project/Project.py Sat Sep 04 19:51:48 2010 +0200 @@ -191,10 +191,10 @@ } self.dbgFilters = { - "Python" : self.trUtf8(\ + "Python" : self.trUtf8( "Python Files (*.py2);;" "Python GUI Files (*.pyw2);;"), - "Python3" : self.trUtf8(\ + "Python3" : self.trUtf8( "Python3 Files (*.py *.py3);;" "Python3 GUI Files (*.pyw *.pyw3);;"), "Ruby" : self.trUtf8("Ruby Files (*.rb);;"), @@ -508,10 +508,10 @@ Public slot used to handle the preferencesChanged signal. """ if self.pudata["VCSSTATUSMONITORINTERVAL"]: - self.setStatusMonitorInterval(\ + self.setStatusMonitorInterval( self.pudata["VCSSTATUSMONITORINTERVAL"][0]) else: - self.setStatusMonitorInterval(\ + self.setStatusMonitorInterval( Preferences.getVCS("StatusMonitorInterval")) self.__model.preferencesChanged() @@ -2007,7 +2007,7 @@ isSourceFile = fn in self.pdata["SOURCES"] if newfn is None: - newfn = QFileDialog.getSaveFileName(\ + newfn = QFileDialog.getSaveFileName( None, self.trUtf8("Rename file"), os.path.dirname(oldfn), @@ -2372,7 +2372,7 @@ vcsList = [] for vcsSystemStr, vcsSystemDisplay in vcsData: vcsList.append(vcsSystemDisplay) - res, vcs_ok = QInputDialog.getItem(\ + res, vcs_ok = QInputDialog.getItem( None, self.trUtf8("New Project"), self.trUtf8("Select Version Control System"), @@ -2425,7 +2425,7 @@ keys = sorted(vcsSystemsDict.keys()) for key in keys: vcsSystemsDisplay.append(vcsSystemsDict[key]) - vcsSelected, ok = QInputDialog.getItem(\ + vcsSelected, ok = QInputDialog.getItem( None, self.trUtf8("New Project"), self.trUtf8("Select version control system for the project"), @@ -2519,7 +2519,7 @@ "{0}_%language%{1}".format(os.path.basename(tslist[0]).split('_')[0], os.path.splitext(tslist[0])[1]))] else: - pattern, ok = QInputDialog.getText(\ + pattern, ok = QInputDialog.getText( None, self.trUtf8("Translation Pattern"), self.trUtf8("Enter the path pattern for translation files " @@ -2633,10 +2633,10 @@ self.reinitVCS.emit() if self.pudata["VCSSTATUSMONITORINTERVAL"]: - self.setStatusMonitorInterval(\ + self.setStatusMonitorInterval( self.pudata["VCSSTATUSMONITORINTERVAL"][0]) else: - self.setStatusMonitorInterval(\ + self.setStatusMonitorInterval( Preferences.getVCS("StatusMonitorInterval")) def __showFiletypeAssociations(self): @@ -2694,7 +2694,7 @@ return if fn is None: - fn = QFileDialog.getOpenFileName(\ + fn = QFileDialog.getOpenFileName( self.parent(), self.trUtf8("Open project"), "", @@ -2739,7 +2739,7 @@ for vcsSystemStr, vcsSystemDisplay in vcsData: vcsList.append(vcsSystemDisplay) QApplication.restoreOverrideCursor() - res, vcs_ok = QInputDialog.getItem(\ + res, vcs_ok = QInputDialog.getItem( None, self.trUtf8("New Project"), self.trUtf8("Select Version Control System"), @@ -2858,7 +2858,7 @@ defaultFilter = self.trUtf8("Compressed Project Files (*.e4pz)") else: defaultFilter = self.trUtf8("Project Files (*.e4p)") - fn, selectedFilter = E5FileDialog.getSaveFileNameAndFilter(\ + fn, selectedFilter = E5FileDialog.getSaveFileNameAndFilter( self.parent(), self.trUtf8("Save project as"), self.ppath, @@ -3451,7 +3451,7 @@ self.filetypesAct = E5Action(self.trUtf8('Filetype Associations'), self.trUtf8('Filetype Associations...'), 0, 0, self, 'project_filetype_associatios') - self.filetypesAct.setStatusTip(\ + self.filetypesAct.setStatusTip( self.trUtf8('Show the project filetype associations')) self.filetypesAct.setWhatsThis(self.trUtf8( """<b>Filetype Associations...</b>""" @@ -3466,7 +3466,7 @@ self.lexersAct = E5Action(self.trUtf8('Lexer Associations'), self.trUtf8('Lexer Associations...'), 0, 0, self, 'project_lexer_associatios') - self.lexersAct.setStatusTip(\ + self.lexersAct.setStatusTip( self.trUtf8('Show the project lexer associations (overriding defaults)')) self.lexersAct.setWhatsThis(self.trUtf8( """<b>Lexer Associations...</b>""" @@ -3587,7 +3587,7 @@ self.codeMetricsAct = E5Action(self.trUtf8('Code Metrics'), self.trUtf8('&Code Metrics...'), 0, 0, self.chkGrp,'project_code_metrics') - self.codeMetricsAct.setStatusTip(\ + self.codeMetricsAct.setStatusTip( self.trUtf8('Show some code metrics for the project.')) self.codeMetricsAct.setWhatsThis(self.trUtf8( """<b>Code Metrics...</b>""" @@ -3599,7 +3599,7 @@ self.codeCoverageAct = E5Action(self.trUtf8('Python Code Coverage'), self.trUtf8('Code Co&verage...'), 0, 0, self.chkGrp,'project_code_coverage') - self.codeCoverageAct.setStatusTip(\ + self.codeCoverageAct.setStatusTip( self.trUtf8('Show code coverage information for the project.')) self.codeCoverageAct.setWhatsThis(self.trUtf8( """<b>Code Coverage...</b>""" @@ -3612,7 +3612,7 @@ self.codeProfileAct = E5Action(self.trUtf8('Profile Data'), self.trUtf8('&Profile Data...'), 0, 0, self.chkGrp,'project_profile_data') - self.codeProfileAct.setStatusTip(\ + self.codeProfileAct.setStatusTip( self.trUtf8('Show profiling data for the project.')) self.codeProfileAct.setWhatsThis(self.trUtf8( """<b>Profile Data...</b>""" @@ -3624,7 +3624,7 @@ self.applicationDiagramAct = E5Action(self.trUtf8('Application Diagram'), self.trUtf8('&Application Diagram...'), 0, 0, self.chkGrp,'project_application_diagram') - self.applicationDiagramAct.setStatusTip(\ + self.applicationDiagramAct.setStatusTip( self.trUtf8('Show a diagram of the project.')) self.applicationDiagramAct.setWhatsThis(self.trUtf8( """<b>Application Diagram...</b>""" @@ -3639,7 +3639,7 @@ UI.PixmapCache.getIcon("pluginArchiveList.png"), self.trUtf8('Create &Package List'), 0, 0, self.pluginGrp,'project_plugin_pkglist') - self.pluginPkgListAct.setStatusTip(\ + self.pluginPkgListAct.setStatusTip( self.trUtf8('Create an initial PKGLIST file for an eric5 plugin.')) self.pluginPkgListAct.setWhatsThis(self.trUtf8( """<b>Create Package List</b>""" @@ -3653,7 +3653,7 @@ UI.PixmapCache.getIcon("pluginArchive.png"), self.trUtf8('Create Plugin &Archive'), 0, 0, self.pluginGrp,'project_plugin_archive') - self.pluginArchiveAct.setStatusTip(\ + self.pluginArchiveAct.setStatusTip( self.trUtf8('Create an eric5 plugin archive file.')) self.pluginArchiveAct.setWhatsThis(self.trUtf8( """<b>Create Plugin Archive</b>""" @@ -3668,7 +3668,7 @@ UI.PixmapCache.getIcon("pluginArchiveSnapshot.png"), self.trUtf8('Create Plugin Archive (&Snapshot)'), 0, 0, self.pluginGrp,'project_plugin_sarchive') - self.pluginSArchiveAct.setStatusTip(\ + self.pluginSArchiveAct.setStatusTip( self.trUtf8('Create an eric5 plugin archive file (snapshot release).')) self.pluginSArchiveAct.setWhatsThis(self.trUtf8( """<b>Create Plugin Archive (Snapshot)</b>""" @@ -3866,7 +3866,7 @@ formatStr = '&{0:d}. {1}' else: formatStr = '{0:d}. {1}' - act = self.recentMenu.addAction(\ + act = self.recentMenu.addAction( formatStr.format(idx, Utilities.compactPath(rp, self.ui.maxMenuFilePathLen))) act.setData(rp) @@ -4235,7 +4235,7 @@ if files: if len(files) > 1: - fn, ok = QInputDialog.getItem(\ + fn, ok = QInputDialog.getItem( None, self.trUtf8("Code Coverage"), self.trUtf8("Please select a coverage file"), @@ -4281,7 +4281,7 @@ if files: if len(files) > 1: - fn, ok = QInputDialog.getItem(\ + fn, ok = QInputDialog.getItem( None, self.trUtf8("Profile Data"), self.trUtf8("Please select a profile file"), @@ -4307,10 +4307,10 @@ tfn = Utilities.getTestFileName(fn) basename = os.path.splitext(fn)[0] tbasename = os.path.splitext(tfn)[0] - self.codeProfileAct.setEnabled(\ + self.codeProfileAct.setEnabled( os.path.isfile("{0}.profile".format(basename)) or \ os.path.isfile("{0}.profile".format(tbasename))) - self.codeCoverageAct.setEnabled(\ + self.codeCoverageAct.setEnabled( self.pdata["PROGLANGUAGE"][0] == "Python3" and \ (os.path.isfile("{0}.coverage".format(basename)) or \ os.path.isfile("{0}.coverage".format(tbasename)))) @@ -4527,13 +4527,13 @@ try: self.__createZipDirEntries(os.path.split(name)[0], archiveFile) if snapshot and name == self.pdata["MAINSCRIPT"][0]: - snapshotSource, version = self.__createSnapshotSource(\ + snapshotSource, version = self.__createSnapshotSource( os.path.join(self.ppath, self.pdata["MAINSCRIPT"][0])) archiveFile.writestr(name, snapshotSource) else: archiveFile.write(os.path.join(self.ppath, name), name) if name == self.pdata["MAINSCRIPT"][0]: - version = self.__pluginExtractVersion(\ + version = self.__pluginExtractVersion( os.path.join(self.ppath, self.pdata["MAINSCRIPT"][0])) except OSError as why: E5MessageBox.critical(self.ui,
--- a/Project/ProjectBaseBrowser.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Project/ProjectBaseBrowser.py Sat Sep 04 19:51:48 2010 +0200 @@ -53,9 +53,9 @@ self.isTranslationsBrowser = False self.expandedNames = [] - self.SelectFlags = QItemSelectionModel.SelectionFlags(\ + self.SelectFlags = QItemSelectionModel.SelectionFlags( QItemSelectionModel.Select | QItemSelectionModel.Rows) - self.DeselectFlags = QItemSelectionModel.SelectionFlags(\ + self.DeselectFlags = QItemSelectionModel.SelectionFlags( QItemSelectionModel.Deselect | QItemSelectionModel.Rows) self.setContextMenuPolicy(Qt.CustomContextMenu) @@ -152,7 +152,7 @@ """ if index.isValid(): self.setCurrentIndex(index) - flags = QItemSelectionModel.SelectionFlags(\ + flags = QItemSelectionModel.SelectionFlags( QItemSelectionModel.ClearAndSelect | QItemSelectionModel.Rows) self.selectionModel().select(index, flags) @@ -266,7 +266,7 @@ """ Protected method to remove a (single) directory from the project. """ - itmList = self.getSelectedItems(\ + itmList = self.getSelectedItems( [ProjectBrowserSimpleDirectoryItem, ProjectBrowserDirectoryItem]) for itm in itmList[:]: dn = itm.dirName()
--- a/Project/ProjectBrowser.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Project/ProjectBrowser.py Sat Sep 04 19:51:48 2010 +0200 @@ -350,6 +350,6 @@ if state == " " or state not in self.vcsStatusColorNames: self.vcsStatusIndicator.setColor(QColor(Qt.lightGray)) else: - self.vcsStatusIndicator.setColor(\ + self.vcsStatusIndicator.setColor( Preferences.getProjectBrowserColour(self.vcsStatusColorNames[state])) - self.vcsStatusIndicator.setToolTip(self.vcsStatusText[state]) + self.vcsStatusIndicator.setToolTip(self.vcsStatusText[state]) \ No newline at end of file
--- a/Project/ProjectBrowserModel.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Project/ProjectBrowserModel.py Sat Sep 04 19:51:48 2010 +0200 @@ -748,7 +748,7 @@ self.beginRemoveRows(index, 0, itm.childCount() - 1) itm.removeChildren() self.endRemoveRows() - Utilities.ModuleParser.resetParsedModule(\ + Utilities.ModuleParser.resetParsedModule( os.path.join(self.project.ppath, name)) self.populateItem(itm, True) @@ -862,4 +862,4 @@ color = Preferences.getProjectBrowserColour("Highlighted") if self.highLightColor.name() != color.name(): - self.highLightColor = color + self.highLightColor = color \ No newline at end of file
--- a/Project/ProjectFormsBrowser.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Project/ProjectFormsBrowser.py Sat Sep 04 19:51:48 2010 +0200 @@ -302,14 +302,14 @@ return try: - categories = self.getSelectedItemsCountCategorized(\ + categories = self.getSelectedItemsCountCategorized( [ProjectBrowserFileItem, ProjectBrowserSimpleDirectoryItem]) cnt = categories["sum"] if cnt <= 1: index = self.indexAt(coord) if index.isValid(): self._selectSingleItem(index) - categories = self.getSelectedItemsCountCategorized(\ + categories = self.getSelectedItemsCountCategorized( [ProjectBrowserFileItem, ProjectBrowserSimpleDirectoryItem]) cnt = categories["sum"] @@ -478,7 +478,7 @@ @param path full directory path for the new form file (string) """ - selectedForm, ok = QInputDialog.getItem(\ + selectedForm, ok = QInputDialog.getItem( None, self.trUtf8("New Form"), self.trUtf8("Select a form type:"), @@ -492,7 +492,7 @@ templateFile = os.path.join(getConfig('ericTemplatesDir'), self.templates4[templateIndex]) - fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter(\ + fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter( self, self.trUtf8("New Form"), path,
--- a/Project/ProjectInterfacesBrowser.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Project/ProjectInterfacesBrowser.py Sat Sep 04 19:51:48 2010 +0200 @@ -237,7 +237,7 @@ return try: - categories = self.getSelectedItemsCountCategorized(\ + categories = self.getSelectedItemsCountCategorized( [ProjectBrowserFileItem, BrowserClassItem, BrowserMethodItem, ProjectBrowserSimpleDirectoryItem]) cnt = categories["sum"] @@ -245,7 +245,7 @@ index = self.indexAt(coord) if index.isValid(): self._selectSingleItem(index) - categories = self.getSelectedItemsCountCategorized(\ + categories = self.getSelectedItemsCountCategorized( [ProjectBrowserFileItem, BrowserClassItem, BrowserMethodItem, ProjectBrowserSimpleDirectoryItem]) cnt = categories["sum"] @@ -323,7 +323,7 @@ """ Protected slot to handle the open popup menu entry. """ - itmList = self.getSelectedItems(\ + itmList = self.getSelectedItems( [BrowserFileItem, BrowserClassItem, BrowserMethodItem, BrowserClassAttributeItem])
--- a/Project/ProjectResourcesBrowser.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Project/ProjectResourcesBrowser.py Sat Sep 04 19:51:48 2010 +0200 @@ -256,14 +256,14 @@ return try: - categories = self.getSelectedItemsCountCategorized(\ + categories = self.getSelectedItemsCountCategorized( [ProjectBrowserFileItem, ProjectBrowserSimpleDirectoryItem]) cnt = categories["sum"] if cnt <= 1: index = self.indexAt(coord) if index.isValid(): self._selectSingleItem(index) - categories = self.getSelectedItemsCountCategorized(\ + categories = self.getSelectedItemsCountCategorized( [ProjectBrowserFileItem, ProjectBrowserSimpleDirectoryItem]) cnt = categories["sum"] @@ -386,7 +386,7 @@ if self.hooks["newResource"] is not None: self.hooks["newResource"](path) else: - fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter(\ + fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter( self, self.trUtf8("New Resource"), path,
--- a/Project/ProjectSourcesBrowser.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Project/ProjectSourcesBrowser.py Sat Sep 04 19:51:48 2010 +0200 @@ -119,24 +119,24 @@ self.menuShow = QMenu(self.trUtf8('Show')) self.menuShow.addAction(self.trUtf8('Code metrics...'), self.__showCodeMetrics) - self.coverageMenuAction = self.menuShow.addAction(\ + self.coverageMenuAction = self.menuShow.addAction( self.trUtf8('Code coverage...'), self.__showCodeCoverage) - self.profileMenuAction = self.menuShow.addAction(\ + self.profileMenuAction = self.menuShow.addAction( self.trUtf8('Profile data...'), self.__showProfileData) self.menuShow.aboutToShow.connect(self.__showContextMenuShow) self.graphicsMenu = QMenu(self.trUtf8('Diagrams')) - self.classDiagramAction = self.graphicsMenu.addAction(\ + self.classDiagramAction = self.graphicsMenu.addAction( self.trUtf8("Class Diagram..."), self.__showClassDiagram) - self.graphicsMenu.addAction(\ + self.graphicsMenu.addAction( self.trUtf8("Package Diagram..."), self.__showPackageDiagram) - self.importsDiagramAction = self.graphicsMenu.addAction(\ + self.importsDiagramAction = self.graphicsMenu.addAction( self.trUtf8("Imports Diagram..."), self.__showImportsDiagram) - self.graphicsMenu.addAction(\ + self.graphicsMenu.addAction( self.trUtf8("Application Diagram..."), self.__showApplicationDiagram) self.graphicsMenu.aboutToShow.connect(self.__showContextMenuGraphics) - self.unittestAction = self.sourceMenu.addAction(\ + self.unittestAction = self.sourceMenu.addAction( self.trUtf8('Run unittest...'), self.handleUnittest) self.sourceMenu.addSeparator() act = self.sourceMenu.addAction(self.trUtf8('Rename file'), self._renameFile) @@ -259,7 +259,7 @@ Privat method to generate the popup menus for a Ruby project. """ self.graphicsMenu = QMenu(self.trUtf8('Diagrams')) - self.classDiagramAction = self.graphicsMenu.addAction(\ + self.classDiagramAction = self.graphicsMenu.addAction( self.trUtf8("Class Diagram..."), self.__showClassDiagram) self.graphicsMenu.addAction(self.trUtf8("Package Diagram..."), self.__showPackageDiagram) @@ -371,7 +371,7 @@ return try: - categories = self.getSelectedItemsCountCategorized(\ + categories = self.getSelectedItemsCountCategorized( [ProjectBrowserFileItem, BrowserClassItem, BrowserMethodItem, ProjectBrowserSimpleDirectoryItem]) cnt = categories["sum"] @@ -379,7 +379,7 @@ index = self.indexAt(coord) if index.isValid(): self._selectSingleItem(index) - categories = self.getSelectedItemsCountCategorized(\ + categories = self.getSelectedItemsCountCategorized( [ProjectBrowserFileItem, BrowserClassItem, BrowserMethodItem, ProjectBrowserSimpleDirectoryItem]) cnt = categories["sum"] @@ -518,7 +518,7 @@ """ Protected slot to handle the open popup menu entry. """ - itmList = self.getSelectedItems(\ + itmList = self.getSelectedItems( [BrowserFileItem, BrowserClassItem, BrowserMethodItem, BrowserClassAttributeItem]) @@ -714,7 +714,7 @@ if files: if len(files) > 1: - pfn, ok = QInputDialog.getItem(\ + pfn, ok = QInputDialog.getItem( None, self.trUtf8("Code Coverage"), self.trUtf8("Please select a coverage file"), @@ -767,7 +767,7 @@ if files: if len(files) > 1: - pfn, ok = QInputDialog.getItem(\ + pfn, ok = QInputDialog.getItem( None, self.trUtf8("Profile Data"), self.trUtf8("Please select a profile file"), @@ -854,4 +854,4 @@ yesDefault = True) self.applicationDiagram = ApplicationDiagram(self.project, self, noModules = not res) - self.applicationDiagram.show() + self.applicationDiagram.show() \ No newline at end of file
--- a/Project/ProjectTranslationsBrowser.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Project/ProjectTranslationsBrowser.py Sat Sep 04 19:51:48 2010 +0200 @@ -110,7 +110,7 @@ self.__generateSelected) self.tsMenuActions.append(act) self.tsprocMenuActions.append(act) - act = self.menu.addAction(\ + act = self.menu.addAction( self.trUtf8('Generate translation (with obsolete)'), self.__generateObsoleteSelected) self.tsMenuActions.append(act) @@ -118,7 +118,7 @@ act = self.menu.addAction(self.trUtf8('Generate all translations'), self.__generateAll) self.tsprocMenuActions.append(act) - act = self.menu.addAction(\ + act = self.menu.addAction( self.trUtf8('Generate all translations (with obsolete)'), self.__generateObsoleteAll) self.tsprocMenuActions.append(act) @@ -218,7 +218,7 @@ act = self.backMenu.addAction(self.trUtf8('Generate all translations'), self.__generateAll) self.tsprocBackMenuActions.append(act) - act = self.backMenu.addAction(\ + act = self.backMenu.addAction( self.trUtf8('Generate all translations (with obsolete)'), self.__generateObsoleteAll) self.tsprocBackMenuActions.append(act) @@ -270,13 +270,13 @@ self.__generateSelected) self.tsMultiMenuActions.append(act) self.tsprocMultiMenuActions.append(act) - act = self.multiMenu.addAction(\ + act = self.multiMenu.addAction( self.trUtf8('Generate translations (with obsolete)'), self.__generateObsoleteSelected) self.tsMultiMenuActions.append(act) self.tsprocMultiMenuActions.append(act) self.multiMenu.addSeparator() - act = self.multiMenu.addAction(\ + act = self.multiMenu.addAction( self.trUtf8('Open in Qt-Linguist'), self._openItem) self.tsMultiMenuActions.append(act) act = self.multiMenu.addAction(self.trUtf8('Open in Editor'), @@ -340,7 +340,7 @@ act = self.dirMenu.addAction(self.trUtf8('Generate all translations'), self.__generateAll) self.tsprocDirMenuActions.append(act) - act = self.dirMenu.addAction(\ + act = self.dirMenu.addAction( self.trUtf8('Generate all translations (with obsolete)'), self.__generateObsoleteAll) self.tsprocDirMenuActions.append(act) @@ -405,14 +405,14 @@ return try: - categories = self.getSelectedItemsCountCategorized(\ + categories = self.getSelectedItemsCountCategorized( [ProjectBrowserFileItem, ProjectBrowserSimpleDirectoryItem]) cnt = categories["sum"] if cnt <= 1: index = self.indexAt(coord) if index.isValid(): self._selectSingleItem(index) - categories = self.getSelectedItemsCountCategorized(\ + categories = self.getSelectedItemsCountCategorized( [ProjectBrowserFileItem, ProjectBrowserSimpleDirectoryItem]) cnt = categories["sum"]
--- a/Project/PropertiesDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Project/PropertiesDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -62,12 +62,12 @@ if not new: name = os.path.splitext(self.project.pfile)[0] self.nameEdit.setText(os.path.basename(name)) - self.languageComboBox.setCurrentIndex(\ + self.languageComboBox.setCurrentIndex( self.languageComboBox.findText(self.project.pdata["PROGLANGUAGE"][0])) self.mixedLanguageCheckBox.setChecked(self.project.pdata["MIXEDLANGUAGE"][0]) try: curIndex = \ - self.projectTypeComboBox.findText(\ + self.projectTypeComboBox.findText( projectTypes[self.project.pdata["PROJECTTYPE"][0]]) except KeyError: curIndex = -1 @@ -107,18 +107,18 @@ vcsSystemDisplay = vcsSystemsDict[self.project.pdata["VCS"][0]] except KeyError: vcsSystemDisplay = "None" - self.vcsLabel.setText(\ + self.vcsLabel.setText( self.trUtf8("The project is version controlled by <b>{0}</b>.") .format(vcsSystemDisplay)) self.vcsInfoButton.show() else: - self.vcsLabel.setText(\ + self.vcsLabel.setText( self.trUtf8("The project is not version controlled.")) self.vcsInfoButton.hide() else: - self.languageComboBox.setCurrentIndex(\ + self.languageComboBox.setCurrentIndex( self.languageComboBox.findText("Python3")) - self.projectTypeComboBox.setCurrentIndex(\ + self.projectTypeComboBox.setCurrentIndex( self.projectTypeComboBox.findText(projectTypes["Qt4"])) hp = os.getcwd() hp = hp + os.sep @@ -132,7 +132,7 @@ """ Private slot to display a directory selection dialog. """ - directory = QFileDialog.getExistingDirectory(\ + directory = QFileDialog.getExistingDirectory( self, self.trUtf8("Select project directory"), self.dirEdit.text(), @@ -181,7 +181,7 @@ patterns.append(pattern) filters = self.trUtf8("Source Files ({0});;All Files (*)")\ .format(" ".join(patterns)) - fn = QFileDialog.getOpenFileName(\ + fn = QFileDialog.getOpenFileName( self, self.trUtf8("Select main script file"), dir, @@ -261,4 +261,4 @@ self.spellPropertiesDlg.storeData() if self.transPropertiesDlg is not None: - self.transPropertiesDlg.storeData() + self.transPropertiesDlg.storeData() \ No newline at end of file
--- a/Project/SpellingPropertiesDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Project/SpellingPropertiesDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -71,7 +71,7 @@ pwl = self.pwlEdit.text() if not pwl: pwl = self.project.ppath - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( self, self.trUtf8("Select project word list"), pwl, @@ -88,7 +88,7 @@ pel = self.pelEdit.text() if not pel: pel = self.project.ppath - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( self, self.trUtf8("Select project exclude list"), pel, @@ -110,4 +110,4 @@ self.project.pdata["SPELLWORDS"] = \ [self.project.getRelativePath(self.pwlEdit.text())] self.project.pdata["SPELLEXCLUDES"] = \ - [self.project.getRelativePath(self.pelEdit.text())] + [self.project.getRelativePath(self.pelEdit.text())] \ No newline at end of file
--- a/Project/TranslationPropertiesDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Project/TranslationPropertiesDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -68,12 +68,12 @@ """ self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) try: - self.transPatternEdit.setText(os.path.join(\ + self.transPatternEdit.setText(os.path.join( self.project.ppath, self.project.pdata["TRANSLATIONPATTERN"][0])) except IndexError: pass try: - self.transBinPathEdit.setText(os.path.join(\ + self.transBinPathEdit.setText(os.path.join( self.project.ppath, self.project.pdata["TRANSLATIONSBINPATH"][0])) except IndexError: pass @@ -90,7 +90,7 @@ tp = self.transPatternEdit.text() if "%language%" in tp: tp = tp.split("%language%")[0] - tsfile = QFileDialog.getOpenFileName(\ + tsfile = QFileDialog.getOpenFileName( self, self.trUtf8("Select translation file"), tp, @@ -114,7 +114,7 @@ """ Private slot to display a directory selection dialog. """ - directory = QFileDialog.getExistingDirectory(\ + directory = QFileDialog.getExistingDirectory( self, self.trUtf8("Select directory for binary translations"), self.transBinPathEdit.text(), @@ -157,7 +157,7 @@ """ Private slot to select a file to exempt from translation. """ - texcept = QFileDialog.getOpenFileName(\ + texcept = QFileDialog.getOpenFileName( self, self.trUtf8("Exempt file from translation"), self.project.ppath, @@ -170,7 +170,7 @@ """ Private slot to select a file to exempt from translation. """ - texcept = QFileDialog.getExistingDirectory(\ + texcept = QFileDialog.getExistingDirectory( self, self.trUtf8("Exempt directory from translation"), self.project.ppath, @@ -217,4 +217,4 @@ exceptList = [] for i in range(self.exceptionsList.count()): exceptList.append(self.exceptionsList.item(i).text()) - self.project.pdata["TRANSLATIONEXCEPTIONS"] = exceptList[:] + self.project.pdata["TRANSLATIONEXCEPTIONS"] = exceptList[:] \ No newline at end of file
--- a/PyUnit/UnittestDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/PyUnit/UnittestDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -54,16 +54,16 @@ self.setObjectName(name) self.setupUi(self) - self.startButton = self.buttonBox.addButton(\ + self.startButton = self.buttonBox.addButton( self.trUtf8("Start"), QDialogButtonBox.ActionRole) self.startButton.setToolTip(self.trUtf8("Start the selected testsuite")) - self.startButton.setWhatsThis(self.trUtf8(\ + self.startButton.setWhatsThis(self.trUtf8( """<b>Start Test</b>""" """<p>This button starts the selected testsuite.</p>""")) - self.stopButton = self.buttonBox.addButton(\ + self.stopButton = self.buttonBox.addButton( self.trUtf8("Stop"), QDialogButtonBox.ActionRole) self.stopButton.setToolTip(self.trUtf8("Stop the running unittest")) - self.stopButton.setWhatsThis(self.trUtf8(\ + self.stopButton.setWhatsThis(self.trUtf8( """<b>Stop Test</b>""" """<p>This button stops a running unittest.</p>""")) self.stopButton.setEnabled(False) @@ -71,7 +71,7 @@ self.dbs = dbs - self.setWindowFlags(\ + self.setWindowFlags( self.windowFlags() | Qt.WindowFlags(Qt.WindowContextHelpButtonHint)) self.setWindowIcon(UI.PixmapCache.getIcon("eric.png")) self.setWindowTitle(self.trUtf8("Unittest")) @@ -160,7 +160,7 @@ .format(pyExtensions, py3Extensions) else: filter = self.trUtf8("Python Files (*.py);;All Files (*)") - prog = QFileDialog.getOpenFileName(\ + prog = QFileDialog.getOpenFileName( self, "", self.testsuiteComboBox.currentText(), @@ -252,7 +252,7 @@ try: module = __import__(self.testName) try: - test = unittest.defaultTestLoader.loadTestsFromName(\ + test = unittest.defaultTestLoader.loadTestsFromName( testFunctionName, module) except AttributeError: test = unittest.defaultTestLoader.loadTestsFromModule(module) @@ -470,7 +470,7 @@ ui = Ui_UnittestStacktraceDialog() ui.setupUi(self.dlg) - ui.showButton = ui.buttonBox.addButton(\ + ui.showButton = ui.buttonBox.addButton( self.trUtf8("Show Source"), QDialogButtonBox.ActionRole) ui.buttonBox.button(QDialogButtonBox.Close).setDefault(True)
--- a/QScintilla/Editor.py Sat Sep 04 19:51:19 2010 +0200 +++ b/QScintilla/Editor.py Sat Sep 04 19:51:48 2010 +0200 @@ -630,13 +630,13 @@ self.__toggleTypingAids) self.menuActs["TypingAidsEnabled"].setCheckable(True) self.menuActs["TypingAidsEnabled"].setEnabled(self.completer is not None) - self.menuActs["TypingAidsEnabled"].setChecked(\ + self.menuActs["TypingAidsEnabled"].setChecked( self.completer is not None and self.completer.isEnabled()) self.menuActs["AutoCompletionEnable"] = \ self.menu.addAction(self.trUtf8("Autocompletion enabled"), self.__toggleAutoCompletionEnable) self.menuActs["AutoCompletionEnable"].setCheckable(True) - self.menuActs["AutoCompletionEnable"].setChecked(\ + self.menuActs["AutoCompletionEnable"].setChecked( self.autoCompletionThreshold() != -1) if not self.isResourcesFile: self.menu.addMenu(self.autocompletionMenu) @@ -1108,7 +1108,7 @@ lexerSel = lexerList.index(self.getLanguage()) except ValueError: lexerSel = 0 - lexerName, ok = QInputDialog.getItem(\ + lexerName, ok = QInputDialog.getItem( self, self.trUtf8("Pygments Lexer"), self.trUtf8("Select the Pygments lexer to apply."), @@ -3116,11 +3116,11 @@ self.__initContextMenu() else: # set checked context menu items - self.menuActs["AutoCompletionEnable"].setChecked(\ + self.menuActs["AutoCompletionEnable"].setChecked( self.autoCompletionThreshold() != -1) - self.menuActs["MonospacedFont"].setChecked(\ + self.menuActs["MonospacedFont"].setChecked( self.useMonospaced) - self.menuActs["AutosaveEnable"].setChecked(\ + self.menuActs["AutosaveEnable"].setChecked( self.autosaveEnabled and not self.autosaveManuallyDisabled) # regenerate the margins context menu(s) @@ -3274,18 +3274,18 @@ self.setUnmatchedBraceBackgroundColor( Preferences.getEditorColour("NonmatchingBraceBack")) if Preferences.getEditor("CustomSelectionColours"): - self.setSelectionBackgroundColor(\ + self.setSelectionBackgroundColor( Preferences.getEditorColour("SelectionBackground")) else: - self.setSelectionBackgroundColor(\ + self.setSelectionBackgroundColor( QApplication.palette().color(QPalette.Highlight)) if Preferences.getEditor("ColourizeSelText"): self.resetSelectionForegroundColor() elif Preferences.getEditor("CustomSelectionColours"): - self.setSelectionForegroundColor(\ + self.setSelectionForegroundColor( Preferences.getEditorColour("SelectionForeground")) else: - self.setSelectionForegroundColor(\ + self.setSelectionForegroundColor( QApplication.palette().color(QPalette.HighlightedText)) self.setSelectionToEol(Preferences.getEditor("ExtendSelectionToEol")) self.setCaretForegroundColor( @@ -3306,11 +3306,11 @@ if Preferences.getEditor("WrapLongLines"): self.setWrapMode(QsciScintilla.WrapWord) - self.setWrapVisualFlags(\ + self.setWrapVisualFlags( QsciScintilla.WrapFlagByBorder, QsciScintilla.WrapFlagByBorder) else: self.setWrapMode(QsciScintilla.WrapNone) - self.setWrapVisualFlags(\ + self.setWrapVisualFlags( QsciScintilla.WrapFlagNone, QsciScintilla.WrapFlagNone) self.zoomTo(Preferences.getEditor("ZoomFactor")) @@ -3782,7 +3782,7 @@ self.menuActs["BoxComment"].setEnabled(False) self.menuActs["TypingAidsEnabled"].setEnabled(self.completer is not None) - self.menuActs["TypingAidsEnabled"].setChecked(\ + self.menuActs["TypingAidsEnabled"].setChecked( self.completer is not None and self.completer.isEnabled()) spellingAvailable = SpellChecker.isAvailable() @@ -3846,9 +3846,9 @@ self.profileMenuAct.setEnabled(prEnable) self.coverageMenuAct.setEnabled(coEnable) - self.coverageShowAnnotationMenuAct.setEnabled(\ + self.coverageShowAnnotationMenuAct.setEnabled( coEnable and not self.__coverageMarkersShown) - self.coverageHideAnnotationMenuAct.setEnabled(\ + self.coverageHideAnnotationMenuAct.setEnabled( self.__coverageMarkersShown) self.showMenu.emit("Show", self.menuShow, self) @@ -3879,10 +3879,10 @@ self.marginMenuActs["EditBreakpoint"].setEnabled(False) self.marginMenuActs["EnableBreakpoint"].setEnabled(False) if self.markersAtLine(self.line) & (1 << self.dbreakpoint): - self.marginMenuActs["EnableBreakpoint"].setText(\ + self.marginMenuActs["EnableBreakpoint"].setText( self.trUtf8('Enable breakpoint')) else: - self.marginMenuActs["EnableBreakpoint"].setText(\ + self.marginMenuActs["EnableBreakpoint"].setText( self.trUtf8('Disable breakpoint')) if self.breaks: self.marginMenuActs["NextBreakpoint"].setEnabled(True) @@ -4153,7 +4153,7 @@ if files: if len(files) > 1: - fn, ok = QInputDialog.getItem(\ + fn, ok = QInputDialog.getItem( self, self.trUtf8("Code Coverage"), self.trUtf8("Please select a coverage file"), @@ -4291,7 +4291,7 @@ if files: if len(files) > 1: - fn, ok = QInputDialog.getItem(\ + fn, ok = QInputDialog.getItem( self, self.trUtf8("Profile Data"), self.trUtf8("Please select a profile file"), @@ -4546,7 +4546,7 @@ for s in list(self.macros.keys()): qs.append(s) qs.sort() - return QInputDialog.getItem(\ + return QInputDialog.getItem( self, self.trUtf8("Macro Name"), self.trUtf8("Select a macro name:"), @@ -4614,7 +4614,7 @@ if not ok or not name: return # user abort - fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter(\ + fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter( self, self.trUtf8("Save macro file"), configDir, @@ -4682,7 +4682,7 @@ self.curMacro.endRecording() self.recording = False - name, ok = QInputDialog.getText(\ + name, ok = QInputDialog.getText( self, self.trUtf8("Macro Recording"), self.trUtf8("Enter name of the macro:"), @@ -4795,12 +4795,12 @@ self.refresh() else: self.inReopenPrompt = True - msg = self.trUtf8(\ + msg = self.trUtf8( """<p>The file <b>{0}</b> has been changed while it was opened in""" """ eric5. Reread it?</p>""").format(self.fileName) yesDefault = True if self.isModified(): - msg += self.trUtf8(\ + msg += self.trUtf8( """<br><b>Warning:</b> You will loose""" """ your changes upon reopening it.""") yesDefault = False @@ -5047,7 +5047,7 @@ Private method to handle the Add file context menu action. """ dirStr = os.path.dirname(self.fileName) - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( self, self.trUtf8("Add file resource"), dirStr, @@ -5063,7 +5063,7 @@ Private method to handle the Add files context menu action. """ dirStr = os.path.dirname(self.fileName) - files = QFileDialog.getOpenFileNames(\ + files = QFileDialog.getOpenFileNames( self, self.trUtf8("Add file resources"), dirStr, @@ -5083,14 +5083,14 @@ Private method to handle the Add aliased file context menu action. """ dirStr = os.path.dirname(self.fileName) - file = QFileDialog.getOpenFileName(\ + file = QFileDialog.getOpenFileName( self, self.trUtf8("Add aliased file resource"), dirStr, "") if file: relFile = QDir(dirStr).relativeFilePath(file) - alias, ok = QInputDialog.getText(\ + alias, ok = QInputDialog.getText( self, self.trUtf8("Add aliased file resource"), self.trUtf8("Alias for file <b>{0}</b>:").format(relFile), @@ -5728,4 +5728,4 @@ command = self.__receivedWhileSyncing.pop(0) self.__dispatchCommand(command) - self.__isSyncing = False + self.__isSyncing = False \ No newline at end of file
--- a/QScintilla/Exporters/ExporterHTML.py Sat Sep 04 19:51:19 2010 +0200 +++ b/QScintilla/Exporters/ExporterHTML.py Sat Sep 04 19:51:48 2010 +0200 @@ -395,7 +395,7 @@ QApplication.restoreOverrideCursor() E5MessageBox.critical(self.editor, self.trUtf8("Export source"), - self.trUtf8(\ + self.trUtf8( """<p>The source could not be exported to <b>{0}</b>.</p>""" """<p>Reason: {1}</p>""")\ .format(filename, str(err)))
--- a/QScintilla/Exporters/ExporterODT.py Sat Sep 04 19:51:19 2010 +0200 +++ b/QScintilla/Exporters/ExporterODT.py Sat Sep 04 19:51:48 2010 +0200 @@ -68,6 +68,6 @@ if not ok: E5MessageBox.critical(self.editor, self.trUtf8("Export source"), - self.trUtf8(\ + self.trUtf8( """<p>The source could not be exported to <b>{0}</b>.</p>""")\ - .format(filename)) + .format(filename)) \ No newline at end of file
--- a/QScintilla/Exporters/ExporterTEX.py Sat Sep 04 19:51:19 2010 +0200 +++ b/QScintilla/Exporters/ExporterTEX.py Sat Sep 04 19:51:48 2010 +0200 @@ -257,7 +257,7 @@ QApplication.restoreOverrideCursor() E5MessageBox.critical(self.editor, self.trUtf8("Export source"), - self.trUtf8(\ + self.trUtf8( """<p>The source could not be exported to <b>{0}</b>.</p>""" """<p>Reason: {1}</p>""")\ .format(filename, str(err)))
--- a/QScintilla/Lexers/LexerHTML.py Sat Sep 04 19:51:19 2010 +0200 +++ b/QScintilla/Lexers/LexerHTML.py Sat Sep 04 19:51:48 2010 +0200 @@ -35,7 +35,7 @@ Public slot to initialize the properties. """ self.setFoldPreprocessor(Preferences.getEditor("HtmlFoldPreprocessor")) - self.setCaseSensitiveTags(\ + self.setCaseSensitiveTags( Preferences.getEditor("HtmlCaseSensitiveTags")) self.setFoldCompact(Preferences.getEditor("AllFoldCompact")) try: @@ -104,4 +104,4 @@ @param kwSet number of the keyword set (integer) @return string giving the keywords (string) or None """ - return QsciLexerHTML.keywords(self, kwSet) + return QsciLexerHTML.keywords(self, kwSet) \ No newline at end of file
--- a/QScintilla/Lexers/LexerVHDL.py Sat Sep 04 19:51:19 2010 +0200 +++ b/QScintilla/Lexers/LexerVHDL.py Sat Sep 04 19:51:48 2010 +0200 @@ -34,7 +34,7 @@ self.setFoldComments(Preferences.getEditor("VHDLFoldComment")) self.setFoldAtElse(Preferences.getEditor("VHDLFoldAtElse")) self.setFoldAtBegin(Preferences.getEditor("VHDLFoldAtBegin")) - self.setFoldAtParenthesis(\ + self.setFoldAtParenthesis( Preferences.getEditor("VHDLFoldAtParenthesis")) self.setFoldCompact(Preferences.getEditor("AllFoldCompact")) @@ -63,4 +63,4 @@ @param kwSet number of the keyword set (integer) @return string giving the keywords (string) or None """ - return QsciLexerVHDL.keywords(self, kwSet) + return QsciLexerVHDL.keywords(self, kwSet) \ No newline at end of file
--- a/QScintilla/Lexers/LexerXML.py Sat Sep 04 19:51:19 2010 +0200 +++ b/QScintilla/Lexers/LexerXML.py Sat Sep 04 19:51:48 2010 +0200 @@ -35,7 +35,7 @@ Public slot to initialize the properties. """ self.setFoldPreprocessor(Preferences.getEditor("HtmlFoldPreprocessor")) - self.setCaseSensitiveTags(\ + self.setCaseSensitiveTags( Preferences.getEditor("HtmlCaseSensitiveTags")) self.setFoldCompact(Preferences.getEditor("AllFoldCompact")) try: @@ -105,4 +105,4 @@ @param kwSet number of the keyword set (integer) @return string giving the keywords (string) or None """ - return QsciLexerXML.keywords(self, kwSet) + return QsciLexerXML.keywords(self, kwSet) \ No newline at end of file
--- a/QScintilla/MiniEditor.py Sat Sep 04 19:51:19 2010 +0200 +++ b/QScintilla/MiniEditor.py Sat Sep 04 19:51:48 2010 +0200 @@ -304,11 +304,11 @@ @param prefClass preferences class used as the storage area """ if act.objectName(): - accel = Preferences.Prefs.settings.value(\ + accel = Preferences.Prefs.settings.value( "Shortcuts/{0}/{1}/Accel".format(category, act.objectName())) if accel is not None: act.setShortcut(QKeySequence(accel)) - accel = Preferences.Prefs.settings.value(\ + accel = Preferences.Prefs.settings.value( "Shortcuts/{0}/{1}/AltAccel".format(category, act.objectName())) if accel is not None: act.setAlternateShortcut(QKeySequence(accel)) @@ -348,7 +348,7 @@ QKeySequence(self.trUtf8("Ctrl+N", "File|New")), 0, self, 'vm_file_new') self.newAct.setStatusTip(self.trUtf8('Open an empty editor window')) - self.newAct.setWhatsThis(self.trUtf8(\ + self.newAct.setWhatsThis(self.trUtf8( """<b>New</b>""" """<p>An empty editor window will be created.</p>""" )) @@ -361,7 +361,7 @@ QKeySequence(self.trUtf8("Ctrl+O", "File|Open")), 0, self, 'vm_file_open') self.openAct.setStatusTip(self.trUtf8('Open a file')) - self.openAct.setWhatsThis(self.trUtf8(\ + self.openAct.setWhatsThis(self.trUtf8( """<b>Open a file</b>""" """<p>You will be asked for the name of a file to be opened.</p>""" )) @@ -374,7 +374,7 @@ QKeySequence(self.trUtf8("Ctrl+S", "File|Save")), 0, self, 'vm_file_save') self.saveAct.setStatusTip(self.trUtf8('Save the current file')) - self.saveAct.setWhatsThis(self.trUtf8(\ + self.saveAct.setWhatsThis(self.trUtf8( """<b>Save File</b>""" """<p>Save the contents of current editor window.</p>""" )) @@ -387,7 +387,7 @@ QKeySequence(self.trUtf8("Shift+Ctrl+S", "File|Save As")), 0, self, 'vm_file_save_as') self.saveAsAct.setStatusTip(self.trUtf8('Save the current file to a new one')) - self.saveAsAct.setWhatsThis(self.trUtf8(\ + self.saveAsAct.setWhatsThis(self.trUtf8( """<b>Save File as</b>""" """<p>Save the contents of current editor window to a new file.""" """ The file can be entered in a file selection dialog.</p>""" @@ -401,7 +401,7 @@ QKeySequence(self.trUtf8("Ctrl+W", "File|Close")), 0, self, 'vm_file_close') self.closeAct.setStatusTip(self.trUtf8('Close the editor window')) - self.closeAct.setWhatsThis(self.trUtf8(\ + self.closeAct.setWhatsThis(self.trUtf8( """<b>Close Window</b>""" """<p>Close the current window.</p>""" )) @@ -446,7 +446,7 @@ QKeySequence(self.trUtf8("Alt+Backspace", "Edit|Undo")), self, 'vm_edit_undo') self.undoAct.setStatusTip(self.trUtf8('Undo the last change')) - self.undoAct.setWhatsThis(self.trUtf8(\ + self.undoAct.setWhatsThis(self.trUtf8( """<b>Undo</b>""" """<p>Undo the last change done in the current editor.</p>""" )) @@ -459,7 +459,7 @@ QKeySequence(self.trUtf8("Ctrl+Shift+Z", "Edit|Redo")), 0, self, 'vm_edit_redo') self.redoAct.setStatusTip(self.trUtf8('Redo the last change')) - self.redoAct.setWhatsThis(self.trUtf8(\ + self.redoAct.setWhatsThis(self.trUtf8( """<b>Redo</b>""" """<p>Redo the last change done in the current editor.</p>""" )) @@ -473,7 +473,7 @@ QKeySequence(self.trUtf8("Shift+Del", "Edit|Cut")), self, 'vm_edit_cut') self.cutAct.setStatusTip(self.trUtf8('Cut the selection')) - self.cutAct.setWhatsThis(self.trUtf8(\ + self.cutAct.setWhatsThis(self.trUtf8( """<b>Cut</b>""" """<p>Cut the selected text of the current editor to the clipboard.</p>""" )) @@ -487,7 +487,7 @@ QKeySequence(self.trUtf8("Ctrl+Ins", "Edit|Copy")), self, 'vm_edit_copy') self.copyAct.setStatusTip(self.trUtf8('Copy the selection')) - self.copyAct.setWhatsThis(self.trUtf8(\ + self.copyAct.setWhatsThis(self.trUtf8( """<b>Copy</b>""" """<p>Copy the selected text of the current editor to the clipboard.</p>""" )) @@ -501,7 +501,7 @@ QKeySequence(self.trUtf8("Shift+Ins", "Edit|Paste")), self, 'vm_edit_paste') self.pasteAct.setStatusTip(self.trUtf8('Paste the last cut/copied text')) - self.pasteAct.setWhatsThis(self.trUtf8(\ + self.pasteAct.setWhatsThis(self.trUtf8( """<b>Paste</b>""" """<p>Paste the last cut/copied text from the clipboard to""" """ the current editor.</p>""" @@ -516,7 +516,7 @@ 0, self, 'vm_edit_clear') self.deleteAct.setStatusTip(self.trUtf8('Clear all text')) - self.deleteAct.setWhatsThis(self.trUtf8(\ + self.deleteAct.setWhatsThis(self.trUtf8( """<b>Clear</b>""" """<p>Delete all text of the current editor.</p>""" )) @@ -1318,7 +1318,7 @@ self.aboutQtAct = E5Action(self.trUtf8('About Qt'), self.trUtf8('About &Qt'), 0, 0, self, 'about_qt') - self.aboutQtAct.setStatusTip(\ + self.aboutQtAct.setStatusTip( self.trUtf8('Display information about the Qt toolkit')) self.aboutQtAct.setWhatsThis(self.trUtf8( """<b>About Qt</b>""" @@ -1685,7 +1685,7 @@ if self.lexer_ and self.lexer_.alwaysKeepTabs(): self.__textEdit.setIndentationsUseTabs(True) else: - self.__textEdit.setIndentationsUseTabs(\ + self.__textEdit.setIndentationsUseTabs( Preferences.getEditor("TabForIndentation")) self.__textEdit.setTabIndents(Preferences.getEditor("TabIndents")) self.__textEdit.setBackspaceUnindents(Preferences.getEditor("TabIndents")) @@ -1709,18 +1709,18 @@ self.__textEdit.setUnmatchedBraceBackgroundColor( Preferences.getEditorColour("NonmatchingBraceBack")) if Preferences.getEditor("CustomSelectionColours"): - self.__textEdit.setSelectionBackgroundColor(\ + self.__textEdit.setSelectionBackgroundColor( Preferences.getEditorColour("SelectionBackground")) else: - self.__textEdit.setSelectionBackgroundColor(\ + self.__textEdit.setSelectionBackgroundColor( QApplication.palette().color(QPalette.Highlight)) if Preferences.getEditor("ColourizeSelText"): self.__textEdit.resetSelectionForegroundColor() elif Preferences.getEditor("CustomSelectionColours"): - self.__textEdit.setSelectionForegroundColor(\ + self.__textEdit.setSelectionForegroundColor( Preferences.getEditorColour("SelectionForeground")) else: - self.__textEdit.setSelectionForegroundColor(\ + self.__textEdit.setSelectionForegroundColor( QApplication.palette().color(QPalette.HighlightedText)) self.__textEdit.setSelectionToEol(Preferences.getEditor("ExtendSelectionToEol")) self.__textEdit.setCaretForegroundColor( @@ -1741,11 +1741,11 @@ if Preferences.getEditor("WrapLongLines"): self.__textEdit.setWrapMode(QsciScintilla.WrapWord) - self.__textEdit.setWrapVisualFlags(\ + self.__textEdit.setWrapVisualFlags( QsciScintilla.WrapFlagByBorder, QsciScintilla.WrapFlagByBorder) else: self.__textEdit.setWrapMode(QsciScintilla.WrapNone) - self.__textEdit.setWrapVisualFlags(\ + self.__textEdit.setWrapVisualFlags( QsciScintilla.WrapFlagNone, QsciScintilla.WrapFlagNone) self.searchIndicator = QsciScintilla.INDIC_CONTAINER @@ -1931,7 +1931,7 @@ lexerSel = lexerList.index(self.getLanguage()) except ValueError: lexerSel = 0 - lexerName, ok = QInputDialog.getItem(\ + lexerName, ok = QInputDialog.getItem( self, self.trUtf8("Pygments Lexer"), self.trUtf8("Select the Pygments lexer to apply."), @@ -2279,4 +2279,4 @@ fileEol = self.__textEdit.detectEolString(txt) self.__textEdit.setEolModeByEolString(fileEol) - self.__textEdit.setModified(False) + self.__textEdit.setModified(False) \ No newline at end of file
--- a/QScintilla/Shell.py Sat Sep 04 19:51:19 2010 +0200 +++ b/QScintilla/Shell.py Sat Sep 04 19:51:48 2010 +0200 @@ -298,18 +298,18 @@ self.setUnmatchedBraceBackgroundColor( Preferences.getEditorColour("NonmatchingBraceBack")) if Preferences.getEditor("CustomSelectionColours"): - self.setSelectionBackgroundColor(\ + self.setSelectionBackgroundColor( Preferences.getEditorColour("SelectionBackground")) else: - self.setSelectionBackgroundColor(\ + self.setSelectionBackgroundColor( QApplication.palette().color(QPalette.Highlight)) if Preferences.getEditor("ColourizeSelText"): self.resetSelectionForegroundColor() elif Preferences.getEditor("CustomSelectionColours"): - self.setSelectionForegroundColor(\ + self.setSelectionForegroundColor( Preferences.getEditorColour("SelectionForeground")) else: - self.setSelectionForegroundColor(\ + self.setSelectionForegroundColor( QApplication.palette().color(QPalette.HighlightedText)) self.setSelectionToEol(Preferences.getEditor("ExtendSelectionToEol")) self.setCaretForegroundColor( @@ -445,7 +445,7 @@ @param clientType type of the debug client (string) """ if clientType in self.historyLists: - Preferences.Prefs.settings.setValue(\ + Preferences.Prefs.settings.setValue( "Shell/Histories/" + clientType, self.historyLists[clientType]) def getHistory(self, clientType): @@ -473,7 +473,7 @@ """ Private slot to select a history entry to execute. """ - cmd, ok = QInputDialog.getItem(\ + cmd, ok = QInputDialog.getItem( self, self.trUtf8("Select History"), self.trUtf8("Select the history entry to execute (most recent shown last)."), @@ -1088,7 +1088,7 @@ self.dbs.startClient(False, language) else: # language not supported or typo - self.__write(\ + self.__write( self.trUtf8('Shell language "{0}" not supported.\n')\ .format(cmdList[1])) self.__clientStatement(False)
--- a/QScintilla/Terminal.py Sat Sep 04 19:51:19 2010 +0200 +++ b/QScintilla/Terminal.py Sat Sep 04 19:51:48 2010 +0200 @@ -302,18 +302,18 @@ self.setUnmatchedBraceBackgroundColor( Preferences.getEditorColour("NonmatchingBraceBack")) if Preferences.getEditor("CustomSelectionColours"): - self.setSelectionBackgroundColor(\ + self.setSelectionBackgroundColor( Preferences.getEditorColour("SelectionBackground")) else: - self.setSelectionBackgroundColor(\ + self.setSelectionBackgroundColor( QApplication.palette().color(QPalette.Highlight)) if Preferences.getEditor("ColourizeSelText"): self.resetSelectionForegroundColor() elif Preferences.getEditor("CustomSelectionColours"): - self.setSelectionForegroundColor(\ + self.setSelectionForegroundColor( Preferences.getEditorColour("SelectionForeground")) else: - self.setSelectionForegroundColor(\ + self.setSelectionForegroundColor( QApplication.palette().color(QPalette.HighlightedText)) self.setSelectionToEol(Preferences.getEditor("ExtendSelectionToEol")) self.setCaretForegroundColor( @@ -388,7 +388,7 @@ """ Private slot to select a history entry to execute. """ - cmd, ok = QInputDialog.getItem(\ + cmd, ok = QInputDialog.getItem( self, self.trUtf8("Select History"), self.trUtf8("Select the history entry to execute (most recent shown last)."), @@ -930,4 +930,4 @@ """ Private method to open the configuration dialog. """ - e5App().getObject("UserInterface").showPreferences("terminalPage") + e5App().getObject("UserInterface").showPreferences("terminalPage") \ No newline at end of file
--- a/SqlBrowser/SqlBrowser.py Sat Sep 04 19:51:19 2010 +0200 +++ b/SqlBrowser/SqlBrowser.py Sat Sep 04 19:51:48 2010 +0200 @@ -122,7 +122,7 @@ self.aboutQtAct = E5Action(self.trUtf8('About Qt'), self.trUtf8('About &Qt'), 0, 0, self, 'sql_help_about_qt') - self.aboutQtAct.setStatusTip(\ + self.aboutQtAct.setStatusTip( self.trUtf8('Display information about the Qt toolkit')) self.aboutQtAct.setWhatsThis(self.trUtf8( """<b>About Qt</b>"""
--- a/Tasks/TaskViewer.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Tasks/TaskViewer.py Sat Sep 04 19:51:48 2010 +0200 @@ -755,7 +755,7 @@ count = 0 for file in files: - progress.setLabelText(\ + progress.setLabelText( self.trUtf8("Extracting project tasks...\n{0}").format(file)) progress.setValue(count) QApplication.processEvents() @@ -805,4 +805,4 @@ """ Private method to open the configuration dialog. """ - e5App().getObject("UserInterface").showPreferences("tasksPage") + e5App().getObject("UserInterface").showPreferences("tasksPage") \ No newline at end of file
--- a/Templates/TemplateMultipleVariablesDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Templates/TemplateMultipleVariablesDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -26,7 +26,7 @@ self.TemplateMultipleVariablesDialogLayout = QVBoxLayout(self) self.TemplateMultipleVariablesDialogLayout.setMargin(6) self.TemplateMultipleVariablesDialogLayout.setSpacing(6) - self.TemplateMultipleVariablesDialogLayout.setObjectName(\ + self.TemplateMultipleVariablesDialogLayout.setObjectName( "TemplateMultipleVariablesDialogLayout") self.setLayout(self.TemplateMultipleVariablesDialogLayout)
--- a/Templates/TemplatePropertiesDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Templates/TemplatePropertiesDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -105,7 +105,7 @@ """ E5MessageBox.information(self, self.trUtf8("Template Help"), - self.trUtf8(\ + self.trUtf8( """<p>To use variables in a template, you just have to enclose""" """ the variablename with $-characters. When you use the template,""" """ you will then be asked for a value for this variable.</p>""" @@ -194,4 +194,4 @@ self.descriptionEdit.text(), self.groupCombo.currentText(), self.templateEdit.toPlainText() - ) + ) \ No newline at end of file
--- a/Templates/TemplateViewer.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Templates/TemplateViewer.py Sat Sep 04 19:51:48 2010 +0200 @@ -524,7 +524,7 @@ """ Private slot to handle the Import context menu action. """ - fn = QFileDialog.getOpenFileName(\ + fn = QFileDialog.getOpenFileName( self, self.trUtf8("Import Templates"), "", @@ -537,7 +537,7 @@ """ Private slot to handle the Export context menu action. """ - fn, selectedFilter = QFileDialog.getSaveFileNameAndFilter(\ + fn, selectedFilter = QFileDialog.getSaveFileNameAndFilter( self, self.trUtf8("Export Templates"), "", @@ -962,4 +962,4 @@ names = [] for group in list(self.groups.values()): names.extend(group.getEntryNames(start)) - return sorted(names) + return sorted(names) \ No newline at end of file
--- a/Tools/TRPreviewer.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Tools/TRPreviewer.py Sat Sep 04 19:51:48 2010 +0200 @@ -201,7 +201,7 @@ self.aboutAct.triggered[()].connect(self.__about) self.aboutQtAct = QAction(self.trUtf8('About &Qt'), self) - self.aboutQtAct.setStatusTip(\ + self.aboutQtAct.setStatusTip( self.trUtf8('Display information about the Qt toolkit')) self.aboutQtAct.setWhatsThis(self.trUtf8( """<b>About Qt</b>"""
--- a/Tools/TrayStarter.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Tools/TrayStarter.py Sat Sep 04 19:51:48 2010 +0200 @@ -368,7 +368,7 @@ formatStr = '&{0:d}. {1}' else: formatStr = '{0:d}. {1}' - act = self.recentFilesMenu.addAction(\ + act = self.recentFilesMenu.addAction( formatStr.format(idx, Utilities.compactPath(rf, self.maxMenuFilePathLen))) act.setData(rf) @@ -383,4 +383,4 @@ """ filename = act.data() if filename: - self.__startProc("eric5.py", filename) + self.__startProc("eric5.py", filename) \ No newline at end of file
--- a/Tools/UIPreviewer.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Tools/UIPreviewer.py Sat Sep 04 19:51:48 2010 +0200 @@ -67,7 +67,7 @@ self.styleCombo.setToolTip(self.trUtf8("Select the GUI Theme")) self.styleLayout.addWidget(self.styleCombo) self.styleCombo.addItems(list(QStyleFactory().keys())) - self.styleCombo.setCurrentIndex(\ + self.styleCombo.setCurrentIndex( int(Preferences.Prefs.settings.value('UIPreviewer/style'))) styleSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) @@ -143,7 +143,7 @@ self.imageAct = QAction(UI.PixmapCache.getIcon("screenCapture.png"), self.trUtf8('&Screen Capture'), self) - self.imageAct.setShortcut(\ + self.imageAct.setShortcut( QKeySequence(self.trUtf8("Ctrl+S", "File|Screen Capture"))) self.imageAct.setStatusTip(self.trUtf8('Save a screen capture to an image file')) self.imageAct.setWhatsThis(self.trUtf8( @@ -195,7 +195,7 @@ self.aboutAct.triggered[()].connect(self.__about) self.aboutQtAct = QAction(self.trUtf8('About &Qt'), self) - self.aboutQtAct.setStatusTip(\ + self.aboutQtAct.setStatusTip( self.trUtf8('Display information about the Qt toolkit')) self.aboutQtAct.setWhatsThis(self.trUtf8( """<b>About Qt</b>""" @@ -425,7 +425,7 @@ filters = "{0}*.{1} ".format(filters, bytes(format).decode().lower()) filter = self.trUtf8("Images ({0})").format(filters[:-1]) - fname = QFileDialog.getSaveFileName(\ + fname = QFileDialog.getSaveFileName( self, self.trUtf8("Save Image"), "",
--- a/UI/Browser.py Sat Sep 04 19:51:19 2010 +0200 +++ b/UI/Browser.py Sat Sep 04 19:51:48 2010 +0200 @@ -174,7 +174,7 @@ self.sourceMenu = QMenu(self) self.sourceMenu.addAction(QApplication.translate('Browser', 'Open'), self._openItem) - self.unittestAct = self.sourceMenu.addAction(\ + self.unittestAct = self.sourceMenu.addAction( QApplication.translate('Browser', 'Run unittest...'), self.handleUnittest) self.sourceMenu.addAction( QApplication.translate('Browser', 'Copy Path to Clipboard'), @@ -208,10 +208,10 @@ self.dirMenu.addAction(QApplication.translate('Browser', 'New toplevel directory...'), self.__newToplevelDir) - self.addAsTopLevelAct = self.dirMenu.addAction(\ + self.addAsTopLevelAct = self.dirMenu.addAction( QApplication.translate('Browser', 'Add as toplevel directory'), self.__addAsToplevelDir) - self.removeFromToplevelAct = self.dirMenu.addAction(\ + self.removeFromToplevelAct = self.dirMenu.addAction( QApplication.translate('Browser', 'Remove from toplevel'), self.__removeToplevel) self.dirMenu.addSeparator() @@ -262,7 +262,7 @@ @param coord the position of the mouse pointer (QPoint) """ - categories = self.getSelectedItemsCountCategorized(\ + categories = self.getSelectedItemsCountCategorized( [BrowserDirectoryItem, BrowserFileItem, BrowserClassItem, BrowserMethodItem]) cnt = categories["sum"] @@ -274,7 +274,7 @@ if index.isValid(): self.setCurrentIndex(index) - flags = QItemSelectionModel.SelectionFlags(\ + flags = QItemSelectionModel.SelectionFlags( QItemSelectionModel.ClearAndSelect | QItemSelectionModel.Rows) self.selectionModel().select(index, flags) @@ -317,7 +317,7 @@ """ Protected slot to handle the open popup menu entry. """ - itmList = self.getSelectedItems(\ + itmList = self.getSelectedItems( [BrowserFileItem, BrowserClassItem, BrowserMethodItem, BrowserClassAttributeItem]) @@ -412,7 +412,7 @@ """ Private slot to handle the New toplevel directory popup menu entry. """ - dname = QFileDialog.getExistingDirectory(\ + dname = QFileDialog.getExistingDirectory( None, QApplication.translate('Browser', "New toplevel directory"), "", @@ -567,4 +567,4 @@ if self.__embeddedBrowser == 1: e5App().getObject("UserInterface").showPreferences("debuggerGeneralPage") elif self.__embeddedBrowser == 2: - e5App().getObject("UserInterface").showPreferences("projectBrowserPage") + e5App().getObject("UserInterface").showPreferences("projectBrowserPage") \ No newline at end of file
--- a/UI/BrowserModel.py Sat Sep 04 19:51:19 2010 +0200 +++ b/UI/BrowserModel.py Sat Sep 04 19:51:48 2010 +0200 @@ -352,7 +352,7 @@ else: self.toplevelDirs.append(Utilities.toNativeSeparators(QDir.homePath())) for d in QDir.drives(): - self.toplevelDirs.append(Utilities.toNativeSeparators(\ + self.toplevelDirs.append(Utilities.toNativeSeparators( d.absoluteFilePath())) for d in self.toplevelDirs: @@ -523,7 +523,7 @@ moduleName = parentItem.moduleName() fileName = parentItem.fileName() try: - dict = Utilities.ClassBrowsers.readmodule(\ + dict = Utilities.ClassBrowsers.readmodule( moduleName, [parentItem.dirName()], parentItem.isPythonFile() or parentItem.isPython3File()) except ImportError: @@ -592,7 +592,7 @@ self.endInsertRows() if len(cl.attributes): - node = BrowserClassAttributesItem(\ + node = BrowserClassAttributesItem( parentItem, cl.attributes, QApplication.translate("BrowserModel", "Attributes")) if repopulate: @@ -602,7 +602,7 @@ self._addItem(node, parentItem) if len(cl.globals): - node = BrowserClassAttributesItem(\ + node = BrowserClassAttributesItem( parentItem, cl.globals, QApplication.translate("BrowserModel", "Attributes (global)")) if repopulate: @@ -1323,7 +1323,7 @@ self.itemData[0] = "{0}({1})".format( name, ", ".join(self._functionObject.parameters)) # if no defaults are wanted - # ....format(name, ", ".join(\ + # ....format(name, ", ".join( # [e.split('=')[0].strip() for e in self._functionObject.parameters])) if self._functionObject and \ (self._functionObject.methods or self._functionObject.classes): @@ -1533,4 +1533,4 @@ issubclass(other.__class__, BrowserClassAttributesItem): return order == Qt.AscendingOrder - return BrowserItem.lessThan(self, other, column, order) + return BrowserItem.lessThan(self, other, column, order) \ No newline at end of file
--- a/UI/CompareDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/UI/CompareDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -91,7 +91,7 @@ self.diffButton = \ self.buttonBox.addButton(self.trUtf8("Compare"), QDialogButtonBox.ActionRole) - self.diffButton.setToolTip(\ + self.diffButton.setToolTip( self.trUtf8("Press to perform the comparison of the two files")) self.diffButton.setEnabled(False) self.diffButton.setDefault(True)
--- a/UI/DiffDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/UI/DiffDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -201,7 +201,7 @@ self.diffButton = \ self.buttonBox.addButton(self.trUtf8("Compare"), QDialogButtonBox.ActionRole) - self.diffButton.setToolTip(\ + self.diffButton.setToolTip( self.trUtf8("Press to perform the comparison of the two files")) self.saveButton = \ self.buttonBox.addButton(self.trUtf8("Save"), QDialogButtonBox.ActionRole)
--- a/UI/EmailDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/UI/EmailDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -270,7 +270,7 @@ # mail server needs authentication password = Preferences.getUser("MailServerPassword") if not password: - password, ok = QInputDialog.getText(\ + password, ok = QInputDialog.getText( self, self.trUtf8("Mail Server Password"), self.trUtf8("Enter your mail server password"), @@ -315,7 +315,7 @@ """ Private slot to handle the Add... button. """ - fname = QFileDialog.getOpenFileName(\ + fname = QFileDialog.getOpenFileName( self, self.trUtf8("Attach file")) if fname: @@ -346,7 +346,7 @@ """ itm = self.attachments.currentItem() if itm is not None: - itm = self.attachments.takeTopLevelItem(\ + itm = self.attachments.takeTopLevelItem( self.attachments.indexOfTopLevelItem(itm)) del itm @@ -356,7 +356,7 @@ @param txt changed text (string) """ - self.sendButton.setEnabled(\ + self.sendButton.setEnabled( self.subject.text() != "" and \ self.message.toPlainText() != "") @@ -366,6 +366,6 @@ @param txt changed text (string) """ - self.sendButton.setEnabled(\ + self.sendButton.setEnabled( self.subject.text() != "" and \ - self.message.toPlainText() != "") + self.message.toPlainText() != "") \ No newline at end of file
--- a/UI/FindFileDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/UI/FindFileDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -494,7 +494,7 @@ """ Private slot to display a directory selection dialog. """ - directory = QFileDialog.getExistingDirectory(\ + directory = QFileDialog.getExistingDirectory( self, self.trUtf8("Select directory"), self.dirCombo.currentText(),
--- a/UI/FindFileNameDialog.py Sat Sep 04 19:51:19 2010 +0200 +++ b/UI/FindFileNameDialog.py Sat Sep 04 19:51:48 2010 +0200 @@ -52,7 +52,7 @@ self.buttonBox.addButton(self.trUtf8("Stop"), QDialogButtonBox.ActionRole) self.stopButton.setToolTip(self.trUtf8("Press to stop the search")) self.stopButton.setEnabled(False) - self.buttonBox.button(QDialogButtonBox.Open).setToolTip(\ + self.buttonBox.button(QDialogButtonBox.Open).setToolTip( self.trUtf8("Opens the selected file")) self.project = project @@ -180,7 +180,7 @@ Private slot to handle the clicked signal of the search directory selection button. """ - searchDir = QFileDialog.getExistingDirectory(\ + searchDir = QFileDialog.getExistingDirectory( None, self.trUtf8("Select search directory"), self.searchDirEdit.text(), @@ -240,4 +240,4 @@ self.fileNameEdit.selectAll() self.fileNameEdit.setFocus() - QWidget.show(self) + QWidget.show(self) \ No newline at end of file
--- a/UI/UserInterface.py Sat Sep 04 19:51:19 2010 +0200 +++ b/UI/UserInterface.py Sat Sep 04 19:51:48 2010 +0200 @@ -1227,7 +1227,7 @@ """ dock = QDockWidget() dock.setObjectName(name) - dock.setFeatures(\ + dock.setFeatures( QDockWidget.DockWidgetFeatures(QDockWidget.AllDockWidgetFeatures)) return dock @@ -1327,7 +1327,7 @@ self.trUtf8('Debug Profile'), 0, 0, self.viewProfileActGrp, 'debug_profile', True) - self.setDebugProfileAct.setStatusTip(\ + self.setDebugProfileAct.setStatusTip( self.trUtf8('Activate the debug view profile')) self.setDebugProfileAct.setWhatsThis(self.trUtf8( """<b>Debug Profile</b>""" @@ -1503,7 +1503,7 @@ self.templateViewerAct = E5Action(self.trUtf8('Template-Viewer'), self.trUtf8('Temp&late-Viewer'), 0, 0, self, 'template_viewer', True) - self.templateViewerAct.setStatusTip(\ + self.templateViewerAct.setStatusTip( self.trUtf8('Toggle the Template-Viewer window')) self.templateViewerAct.setWhatsThis(self.trUtf8( """<b>Toggle the Template-Viewer window</b>""" @@ -1697,7 +1697,7 @@ self.showVersionsAct = E5Action(self.trUtf8('Show downloadable versions'), self.trUtf8('Show &downloadable versions...'), 0, 0, self, 'show_downloadable_versions') - self.showVersionsAct.setStatusTip(\ + self.showVersionsAct.setStatusTip( self.trUtf8('Show the versions available for download')) self.showVersionsAct.setWhatsThis(self.trUtf8( """<b>Show downloadable versions...</b>""" @@ -3022,7 +3022,7 @@ act = self.__menus["tools"].addAction(self.trUtf8("Configure Tool Groups ..."), self.__toolGroupsConfiguration) act.setData(-1) - act = self.__menus["tools"].addAction(\ + act = self.__menus["tools"].addAction( self.trUtf8("Configure current Tool Group ..."), self.__toolsConfiguration) act.setData(-2) @@ -3055,7 +3055,7 @@ if tool['menutext'] == '--': self.__menus["tools"].addSeparator() else: - act = self.__menus["tools"].addAction(\ + act = self.__menus["tools"].addAction( UI.PixmapCache.getIcon(tool['icon']), tool['menutext']) act.setData(idx) idx += 1 @@ -4885,7 +4885,7 @@ """ Private slot to export the keyboard shortcuts. """ - fn, selectedFilter = QFileDialog.getSaveFileNameAndFilter(\ + fn, selectedFilter = QFileDialog.getSaveFileNameAndFilter( None, self.trUtf8("Export Keyboard Shortcuts"), "", @@ -4914,7 +4914,7 @@ """ Private slot to import the keyboard shortcuts. """ - fn = QFileDialog.getOpenFileName(\ + fn = QFileDialog.getOpenFileName( None, self.trUtf8("Import Keyboard Shortcuts"), "", @@ -5413,7 +5413,7 @@ if period == 0: return elif period in [2, 3, 4]: - lastCheck = Preferences.Prefs.settings.value(\ + lastCheck = Preferences.Prefs.settings.value( "Updates/LastCheckDate", QDate(1970, 1, 1)) if lastCheck.isValid(): now = QDate.currentDate() @@ -5489,7 +5489,7 @@ if self.showAvailableVersions: self.__showAvailableVersionInfos(versions) else: - Preferences.Prefs.settings.setValue(\ + Preferences.Prefs.settings.setValue( "Updates/LastCheckDate", QDate.currentDate()) self.__versionCheckResult(versions) @@ -5685,4 +5685,4 @@ if self.__startup: if Preferences.getGeometry("MainMaximized"): self.setWindowState(Qt.WindowStates(Qt.WindowMaximized)) - self.__startup = False + self.__startup = False \ No newline at end of file
--- a/Utilities/Startup.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Utilities/Startup.py Sat Sep 04 19:51:48 2010 +0200 @@ -227,7 +227,7 @@ qt4TransDir = QLibraryInfo.location(QLibraryInfo.TranslationsPath) loadTranslators(qt4TransDir, app) - QTextCodec.setCodecForCStrings(\ + QTextCodec.setCodecForCStrings( QTextCodec.codecForName(Preferences.getSystem("StringEncoding")) ) @@ -235,4 +235,4 @@ app.lastWindowClosed.connect(app.quit) w.show() - return app.exec_() + return app.exec_() \ No newline at end of file
--- a/VCS/ProjectBrowserHelper.py Sat Sep 04 19:51:19 2010 +0200 +++ b/VCS/ProjectBrowserHelper.py Sat Sep 04 19:51:48 2010 +0200 @@ -129,7 +129,7 @@ """ if self.isTranslationsBrowser: names = [itm.dirName() \ - for itm in self.browser.getSelectedItems(\ + for itm in self.browser.getSelectedItems( [ProjectBrowserSimpleDirectoryItem])] if not names: names = [itm.fileName() \ @@ -151,7 +151,7 @@ """ if self.isTranslationsBrowser: names = [itm.dirName() \ - for itm in self.browser.getSelectedItems(\ + for itm in self.browser.getSelectedItems( [ProjectBrowserSimpleDirectoryItem])] if not names: names = [itm.fileName() \ @@ -261,7 +261,7 @@ else: items = self.browser.getSelectedItems() isRemoveDirs = len(items) == \ - self.browser.getSelectedItemsCount(\ + self.browser.getSelectedItemsCount( [ProjectBrowserSimpleDirectoryItem, ProjectBrowserDirectoryItem]) if isRemoveDirs: names = [itm.dirName() for itm in items] @@ -368,4 +368,4 @@ @param name filename or directoryname of the item to be updated (string) """ - self.project.getModel().updateVCSStatus(name) + self.project.getModel().updateVCSStatus(name) \ No newline at end of file
--- a/VCS/ProjectHelper.py Sat Sep 04 19:51:19 2010 +0200 +++ b/VCS/ProjectHelper.py Sat Sep 04 19:51:48 2010 +0200 @@ -133,7 +133,7 @@ keys = sorted(vcsSystemsDict.keys()) for key in keys: vcsSystemsDisplay.append(vcsSystemsDict[key]) - vcsSelected, ok = QInputDialog.getItem(\ + vcsSelected, ok = QInputDialog.getItem( None, self.trUtf8("New Project"), self.trUtf8("Select version control system for the project"), @@ -199,7 +199,7 @@ self.trUtf8("Select a project file to open."), pfilenamelist, 0, False) if ok: - self.project.openProject(\ + self.project.openProject( QFileInfo(d, pfilename).absoluteFilePath()) self.project.newProject.emit() if export: @@ -294,7 +294,7 @@ keys = sorted(list(vcsSystemsDict.keys())) for key in keys: vcsSystemsDisplay.append(vcsSystemsDict[key]) - vcsSelected, ok = QInputDialog.getItem(\ + vcsSelected, ok = QInputDialog.getItem( None, self.trUtf8("Import Project"), self.trUtf8("Select version control system for the project"), @@ -448,4 +448,4 @@ """ info = self.vcs.vcsRepositoryInfos(self.project.ppath) dlg = VcsRepositoryInfoDialog(None, info) - dlg.exec_() + dlg.exec_() \ No newline at end of file
--- a/VCS/StatusMonitorLed.py Sat Sep 04 19:51:19 2010 +0200 +++ b/VCS/StatusMonitorLed.py Sat Sep 04 19:51:48 2010 +0200 @@ -46,7 +46,7 @@ """ yellow = checking VCS status). A status description is given""" """ in the tooltip.</p>""" )) - self.setToolTip(\ + self.setToolTip( self.trUtf8("Repository status checking is switched off") ) self.setColor(self.vcsMonitorLedColors["off"]) @@ -116,7 +116,7 @@ """ Private slot to change the status check interval. """ - interval, ok = QInputDialog.getInteger(\ + interval, ok = QInputDialog.getInteger( None, self.trUtf8("VCS Status Monitor"), self.trUtf8("Enter monitor interval [s]"), @@ -135,4 +135,4 @@ """ Private slot to switch the status monitor thread to Off. """ - self.project.stopStatusMonitor() + self.project.stopStatusMonitor() \ No newline at end of file
--- a/ViewManager/ViewManager.py Sat Sep 04 19:51:19 2010 +0200 +++ b/ViewManager/ViewManager.py Sat Sep 04 19:51:48 2010 +0200 @@ -478,7 +478,7 @@ QApplication.translate('ViewManager', '&New'), QKeySequence(QApplication.translate('ViewManager', "Ctrl+N", "File|New")), 0, self, 'vm_file_new') - self.newAct.setStatusTip(\ + self.newAct.setStatusTip( QApplication.translate('ViewManager', 'Open an empty editor window')) self.newAct.setWhatsThis(QApplication.translate('ViewManager', """<b>New</b>""" @@ -490,7 +490,7 @@ self.openAct = E5Action(QApplication.translate('ViewManager', 'Open'), UI.PixmapCache.getIcon("open.png"), QApplication.translate('ViewManager', '&Open...'), - QKeySequence(\ + QKeySequence( QApplication.translate('ViewManager', "Ctrl+O", "File|Open")), 0, self, 'vm_file_open') self.openAct.setStatusTip(QApplication.translate('ViewManager', 'Open a file')) @@ -507,10 +507,10 @@ self.closeAct = E5Action(QApplication.translate('ViewManager', 'Close'), UI.PixmapCache.getIcon("close.png"), QApplication.translate('ViewManager', '&Close'), - QKeySequence(\ + QKeySequence( QApplication.translate('ViewManager', "Ctrl+W", "File|Close")), 0, self.closeActGrp, 'vm_file_close') - self.closeAct.setStatusTip(\ + self.closeAct.setStatusTip( QApplication.translate('ViewManager', 'Close the current window')) self.closeAct.setWhatsThis(QApplication.translate('ViewManager', """<b>Close Window</b>""" @@ -522,7 +522,7 @@ self.closeAllAct = E5Action(QApplication.translate('ViewManager', 'Close All'), QApplication.translate('ViewManager', 'Clos&e All'), 0, 0, self.closeActGrp, 'vm_file_close_all') - self.closeAllAct.setStatusTip(\ + self.closeAllAct.setStatusTip( QApplication.translate('ViewManager', 'Close all editor windows')) self.closeAllAct.setWhatsThis(QApplication.translate('ViewManager', """<b>Close All Windows</b>""" @@ -538,10 +538,10 @@ self.saveAct = E5Action(QApplication.translate('ViewManager', 'Save'), UI.PixmapCache.getIcon("fileSave.png"), QApplication.translate('ViewManager', '&Save'), - QKeySequence(\ + QKeySequence( QApplication.translate('ViewManager', "Ctrl+S", "File|Save")), 0, self.saveActGrp, 'vm_file_save') - self.saveAct.setStatusTip(\ + self.saveAct.setStatusTip( QApplication.translate('ViewManager', 'Save the current file')) self.saveAct.setWhatsThis(QApplication.translate('ViewManager', """<b>Save File</b>""" @@ -1107,7 +1107,7 @@ self.autoCompleteFromAPIsAct.triggered[()].connect(self.__editAutoCompleteFromAPIs) self.editActions.append(self.autoCompleteFromAPIsAct) - self.autoCompleteFromAllAct = E5Action(\ + self.autoCompleteFromAllAct = E5Action( QApplication.translate('ViewManager', 'Autocomplete from Document and APIs'), QApplication.translate('ViewManager', @@ -2960,7 +2960,7 @@ # 2: Directory of currently active project # 3: CWD filter = self._getOpenFileFilter() - progs = E5FileDialog.getOpenFileNamesAndFilter(\ + progs = E5FileDialog.getOpenFileNamesAndFilter( self.ui, QApplication.translate('ViewManager', "Open files"), self._getOpenStartDir(), @@ -3599,7 +3599,7 @@ formatStr = '&{0:d}. {1}' else: formatStr = '{0:d}. {1}' - act = self.recentMenu.addAction(\ + act = self.recentMenu.addAction( formatStr.format(idx, Utilities.compactPath(rs, self.ui.maxMenuFilePathLen))) act.setData(rs) @@ -3607,7 +3607,7 @@ idx += 1 self.recentMenu.addSeparator() - self.recentMenu.addAction(\ + self.recentMenu.addAction( QApplication.translate('ViewManager', '&Clear'), self.__clearRecent) def __openSourceFile(self, act): @@ -3633,18 +3633,18 @@ self.bookmarkedMenu.clear() for rp in self.bookmarked: - act = self.bookmarkedMenu.addAction(\ + act = self.bookmarkedMenu.addAction( Utilities.compactPath(rp, self.ui.maxMenuFilePathLen)) act.setData(rp) act.setEnabled(QFileInfo(rp).exists()) if len(self.bookmarked): self.bookmarkedMenu.addSeparator() - self.bookmarkedMenu.addAction(\ + self.bookmarkedMenu.addAction( QApplication.translate('ViewManager', '&Add'), self.__addBookmarked) - self.bookmarkedMenu.addAction(\ + self.bookmarkedMenu.addAction( QApplication.translate('ViewManager', '&Edit...'), self.__editBookmarked) - self.bookmarkedMenu.addAction(\ + self.bookmarkedMenu.addAction( QApplication.translate('ViewManager', '&Clear'), self.__clearBookmarked) def __addBookmarked(self): @@ -4251,15 +4251,15 @@ """ if checked: self.setSplitOrientation(Qt.Horizontal) - self.splitViewAct.setIcon(\ + self.splitViewAct.setIcon( UI.PixmapCache.getIcon("splitHorizontal.png")) - self.splitRemoveAct.setIcon(\ + self.splitRemoveAct.setIcon( UI.PixmapCache.getIcon("remsplitHorizontal.png")) else: self.setSplitOrientation(Qt.Vertical) - self.splitViewAct.setIcon(\ + self.splitViewAct.setIcon( UI.PixmapCache.getIcon("splitVertical.png")) - self.splitRemoveAct.setIcon(\ + self.splitRemoveAct.setIcon( UI.PixmapCache.getIcon("remsplitVertical.png")) ################################################################## @@ -5093,4 +5093,4 @@ if aw is not None: if aw.hasSelectedText(): txt = aw.selectedText() - return txt + return txt \ No newline at end of file
--- a/eric5.py Sat Sep 04 19:51:19 2010 +0200 +++ b/eric5.py Sat Sep 04 19:51:48 2010 +0200 @@ -217,7 +217,7 @@ # Load translation files and install them loc = Startup.loadTranslators(qt4TransDir, app, ("qscintilla",)) - QTextCodec.setCodecForCStrings(QTextCodec.codecForName(\ + QTextCodec.setCodecForCStrings(QTextCodec.codecForName( str(Preferences.getSystem("StringEncoding")))) splash.showMessage(QApplication.translate("eric5", "Importing packages...")) @@ -246,4 +246,4 @@ raise err if __name__ == '__main__': - main() + main() \ No newline at end of file
--- a/install.py Sat Sep 04 19:51:19 2010 +0200 +++ b/install.py Sat Sep 04 19:51:48 2010 +0200 @@ -218,7 +218,7 @@ if not os.path.exists(pdir): os.mkdir(pdir, 0o755) f = open(fname, "w", encoding = "utf-8") - f.write(\ + f.write( '''# -*- coding: utf-8 -*- """ @@ -845,4 +845,4 @@ print("""An internal error occured. Please report all the output of the program, including the following traceback, to eric5-bugs@eric-ide.python-projects.org. """) - raise + raise \ No newline at end of file
--- a/patch_pyxml.py Sat Sep 04 19:51:19 2010 +0200 +++ b/patch_pyxml.py Sat Sep 04 19:51:48 2010 +0200 @@ -76,12 +76,12 @@ for line in lines: if patchPositionFound and \ - (line.startswith(\ + (line.startswith( " # patched by eric5 install script.") or \ - line.startswith(\ + line.startswith( " self.datasize = len(self.data)")): return True - if line.startswith(\ + if line.startswith( " self.data = self.charset_converter(self.data)"): patchPositionFound = True continue @@ -114,16 +114,16 @@ s = open(sn, "w", encoding = "utf-8") for line in lines: if patchPositionFound: - if not line.startswith(\ + if not line.startswith( " # patched by eric5 install script.") and \ - not line.startswith(\ + not line.startswith( " self.datasize = len(self.data)"): s.write(" # patched by eric5 install script.\n") s.write(" self.datasize = len(self.data)\n") patched = True patchPositionFound = False s.write(line) - if line.startswith(\ + if line.startswith( " self.data = self.charset_converter(self.data)"): patchPositionFound = True continue @@ -188,4 +188,4 @@ patchPyXML() if __name__ == "__main__": - main() + main() \ No newline at end of file