⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ide.py

📁 Wxpython Implemented on Windows CE, Source code
💻 PY
📖 第 1 页 / 共 5 页
字号:
                _("HTML"),
                "*.html;*.htm",
                _("HTML"),
                _(".html"),
                _("HTML Document"),
                _("HTML View"),
                HtmlEditor.HtmlDocument,
                HtmlEditor.HtmlView,
                icon = HtmlEditor.getHTMLIcon())
        docManager.AssociateTemplate(htmlTemplate)

        if not ACTIVEGRID_BASE_IDE:
            identityTemplate = wx.lib.docview.DocTemplate(docManager,
                    _("Identity"),
                    "*.xacml",
                    _("Identity"),
                    _(".xacml"),
                    _("Identity Configuration"),
                    _("Identity View"),
                    RoleEditor.RoleEditorDocument,
                    RoleEditor.RoleEditorView,
                    wx.lib.docview.TEMPLATE_NO_CREATE,
                    icon = XmlEditor.getXMLIcon())
            docManager.AssociateTemplate(identityTemplate)

        imageTemplate = wx.lib.docview.DocTemplate(docManager,
                _("Image"),
                "*.bmp;*.ico;*.gif;*.jpg;*.jpeg;*.png",
                _("Image"),
                _(".png"),
                _("Image Document"),
                _("Image View"),
                ImageEditor.ImageDocument,
                ImageEditor.ImageView,
                wx.lib.docview.TEMPLATE_NO_CREATE,
                icon = ImageEditor.getImageIcon())
        docManager.AssociateTemplate(imageTemplate)
        
        if not ACTIVEGRID_BASE_IDE and _EDIT_LAYOUTS:
            layoutTemplate = wx.lib.docview.DocTemplate(docManager,
                    _("Layout"),
                    "*.lyt",
                    _("Layout"),
                    _(".lyt"),
                    _("Renderer Layouts Document"),
                    _("Layout View"),
                    # Fix the fonts for CDATA XmlEditor.XmlDocument,
                    # XmlEditor.XmlView,
                    LayoutEditor.LayoutEditorDocument,
                    LayoutEditor.LayoutEditorView,
                    icon = LayoutEditor.getLytIcon())
            docManager.AssociateTemplate(layoutTemplate)

        perlTemplate = wx.lib.docview.DocTemplate(docManager,
                _("Perl"),
                "*.pl",
                _("Perl"),
                _(".pl"),
                _("Perl Document"),
                _("Perl View"),
                PerlEditor.PerlDocument,
                PerlEditor.PerlView,
                icon = PerlEditor.getPerlIcon())
        docManager.AssociateTemplate(perlTemplate)

        phpTemplate = wx.lib.docview.DocTemplate(docManager,
                _("PHP"),
                "*.php",
                _("PHP"),
                _(".php"),
                _("PHP Document"),
                _("PHP View"),
                PHPEditor.PHPDocument,
                PHPEditor.PHPView,
                icon = PHPEditor.getPHPIcon())
        docManager.AssociateTemplate(phpTemplate)

        if not ACTIVEGRID_BASE_IDE:
            processModelTemplate = ProcessModelEditor.ProcessModelTemplate(docManager,
                _("Process"),
                "*.bpel",
                _("Process"),
                _(".bpel"),
                _("Process Document"),
                _("Process View"),
                ProcessModelEditor.ProcessModelDocument,
                ProcessModelEditor.ProcessModelView,
                wx.lib.docview.TEMPLATE_NO_CREATE,
                icon = ProcessModelEditor.getProcessModelIcon())
            docManager.AssociateTemplate(processModelTemplate)

        projectTemplate = ProjectEditor.ProjectTemplate(docManager,
                _("Project"),
                "*.agp",
                _("Project"),
                _(".agp"),
                _("Project Document"),
                _("Project View"),
                ProjectEditor.ProjectDocument,
                ProjectEditor.ProjectView,
                wx.lib.docview.TEMPLATE_NO_CREATE,
                icon = ProjectEditor.getProjectIcon())
        docManager.AssociateTemplate(projectTemplate)

        pythonTemplate = wx.lib.docview.DocTemplate(docManager,
                _("Python"),
                "*.py",
                _("Python"),
                _(".py"),
                _("Python Document"),
                _("Python View"),
                PythonEditor.PythonDocument,
                PythonEditor.PythonView,
                icon = PythonEditor.getPythonIcon())
        docManager.AssociateTemplate(pythonTemplate)

        if not ACTIVEGRID_BASE_IDE:
            dataModelTemplate = DataModelEditor.DataModelTemplate(docManager,
                _("Schema"),
                "*.xsd",
                _("Schema"),
                _(".xsd"),
                _("Schema Document"),
                _("Schema View"),
                DataModelEditor.DataModelDocument,
                DataModelEditor.DataModelView,
                icon = DataModelEditor.getDataModelIcon())
            docManager.AssociateTemplate(dataModelTemplate)
            
        if not ACTIVEGRID_BASE_IDE:
            wsdlagTemplate = wx.lib.docview.DocTemplate(docManager,
                    _("Service Reference"),
                    "*.wsdlag",
                    _("Project"),
                    _(".wsdlag"),
                    _("Service Reference Document"),
                    _("Service Reference View"),
                    WsdlAgEditor.WsdlAgDocument,
                    WsdlAgEditor.WsdlAgView,
                    wx.lib.docview.TEMPLATE_NO_CREATE,
                    icon = WSDLEditor.getWSDLIcon())
            docManager.AssociateTemplate(wsdlagTemplate)

        if not ACTIVEGRID_BASE_IDE and _EDIT_LAYOUTS:
            layoutTemplate = wx.lib.docview.DocTemplate(docManager,
                    _("Skin"),
                    "*.skn",
                    _("Skin"),
                    _(".skn"),
                    _("Application Skin"),
                    _("Skin View"),
                    SkinEditor.SkinDocument,
                    SkinEditor.SkinView,
                    wx.lib.docview.TEMPLATE_NO_CREATE,
                    icon = getSkinIcon())
            docManager.AssociateTemplate(layoutTemplate)

        if not ACTIVEGRID_BASE_IDE:
            sqlTemplate = wx.lib.docview.DocTemplate(docManager,
                    _("SQL"),
                    "*.sql",
                    _("SQL"),
                    _(".sql"),
                    _("SQL Document"),
                    _("SQL View"),
                    SQLEditor.SQLDocument,
                    SQLEditor.SQLView,
                    wx.lib.docview.TEMPLATE_NO_CREATE,
                    icon = SQLEditor.getSQLIcon())
            docManager.AssociateTemplate(sqlTemplate)

        textTemplate = wx.lib.docview.DocTemplate(docManager,
                _("Text"),
                "*.text;*.txt",
                _("Text"),
                _(".txt"),
                _("Text Document"),
                _("Text View"),
                STCTextEditor.TextDocument,
                STCTextEditor.TextView,
                icon = STCTextEditor.getTextIcon())
        docManager.AssociateTemplate(textTemplate)

        if not ACTIVEGRID_BASE_IDE:
            wsdlTemplate = WSDLEditor.WSDLTemplate(docManager,
                    _("WSDL"),
                    "*.wsdl",
                    _("WSDL"),
                    _(".wsdl"),
                    _("WSDL Document"),
                    _("WSDL View"),
                    WSDLEditor.WSDLDocument,
                    WSDLEditor.WSDLView,
                    wx.lib.docview.TEMPLATE_NO_CREATE,
                    icon = WSDLEditor.getWSDLIcon())
            docManager.AssociateTemplate(wsdlTemplate)

        if not ACTIVEGRID_BASE_IDE:
            xformTemplate = wx.lib.docview.DocTemplate(docManager,
                    _("XForm"),
                    "*.xform",
                    _("XForm"),
                    _(".xform"),
                    _("XForm Document"),
                    _("XForm View"),
                    XFormEditor.XFormDocument,
                    XFormEditor.XFormView,
                    wx.lib.docview.TEMPLATE_NO_CREATE,
                    icon = XFormEditor.getXFormIcon())
            docManager.AssociateTemplate(xformTemplate)

        xmlTemplate = wx.lib.docview.DocTemplate(docManager,
                _("XML"),
                "*.xml",
                _("XML"),
                _(".xml"),
                _("XML Document"),
                _("XML View"),
                XmlEditor.XmlDocument,
                XmlEditor.XmlView,
                icon = XmlEditor.getXMLIcon())
        docManager.AssociateTemplate(xmlTemplate)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -