Added code to some Mercurial dialogs to improve user experience.

Thu, 01 Sep 2011 08:33:53 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 01 Sep 2011 08:33:53 +0200
changeset 1260
9488a3aceb0e
parent 1259
3f7b55c7dd83
child 1261
bb9ce68a0236

Added code to some Mercurial dialogs to improve user experience.

Plugins/VcsPlugins/vcsMercurial/BookmarksExtension/HgBookmarksInOutDialog.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsMercurial/BookmarksExtension/HgBookmarksListDialog.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsMercurial/GpgExtension/HgGpgSignaturesDialog.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsMercurial/HgAnnotateDialog.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsMercurial/HgClient.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsMercurial/HgDialog.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsMercurial/HgTagBranchListDialog.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesDefineGuardsDialog.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesHeaderDialog.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesListAllGuardsDialog.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesListDialog.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesListGuardsDialog.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesQueueManagementDialog.py file | annotate | diff | comparison | revisions
--- a/Plugins/VcsPlugins/vcsMercurial/BookmarksExtension/HgBookmarksInOutDialog.py	Wed Aug 31 19:48:46 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/BookmarksExtension/HgBookmarksInOutDialog.py	Thu Sep 01 08:33:53 2011 +0200
@@ -9,7 +9,7 @@
 
 import os
 
-from PyQt4.QtCore import pyqtSlot, QProcess, Qt, QTimer
+from PyQt4.QtCore import pyqtSlot, QProcess, Qt, QTimer, QCoreApplication
 from PyQt4.QtGui import QDialog, QDialogButtonBox, QHeaderView, QTreeWidgetItem, \
     QLineEdit
 
@@ -60,6 +60,9 @@
         self.process.finished.connect(self.__procFinished)
         self.process.readyReadStandardOutput.connect(self.__readStdout)
         self.process.readyReadStandardError.connect(self.__readStderr)
+        
+        self.show()
+        QCoreApplication.processEvents()
     
     def closeEvent(self, e):
         """
--- a/Plugins/VcsPlugins/vcsMercurial/BookmarksExtension/HgBookmarksListDialog.py	Wed Aug 31 19:48:46 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/BookmarksExtension/HgBookmarksListDialog.py	Thu Sep 01 08:33:53 2011 +0200
@@ -9,7 +9,7 @@
 
 import os
 
-from PyQt4.QtCore import pyqtSlot, QProcess, Qt, QTimer
+from PyQt4.QtCore import pyqtSlot, QProcess, Qt, QTimer, QCoreApplication
 from PyQt4.QtGui import QDialog, QDialogButtonBox, QHeaderView, QTreeWidgetItem, \
     QLineEdit
 
@@ -48,6 +48,9 @@
         self.process.finished.connect(self.__procFinished)
         self.process.readyReadStandardOutput.connect(self.__readStdout)
         self.process.readyReadStandardError.connect(self.__readStderr)
+        
+        self.show()
+        QCoreApplication.processEvents()
     
     def closeEvent(self, e):
         """
--- a/Plugins/VcsPlugins/vcsMercurial/GpgExtension/HgGpgSignaturesDialog.py	Wed Aug 31 19:48:46 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/GpgExtension/HgGpgSignaturesDialog.py	Thu Sep 01 08:33:53 2011 +0200
@@ -9,7 +9,7 @@
 
 import os
 
-from PyQt4.QtCore import pyqtSlot, QProcess, QTimer, Qt, QRegExp
+from PyQt4.QtCore import pyqtSlot, QProcess, QTimer, Qt, QRegExp, QCoreApplication
 from PyQt4.QtGui import QDialog, QDialogButtonBox, QHeaderView, QTreeWidgetItem, \
     QLineEdit
 
@@ -47,6 +47,9 @@
         self.process.finished.connect(self.__procFinished)
         self.process.readyReadStandardOutput.connect(self.__readStdout)
         self.process.readyReadStandardError.connect(self.__readStderr)
