diff src/browser/sat_browser/list_manager.py @ 648:6d3142b782c3 frontends_multi_profiles

browser_side: classes reorganisation: - moved widgets in dedicated modules (base, contact, editor, libervia) and a widget module for single classes - same thing for panels (base, main, contact) - libervia_widget mix main panels and widget and drag n drop for technical reasons (see comments) - renamed WebPanel to WebWidget
author Goffi <goffi@goffi.org>
date Thu, 26 Feb 2015 18:10:54 +0100
parents c22b47d63fe2
children 9877607c719a
line wrap: on
line diff
--- a/src/browser/sat_browser/list_manager.py	Thu Feb 26 13:10:46 2015 +0100
+++ b/src/browser/sat_browser/list_manager.py	Thu Feb 26 18:10:54 2015 +0100
@@ -26,8 +26,9 @@
 from pyjamas.ui.DragWidget import DragWidget
 from pyjamas.Timer import Timer
 
-import base_panels
+import base_panel
 import base_widget
+import libervia_widget
 
 from sat_frontends.tools import jid
 
@@ -250,7 +251,7 @@
         @param callback (callable): common callback for all menu items, takes in
             the button widget and the item key.
         """
-        self.popup_menu = base_panels.PopupMenuPanel(entries, hide, callback, style={"item": self.style["popupMenuItem"]})
+        self.popup_menu = base_panel.PopupMenuPanel(entries, hide, callback, style={"item": self.style["popupMenuItem"]})
 
 
 class DragAutoCompleteTextBox(AutoCompleteTextBox, DragWidget):
@@ -377,7 +378,7 @@
 DELETE = 3
 
 
-class ListPanel(FlowPanel, base_widget.DropCell):
+class ListPanel(FlowPanel, libervia_widget.DropCell):
     """Panel used for listing items sharing the same key. The key is showed as
     a Button to which you can bind a popup menu and the items are represented
     with a sequence of DragAutoCompleteTextBox."""
@@ -401,7 +402,7 @@
                     "CONTACT_TITLE": lambda host, item: self.addItem('@@'),
                     "CONTACT_TEXTBOX": setTargetDropCell
                     }
-        base_widget.DropCell.__init__(self, None)
+        libervia_widget.DropCell.__init__(self, None)
         self.drop_keys = drop_cbs
         self.style = style
         self.addStyleName(self.style["keyPanel"])
@@ -411,7 +412,7 @@
 
     def onDrop(self, event):
         try:
-            base_widget.DropCell.onDrop(self, event)
+            libervia_widget.DropCell.onDrop(self, event)
         except base_widget.NoLiberviaWidgetException:
             pass