--- a/src/eric7/UI/UserInterface.py Fri Apr 18 16:56:34 2025 +0200 +++ b/src/eric7/UI/UserInterface.py Fri Apr 18 17:25:18 2025 +0200 @@ -557,9 +557,6 @@ if self.numbersViewer is not None: self.numbersViewer.insertNumber.connect(self.viewmanager.insertNumber) - if self.irc is not None: - self.irc.autoConnected.connect(self.__ircAutoConnected) - if self.pipWidget is not None: self.preferencesChanged.connect(self.pipWidget.preferencesChanged) @@ -621,8 +618,6 @@ ericApp().registerObject("ToolbarManager", self.toolbarManager) if self.cooperation is not None: ericApp().registerObject("Cooperation", self.cooperation) - if self.irc is not None: - ericApp().registerObject("IRC", self.irc) if self.symbolsViewer is not None: ericApp().registerObject("Symbols", self.symbolsViewer) if self.numbersViewer is not None: @@ -922,16 +917,6 @@ logging.getLogger(__name__).debug("Chat Widget disabled") self.cooperation = None - if Preferences.getUI("ShowIrc"): - # Create the IRC part of the user interface - logging.getLogger(__name__).debug("Creating IRC Widget...") - from eric7.Network.IRC.IrcWidget import IrcWidget # noqa: I-101 - - self.irc = IrcWidget(self) - else: - logging.getLogger(__name__).debug("IRC Widget disabled") - self.irc = None - if Preferences.getUI("ShowMicroPython"): # Create the MicroPython part of the user interface logging.getLogger(__name__).debug("Creating MicroPython Widget...") @@ -1234,11 +1219,6 @@ self.tr("Cooperation"), ) - if self.irc: - self.rToolbox.addItem( - self.irc, EricPixmapCache.getIcon("irc"), self.tr("IRC") - ) - if self.microPythonWidget: self.rToolbox.addItem( self.microPythonWidget, @@ -1434,9 +1414,6 @@ self.tr("Cooperation"), ) - if self.irc: - sidebar.addTab(self.irc, EricPixmapCache.getIcon("sbIrc96"), self.tr("IRC")) - if self.microPythonWidget: sidebar.addTab( self.microPythonWidget, @@ -2372,28 +2349,6 @@ self.actions.append(self.cooperationViewerActivateAct) self.addAction(self.cooperationViewerActivateAct) - if self.irc is not None: - self.ircActivateAct = EricAction( - self.tr("IRC"), - self.tr("&IRC"), - QKeySequence(self.tr("Ctrl+Alt+Shift+I")), - 0, - self, - "irc_widget_activate", - ) - self.ircActivateAct.setStatusTip( - self.tr("Switch the input focus to the IRC window.") - ) - self.ircActivateAct.setWhatsThis( - self.tr( - """<b>Activate IRC</b>""" - """<p>This switches the input focus to the IRC window.</p>""" - ) - ) - self.ircActivateAct.triggered.connect(self.__activateIRC) - self.actions.append(self.ircActivateAct) - self.addAction(self.ircActivateAct) - if self.symbolsViewer is not None: self.symbolsViewerActivateAct = EricAction( self.tr("Symbols-Viewer"), @@ -4031,8 +3986,6 @@ self.__menus["subwindow"].addAction(self.condaWidgetActivateAct) if self.cooperation is not None: self.__menus["subwindow"].addAction(self.cooperationViewerActivateAct) - if self.irc is not None: - self.__menus["subwindow"].addAction(self.ircActivateAct) if self.microPythonWidget is not None: self.__menus["subwindow"].addAction(self.microPythonWidgetActivateAct) @@ -5857,18 +5810,6 @@ self.activateLeftRightSidebarWidget(self.cooperation) self.cooperation.setFocus(Qt.FocusReason.ActiveWindowFocusReason) - def __activateIRC(self): - """ - Private slot to handle the activation of the IRC window. - """ - if self.irc is not None: - if self.__layoutType == "Toolboxes": - self.rToolboxDock.show() - self.rToolbox.setCurrentWidget(self.irc) - elif self.__layoutType == "Sidebars": - self.activateLeftRightSidebarWidget(self.irc) - self.irc.setFocus(Qt.FocusReason.ActiveWindowFocusReason) - def __activateSymbolsViewer(self): """ Private slot to handle the activation of the Symbols Viewer. @@ -8372,9 +8313,6 @@ if self.__webBrowserProcess is not None: self.__webBrowserShutdown() - if self.irc is not None and not self.irc.shutdown(): - return False - sessionCreated = self.__writeSession() self.shell.closeShell() @@ -8697,23 +8635,6 @@ icon, heading, text, kind=kind, timeout=timeout ) - ######################### - ## Support for IRC below - ######################### - - def autoConnectIrc(self): - """ - Public method to initiate the IRC auto connection. - """ - if self.irc is not None: - self.irc.autoConnect() - - def __ircAutoConnected(self): - """ - Private slot handling the automatic connection of the IRC client. - """ - self.__activateIRC() - ############################################## ## Support for Code Documentation Viewer below ##############################################