handbrake-jp project\'s main repository.
Revision | 8a613e57d13d9de7043d4fdb102d57c76869c756 (tree) |
---|---|
Time | 2010-01-04 17:53:26 |
Author | unknown <hirom@.(no...> |
Commiter | unknown |
add UI version label to frmAbout
@@ -17,7 +17,7 @@ | ||
17 | 17 | ; HM NIS Edit Wizard helper defines |
18 | 18 | !define PRODUCT_NAME "Handbrake日本語版" |
19 | 19 | !define PRODUCT_VERSION "0.9.4" |
20 | -!define PRODUCT_VERSION_NUMBER "0.9.4jp" | |
20 | +!define PRODUCT_VERSION_NUMBER "0.9.4jp-r2" | |
21 | 21 | !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\Handbrake.exe" |
22 | 22 | !define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" |
23 | 23 | !define PRODUCT_UNINST_ROOT_KEY "HKLM" |
@@ -47,6 +47,8 @@ namespace Handbrake | ||
47 | 47 | this.lbl_HBBuild = new System.Windows.Forms.Label(); |
48 | 48 | this.PictureBox1 = new System.Windows.Forms.PictureBox(); |
49 | 49 | this.btn_close = new System.Windows.Forms.Button(); |
50 | + this.lbl_UIVer = new System.Windows.Forms.Label(); | |
51 | + this.label2 = new System.Windows.Forms.Label(); | |
50 | 52 | ((System.ComponentModel.ISupportInitialize)(this.PictureBox1)).BeginInit(); |
51 | 53 | this.SuspendLayout(); |
52 | 54 | // |
@@ -57,15 +59,15 @@ namespace Handbrake | ||
57 | 59 | this.Label3.Location = new System.Drawing.Point(124, 12); |
58 | 60 | this.Label3.Margin = new System.Windows.Forms.Padding(3, 3, 3, 1); |
59 | 61 | this.Label3.Name = "Label3"; |
60 | - this.Label3.Size = new System.Drawing.Size(99, 19); | |
62 | + this.Label3.Size = new System.Drawing.Size(167, 19); | |
61 | 63 | this.Label3.TabIndex = 25; |
62 | - this.Label3.Text = "HandBrake"; | |
64 | + this.Label3.Text = "HandBrake日本語版"; | |
63 | 65 | this.Label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
64 | 66 | // |
65 | 67 | // label1 |
66 | 68 | // |
67 | 69 | this.label1.AutoSize = true; |
68 | - this.label1.Location = new System.Drawing.Point(125, 63); | |
70 | + this.label1.Location = new System.Drawing.Point(125, 82); | |
69 | 71 | this.label1.Margin = new System.Windows.Forms.Padding(3); |
70 | 72 | this.label1.Name = "label1"; |
71 | 73 | this.label1.Size = new System.Drawing.Size(224, 13); |
@@ -100,7 +102,7 @@ namespace Handbrake | ||
100 | 102 | // btn_close |
101 | 103 | // |
102 | 104 | this.btn_close.DialogResult = System.Windows.Forms.DialogResult.OK; |
103 | - this.btn_close.Location = new System.Drawing.Point(274, 82); | |
105 | + this.btn_close.Location = new System.Drawing.Point(274, 125); | |
104 | 106 | this.btn_close.Name = "btn_close"; |
105 | 107 | this.btn_close.Size = new System.Drawing.Size(75, 23); |
106 | 108 | this.btn_close.TabIndex = 35; |
@@ -108,13 +110,33 @@ namespace Handbrake | ||
108 | 110 | this.btn_close.UseVisualStyleBackColor = true; |
109 | 111 | this.btn_close.Click += new System.EventHandler(this.btn_close_Click); |
110 | 112 | // |
113 | + // lbl_UIVer | |
114 | + // | |
115 | + this.lbl_UIVer.Location = new System.Drawing.Point(125, 50); | |
116 | + this.lbl_UIVer.Name = "lbl_UIVer"; | |
117 | + this.lbl_UIVer.Size = new System.Drawing.Size(224, 13); | |
118 | + this.lbl_UIVer.TabIndex = 36; | |
119 | + this.lbl_UIVer.Text = "{UI_Version}"; | |
120 | + this.lbl_UIVer.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; | |
121 | + // | |
122 | + // label2 | |
123 | + // | |
124 | + this.label2.AutoSize = true; | |
125 | + this.label2.Location = new System.Drawing.Point(125, 99); | |
126 | + this.label2.Name = "label2"; | |
127 | + this.label2.Size = new System.Drawing.Size(204, 13); | |
128 | + this.label2.TabIndex = 37; | |
129 | + this.label2.Text = "localized by hylom@users.sourceforge.jp"; | |
130 | + // | |
111 | 131 | // frmAbout |
112 | 132 | // |
113 | 133 | this.AcceptButton = this.btn_close; |
114 | 134 | this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); |
115 | 135 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; |
116 | 136 | this.CancelButton = this.btn_close; |
117 | - this.ClientSize = new System.Drawing.Size(363, 117); | |
137 | + this.ClientSize = new System.Drawing.Size(363, 160); | |
138 | + this.Controls.Add(this.label2); | |
139 | + this.Controls.Add(this.lbl_UIVer); | |
118 | 140 | this.Controls.Add(this.btn_close); |
119 | 141 | this.Controls.Add(this.label1); |
120 | 142 | this.Controls.Add(this.PictureBox1); |
@@ -129,7 +151,7 @@ namespace Handbrake | ||
129 | 151 | this.ShowIcon = false; |
130 | 152 | this.ShowInTaskbar = false; |
131 | 153 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; |
132 | - this.Text = "HandBrakeについて"; | |
154 | + this.Text = "HandBrake日本語版について"; | |
133 | 155 | ((System.ComponentModel.ISupportInitialize)(this.PictureBox1)).EndInit(); |
134 | 156 | this.ResumeLayout(false); |
135 | 157 | this.PerformLayout(); |
@@ -143,5 +165,7 @@ namespace Handbrake | ||
143 | 165 | internal System.Windows.Forms.Label lbl_HBBuild; |
144 | 166 | internal System.Windows.Forms.PictureBox PictureBox1; |
145 | 167 | private System.Windows.Forms.Button btn_close; |
168 | + private System.Windows.Forms.Label label2; | |
169 | + internal System.Windows.Forms.Label lbl_UIVer; | |
146 | 170 | } |
147 | 171 | } |
\ No newline at end of file |
@@ -23,11 +23,18 @@ namespace Handbrake | ||
23 | 23 | { |
24 | 24 | InitializeComponent(); |
25 | 25 | lbl_HBBuild.Text = Properties.Settings.Default.hb_version + " (" + Properties.Settings.Default.hb_build + ") - " + Properties.Settings.Default.hb_platform; |
26 | + | |
27 | + // get GUI version | |
28 | + System.Reflection.Assembly asm = System.Reflection.Assembly.GetExecutingAssembly(); | |
29 | + System.Version ver = asm.GetName().Version; | |
30 | + lbl_UIVer.Text = "HandBrake UI version: " + ver.ToString(); | |
31 | + | |
26 | 32 | } |
27 | 33 | |
28 | 34 | private void btn_close_Click(object sender, EventArgs e) |
29 | 35 | { |
30 | 36 | this.Close(); |
31 | 37 | } |
38 | + | |
32 | 39 | } |
33 | 40 | } |
\ No newline at end of file |