diff -r 4860fe0ed4a6 -r 8727522a69d5 UI/UserInterface.py --- a/UI/UserInterface.py Sat Mar 09 17:05:49 2013 +0100 +++ b/UI/UserInterface.py Sun Mar 10 17:10:23 2013 +0100 @@ -356,7 +356,6 @@ self.appendStdout.connect(self.logViewer.appendToStdout) self.appendStderr.connect(self.logViewer.appendToStderr) self.preferencesChanged.connect(self.shell.handlePreferencesChanged) - self.preferencesChanged.connect(self.terminal.handlePreferencesChanged) self.preferencesChanged.connect(self.project.handlePreferencesChanged) self.preferencesChanged.connect(self.projectBrowser.handlePreferencesChanged) self.preferencesChanged.connect( @@ -388,8 +387,6 @@ self.shell.zoomValueChanged.connect(self.viewmanager.zoomValueChanged) - self.terminal.zoomValueChanged.connect(self.viewmanager.zoomValueChanged) - self.cooperation.shareEditor.connect(self.viewmanager.shareEditor) self.cooperation.startEdit.connect(self.viewmanager.startSharedEdit) self.cooperation.sendEdit.connect(self.viewmanager.sendSharedEdit) @@ -433,7 +430,6 @@ e5App().registerObject("DummyHelpViewer", self.dummyHelpViewer) e5App().registerObject("PluginManager", self.pluginManager) e5App().registerObject("ToolbarManager", self.toolbarManager) - e5App().registerObject("Terminal", self.terminal) e5App().registerObject("Cooperation", self.cooperation) e5App().registerObject("IRC", self.irc) e5App().registerObject("Symbols", self.symbolsViewer) @@ -650,14 +646,6 @@ UI.PixmapCache.getIcon("irc.png"), self.trUtf8("IRC")) - # Create the terminal part of the user interface - from QScintilla.Terminal import TerminalAssembly - self.terminalAssembly = TerminalAssembly(self.viewmanager) - self.terminal = self.terminalAssembly.terminal() - self.hToolbox.addItem(self.terminalAssembly, - UI.PixmapCache.getIcon("terminal.png"), - self.trUtf8("Terminal")) - # Create the task viewer part of the user interface from Tasks.TaskViewer import TaskViewer self.taskViewer = TaskViewer(None, self.project) @@ -778,15 +766,6 @@ self.rightSidebar.addTab(self.irc, UI.PixmapCache.getIcon("irc.png"), self.trUtf8("IRC")) - # Create the terminal part of the user interface - logging.debug("Creating Terminal...") - from QScintilla.Terminal import TerminalAssembly - self.terminalAssembly = TerminalAssembly(self.viewmanager) - self.terminal = self.terminalAssembly.terminal() - self.bottomSidebar.addTab(self.terminalAssembly, - UI.PixmapCache.getIcon("terminal.png"), - self.trUtf8("Terminal")) - # Create the task viewer part of the user interface logging.debug("Creating Task Viewer...") from Tasks.TaskViewer import TaskViewer @@ -1257,21 +1236,6 @@ self.actions.append(self.shellActivateAct) self.addAction(self.shellActivateAct) - self.terminalActivateAct = E5Action(self.trUtf8('Terminal'), - self.trUtf8('Te&rminal'), - QKeySequence(self.trUtf8("Alt+Shift+R")), - 0, self, - 'terminal_activate') - self.terminalActivateAct.setStatusTip(self.trUtf8( - "Switch the input focus to the Terminal window.")) - self.terminalActivateAct.setWhatsThis(self.trUtf8( - """<b>Activate Terminal</b>""" - """<p>This switches the input focus to the Terminal window.</p>""" - )) - self.terminalActivateAct.triggered[()].connect(self.__activateTerminal) - self.actions.append(self.terminalActivateAct) - self.addAction(self.terminalActivateAct) - self.browserActivateAct = E5Action(self.trUtf8('File-Browser'), self.trUtf8('&File-Browser'), QKeySequence(self.trUtf8("Alt+Shift+F")), @@ -2214,7 +2178,6 @@ self.__menus["subwindow"].addAction(self.symbolsViewerActivateAct) # bottom side self.__menus["subwindow"].addAction(self.shellActivateAct) - self.__menus["subwindow"].addAction(self.terminalActivateAct) self.__menus["subwindow"].addAction(self.taskViewerActivateAct) self.__menus["subwindow"].addAction(self.logViewerActivateAct) self.__menus["subwindow"].addAction(self.numbersViewerActivateAct) @@ -3390,20 +3353,6 @@ self.shell.show() self.shell.setFocus(Qt.ActiveWindowFocusReason) - def __activateTerminal(self): - """ - Private slot to handle the activation of the Terminal window. - """ - if self.layout == "Toolboxes": - self.hToolboxDock.show() - self.hToolbox.setCurrentWidget(self.terminalAssembly) - elif self.layout == "Sidebars": - self.bottomSidebar.show() - self.bottomSidebar.setCurrentWidget(self.terminalAssembly) - else: - self.terminal.show() - self.terminal.setFocus(Qt.ActiveWindowFocusReason) - def __activateLogViewer(self): """ Private slot to handle the activation of the Log Viewer. @@ -4512,7 +4461,6 @@ """ home = Utilities.normjoinpath(getConfig('ericDocDir'), "Source", "index.html") -## home = "qthelp://org.eric5.ide/eric5/index.html" if not home.startswith("http://") and \ not home.startswith("https://") and \ @@ -5270,7 +5218,6 @@ self.__previewer.shutdown() self.shell.closeShell() - self.terminal.closeTerminal() self.__writeTasks() self.templateViewer.save()