eric7/Network/IRC/IrcWidget.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8354
12ebd3934fef
child 8358
144a6b854f70
equal deleted inserted replaced
8355:8a7677a63c8d 8356:68ec9c3d4de5
20 from EricNetwork.EricSslErrorHandler import EricSslErrorHandler, EricSslErrorState 20 from EricNetwork.EricSslErrorHandler import EricSslErrorHandler, EricSslErrorState
21 SSL_AVAILABLE = True 21 SSL_AVAILABLE = True
22 except ImportError: 22 except ImportError:
23 SSL_AVAILABLE = False 23 SSL_AVAILABLE = False
24 24
25 from E5Gui import E5MessageBox 25 from E5Gui import EricMessageBox
26 26
27 from .Ui_IrcWidget import Ui_IrcWidget 27 from .Ui_IrcWidget import Ui_IrcWidget
28 28
29 import Preferences 29 import Preferences
30 import UI.PixmapCache 30 import UI.PixmapCache
136 136
137 @return flag indicating successful shutdown (boolean) 137 @return flag indicating successful shutdown (boolean)
138 """ 138 """
139 if self.__server: 139 if self.__server:
140 if Preferences.getIrc("AskOnShutdown"): 140 if Preferences.getIrc("AskOnShutdown"):
141 ok = E5MessageBox.yesNo( 141 ok = EricMessageBox.yesNo(
142 self, 142 self,
143 self.tr("Disconnect from Server"), 143 self.tr("Disconnect from Server"),
144 self.tr( 144 self.tr(
145 """<p>Do you really want to disconnect from""" 145 """<p>Do you really want to disconnect from"""
146 """ <b>{0}</b>?</p><p>All channels will be closed.""" 146 """ <b>{0}</b>?</p><p>All channels will be closed."""
182 self.__userName = identity.getIdent() 182 self.__userName = identity.getIdent()
183 self.__quitMessage = identity.getQuitMessage() 183 self.__quitMessage = identity.getQuitMessage()
184 if self.__server: 184 if self.__server:
185 useSSL = self.__server.useSSL() 185 useSSL = self.__server.useSSL()
186 if useSSL and not SSL_AVAILABLE: 186 if useSSL and not SSL_AVAILABLE:
187 E5MessageBox.critical( 187 EricMessageBox.critical(
188 self, 188 self,
189 self.tr("SSL Connection"), 189 self.tr("SSL Connection"),
190 self.tr( 190 self.tr(
191 """An encrypted connection to the IRC""" 191 """An encrypted connection to the IRC"""
192 """ network was requested but SSL is not""" 192 """ network was requested but SSL is not"""
240 self.__server.getPort()) 240 self.__server.getPort())
241 else: 241 else:
242 if silent: 242 if silent:
243 ok = True 243 ok = True
244 else: 244 else:
245 ok = E5MessageBox.yesNo( 245 ok = EricMessageBox.yesNo(
246 self, 246 self,
247 self.tr("Disconnect from Server"), 247 self.tr("Disconnect from Server"),
248 self.tr("""<p>Do you really want to disconnect from""" 248 self.tr("""<p>Do you really want to disconnect from"""
249 """ <b>{0}</b>?</p><p>All channels will be""" 249 """ <b>{0}</b>?</p><p>All channels will be"""
250 """ closed.</p>""") 250 """ closed.</p>""")

eric ide

mercurial