Docview and IDE patch from Morag Hua with fix for bug #1217890

"Closing view crashes Python" plus some new features:

    New feature added to the IDE is 'Extensions'.  Under
    Tools|Options|Extensions, you can add calls to external programs.
    For example you can add a "Notepad" extension (under windows) that
    will exec Notepad on the currently open file.  A new "Notepad"
    menu item will appear under the Tools menu.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2005-06-11 23:18:57 +00:00
parent 94211100ea
commit 2eeaec1909
19 changed files with 1285 additions and 533 deletions

View File

@@ -1185,7 +1185,7 @@ class DocService(wx.EvtHandler):
def __init__(self):
"""Initializes the DocService."""
wx.EvtHandler.__init__(self)
pass
def GetDocumentManager(self):
@@ -1478,7 +1478,7 @@ class GeneralOptionsPanel(wx.Panel):
msgTitle = wx.GetApp().GetAppName()
if not msgTitle:
msgTitle = _("Document Options")
wx.MessageBox("Document interface changes will not appear until the application is restarted.",
wx.MessageBox(_("Document interface changes will not appear until the application is restarted."),
msgTitle,
wx.OK | wx.ICON_INFORMATION,
self.GetParent())
@@ -1995,10 +1995,7 @@ class DocApp(wx.PySimpleApp):
if isinstance(document, ChildDocument) and document.GetParentDocument() == parentDocument:
if document.GetFirstView().GetFrame():
document.GetFirstView().GetFrame().SetFocus()
if document.GetFirstView().OnClose(deleteWindow = False):
if document.GetFirstView().GetFrame():
document.GetFirstView().GetFrame().Close() # wxBug: Need to do this for some random reason
else:
if not document.GetFirstView().OnClose():
return False
return True
@@ -2338,7 +2335,6 @@ class AboutService(DocService):
"""
Initializes the AboutService.
"""
DocService.__init__(self)
if aboutDialog:
self._dlg = aboutDialog
self._image = None
@@ -2406,7 +2402,6 @@ class FilePropertiesService(DocService):
"""
Initializes the PropertyService.
"""
DocService.__init__(self)
self._customEventHandlers = []
@@ -2710,7 +2705,6 @@ class WindowMenuService(DocService):
"""
Initializes the WindowMenu and its globals.
"""
DocService.__init__(self)
self.ARRANGE_WINDOWS_ID = wx.NewId()
self.SELECT_WINDOW_1_ID = wx.NewId()
self.SELECT_WINDOW_2_ID = wx.NewId()