~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric-updates

« back to all changes in this revision

Viewing changes to src/addins/ChangeLogAddIn/gtk-gui/MonoDevelop.ChangeLogAddIn.ProjectOptionPanelWidget.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-18 08:40:51 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090218084051-gh8m6ukvokbwj7cf
Tags: 1.9.2+dfsg-1ubuntu1
* Merge from Debian Experimental (LP: #330519), remaining Ubuntu changes:
  + debian/control:
    - Update for Gnome# 2.24
    - Add libmono-cairo1.0-cil to build-deps to fool pkg-config check

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// ------------------------------------------------------------------------------
2
2
//  <autogenerated>
3
3
//      This code was generated by a tool.
4
 
//      Mono Runtime Version: 2.0.50727.42
 
4
//      
5
5
// 
6
6
//      Changes to this file may cause incorrect behavior and will be lost if 
7
7
//      the code is regenerated.
11
11
namespace MonoDevelop.ChangeLogAddIn {
12
12
    
13
13
    
14
 
    public partial class ProjectOptionPanelWidget {
 
14
    internal partial class ProjectOptionPanelWidget {
 
15
        
 
16
        private Gtk.Notebook notebook1;
15
17
        
16
18
        private Gtk.VBox vbox2;
17
19
        
18
 
        private Gtk.Label label1;
19
 
        
20
 
        private Gtk.RadioButton parentRadioButton;
21
 
        
22
 
        private Gtk.Label label4;
23
 
        
24
20
        private Gtk.RadioButton noneRadioButton;
25
21
        
26
22
        private Gtk.Label label3;
37
33
        
38
34
        private Gtk.Label label7;
39
35
        
 
36
        private Gtk.Alignment alignment1;
 
37
        
 
38
        private Gtk.Alignment alignment2;
 
39
        
 
40
        private Gtk.CheckButton checkVersionControl;
 
41
        
 
42
        private Gtk.Alignment alignment3;
 
43
        
 
44
        private Gtk.CheckButton checkRequireOnCommit;
 
45
        
 
46
        private Gtk.Label label1;
 
47
        
 
48
        private Gtk.VBox vbox1;
 
49
        
 
50
        private MonoDevelop.VersionControl.CommitMessageStylePanelWidget messageWidget;
 
51
        
 
52
        private Gtk.Label label2;
 
53
        
40
54
        protected virtual void Build() {
41
55
            Stetic.Gui.Initialize(this);
42
56
            // Widget MonoDevelop.ChangeLogAddIn.ProjectOptionPanelWidget
43
57
            Stetic.BinContainer.Attach(this);
44
58
            this.Name = "MonoDevelop.ChangeLogAddIn.ProjectOptionPanelWidget";
45
59
            // Container child MonoDevelop.ChangeLogAddIn.ProjectOptionPanelWidget.Gtk.Container+ContainerChild
 
60
            this.notebook1 = new Gtk.Notebook();
 
61
            this.notebook1.CanFocus = true;
 
62
            this.notebook1.Name = "notebook1";
 
63
            this.notebook1.CurrentPage = 0;
 
64
            // Container child notebook1.Gtk.Notebook+NotebookChild
46
65
            this.vbox2 = new Gtk.VBox();
47
66
            this.vbox2.Name = "vbox2";
48
67
            this.vbox2.Spacing = 6;
49
 
            // Container child vbox2.Gtk.Box+BoxChild
50
 
            this.label1 = new Gtk.Label();
51
 
            this.label1.Name = "label1";
52
 
            this.label1.Xalign = 0F;
53
 
            this.label1.LabelProp = Mono.Unix.Catalog.GetString("Select the ChangeLog policy that applies for this project:");
54
 
            this.vbox2.Add(this.label1);
55
 
            Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1]));
56
 
            w1.Position = 0;
57
 
            w1.Expand = false;
58
 
            w1.Fill = false;
59
 
            // Container child vbox2.Gtk.Box+BoxChild
60
 
            this.parentRadioButton = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("radiobutton2"));
61
 
            this.parentRadioButton.CanFocus = true;
62
 
            this.parentRadioButton.Name = "parentRadioButton";
63
 
            this.parentRadioButton.DrawIndicator = true;
64
 
            this.parentRadioButton.UseUnderline = true;
65
 
            this.parentRadioButton.Group = new GLib.SList(System.IntPtr.Zero);
66
 
            this.parentRadioButton.Remove(this.parentRadioButton.Child);
67
 
            // Container child parentRadioButton.Gtk.Container+ContainerChild
68
 
            this.label4 = new Gtk.Label();
69
 
            this.label4.Name = "label4";
70
 
            this.label4.LabelProp = Mono.Unix.Catalog.GetString("<b>Use parent solution policy</b>\nApply the policy specified in the parent solution.");
71
 
            this.label4.UseMarkup = true;
72
 
            this.parentRadioButton.Add(this.label4);
73
 
            this.vbox2.Add(this.parentRadioButton);
74
 
            Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.parentRadioButton]));
75
 
            w3.Position = 1;
76
 
            w3.Expand = false;
77
 
            w3.Fill = false;
 
68
            this.vbox2.BorderWidth = ((uint)(6));
78
69
            // Container child vbox2.Gtk.Box+BoxChild
79
70
            this.noneRadioButton = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("radiobutton1"));
80
71
            this.noneRadioButton.CanFocus = true;
81
72
            this.noneRadioButton.Name = "noneRadioButton";
 
73
            this.noneRadioButton.Active = true;
82
74
            this.noneRadioButton.DrawIndicator = true;
83
75
            this.noneRadioButton.UseUnderline = true;
84
 
            this.noneRadioButton.Group = this.parentRadioButton.Group;
 
76
            this.noneRadioButton.Group = new GLib.SList(System.IntPtr.Zero);
85
77
            this.noneRadioButton.Remove(this.noneRadioButton.Child);
86
78
            // Container child noneRadioButton.Gtk.Container+ContainerChild
87
79
            this.label3 = new Gtk.Label();
90
82
            this.label3.UseMarkup = true;
91
83
            this.noneRadioButton.Add(this.label3);
92
84
            this.vbox2.Add(this.noneRadioButton);
93
 
            Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.noneRadioButton]));
94
 
            w5.Position = 2;
95
 
            w5.Expand = false;
96
 
            w5.Fill = false;
 
85
            Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.noneRadioButton]));
 
86
            w2.Position = 0;
 
87
            w2.Expand = false;
 
88
            w2.Fill = false;
97
89
            // Container child vbox2.Gtk.Box+BoxChild
98
90
            this.nearestRadioButton = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Custom policy"));
99
91
            this.nearestRadioButton.CanFocus = true;
100
92
            this.nearestRadioButton.Name = "nearestRadioButton";
101
93
            this.nearestRadioButton.DrawIndicator = true;
102
94
            this.nearestRadioButton.UseUnderline = true;
103
 
            this.nearestRadioButton.Group = this.parentRadioButton.Group;
 
95
            this.nearestRadioButton.Group = this.noneRadioButton.Group;
104
96
            this.nearestRadioButton.Remove(this.nearestRadioButton.Child);
105
97
            // Container child nearestRadioButton.Gtk.Container+ContainerChild
106
98
            this.label5 = new Gtk.Label();
111
103
            this.label5.Wrap = true;
112
104
            this.nearestRadioButton.Add(this.label5);
113
105
            this.vbox2.Add(this.nearestRadioButton);
114
 
            Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.nearestRadioButton]));
115
 
            w7.Position = 3;
116
 
            w7.Expand = false;
117
 
            w7.Fill = false;
 
106
            Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.nearestRadioButton]));
 
107
            w4.Position = 1;
 
108
            w4.Expand = false;
 
109
            w4.Fill = false;
118
110
            // Container child vbox2.Gtk.Box+BoxChild
119
111
            this.oneChangeLogInProjectRootDirectoryRadioButton = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("One ChangeLog in the project root directory"));
120
112
            this.oneChangeLogInProjectRootDirectoryRadioButton.CanFocus = true;
121
113
            this.oneChangeLogInProjectRootDirectoryRadioButton.Name = "oneChangeLogInProjectRootDirectoryRadioButton";
122
114
            this.oneChangeLogInProjectRootDirectoryRadioButton.DrawIndicator = true;
