comparison browser_side/panels.py @ 426:77d8f55fc5f0

browser_side: hide the presence/status panel until the connection is made
author souliane <souliane@mailoo.org>
date Wed, 26 Mar 2014 14:16:11 +0100
parents 19bd203daa27
children 8ecc5a7062e4
comparison
equal deleted inserted replaced
425:19bd203daa27 426:77d8f55fc5f0
1319 1319
1320 # unibox 1320 # unibox
1321 self.unibox_panel = UniBoxPanel(host) 1321 self.unibox_panel = UniBoxPanel(host)
1322 self.unibox_panel.setVisible(False) 1322 self.unibox_panel.setVisible(False)
1323 1323
1324 # status bar
1325 status = host.status_panel
1326
1327 # contacts 1324 # contacts
1328 self._contacts = HorizontalPanel() 1325 self._contacts = HorizontalPanel()
1329 self._contacts.addStyleName('globalLeftArea') 1326 self._contacts.addStyleName('globalLeftArea')
1330 self.contacts_switch = Button(u'«', self._contactsSwitch) 1327 self.contacts_switch = Button(u'«', self._contactsSwitch)
1331 self.contacts_switch.addStyleName('contactsSwitch') 1328 self.contacts_switch.addStyleName('contactsSwitch')
1336 self.tab_panel = base_widget.MainTabPanel(host) 1333 self.tab_panel = base_widget.MainTabPanel(host)
1337 self.discuss_panel = base_widget.WidgetsPanel(self.host, locked=True) 1334 self.discuss_panel = base_widget.WidgetsPanel(self.host, locked=True)
1338 self.tab_panel.add(self.discuss_panel, "Discussions") 1335 self.tab_panel.add(self.discuss_panel, "Discussions")
1339 self.tab_panel.selectTab(0) 1336 self.tab_panel.selectTab(0)
1340 1337
1341 header = AbsolutePanel() 1338 self.header = AbsolutePanel()
1342 header.add(self.menu) 1339 self.header.add(self.menu)
1343 header.add(self.unibox_panel) 1340 self.header.add(self.unibox_panel)
1344 header.add(status) 1341 self.header.add(self.host.status_panel)
1345 header.setStyleName('header') 1342 self.header.setStyleName('header')
1346 self.add(header) 1343 self.add(self.header)
1347 1344
1348 self._hpanel = HorizontalPanel() 1345 self._hpanel = HorizontalPanel()
1349 self._hpanel.add(self._contacts) 1346 self._hpanel.add(self._contacts)
1350 self._hpanel.add(self.tab_panel) 1347 self._hpanel.add(self.tab_panel)
1351 self.add(self._hpanel) 1348 self.add(self._hpanel)