comparison frontends/wix/main_window.py @ 183:9ee4a1d0d7fb

Added auto(dis)connect params + misc - parameters,xmlui: "bool" type is now managed - parameters,xmlui: categories now use label in addition of name - QuickFrontend: auto(dis)connection management - plugin XEP-0045: an error dialog is now show in frontend if room cannot be joined - Wix: fixed unproper close event management
author Goffi <goffi@goffi.org>
date Wed, 18 Aug 2010 15:57:26 +0800
parents 556c2bd7c344
children fd2db62ea5eb
comparison
equal deleted inserted replaced
182:556c2bd7c344 183:9ee4a1d0d7fb
123 self.contactList.Show() 123 self.contactList.Show()
124 self.sizer.Layout() 124 self.sizer.Layout()
125 for i in range(self.menuBar.GetMenuCount()): 125 for i in range(self.menuBar.GetMenuCount()):
126 self.menuBar.EnableTop(i, True) 126 self.menuBar.EnableTop(i, True)
127 super(MainWindow, self).plug_profile(profile_key) 127 super(MainWindow, self).plug_profile(profile_key)
128 if not self.bridge.isConnected(profile_key):
129 self.bridge.connect(profile_key)
130 128
131 def createMenus(self): 129 def createMenus(self):
132 info(_("Creating menus")) 130 info(_("Creating menus"))
133 connectMenu = wx.Menu() 131 connectMenu = wx.Menu()
134 connectMenu.Append(idCONNECT, _("&Connect CTRL-c"),_(" Connect to the server")) 132 connectMenu.Append(idCONNECT, _("&Connect CTRL-c"),_(" Connect to the server"))
462 target = data['__private__']['target'] 460 target = data['__private__']['target']
463 del data['__private__'] 461 del data['__private__']
464 gatewayManager = GatewaysManager(self, data, server=target) 462 gatewayManager = GatewaysManager(self, data, server=target)
465 463
466 def onClose(self, e): 464 def onClose(self, e):
465 QuickApp.onExit(self)
467 info(_("Exiting...")) 466 info(_("Exiting..."))
467 for win in self.chat_wins:
468 self.chat_wins[win].Destroy()
468 e.Skip() 469 e.Skip()
469 470
470 def onTrayClick(self, e): 471 def onTrayClick(self, e):
471 debug(_("Tray Click")) 472 debug(_("Tray Click"))
472 if self.IsShown(): 473 if self.IsShown():