Fixed an issue related to the editor assembly.

Fri, 04 Nov 2011 17:38:51 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 04 Nov 2011 17:38:51 +0100
changeset 1421
8fead6686d1c
parent 1419
e200f9084c5d
child 1422
47f1dffa398e

Fixed an issue related to the editor assembly.

APIs/Python3/eric5.api file | annotate | diff | comparison | revisions
Documentation/Help/source.qch file | annotate | diff | comparison | revisions
Documentation/Help/source.qhp file | annotate | diff | comparison | revisions
Documentation/Source/eric5.QScintilla.EditorAssembly.html file | annotate | diff | comparison | revisions
QScintilla/EditorAssembly.py file | annotate | diff | comparison | revisions
ViewManager/ViewManager.py file | annotate | diff | comparison | revisions
--- a/APIs/Python3/eric5.api	Fri Nov 04 17:00:01 2011 +0100
+++ b/APIs/Python3/eric5.api	Fri Nov 04 17:38:51 2011 +0100
@@ -5589,6 +5589,7 @@
 eric5.QScintilla.Editor.EditorAutoCompletionListID?7
 eric5.QScintilla.Editor.TemplateCompletionListID?7
 eric5.QScintilla.EditorAssembly.EditorAssembly.getEditor?4()
+eric5.QScintilla.EditorAssembly.EditorAssembly.shutdownTimer?4()
 eric5.QScintilla.EditorAssembly.EditorAssembly?1(dbs, fn=None, vm=None, filetype="", editor=None, tv=None)
 eric5.QScintilla.Exporters.ExporterBase.ExporterBase._getFileName?5(filter)
 eric5.QScintilla.Exporters.ExporterBase.ExporterBase.exportSource?4()
Binary file Documentation/Help/source.qch has changed
--- a/Documentation/Help/source.qhp	Fri Nov 04 17:00:01 2011 +0100
+++ b/Documentation/Help/source.qhp	Fri Nov 04 17:38:51 2011 +0100
@@ -4597,6 +4597,7 @@
       <keyword name="EditorAssembly.__parseEditor" id="EditorAssembly.__parseEditor" ref="eric5.QScintilla.EditorAssembly.html#EditorAssembly.__parseEditor" />
       <keyword name="EditorAssembly.__resetParseTimer" id="EditorAssembly.__resetParseTimer" ref="eric5.QScintilla.EditorAssembly.html#EditorAssembly.__resetParseTimer" />
       <keyword name="EditorAssembly.getEditor" id="EditorAssembly.getEditor" ref="eric5.QScintilla.EditorAssembly.html#EditorAssembly.getEditor" />
+      <keyword name="EditorAssembly.shutdownTimer" id="EditorAssembly.shutdownTimer" ref="eric5.QScintilla.EditorAssembly.html#EditorAssembly.shutdownTimer" />
       <keyword name="GotoDialog (Module)" id="GotoDialog (Module)" ref="eric5.QScintilla.GotoDialog.html" />
       <keyword name="GotoDialog" id="GotoDialog" ref="eric5.QScintilla.GotoDialog.html#GotoDialog" />
       <keyword name="GotoDialog (Constructor)" id="GotoDialog (Constructor)" ref="eric5.QScintilla.GotoDialog.html#GotoDialog.__init__" />
--- a/Documentation/Source/eric5.QScintilla.EditorAssembly.html	Fri Nov 04 17:00:01 2011 +0100
+++ b/Documentation/Source/eric5.QScintilla.EditorAssembly.html	Fri Nov 04 17:38:51 2011 +0100
@@ -77,6 +77,9 @@
 </tr><tr>
 <td><a href="#EditorAssembly.getEditor">getEditor</a></td>
 <td>Public method to get the reference to the editor widget.</td>
+</tr><tr>
+<td><a href="#EditorAssembly.shutdownTimer">shutdownTimer</a></td>
+<td>Public method to stop and disconnect the timer.</td>
 </tr>
 </table>
 <h3>Static Methods</h3>
@@ -150,7 +153,12 @@
 <dd>
 reference to the editor widget (Editor)
 </dd>
-</dl>
+</dl><a NAME="EditorAssembly.shutdownTimer" ID="EditorAssembly.shutdownTimer"></a>
+<h4>EditorAssembly.shutdownTimer</h4>
+<b>shutdownTimer</b>(<i></i>)
+<p>
+        Public method to stop and disconnect the timer.
+</p>
 <div align="right"><a href="#top">Up</a></div>
 <hr />
 </body></html>
\ No newline at end of file
--- a/QScintilla/EditorAssembly.py	Fri Nov 04 17:00:01 2011 +0100
+++ b/QScintilla/EditorAssembly.py	Fri Nov 04 17:38:51 2011 +0100
@@ -62,6 +62,14 @@
         
         QTimer.singleShot(0, self.__parseEditor)
     
+    def shutdownTimer(self):
+        """
+        Public method to stop and disconnect the timer.
+        """
+        self.__parseTimer.stop()
+        self.__parseTimer.timeout.disconnect(self.__parseEditor)
+        self.__editor.textChanged.disconnect(self.__resetParseTimer)
+    
     def getEditor(self):
         """
         Public method to get the reference to the editor widget.
--- a/ViewManager/ViewManager.py	Fri Nov 04 17:00:01 2011 +0100
+++ b/ViewManager/ViewManager.py	Fri Nov 04 17:38:51 2011 +0100
@@ -3098,6 +3098,7 @@
         fn = editor.getFileName()
         
         # remove the window
+        editor.parent().shutdownTimer()
         self._removeView(editor)
         self.editors.remove(editor)
         

eric ide

mercurial