+        
+        self.show()
+        QCoreApplication.processEvents()
     
     def closeEvent(self, e):
         """
--- a/Plugins/VcsPlugins/vcsMercurial/HgAnnotateDialog.py	Wed Aug 31 19:48:46 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/HgAnnotateDialog.py	Thu Sep 01 08:33:53 2011 +0200
@@ -9,7 +9,7 @@
 
 import os
 
-from PyQt4.QtCore import pyqtSlot, QProcess, QTimer, Qt
+from PyQt4.QtCore import pyqtSlot, QProcess, QTimer, Qt, QCoreApplication
 from PyQt4.QtGui import QDialog, QDialogButtonBox, QFont, QHeaderView, \
     QTreeWidgetItem, QLineEdit
 
@@ -58,6 +58,9 @@
             self.process.finished.connect(self.__procFinished)
             self.process.readyReadStandardOutput.connect(self.__readStdout)
             self.process.readyReadStandardError.connect(self.__readStderr)
+        
+        self.show()
+        QCoreApplication.processEvents()
     
     def closeEvent(self, e):
         """
--- a/Plugins/VcsPlugins/vcsMercurial/HgClient.py	Wed Aug 31 19:48:46 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/HgClient.py	Thu Sep 01 08:33:53 2011 +0200
@@ -94,6 +94,7 @@
             res = self.__server.waitForFinished(3000)
             if not res:
                 self.__server.kill()
+                self.__server.waitForFinished(3000)
     
     def restartServer(self):
         """
--- a/Plugins/VcsPlugins/vcsMercurial/HgDialog.py	Wed Aug 31 19:48:46 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/HgDialog.py	Thu Sep 01 08:33:53 2011 +0200
@@ -47,6 +47,9 @@
         self.__hgClient = hg.getClient()
         
         self.outputGroup.setTitle(text)
+        
+        self.show()
+        QCoreApplication.processEvents()
     
     def __finish(self):
         """
--- a/Plugins/VcsPlugins/vcsMercurial/HgTagBranchListDialog.py	Wed Aug 31 19:48:46 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/HgTagBranchListDialog.py	Thu Sep 01 08:33:53 2011 +0200
@@ -9,7 +9,7 @@
 
 import os
 
-from PyQt4.QtCore import pyqtSlot, QProcess, Qt, QTimer
+from PyQt4.QtCore import pyqtSlot, QProcess, Qt, QTimer, QCoreApplication
 from PyQt4.QtGui import QDialog, QDialogButtonBox, QHeaderView, QTreeWidgetItem, \
     QLineEdit
 
@@ -49,6 +49,9 @@
         self.process.finished.connect(self.__procFinished)
         self.process.readyReadStandardOutput.connect(self.__readStdout)
         self.process.readyReadStandardError.connect(self.__readStderr)
+        
+        self.show()
+        QCoreApplication.processEvents()
     
     def closeEvent(self, e):
         """
--- a/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesDefineGuardsDialog.py	Wed Aug 31 19:48:46 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesDefineGuardsDialog.py	Thu Sep 01 08:33:53 2011 +0200
@@ -9,7 +9,7 @@
 
 import os
 
-from PyQt4.QtCore import pyqtSlot, Qt, QProcess, QTimer
+from PyQt4.QtCore import pyqtSlot, Qt, QProcess, QTimer, QCoreApplication
 from PyQt4.QtGui import QDialog, QDialogButtonBox, QAbstractButton, QListWidgetItem
 
 from E5Gui import E5MessageBox
@@ -49,6 +49,9 @@
         
         self.__dirtyList = False
         self.__currentPatch = ""
+        
+        self.show()
+        QCoreApplication.processEvents()
     
     def closeEvent(self, e):
         """
--- a/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesHeaderDialog.py	Wed Aug 31 19:48:46 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesHeaderDialog.py	Thu Sep 01 08:33:53 2011 +0200
@@ -9,7 +9,7 @@
 
 import os
 
