Mercurial > libervia-web
comparison src/browser/sat_browser/panels.py @ 620:ac5881d683d3 frontends_multi_profiles
browser_side: move SatWebFrontend.addTab to MainTabPanel.addWidgetsTab and rename MainTabPanel.add to MainTabPanel.addTab
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 20 Feb 2015 19:38:11 +0100 |
parents | 70872a83ef15 |
children | 7113d40533d6 |
comparison
equal
deleted
inserted
replaced
619:11a0a32144a5 | 620:ac5881d683d3 |
---|---|
19 | 19 |
20 import pyjd # this is dummy in pyjs | 20 import pyjd # this is dummy in pyjs |
21 from sat.core.log import getLogger | 21 from sat.core.log import getLogger |
22 log = getLogger(__name__) | 22 log = getLogger(__name__) |
23 | 23 |
24 from sat.core.i18n import _ | |
24 from sat_frontends.tools.strings import addURLToText | 25 from sat_frontends.tools.strings import addURLToText |
25 | 26 |
26 from pyjamas.ui.AbsolutePanel import AbsolutePanel | 27 from pyjamas.ui.AbsolutePanel import AbsolutePanel |
27 from pyjamas.ui.VerticalPanel import VerticalPanel | 28 from pyjamas.ui.VerticalPanel import VerticalPanel |
28 from pyjamas.ui.HorizontalPanel import HorizontalPanel | 29 from pyjamas.ui.HorizontalPanel import HorizontalPanel |
507 self.contacts_switch.addStyleName('contactsSwitch') | 508 self.contacts_switch.addStyleName('contactsSwitch') |
508 self._contacts.add(self.contacts_switch) | 509 self._contacts.add(self.contacts_switch) |
509 | 510 |
510 # tabs | 511 # tabs |
511 self.tab_panel = base_widget.MainTabPanel(host) | 512 self.tab_panel = base_widget.MainTabPanel(host) |
512 self.discuss_panel = base_widget.WidgetsPanel(self.host, locked=True) | 513 self.tab_panel.addWidgetsTab(_(u"Discussions"), select=True, locked=True) |
513 self.tab_panel.add(self.discuss_panel, "Discussions") | |
514 self.tab_panel.selectTab(0) | |
515 | 514 |
516 self.header = AbsolutePanel() | 515 self.header = AbsolutePanel() |
517 self.header.add(self.menu) | 516 self.header.add(self.menu) |
518 # self.header.add(self.unibox_panel) | 517 # self.header.add(self.unibox_panel) |
519 self.header.add(self.host.status_panel) | 518 self.header.add(self.host.status_panel) |