Fixed a few issues in the graphics diagrams. 5_3_x

Sat, 12 Jan 2013 14:37:05 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 12 Jan 2013 14:37:05 +0100
branch
5_3_x
changeset 2332
e0b023d62b10
parent 2330
a288469b3c81
child 2333
704cba4b4681

Fixed a few issues in the graphics diagrams.

Graphics/ApplicationDiagramBuilder.py file | annotate | diff | comparison | revisions
Graphics/ImportsDiagramBuilder.py file | annotate | diff | comparison | revisions
Graphics/PackageDiagramBuilder.py file | annotate | diff | comparison | revisions
Graphics/UMLDialog.py file | annotate | diff | comparison | revisions
--- a/Graphics/ApplicationDiagramBuilder.py	Thu Jan 10 19:03:16 2013 +0100
+++ b/Graphics/ApplicationDiagramBuilder.py	Sat Jan 12 14:37:05 2013 +0100
@@ -82,6 +82,7 @@
                     moduleDict[name] = mod
         finally:
             progress.setValue(tot)
+            progress.deleteLater()
         return moduleDict
         
     def buildDiagram(self):
--- a/Graphics/ImportsDiagramBuilder.py	Thu Jan 10 19:03:16 2013 +0100
+++ b/Graphics/ImportsDiagramBuilder.py	Sat Jan 12 14:37:05 2013 +0100
@@ -104,6 +104,7 @@
                     moduleDict[name] = mod
         finally:
             progress.setValue(tot)
+            progress.deleteLater()
         return moduleDict
     
     def buildDiagram(self):
--- a/Graphics/PackageDiagramBuilder.py	Thu Jan 10 19:03:16 2013 +0100
+++ b/Graphics/PackageDiagramBuilder.py	Sat Jan 12 14:37:05 2013 +0100
@@ -105,6 +105,7 @@
                     moduleDict[name] = mod
         finally:
             progress.setValue(tot)
+            progress.deleteLater()
         return moduleDict
     
     def __buildSubpackagesDict(self):
@@ -126,6 +127,7 @@
         for subpackage in os.listdir(self.package):
             subpackagePath = os.path.join(self.package, subpackage)
             if os.path.isdir(subpackagePath) and \
+               subpackage != "__pycache__" and \
                len(glob.glob(os.path.join(subpackagePath, "__init__.*"))) != 0:
                 subpackagesList.append(subpackagePath)
         
@@ -166,6 +168,7 @@
                     subpackagesDict[packageName].insert(0, "__init__")
         finally:
             progress.setValue(tot)
+            progress.deleteLater()
         return subpackagesDict
     
     def buildDiagram(self):
--- a/Graphics/UMLDialog.py	Thu Jan 10 19:03:16 2013 +0100
+++ b/Graphics/UMLDialog.py	Sat Jan 12 14:37:05 2013 +0100
@@ -64,6 +64,8 @@
         self.setCentralWidget(self.umlView)
         
         self.umlView.relayout.connect(self.__relayout)
+        
+        self.setWindowTitle(self.__diagramTypeString())
     
     def __initActions(self):
         """

eric ide

mercurial