Mercurial > libervia-backend
comparison frontends/src/primitivus/contact_list.py @ 524:0bb595eff25b
primitivus: Primitivus is now modal (vi-like behaviour):
- there are currently 3 modes: NORMAL, INSERTION and COMMAND
- when a chat window is selected, INSERTION mode is set if possible
- completion is managed according to mode. Currently only INSERTION mode do something
- first command implementation: :quit
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 21 Oct 2012 16:40:19 +0200 |
parents | 62f7f2403093 |
children | ca13633d3b6b |
comparison
equal
deleted
inserted
replaced
523:24c0d51449e7 | 524:0bb595eff25b |
---|---|
105 for widget in self.frame.body.body: | 105 for widget in self.frame.body.body: |
106 if widget.__class__ == sat_widgets.SelectableText: | 106 if widget.__class__ == sat_widgets.SelectableText: |
107 widget.setState(widget.data == self.selected, invisible=True) | 107 widget.setState(widget.data == self.selected, invisible=True) |
108 if self.selected in self.alert_jid: | 108 if self.selected in self.alert_jid: |
109 self.alert_jid.remove(self.selected) | 109 self.alert_jid.remove(self.selected) |
110 self.host.modeHint('INSERTION') | |
110 self.update() | 111 self.update() |
111 self._emit('click') | 112 self._emit('click') |
112 | 113 |
113 def __buildContact(self, content, param_contacts): | 114 def __buildContact(self, content, param_contacts): |
114 """Add contact representation in widget list | 115 """Add contact representation in widget list |