comparison src/browser/sat_browser/contact_group.py @ 648:6d3142b782c3 frontends_multi_profiles

browser_side: classes reorganisation: - moved widgets in dedicated modules (base, contact, editor, libervia) and a widget module for single classes - same thing for panels (base, main, contact) - libervia_widget mix main panels and widget and drag n drop for technical reasons (see comments) - renamed WebPanel to WebWidget
author Goffi <goffi@goffi.org>
date Thu, 26 Feb 2015 18:10:54 +0100
parents e0021d571eef
children 9877607c719a
comparison
equal deleted inserted replaced
647:e0021d571eef 648:6d3142b782c3
26 from pyjamas.ui.DialogBox import DialogBox 26 from pyjamas.ui.DialogBox import DialogBox
27 from pyjamas.ui import HasAlignment 27 from pyjamas.ui import HasAlignment
28 28
29 import dialog 29 import dialog
30 import list_manager 30 import list_manager
31 import contact_panel
31 import contact_list 32 import contact_list
32 import base_panels
33 33
34 34
35 unicode = str # FIXME: pyjamas workaround 35 unicode = str # FIXME: pyjamas workaround
36 36
37 37
184 184
185 def initContactList(self): 185 def initContactList(self):
186 """Add the contact list to the DockPanel.""" 186 """Add the contact list to the DockPanel."""
187 self.toggle = Button("", self.toggleContacts) 187 self.toggle = Button("", self.toggleContacts)
188 self.toggle.addStyleName("toggleAssignedContacts") 188 self.toggle.addStyleName("toggleAssignedContacts")
189 self.contacts = base_panels.ContactsPanel(self.host) 189 self.contacts = contact_panel.ContactsPanel(self.host)
190 for contact in self.all_contacts: 190 for contact in self.all_contacts:
191 self.contacts.add(contact) 191 self.contacts.add(contact)
192 contact_panel = VerticalPanel() 192 panel = VerticalPanel()
193 contact_panel.add(self.toggle) 193 panel.add(self.toggle)
194 contact_panel.add(self.contacts) 194 panel.add(self.contacts)
195 return contact_panel 195 return panel
196 196
197 def toggleContacts(self, sender=None, showAll=None): 197 def toggleContacts(self, sender=None, showAll=None):
198 """Toggle the button to show contacts and the contact list. 198 """Toggle the button to show contacts and the contact list.
199 199
200 @param sender (Button) 200 @param sender (Button)