comparison browser_side/dialog.py @ 323:0b7934e75e76

misc: reorganization of the file panels.py + clean the modules import: - some existing modules were not found during JS runtime (panels.py was too large?) - the *Panel classes of panels.py that do not reference "host" have been moved to base_panels.py - cleaned the import in various files
author souliane <souliane@mailoo.org>
date Sat, 04 Jan 2014 00:17:46 +0100
parents 7316a5696366
children 2067d6241927
comparison
equal deleted inserted replaced
322:971e3812903a 323:0b7934e75e76
32 from pyjamas.ui.RadioButton import RadioButton 32 from pyjamas.ui.RadioButton import RadioButton
33 from pyjamas.ui import HasAlignment 33 from pyjamas.ui import HasAlignment
34 from pyjamas.ui.KeyboardListener import KEY_ESCAPE, KEY_ENTER 34 from pyjamas.ui.KeyboardListener import KEY_ESCAPE, KEY_ENTER
35 from pyjamas.ui.MouseListener import MouseWheelHandler 35 from pyjamas.ui.MouseListener import MouseWheelHandler
36 from pyjamas import Window 36 from pyjamas import Window
37 from browser_side import panels 37
38 from base_panels import ToggleStackPanel
39
38 from sat_frontends.tools.misc import DEFAULT_MUC 40 from sat_frontends.tools.misc import DEFAULT_MUC
39 41
40 # List here the patterns that are not allowed in contact group names 42 # List here the patterns that are not allowed in contact group names
41 FORBIDDEN_PATTERNS_IN_GROUP = () 43 FORBIDDEN_PATTERNS_IN_GROUP = ()
42 44
171 button_panel.add(Button("Cancel", self.onCancel)) 173 button_panel.add(Button("Cancel", self.onCancel))
172 174
173 self.room_panel = RoomChooser(host, "" if visible == (False, True) else DEFAULT_MUC) 175 self.room_panel = RoomChooser(host, "" if visible == (False, True) else DEFAULT_MUC)
174 self.contact_panel = ContactsChooser(host, nb_contact, ok_button) 176 self.contact_panel = ContactsChooser(host, nb_contact, ok_button)
175 177
176 self.stack_panel = panels.ToggleStackPanel(Width="100%") 178 self.stack_panel = ToggleStackPanel(Width="100%")
177 self.stack_panel.add(self.room_panel, title_room, visible=visible[0]) 179 self.stack_panel.add(self.room_panel, title_room, visible=visible[0])
178 self.stack_panel.add(self.contact_panel, title_invite, visible=visible[1]) 180 self.stack_panel.add(self.contact_panel, title_invite, visible=visible[1])
179 self.stack_panel.addStackChangeListener(self) 181 self.stack_panel.addStackChangeListener(self)
180 main_panel = VerticalPanel() 182 main_panel = VerticalPanel()
181 main_panel.setStyleName("room-contact-chooser") 183 main_panel.setStyleName("room-contact-chooser")