123
115
            this.oneChangeLogInProjectRootDirectoryRadioButton.UseUnderline = true;
124
 
            this.oneChangeLogInProjectRootDirectoryRadioButton.Group = this.parentRadioButton.Group;
 
116
            this.oneChangeLogInProjectRootDirectoryRadioButton.Group = this.noneRadioButton.Group;
125
117
            this.oneChangeLogInProjectRootDirectoryRadioButton.Remove(this.oneChangeLogInProjectRootDirectoryRadioButton.Child);
126
118
            // Container child oneChangeLogInProjectRootDirectoryRadioButton.Gtk.Container+ContainerChild
127
119
            this.label6 = new Gtk.Label();
132
124
            this.label6.Wrap = true;
133
125
            this.oneChangeLogInProjectRootDirectoryRadioButton.Add(this.label6);
134
126
            this.vbox2.Add(this.oneChangeLogInProjectRootDirectoryRadioButton);
135
 
            Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox2[this.oneChangeLogInProjectRootDirectoryRadioButton]));
136
 
            w9.Position = 4;
137
 
            w9.Expand = false;
138
 
            w9.Fill = false;
 
127
            Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.oneChangeLogInProjectRootDirectoryRadioButton]));
 
128
            w6.Position = 2;
 
129
            w6.Expand = false;
 
130
            w6.Fill = false;
139
131
            // Container child vbox2.Gtk.Box+BoxChild
140
132
            this.oneChangeLogInEachDirectoryRadioButton = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("One ChangeLog in each directory"));
141
133
            this.oneChangeLogInEachDirectoryRadioButton.CanFocus = true;
142
134
            this.oneChangeLogInEachDirectoryRadioButton.Name = "oneChangeLogInEachDirectoryRadioButton";
143
135
            this.oneChangeLogInEachDirectoryRadioButton.DrawIndicator = true;
144
136
            this.oneChangeLogInEachDirectoryRadioButton.UseUnderline = true;
145
 
            this.oneChangeLogInEachDirectoryRadioButton.Group = this.parentRadioButton.Group;
 
137
            this.oneChangeLogInEachDirectoryRadioButton.Group = this.noneRadioButton.Group;
146
138
            this.oneChangeLogInEachDirectoryRadioButton.Remove(this.oneChangeLogInEachDirectoryRadioButton.Child);
147
139
            // Container child oneChangeLogInEachDirectoryRadioButton.Gtk.Container+ContainerChild
148
140
            this.label7 = new Gtk.Label();
153
145
            this.label7.Wrap = true;
154
146
            this.oneChangeLogInEachDirectoryRadioButton.Add(this.label7);
155
147
            this.vbox2.Add(this.oneChangeLogInEachDirectoryRadioButton);
156
 
            Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox2[this.oneChangeLogInEachDirectoryRadioButton]));
157
 
            w11.Position = 5;
 
148
            Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox2[this.oneChangeLogInEachDirectoryRadioButton]));
 
149
            w8.Position = 3;
 
150
            w8.Expand = false;
 
151
            w8.Fill = false;
 
152
            // Container child vbox2.Gtk.Box+BoxChild
 
153
            this.alignment1 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
 
154
            this.alignment1.Name = "alignment1";
 
155
            // Container child alignment1.Gtk.Container+ContainerChild
 
156
            this.alignment2 = new Gtk.Alignment(0F, 0F, 1F, 1F);
 
157
            this.alignment2.Name = "alignment2";
 
158
            this.alignment2.TopPadding = ((uint)(18));
 
159
            // Container child alignment2.Gtk.Container+ContainerChild
 
160
            this.checkVersionControl = new Gtk.CheckButton();
 
161
            this.checkVersionControl.CanFocus = true;
 
162
            this.checkVersionControl.Name = "checkVersionControl";
 
163
            this.checkVersionControl.Label = Mono.Unix.Catalog.GetString("Integrate with _version control");
 
164
            this.checkVersionControl.DrawIndicator = true;
 
165
            this.checkVersionControl.UseUnderline = true;
 
166
            this.alignment2.Add(this.checkVersionControl);
 
167
            this.alignment1.Add(this.alignment2);
 
168
            this.vbox2.Add(this.alignment1);
 
