Mercurial > libervia-web
comparison browser_side/panels.py @ 311:3135ff840b8e
browser_side: message box below the ChatPanel when unibox is disabled
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 30 Dec 2013 00:30:45 +0100 |
parents | 5d11ec1f2c22 |
children | b4781a350483 |
comparison
equal
deleted
inserted
replaced
310:5d11ec1f2c22 | 311:3135ff840b8e |
---|---|
973 self.content.setStyleName('chatContent') | 973 self.content.setStyleName('chatContent') |
974 self.content_scroll = base_widget.ScrollPanelWrapper(self.content) | 974 self.content_scroll = base_widget.ScrollPanelWrapper(self.content) |
975 chat_area.add(self.content_scroll) | 975 chat_area.add(self.content_scroll) |
976 chat_area.setCellWidth(self.content_scroll, '100%') | 976 chat_area.setCellWidth(self.content_scroll, '100%') |
977 self.vpanel.add(self.__body) | 977 self.vpanel.add(self.__body) |
978 self.vpanel.setCellHeight(self.__body, '100%') | |
978 self.addStyleName('chatPanel') | 979 self.addStyleName('chatPanel') |
979 self.setWidget(self.vpanel) | 980 self.setWidget(self.vpanel) |
980 self.state_machine = ChatStateMachine(self.host, str(self.target)) | 981 self.state_machine = ChatStateMachine(self.host, str(self.target)) |
982 self.setUniBox(self.host.uni_box) | |
983 | |
984 def setUniBox(self, enable): | |
985 """Enable or disable the unibox. If it is disabled, | |
986 display a message box below the panel.""" | |
987 if enable: | |
988 return | |
989 message_box = MessageBox(self.host) | |
990 message_box.onSelectedChange(self) | |
991 self.vpanel.add(message_box) | |
981 | 992 |
982 """def doDetachChildren(self): | 993 """def doDetachChildren(self): |
983 #We need to force the use of a panel subclass method here, | 994 #We need to force the use of a panel subclass method here, |
984 #for the same reason as doAttachChildren | 995 #for the same reason as doAttachChildren |
985 base_widget.ScrollPanelWrapper.doDetachChildren(self) | 996 base_widget.ScrollPanelWrapper.doDetachChildren(self) |