[cosmetics] update date in GPL header
[vuplus_xbmc] / tools / Translator / Translator / AboutForm.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         /// Shows info about the application.
32         /// </summary>
33         public sealed class AboutForm : System.Windows.Forms.Form
34         {
35                 private System.Windows.Forms.Button buttonOk;
36                 private System.Windows.Forms.Label label1;
37                 private System.Windows.Forms.Label label2;
38                 private System.Windows.Forms.LinkLabel linkLabel1;
39                 private System.Windows.Forms.GroupBox groupBox1;
40                 /// <summary>
41                 /// Required designer variable.
42                 /// </summary>
43                 private System.ComponentModel.Container components = null;
44
45                 public AboutForm()
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.label1 = new System.Windows.Forms.Label();
81                         this.label2 = new System.Windows.Forms.Label();
82                         this.linkLabel1 = new System.Windows.Forms.LinkLabel();
83                         this.groupBox1 = new System.Windows.Forms.GroupBox();
84                         this.groupBox1.SuspendLayout();
85                         this.SuspendLayout();
86                         // 
87                         // buttonOk
88                         // 
89                         this.buttonOk.DialogResult = System.Windows.Forms.DialogResult.Cancel;
90                         this.buttonOk.FlatStyle = System.Windows.Forms.FlatStyle.System;
91                         this.buttonOk.Location = new System.Drawing.Point(109, 112);
92                         this.buttonOk.Name = "buttonOk";
93                         this.buttonOk.TabIndex = 0;
94                         this.buttonOk.Text = "OK";
95                         // 
96                         // label1
97                         // 
98                         this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
99                         this.label1.Location = new System.Drawing.Point(28, 16);
100                         this.label1.Name = "label1";
101                         this.label1.Size = new System.Drawing.Size(208, 23);
102                         this.label1.TabIndex = 1;
103                         this.label1.Text = "Team XBMC Translator 0.21";
104                         this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
105                         this.label1.UseMnemonic = false;
106                         // 
107                         // label2
108                         // 
109                         this.label2.FlatStyle = System.Windows.Forms.FlatStyle.System;
110                         this.label2.Location = new System.Drawing.Point(28, 40);
111                         this.label2.Name = "label2";
112                         this.label2.Size = new System.Drawing.Size(208, 23);
113                         this.label2.TabIndex = 2;
114                         this.label2.Text = "Copyright (C) 2006-2013 Team XBMC";
115                         this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
116                         this.label2.UseMnemonic = false;
117                         // 
118                         // linkLabel1
119                         // 
120                         this.linkLabel1.Cursor = System.Windows.Forms.Cursors.Hand;
121                         this.linkLabel1.FlatStyle = System.Windows.Forms.FlatStyle.System;
122                         this.linkLabel1.Location = new System.Drawing.Point(28, 64);
123                         this.linkLabel1.Name = "linkLabel1";
124                         this.linkLabel1.Size = new System.Drawing.Size(208, 23);
125                         this.linkLabel1.TabIndex = 3;
126                         this.linkLabel1.TabStop = true;
127                         this.linkLabel1.Tag = "";
128                         this.linkLabel1.Text = "http://xbmc.org";
129                         this.linkLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
130                         this.linkLabel1.UseMnemonic = false;
131                         this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
132                         // 
133                         // groupBox1
134                         // 
135                         this.groupBox1.Controls.Add(this.linkLabel1);
136                         this.groupBox1.Controls.Add(this.label2);
137                         this.groupBox1.Controls.Add(this.label1);
138                         this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
139                         this.groupBox1.Location = new System.Drawing.Point(14, 8);
140                         this.groupBox1.Name = "groupBox1";
141                         this.groupBox1.Size = new System.Drawing.Size(264, 96);
142                         this.groupBox1.TabIndex = 4;
143                         this.groupBox1.TabStop = false;
144                         // 
145                         // AboutForm
146                         // 
147                         this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
148                         this.CancelButton = this.buttonOk;
149                         this.ClientSize = new System.Drawing.Size(292, 142);
150                         this.Controls.Add(this.groupBox1);
151                         this.Controls.Add(this.buttonOk);
152                         this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
153                         this.MaximizeBox = false;
154                         this.MinimizeBox = false;
155                         this.Name = "AboutForm";
156                         this.ShowInTaskbar = false;
157                         this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
158                         this.Text = "About";
159                         this.groupBox1.ResumeLayout(false);
160                         this.ResumeLayout(false);
161
162                 }
163                 #endregion
164
165                 #region Control Events
166
167                 /// <summary>
168                 /// Reacts on a click of the linklable and opens the url (label of the control)
169                 /// in the standard browser.
170                 /// </summary>
171                 private void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
172                 {
173                         System.Diagnostics.Process.Start(linkLabel1.Text);
174                 }
175
176                 #endregion
177         }
178 }