[pitivi] Work on the effect list UI



commit 9193e5933855c1152be3d2548246658d51ba97c5
Author: Thibault Saunier <tsaunier src gnome org>
Date:   Fri May 14 17:25:06 2010 -0400

    Work on the effect list UI

 pitivi/ui/effectlist.py |   10 +++++-----
 pitivi/ui/mainwindow.py |    7 +++++++
 2 files changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/pitivi/ui/effectlist.py b/pitivi/ui/effectlist.py
index 8a627eb..441ff10 100644
--- a/pitivi/ui/effectlist.py
+++ b/pitivi/ui/effectlist.py
@@ -69,7 +69,6 @@ class EffectList(gtk.VBox, Loggable):
 
         #TODO check that
         self._dragButton = False
-        self.tooltip = None
         
         # Store
         # icon, icon, infotext, objectfactory
@@ -134,15 +133,16 @@ class EffectList(gtk.VBox, Loggable):
 
             factory = self._getFactoryFromEffect(effect)
             self.storemodel.append ([pixbuf, pixbuf, visualname,
-                                    factory, effect.get_description(), "test"])
+                                    factory, effect.get_description(),
+                                    factory.name])
 
     def _treeViewMotionNotifyEventCb(self, treeview, event):
         pass
 
     def _treeViewQueryTooltipCb(self, treeview, x, y, keyboard_mode, tooltip):
-        pos = treeview.get_path_at_pos(x,y)[0][0]
-        self.tooltip = tooltip 
-        tooltip.set_text(treeview.get_model()[pos][4])
+        pos = treeview.get_path_at_pos(x,y)[0]
+        treeview.set_tooltip_row (tooltip, pos)
+        tooltip.set_text(treeview.get_model()[pos[0]][4])
         return True
 
 
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index a39240b..aada996 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -56,6 +56,7 @@ from pitivi.receiver import receiver, handler
 import pitivi.formatters.format as formatter
 from pitivi.sourcelist import SourceListError
 from pitivi.ui.sourcelist import SourceList
+from pitivi.ui.effectlist import VideoEffectList, AudioEffectList
 from pitivi.ui.common import beautify_factory
 from pitivi.utils import beautify_length
 from pitivi.ui.zoominterface import Zoomable
@@ -403,9 +404,15 @@ class PitiviMainWindow(gtk.Window, Loggable):
         self.projecttabs = ProjectTabs()
 
         self.sourcelist = SourceList(instance, self.uimanager)
+        self.videoeffectlist = VideoEffectList(instance, self.uimanager)
+        self.audioeffectlist = AudioEffectList(instance, self.uimanager)
         self.projecttabs.append_page(self.sourcelist, gtk.Label(_("Media Library")))
+        self.projecttabs.append_page(self.videoeffectlist, gtk.Label(_("Video Effects")))
+        self.projecttabs.append_page(self.audioeffectlist, gtk.Label(_("Audio Effects")))
         self._connectToSourceList()
         self.sourcelist.show()
+        self.videoeffectlist.show()
+        self.audioeffectlist.show()
 
         hpaned.pack1(self.projecttabs, resize=True, shrink=False)
         self.projecttabs.show()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]