import PHPEditor
import wx.lib.ogl as ogl
import DebuggerService
- import atexit
- atexit.register(DebuggerService.DebuggerService.KillAllRunningProcesses)
import AboutDialog
import SVNService
+ import ExtensionService
if not ACTIVEGRID_BASE_IDE:
import DataModelEditor
docManager = wx.lib.docview.DocManager(flags = self.GetDefaultDocManagerFlags())
self.SetDocumentManager(docManager)
+ defaultTemplate = wx.lib.docview.DocTemplate(docManager,
+ _("Any"),
+ "*.*",
+ _("Any"),
+ _(".txt"),
+ _("Text Document"),
+ _("Text View"),
+ STCTextEditor.TextDocument,
+ STCTextEditor.TextView,
+ wx.lib.docview.TEMPLATE_INVISIBLE,
+ icon = STCTextEditor.getTextIcon())
+ docManager.AssociateTemplate(defaultTemplate)
+
if not ACTIVEGRID_BASE_IDE:
dplTemplate = DeploymentService.DeploymentTemplate(docManager,
_("Deployment"),
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())
optionsService.AddOptionsPanel(STCTextEditor.TextOptionsPanel)
optionsService.AddOptionsPanel(HtmlEditor.HtmlOptionsPanel)
optionsService.AddOptionsPanel(SVNService.SVNOptionsPanel)
+ optionsService.AddOptionsPanel(ExtensionService.ExtensionOptionsPanel)
filePropertiesService.AddCustomEventHandler(projectService)
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