~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/BackendBindings/Boo/BooBinding/Project/Templates/Form.xft

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<Template author="Daniel Grunwald" version="1.0">
 
3
        
 
4
        <Config
 
5
                  name        = "${res:Templates.File.WindowsForm.Name}"
 
6
                  icon        = "Boo.File.Form"
 
7
                  category    = "Boo"
 
8
                  defaultname = "Form${Number}.boo"
 
9
                  language    = "Boo"/>
 
10
         
 
11
        <Description>${res:Templates.File.WindowsForm.Description}</Description>
 
12
        
 
13
        <!-- 
 
14
        Special new file templates:
 
15
                ${StandardNamespace}        -> Standardnamespace of the current project or FileNameWithoutExtension
 
16
                ${FullName}                 -> Full generated path name
 
17
                ${FileName}                 -> File name with extension
 
18
                ${FileNameWithoutExtension} -> File name without extension
 
19
                ${Extension}                -> Extension in the form ".cs"
 
20
                ${Path}                     -> Full path of the file
 
21
                ${ClassName}                -> Class name (generally FileNameWithoutExtension w/o 'bad' characters)
 
22
         -->
 
23
        <Files>
 
24
                <!-- Designer file must come first, so the design tab is shown correctly -->
 
25
                <File name="${Path}/${FileNameWithoutExtension}.Designer.boo" DependentUpon="${FileName}" language="Boo"><![CDATA[namespace ${StandardNamespace}
 
26
 
 
27
partial class ${ClassName}(System.Windows.Forms.Form):
 
28
        private components as System.ComponentModel.IContainer = null
 
29
        
 
30
        protected override def Dispose(disposing as bool) as void:
 
31
                if disposing:
 
32
                        if components is not null:
 
33
                                components.Dispose()
 
34
                super(disposing)
 
35
        
 
36
        // This method is required for Windows Forms designer support.
 
37
        // Do not change the method contents inside the source code editor. The Forms designer might
 
38
        // not be able to load this method if it was changed manually.
 
39
        private def InitializeComponent():
 
40
                // ${ClassName}
 
41
                self.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
 
42
                self.Text = '${ClassName}'
 
43
                self.Name = '${ClassName}'
 
44
 
 
45
]]></File>
 
46
                <File name="${FullName}" language="Boo"><![CDATA[namespace ${StandardNamespace}
 
47
 
 
48
import System
 
49
import System.Collections
 
50
import System.Drawing
 
51
import System.Windows.Forms
 
52
 
 
53
partial class ${ClassName}:
 
54
"""Description of ${ClassName}."""
 
55
        public def constructor():
 
56
                // The InitializeComponent() call is required for Windows Forms designer support.
 
57
                InitializeComponent()
 
58
                // TODO: Add constructor code after the InitializeComponent() call.
 
59
 
 
60
]]></File>
 
61
        </Files>
 
62
        
 
63
        <AdditionalOptions/>
 
64
</Template>