diff browser_side/base_widget.py @ 254:28d3315a8003

browser_side: isolate the basic stuff of RecipientManager in a new class ListManager: - renamed most occurences of "recipient" to "contact" and "recipient type" to "contact key" or "list" - data to represent the lists and autocomplete values are parametrized - UI elements styles are set by default but can be ovewritten by a sub-class - popup menu for the list Button element has to be set with registerPopupMenuPanel - richtext UI uses the definitions from sat.tool.frontends.composition Know issues: - drag and drop AutoCompleteTextBox corrupts the list of remaining autocomplete values - selecting an autocomplete value with the mouse and not keybord is not working properly
author souliane <souliane@mailoo.org>
date Sat, 09 Nov 2013 09:38:17 +0100
parents 63e9b680d3e7
children a6b3715f0bd6
line wrap: on
line diff
--- a/browser_side/base_widget.py	Sat Nov 09 08:53:03 2013 +0100
+++ b/browser_side/base_widget.py	Sat Nov 09 09:38:17 2013 +0100
@@ -111,7 +111,7 @@
             widgets_panel.removeWidget(_new_panel)
         elif item_type in self.drop_keys:
             _new_panel = self.drop_keys[item_type](self.host, item)
-        elif item_type == "RECIPIENT_TEXTBOX":
+        elif item_type == "CONTACT_TEXTBOX":
             # eventually open a window?
             pass
         else:
@@ -623,7 +623,7 @@
             _new_panel.getWidgetsPanel().removeWidget(_new_panel)
         elif item_type in DropCell.drop_keys:
             _new_panel = DropCell.drop_keys[item_type](self.tab_panel.host, item)
-        elif item_type == "RECIPIENT_TEXTBOX":
+        elif item_type == "CONTACT_TEXTBOX":
             # eventually open a window?
             pass
         else: