dabo Commit
Revision 4073
Date: 2008-05-05 13:37:43 -0700 (Mon, 05 May 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4073
Changed:
U branches/ed-ide/components/TextEditor/TextEditor.py
U branches/ed-ide/components/TextEditor/__init__.py
Log:
Refactored some of the editor components to work standalone or integrated
Diff:
Modified: branches/ed-ide/components/TextEditor/TextEditor.py
===================================================================
--- branches/ed-ide/components/TextEditor/TextEditor.py 2008-05-05 20:12:04 UTC
(rev 4072)
+++ branches/ed-ide/components/TextEditor/TextEditor.py 2008-05-05 20:37:43 UTC
(rev 4073)
@@ -89,7 +89,7 @@
self.editor.setFocus()
self.editor.bindEvent(dEvents.TitleChanged, self.onTitleChanged)
- self.editor.bindEvent(dEvents.MouseRightClick,
self.Form.onEditorRightClick)
+# self.editor.bindEvent(dEvents.MouseRightClick,
self.Form.onEditorRightClick)
# Set up the file drop target
self.editor.DroppedFileHandler = self.Form
# Set up the text drop target
@@ -111,8 +111,12 @@
if self.splitter.SashPosition > 0:
self._outputSashExtra = self.Height -
self.splitter.SashPosition
self.Application.setUserSetting("texteditorform.outputSashExtra",
self._outputSashExtra)
-
-
+
+
+ def openFile(self, pth):
+ return self.editor.openFile(pth)
+
+
def outputUpdate(self):
if self and self.p:
#need a nonblocking way of getting stdout and stderr
@@ -129,7 +133,7 @@
def onTitleChanged(self, evt):
title = self.editor._title
self.Caption = title
- self.Form.onTitleChanged(evt)
+# self.Form.onTitleChanged(evt)
def onPageEnter(self, evt):
@@ -140,8 +144,8 @@
self.editor.setInactive()
- def onDestroy(self, evt):
- dabo.ui.callAfter(self.Form.onTitleChanged, evt)
+# def onDestroy(self, evt):
+# dabo.ui.callAfter(self.Form.onTitleChanged, evt)
def _getPathInfo(self):
Modified: branches/ed-ide/components/TextEditor/__init__.py
===================================================================
--- branches/ed-ide/components/TextEditor/__init__.py 2008-05-05 20:12:04 UTC
(rev 4072)
+++ branches/ed-ide/components/TextEditor/__init__.py 2008-05-05 20:37:43 UTC
(rev 4073)
@@ -1,4 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-from TextEditor import TextEditorForm
+from TextEditor import EditorPage as TextEditorPage
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]