[cosmetics] update date in GPL header
[vuplus_xbmc] / tools / Translator / Translator / NewLanguageForm.cs
1 /*
2  *      Copyright (C) 2006-2013 Team XBMC
3  *      http://www.xbmc.org
4  *
5  *  This Program is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation; either version 2, or (at your option)
8  *  any later version.
9  *
10  *  This Program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with XBMC; see the file COPYING.  If not, write to
17  *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
18  *  http://www.gnu.org/copyleft/gpl.html
19  *
20  */
21
22 using System;
23 using System.Drawing;
24 using System.Collections;
25 using System.ComponentModel;
26 using System.Windows.Forms;
27
28 namespace TeamXBMC.Translator
29 {
30         /// <summary>
31         /// Summary description for NewLanguageForm.
32         /// </summary>
33         public class NewLanguageForm : System.Windows.Forms.Form
34         {
35                 private System.Windows.Forms.Button buttonOK;
36                 private System.Windows.Forms.Button buttonCancel;
37                 private System.Windows.Forms.Label label1;
38                 private System.Windows.Forms.TextBox textBoxName;
39                 private System.Windows.Forms.Label label2;
40                 /// <summary>
41                 /// Required designer variable.
42                 /// </summary>
43                 private System.ComponentModel.Container components = null;
44
45                 public NewLanguageForm()
46                 {
47                         //
48                         // Required for Windows Form Designer support
49                         //
50                         InitializeComponent();
51
52                         //
53                         // TODO: Add any constructor code after InitializeComponent call
54                         //
55                 }
56
57                 /// <summary>
58                 /// Clean up any resources being used.
59                 /// </summary>
60                 protected override void Dispose( bool disposing )
61                 {
62                         if( disposing )
63                         {
64                                 if(components != null)
65                                 {
66                                         components.Dispose();
67                                 }
68                         }
69                         base.Dispose( disposing );
70                 }
71
72                 #region Windows Form Designer generated code
73                 /// <summary>
74                 /// Required method for Designer support - do not modify
75                 /// the contents of this method with the code editor.
76                 /// </summary>
77                 private void InitializeComponent()
78                 {
79                         this.buttonOK = new System.Windows.Forms.Button();
80                         this.buttonCancel = new System.Windows.Forms.Button();
81                         this.label1 = new System.Windows.Forms.Label();
82                         this.textBoxName = new System.Windows.Forms.TextBox();
83                         this.label2 = new System.Windows.Forms.Label();
84                         this.SuspendLayout();
85                         // 
86                         // buttonOK
87                         // 
88                         this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
89                         this.buttonOK.FlatStyle = System.Windows.Forms.FlatStyle.System;
90                         this.buttonOK.Location = new System.Drawing.Point(72, 88);
91                         this.buttonOK.Name = "buttonOK";
92                         this.buttonOK.TabIndex = 4;
93                         this.buttonOK.Text = "OK";
94                         // 
95                         // buttonCancel
96                         // 
97                         this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
98                         this.buttonCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
99                         this.buttonCancel.Location = new System.Drawing.Point(160, 88);
100                         this.buttonCancel.Name = "buttonCancel";
101                         this.buttonCancel.TabIndex = 5;
102                         this.buttonCancel.Text = "Cancel";
103                         // 
104                         // label1
105                         // 
106                         this.label1.Location = new System.Drawing.Point(8, 48);
107                         this.label1.Name = "label1";
108                         this.label1.Size = new System.Drawing.Size(56, 23);
109                         this.label1.TabIndex = 2;
110                         this.label1.Text = "Name:";
111                         // 
112                         // textBoxName
113                         // 
114                         this.textBoxName.Location = new System.Drawing.Point(80, 48);
115                         this.textBoxName.Name = "textBoxName";
116                         this.textBoxName.Size = new System.Drawing.Size(152, 20);
117                         this.textBoxName.TabIndex = 3;
118                         this.textBoxName.Text = "";
119                         // 
120                         // label2
121                         // 
122                         this.label2.Location = new System.Drawing.Point(8, 8);
123                         this.label2.Name = "label2";
124                         this.label2.Size = new System.Drawing.Size(224, 32);
125                         this.label2.TabIndex = 1;
126                         this.label2.Text = "Please enter the country name of the new language to be created";
127                         // 
128                         // NewLanguageForm
129                         // 
130                         this.AcceptButton = this.buttonOK;
131                         this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
132                         this.CancelButton = this.buttonCancel;
133                         this.ClientSize = new System.Drawing.Size(242, 120);
134                         this.Controls.Add(this.label2);
135                         this.Controls.Add(this.textBoxName);
136                         this.Controls.Add(this.label1);
137                         this.Controls.Add(this.buttonCancel);
138                         this.Controls.Add(this.buttonOK);
139                         this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
140                         this.MaximizeBox = false;
141                         this.MinimizeBox = false;
142                         this.Name = "NewLanguageForm";
143                         this.ShowInTaskbar = false;
144                         this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
145                         this.Text = "New Language";
146                         this.ResumeLayout(false);
147
148                 }
149                 #endregion
150
151                 #region Properties
152
153                 /// <summary>
154                 /// Gets the name of the language to be created
155                 /// </summary>
156                 public string LanguageName
157                 {
158                         get
159                         {
160                                 return textBoxName.Text;
161                         }
162                 }
163
164                 #endregion
165         }
166 }