Project/ProjectInterfacesBrowser.py

branch
Py2 comp.
changeset 3080
6c0a430b19df
parent 3060
5883ce99ee12
parent 3071
83d066710d60
child 3145
a9de05d4a22f
--- a/Project/ProjectInterfacesBrowser.py	Wed Nov 13 23:30:59 2013 +0100
+++ b/Project/ProjectInterfacesBrowser.py	Sat Nov 16 10:06:28 2013 +0100
@@ -18,10 +18,11 @@
 import glob
 
 from PyQt4.QtCore import QThread, pyqtSignal, QProcess
-from PyQt4.QtGui import QDialog, QApplication, QMenu, QProgressDialog
+from PyQt4.QtGui import QDialog, QApplication, QMenu
 
 from E5Gui.E5Application import e5App
 from E5Gui import E5MessageBox
+from E5Gui.E5ProgressDialog import E5ProgressDialog
 
 from .ProjectBrowserModel import ProjectBrowserFileItem, \
     ProjectBrowserSimpleDirectoryItem, ProjectBrowserDirectoryItem, \
@@ -524,7 +525,7 @@
 
         @param fn filename of the .idl file to be compiled (string)
         @param noDialog flag indicating silent operations (boolean)
-        @param progress reference to the progress dialog (QProgressDialog)
+        @param progress reference to the progress dialog (E5ProgressDialog)
         @return reference to the compile process (QProcess)
         """
         self.compileProc = QProcess()
@@ -577,9 +578,10 @@
         """
         if self.omniidl is not None:
             numIDLs = len(self.project.pdata["INTERFACES"])
-            progress = QProgressDialog(
+            progress = E5ProgressDialog(
                 self.trUtf8("Compiling interfaces..."),
-                self.trUtf8("Abort"), 0, numIDLs, self)
+                self.trUtf8("Abort"), 0, numIDLs,
+                self.trUtf8("%v/%m Interfaces"), self)
             progress.setModal(True)
             progress.setMinimumDuration(0)
             i = 0
@@ -610,9 +612,10 @@
             files = [self.project.getRelativePath(itm.fileName())
                      for itm in items]
             numIDLs = len(files)
-            progress = QProgressDialog(
+            progress = E5ProgressDialog(
                 self.trUtf8("Compiling interfaces..."),
-                self.trUtf8("Abort"), 0, numIDLs, self)
+                self.trUtf8("Abort"), 0, numIDLs,
+                self.trUtf8("%v/%m Interfaces"), self)
             progress.setModal(True)
             progress.setMinimumDuration(0)
             i = 0

eric ide

mercurial