comparison src/browser/libervia_main.py @ 654:40c72f3b7638 frontends_multi_profiles

browser_side: MainPanel is now based on a DockPanel, which allows to use less tables and also to remove some "window resized" listeners
author souliane <souliane@mailoo.org>
date Fri, 27 Feb 2015 02:39:43 +0100
parents 2df91d0308ac
children 048401e5c506
comparison
equal deleted inserted replaced
653:e1d067378ad3 654:40c72f3b7638
79 def onModuleLoad(self): 79 def onModuleLoad(self):
80 log.info("============ onModuleLoad ==============") 80 log.info("============ onModuleLoad ==============")
81 self.bridge_signals = json.BridgeSignals(self) 81 self.bridge_signals = json.BridgeSignals(self)
82 QuickApp.__init__(self, json.BridgeCall) 82 QuickApp.__init__(self, json.BridgeCall)
83 self.uni_box = None # FIXME: to be removed 83 self.uni_box = None # FIXME: to be removed
84 self.status_panel = HTML('<br />')
85 self.panel = main_panel.MainPanel(self) 84 self.panel = main_panel.MainPanel(self)
86 self.tab_panel = self.panel.tab_panel 85 self.tab_panel = self.panel.tab_panel
87 self.tab_panel.addTabListener(self) 86 self.tab_panel.addTabListener(self)
88 self._register_box = None 87 self._register_box = None
89 RootPanel().add(self.panel) 88 RootPanel().add(self.panel)
305 if self._register_box: 304 if self._register_box:
306 self._register_box.hide() 305 self._register_box.hide()
307 del self._register_box # don't work if self._register_box is None 306 del self._register_box # don't work if self._register_box is None
308 307
309 # display the real presence status panel 308 # display the real presence status panel
310 self.panel.header.remove(self.status_panel) 309 self.presence_status_panel = main_panel.PresenceStatusPanel(self)
311 self.status_panel = main_panel.PresenceStatusPanel(self) 310 self.panel.addPresenceStatusPanel(self.presence_status_panel)
312 self.panel.header.add(self.status_panel)
313 311
314 self.bridge_signals.call('getSignals', self.bridge_signals.signalHandler) 312 self.bridge_signals.call('getSignals', self.bridge_signals.signalHandler)
315 313
316 #it's time to fill the page 314 #it's time to fill the page
317 # self.bridge.call('getContacts', self._getContactsCB) 315 # self.bridge.call('getContacts', self._getContactsCB)