diff frontends/src/wix/main_window.py @ 501:e9634d2e7b38

core, quick_frontend, primitivus, wix: Contacts List refactoring phase 1: - QuickContactManagement is not used anymore and will be removed, ContactList + Core are used instead - disconnected contacts are now displayed in Primitivus (M-d to show/hide them) - avatars are temporary unavailable in wix - new bridge method: getContactsFromGroup
author Goffi <goffi@goffi.org>
date Tue, 25 Sep 2012 00:58:34 +0200
parents 1e4731f1e1d7
children 886754295efe
line wrap: on
line diff
--- a/frontends/src/wix/main_window.py	Wed Sep 05 00:19:32 2012 +0200
+++ b/frontends/src/wix/main_window.py	Tue Sep 25 00:58:34 2012 +0200
@@ -64,17 +64,16 @@
     def __init__(self):
         QuickApp.__init__(self)
         wx.Frame.__init__(self,None, title="SàT Wix", size=(300,500))
-        self.CM = QuickContactManagement() #FIXME: not the best place
 
         #sizer
         self.sizer = wx.BoxSizer(wx.VERTICAL)
         self.SetSizer(self.sizer)
         
         #Frame elements
-        self.contactList = ContactList(self, self)
-        self.contactList.registerActivatedCB(self.onContactActivated)
-        self.contactList.Hide()
-        self.sizer.Add(self.contactList, 1, flag=wx.EXPAND)
+        self.contact_list = ContactList(self, self)
+        self.contact_list.registerActivatedCB(self.onContactActivated)
+        self.contact_list.Hide()
+        self.sizer.Add(self.contact_list, 1, flag=wx.EXPAND)
         
         self.chat_wins=ChatList(self)
         self.CreateStatusBar()
@@ -120,7 +119,7 @@
         """Hide profile panel then plug profile"""
         debug (_('plugin profile %s' % profile_key))
         self.profile_pan.Hide()
-        self.contactList.Show()
+        self.contact_list.Show()
         self.sizer.Layout()
         for i in range(self.menuBar.GetMenuCount()):
             self.menuBar.EnableTop(i, True)
@@ -410,7 +409,7 @@
 
     def onRemoveContact(self, e):
         debug(_("Remove contact request"))
-        target = self.contactList.getSelection()
+        target = self.contact_list.getSelection()
         if not target:
             dlg = wx.MessageDialog(self, _("You haven't selected any contact !"),
                                    _('Error'),
@@ -433,7 +432,7 @@
 
     def onShowProfile(self, e):
         debug(_("Show contact's profile request"))
-        target = self.contactList.getSelection()
+        target = self.contact_list.getSelection()
         if not target:
             dlg = wx.MessageDialog(self, _("You haven't selected any contact !"),
                                    _('Error'),