comparison src/browser/sat_browser/dialog.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 63697f082e8a
children ebb602d8b3f2
comparison
equal deleted inserted replaced
647:e0021d571eef 648:6d3142b782c3
38 from pyjamas.ui import HasAlignment 38 from pyjamas.ui import HasAlignment
39 from pyjamas.ui.KeyboardListener import KEY_ESCAPE, KEY_ENTER 39 from pyjamas.ui.KeyboardListener import KEY_ESCAPE, KEY_ENTER
40 from pyjamas.ui.MouseListener import MouseWheelHandler 40 from pyjamas.ui.MouseListener import MouseWheelHandler
41 from pyjamas import Window 41 from pyjamas import Window
42 42
43 import base_panels 43 import base_panel
44 44
45 45
46 # List here the patterns that are not allowed in contact group names 46 # List here the patterns that are not allowed in contact group names
47 FORBIDDEN_PATTERNS_IN_GROUP = () 47 FORBIDDEN_PATTERNS_IN_GROUP = ()
48 48
205 button_panel.add(Button("Cancel", self.onCancel)) 205 button_panel.add(Button("Cancel", self.onCancel))
206 206
207 self.room_panel = RoomChooser(host, "" if visible == (False, True) else DEFAULT_MUC) 207 self.room_panel = RoomChooser(host, "" if visible == (False, True) else DEFAULT_MUC)
208 self.contact_panel = ContactsChooser(host, nb_contact, ok_button) 208 self.contact_panel = ContactsChooser(host, nb_contact, ok_button)
209 209
210 self.stack_panel = base_panels.ToggleStackPanel(Width="100%") 210 self.stack_panel = base_panel.ToggleStackPanel(Width="100%")
211 self.stack_panel.add(self.room_panel, visible=visible[0]) 211 self.stack_panel.add(self.room_panel, visible=visible[0])
212 self.stack_panel.add(self.contact_panel, visible=visible[1]) 212 self.stack_panel.add(self.contact_panel, visible=visible[1])
213 self.stack_panel.addStackChangeListener(self) 213 self.stack_panel.addStackChangeListener(self)
214 self.onStackChanged(self.stack_panel, 0, visible[0]) 214 self.onStackChanged(self.stack_panel, 0, visible[0])
215 self.onStackChanged(self.stack_panel, 1, visible[1]) 215 self.onStackChanged(self.stack_panel, 1, visible[1])