[Rapier-commits] r192 - trunk/src

This list send mail when a change occurs on the subversion repository rapier-commits at garage.maemo.org
Thu Jan 17 20:27:21 EET 2008


Author: pamadio
Date: 2008-01-17 20:27:21 +0200 (Thu, 17 Jan 2008)
New Revision: 192

Modified:
   trunk/src/rapier
Log:
a bit more about stron numbers

Modified: trunk/src/rapier
===================================================================
--- trunk/src/rapier	2008-01-17 16:17:31 UTC (rev 191)
+++ trunk/src/rapier	2008-01-17 18:27:21 UTC (rev 192)
@@ -1613,10 +1613,41 @@
         self.scrollToSelected()
 
 
-    def search_string(self,result):
+    def display_strong_info(self,afilter):
+        afilter=string.upper(afilter)
+        if afilter[0]=='G':
+            tmpMod="StrongsGreek"
+        else:
+            tmpMod="StrongsHebrew"
+
+        isInstalled=False
+        
+        for curMod in self.mgr.getModules().values():
+            if tmpMod == curMod.Name():
+                isInstalled=True
+
+        if not isInstalled:
+            return
+
+        mod=self.mgr.getModule(tmpMod)
+        mod.KeyText(afilter[1:])
+        test=mod.RenderText()
+        self.show_message(mod.RenderText())
+        
+        
+
+
+    def search_string(self,job):
         """ display the result of a search"""
+        result=job.result
         self.searchProgressbar.hide()
         self.waitForSearchFlag=False
+
+
+        if job.args['useStrongNumber']:
+            self.display_strong_info(job.args['filter'])
+
+        
         self.clean_searchResult_TreeView()
         #self.result_ts=gtk.TreeStore(str,str)
         self.result_ts.set_sort_func(0,self.sort_books)
@@ -1668,7 +1699,7 @@
             if curJob.type=="idle":
                 return True
             elif curJob.type=="search_string":
-                self.search_string(curJob.result)
+                self.search_string(curJob)
                 return True
             elif curJob.type=="remote_modules_list":
                 self.refresh_remote_modules(curJob.result)



More information about the Rapier-commits mailing list