-from PyQt4.QtCore import QProcess, QTimer, Qt
+from PyQt4.QtCore import QProcess, QTimer, Qt, QCoreApplication
 from PyQt4.QtGui import QDialog, QDialogButtonBox
 
 from E5Gui import E5MessageBox
@@ -43,6 +43,9 @@
         self.process.finished.connect(self.__procFinished)
         self.process.readyReadStandardOutput.connect(self.__readStdout)
         self.process.readyReadStandardError.connect(self.__readStderr)
+        
+        self.show()
+        QCoreApplication.processEvents()
     
     def closeEvent(self, e):
         """
--- a/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesListAllGuardsDialog.py	Wed Aug 31 19:48:46 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesListAllGuardsDialog.py	Thu Sep 01 08:33:53 2011 +0200
@@ -9,7 +9,7 @@
 
 import os
 
-from PyQt4.QtCore import QProcess
+from PyQt4.QtCore import QProcess, QCoreApplication
 from PyQt4.QtGui import QDialog, QTreeWidgetItem
 
 from .Ui_HgQueuesListAllGuardsDialog import Ui_HgQueuesListAllGuardsDialog
@@ -33,6 +33,9 @@
         
         self.vcs = vcs
         self.__hgClient = vcs.getClient()
+        
+        self.show()
+        QCoreApplication.processEvents()
     
     def start(self, path):
         """
--- a/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesListDialog.py	Wed Aug 31 19:48:46 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesListDialog.py	Thu Sep 01 08:33:53 2011 +0200
@@ -9,7 +9,7 @@
 
 import os
 
-from PyQt4.QtCore import pyqtSlot, QProcess, Qt, QTimer
+from PyQt4.QtCore import pyqtSlot, QProcess, Qt, QTimer, QCoreApplication
 from PyQt4.QtGui import QDialog, QDialogButtonBox, QHeaderView, QTreeWidgetItem, \
     QLineEdit
 
@@ -53,6 +53,9 @@
             "G": self.trUtf8("guarded"),
             "D": self.trUtf8("missing"),
         }
+        
+        self.show()
+        QCoreApplication.processEvents()
     
     def closeEvent(self, e):
         """
--- a/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesListGuardsDialog.py	Wed Aug 31 19:48:46 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesListGuardsDialog.py	Thu Sep 01 08:33:53 2011 +0200
@@ -9,7 +9,7 @@
 
 import os
 
-from PyQt4.QtCore import pyqtSlot, QProcess, QTimer
+from PyQt4.QtCore import pyqtSlot, QProcess, QTimer, QCoreApplication
 from PyQt4.QtGui import QDialog, QListWidgetItem
 
 from .Ui_HgQueuesListGuardsDialog import Ui_HgQueuesListGuardsDialog
@@ -38,6 +38,9 @@
         self.__hgClient = vcs.getClient()
         
         self.patchSelector.addItems([""] + patchesList)
+        
+        self.show()
+        QCoreApplication.processEvents()
     
     def closeEvent(self, e):
         """
--- a/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesQueueManagementDialog.py	Wed Aug 31 19:48:46 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesQueueManagementDialog.py	Thu Sep 01 08:33:53 2011 +0200
@@ -7,7 +7,7 @@
 Module implementing a dialog used by the queue management functions.
 """
 
-from PyQt4.QtCore import pyqtSlot, QProcess
+from PyQt4.QtCore import pyqtSlot, QProcess, QCoreApplication
 from PyQt4.QtGui import QDialog, QDialogButtonBox, QAbstractItemView, QListWidgetItem, \
     QAbstractButton
 
@@ -71,6 +71,9 @@
         
         self.setWindowTitle(title)
         
+        self.show()
+        QCoreApplication.processEvents()
+        
         self.refresh()
     
     def __getQueuesList(self):

eric ide

mercurial