From: unknown Date: Mon, 4 Jan 2010 08:53:26 +0000 (+0900) Subject: add UI version label to frmAbout X-Git-Url: http://git.osdn.net/view?p=handbrake-jp%2Fhandbrake-jp.git;a=commitdiff_plain;h=8a613e57d13d9de7043d4fdb102d57c76869c756 add UI version label to frmAbout --- diff --git a/win/C#/Installer/Installer.nsi b/win/C#/Installer/Installer.nsi index 3e49a27..4d9561f 100644 --- a/win/C#/Installer/Installer.nsi +++ b/win/C#/Installer/Installer.nsi @@ -17,7 +17,7 @@ ; HM NIS Edit Wizard helper defines !define PRODUCT_NAME "Handbrake“ú–{Œê”Å" !define PRODUCT_VERSION "0.9.4" -!define PRODUCT_VERSION_NUMBER "0.9.4jp" +!define PRODUCT_VERSION_NUMBER "0.9.4jp-r2" !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\Handbrake.exe" !define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" !define PRODUCT_UNINST_ROOT_KEY "HKLM" diff --git a/win/C#/frmAbout.Designer.cs b/win/C#/frmAbout.Designer.cs index db1c86c..b8ef0e6 100644 --- a/win/C#/frmAbout.Designer.cs +++ b/win/C#/frmAbout.Designer.cs @@ -47,6 +47,8 @@ namespace Handbrake this.lbl_HBBuild = new System.Windows.Forms.Label(); this.PictureBox1 = new System.Windows.Forms.PictureBox(); this.btn_close = new System.Windows.Forms.Button(); + this.lbl_UIVer = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.PictureBox1)).BeginInit(); this.SuspendLayout(); // @@ -57,15 +59,15 @@ namespace Handbrake this.Label3.Location = new System.Drawing.Point(124, 12); this.Label3.Margin = new System.Windows.Forms.Padding(3, 3, 3, 1); this.Label3.Name = "Label3"; - this.Label3.Size = new System.Drawing.Size(99, 19); + this.Label3.Size = new System.Drawing.Size(167, 19); this.Label3.TabIndex = 25; - this.Label3.Text = "HandBrake"; + this.Label3.Text = "HandBrake“ú–{Œê”Å"; this.Label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label1 // this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(125, 63); + this.label1.Location = new System.Drawing.Point(125, 82); this.label1.Margin = new System.Windows.Forms.Padding(3); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(224, 13); @@ -100,7 +102,7 @@ namespace Handbrake // btn_close // this.btn_close.DialogResult = System.Windows.Forms.DialogResult.OK; - this.btn_close.Location = new System.Drawing.Point(274, 82); + this.btn_close.Location = new System.Drawing.Point(274, 125); this.btn_close.Name = "btn_close"; this.btn_close.Size = new System.Drawing.Size(75, 23); this.btn_close.TabIndex = 35; @@ -108,13 +110,33 @@ namespace Handbrake this.btn_close.UseVisualStyleBackColor = true; this.btn_close.Click += new System.EventHandler(this.btn_close_Click); // + // lbl_UIVer + // + this.lbl_UIVer.Location = new System.Drawing.Point(125, 50); + this.lbl_UIVer.Name = "lbl_UIVer"; + this.lbl_UIVer.Size = new System.Drawing.Size(224, 13); + this.lbl_UIVer.TabIndex = 36; + this.lbl_UIVer.Text = "{UI_Version}"; + this.lbl_UIVer.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(125, 99); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(204, 13); + this.label2.TabIndex = 37; + this.label2.Text = "localized by hylom@users.sourceforge.jp"; + // // frmAbout // this.AcceptButton = this.btn_close; this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.CancelButton = this.btn_close; - this.ClientSize = new System.Drawing.Size(363, 117); + this.ClientSize = new System.Drawing.Size(363, 160); + this.Controls.Add(this.label2); + this.Controls.Add(this.lbl_UIVer); this.Controls.Add(this.btn_close); this.Controls.Add(this.label1); this.Controls.Add(this.PictureBox1); @@ -129,7 +151,7 @@ namespace Handbrake this.ShowIcon = false; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "HandBrake‚ɂ‚¢‚Ä"; + this.Text = "HandBrake“ú–{Œê”łɂ‚¢‚Ä"; ((System.ComponentModel.ISupportInitialize)(this.PictureBox1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -143,5 +165,7 @@ namespace Handbrake internal System.Windows.Forms.Label lbl_HBBuild; internal System.Windows.Forms.PictureBox PictureBox1; private System.Windows.Forms.Button btn_close; + private System.Windows.Forms.Label label2; + internal System.Windows.Forms.Label lbl_UIVer; } } \ No newline at end of file diff --git a/win/C#/frmAbout.cs b/win/C#/frmAbout.cs index 088ca88..4d7574f 100644 --- a/win/C#/frmAbout.cs +++ b/win/C#/frmAbout.cs @@ -23,11 +23,18 @@ namespace Handbrake { InitializeComponent(); lbl_HBBuild.Text = Properties.Settings.Default.hb_version + " (" + Properties.Settings.Default.hb_build + ") - " + Properties.Settings.Default.hb_platform; + + // get GUI version + System.Reflection.Assembly asm = System.Reflection.Assembly.GetExecutingAssembly(); + System.Version ver = asm.GetName().Version; + lbl_UIVer.Text = "HandBrake UI version: " + ver.ToString(); + } private void btn_close_Click(object sender, EventArgs e) { this.Close(); } + } } \ No newline at end of file