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:
@@ -81,6 +81,7 @@ class IDEApplication(wx.lib.pydocview.DocApp):
|
||||
import DebuggerService
|
||||
import AboutDialog
|
||||
import SVNService
|
||||
import ExtensionService
|
||||
|
||||
if not ACTIVEGRID_BASE_IDE:
|
||||
import DataModelEditor
|
||||
@@ -304,6 +305,7 @@ class IDEApplication(wx.lib.pydocview.DocApp):
|
||||
deploymentService = self.InstallService(DeploymentService.DeploymentService())
|
||||
dataModelService = self.InstallService(DataModelEditor.DataModelService())
|
||||
welcomeService = self.InstallService(WelcomeService.WelcomeService())
|
||||
extensionService = self.InstallService(ExtensionService.ExtensionService())
|
||||
optionsService = self.InstallService(wx.lib.pydocview.DocOptionsService(supportedModes=wx.lib.docview.DOC_MDI))
|
||||
aboutService = self.InstallService(wx.lib.pydocview.AboutService(AboutDialog.AboutDialog))
|
||||
svnService = self.InstallService(SVNService.SVNService())
|
||||
@@ -326,6 +328,7 @@ class IDEApplication(wx.lib.pydocview.DocApp):
|
||||
optionsService.AddOptionsPanel(STCTextEditor.TextOptionsPanel)
|
||||
optionsService.AddOptionsPanel(HtmlEditor.HtmlOptionsPanel)
|
||||
optionsService.AddOptionsPanel(SVNService.SVNOptionsPanel)
|
||||
optionsService.AddOptionsPanel(ExtensionService.ExtensionOptionsPanel)
|
||||
|
||||
filePropertiesService.AddCustomEventHandler(projectService)
|
||||
|
||||
@@ -374,7 +377,7 @@ class IDEApplication(wx.lib.pydocview.DocApp):
|
||||
if os.path.exists(tips_path):
|
||||
wx.CallAfter(self.ShowTip, docManager.FindSuitableParent(), wx.CreateFileTipProvider(tips_path, 0))
|
||||
|
||||
wx.UpdateUIEvent.SetUpdateInterval(200) # Overhead of updating menus was too much. Change to update every 200 milliseconds.
|
||||
wx.UpdateUIEvent.SetUpdateInterval(400) # Overhead of updating menus was too much. Change to update every 400 milliseconds.
|
||||
|
||||
return True
|
||||
|
||||
|
Reference in New Issue
Block a user