Helpviewer/HelpBrowserWV.py

changeset 634
7b84cbd2f752
parent 629
c88489b378fb
child 638
265c31231d9d
--- a/Helpviewer/HelpBrowserWV.py	Sat Sep 18 18:55:49 2010 +0200
+++ b/Helpviewer/HelpBrowserWV.py	Sun Sep 19 14:00:57 2010 +0200
@@ -326,6 +326,7 @@
         self.ctrlPressed = False
         self.__downloadWindows = []
         self.__isLoading = False
+        self.__progress = 0
         
         self.__currentZoom = 100
         self.__zoomLevels = [
@@ -1043,6 +1044,7 @@
         Private method to handle the loadStarted signal.
         """
         self.__isLoading = True
+        self.__progress = 0
         self.mw.setLoading(self)
         self.mw.progressBar().show()
     
@@ -1052,6 +1054,7 @@
         
         @param progress progress value (integer)
         """
+        self.__progress = progress
         self.mw.progressBar().setValue(progress)
     
     def __loadFinished(self, ok):
@@ -1061,6 +1064,7 @@
         @param ok flag indicating the result (boolean)
         """
         self.__isLoading = False
+        self.__progress = 0
         self.mw.progressBar().hide()
         self.mw.resetLoading(self, ok)
         
@@ -1078,6 +1082,12 @@
         """
         return self.__isLoading
     
+    def progress(self):
+        """
+        Public method to get the load progress.
+        """
+        return self.__progress
+    
     def saveAs(self):
         """
         Public method to save the current page to a file.

eric ide

mercurial