169
            Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox2[this.alignment1]));
 
170
            w11.Position = 4;
158
171
            w11.Expand = false;
159
172
            w11.Fill = false;
160
 
            this.Add(this.vbox2);
 
173
            // Container child vbox2.Gtk.Box+BoxChild
 
174
            this.alignment3 = new Gtk.Alignment(0F, 0F, 1F, 1F);
 
175
            this.alignment3.Name = "alignment3";
 
176
            this.alignment3.LeftPadding = ((uint)(24));
 
177
            // Container child alignment3.Gtk.Container+ContainerChild
 
178
            this.checkRequireOnCommit = new Gtk.CheckButton();
 
179
            this.checkRequireOnCommit.CanFocus = true;
 
180
            this.checkRequireOnCommit.Name = "checkRequireOnCommit";
 
181
            this.checkRequireOnCommit.Label = Mono.Unix.Catalog.GetString("_Require ChangeLog entries for all files when committing");
 
182
            this.checkRequireOnCommit.DrawIndicator = true;
 
183
            this.checkRequireOnCommit.UseUnderline = true;
 
184
            this.alignment3.Add(this.checkRequireOnCommit);
 
185
            this.vbox2.Add(this.alignment3);
 
186
            Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox2[this.alignment3]));
 
187
            w13.PackType = ((Gtk.PackType)(1));
 
188
            w13.Position = 6;
 
189
            w13.Expand = false;
 
190
            w13.Fill = false;
 
191
            this.notebook1.Add(this.vbox2);
 
192
            // Notebook tab
 
193
            this.label1 = new Gtk.Label();
 
194
            this.label1.Name = "label1";
 
195
            this.label1.LabelProp = Mono.Unix.Catalog.GetString("ChangeLog Generation");
 
196
            this.notebook1.SetTabLabel(this.vbox2, this.label1);
 
197
            this.label1.ShowAll();
 
198
            // Container child notebook1.Gtk.Notebook+NotebookChild
 
199
            this.vbox1 = new Gtk.VBox();
 
200
            this.vbox1.Name = "vbox1";
 
201
            this.vbox1.Spacing = 6;
 
202
            this.vbox1.BorderWidth = ((uint)(9));
 
203
            // Container child vbox1.Gtk.Box+BoxChild
 
204
            this.messageWidget = new MonoDevelop.VersionControl.CommitMessageStylePanelWidget();
 
205
            this.messageWidget.Events = ((Gdk.EventMask)(256));
 
206
            this.messageWidget.Name = "messageWidget";
 
207
            this.vbox1.Add(this.messageWidget);
 
208
            Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox1[this.messageWidget]));
 
209
            w15.Position = 0;
 
210
            this.notebook1.Add(this.vbox1);
 
211
            Gtk.Notebook.NotebookChild w16 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.vbox1]));
 
212
            w16.Position = 1;
 
213
            // Notebook tab
 
214
            this.label2 = new Gtk.Label();
 
215
            this.label2.Name = "label2";
 
216
            this.label2.LabelProp = Mono.Unix.Catalog.GetString("Message Style");
 
217
            this.notebook1.SetTabLabel(this.vbox1, this.label2);
 
218
            this.label2.ShowAll();
 
219
            this.Add(this.notebook1);
161
220
            if ((this.Child != null)) {
162
221
                this.Child.ShowAll();
163
222
            }
164
223
            this.Show();
 
224
            this.noneRadioButton.Toggled += new System.EventHandler(this.ValueChanged);
 
225
            this.nearestRadioButton.Toggled += new System.EventHandler(this.ValueChanged);
 
226
            this.oneChangeLogInProjectRootDirectoryRadioButton.Toggled += new System.EventHandler(this.ValueChanged);
 
227
            this.oneChangeLogInEachDirectoryRadioButton.Toggled += new System.EventHandler(this.ValueChanged);
 
228
            this.checkVersionControl.Toggled += new System.EventHandler(this.ValueChanged);
 
229
            this.checkRequireOnCommit.Toggled += new System.EventHandler(this.ValueChanged);
 
230
            this.messageWidget.Changed += new System.EventHandler(this.OnMessageWidgetChanged);
165
231
        }
166
232
    }
167
233
}