Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.WinForms
diff FrmPreferences.Designer.cs @ 140:60c795eca8de WarFoundry_v0.1beta8_Winforms
Re #265: Add language preference UI
* Add initial preferences dialog with translation options
* Re-translate main form when language changes
* Save translation for later use
Only known bug on initial quick implementation is that open unit dialogs become named "{0}" (which should be replaced by unit name), but this should be quite a simple fix
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 11 Apr 2010 19:55:03 +0000 |
parents | |
children | e0af96397e26 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/FrmPreferences.Designer.cs Sun Apr 11 19:55:03 2010 +0000 @@ -0,0 +1,121 @@ +namespace IBBoard.WarFoundry.GUI.WinForms +{ + partial class FrmPreferences + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.preferenceSections = new System.Windows.Forms.TreeView(); + this.languagesGroup = new System.Windows.Forms.GroupBox(); + this.lblLanguage = new IBBoard.Windows.Forms.IBBLabel(); + this.languageList = new System.Windows.Forms.ComboBox(); + this.bttnOkay = new System.Windows.Forms.Button(); + this.bttnCancel = new System.Windows.Forms.Button(); + this.languagesGroup.SuspendLayout(); + this.SuspendLayout(); + // + // preferenceSections + // + this.preferenceSections.Location = new System.Drawing.Point(12, 12); + this.preferenceSections.Name = "preferenceSections"; + this.preferenceSections.Size = new System.Drawing.Size(159, 340); + this.preferenceSections.TabIndex = 0; + // + // languagesGroup + // + this.languagesGroup.Controls.Add(this.languageList); + this.languagesGroup.Controls.Add(this.lblLanguage); + this.languagesGroup.Location = new System.Drawing.Point(177, 12); + this.languagesGroup.Name = "languagesGroup"; + this.languagesGroup.Size = new System.Drawing.Size(436, 300); + this.languagesGroup.TabIndex = 1; + this.languagesGroup.TabStop = false; + this.languagesGroup.Text = "languages"; + // + // lblLanguage + // + this.lblLanguage.Location = new System.Drawing.Point(6, 28); + this.lblLanguage.Name = "lblLanguage"; + this.lblLanguage.Size = new System.Drawing.Size(138, 23); + this.lblLanguage.TabIndex = 0; + this.lblLanguage.Text = "language:"; + // + // languageList + // + this.languageList.FormattingEnabled = true; + this.languageList.Location = new System.Drawing.Point(150, 25); + this.languageList.Name = "languageList"; + this.languageList.Size = new System.Drawing.Size(121, 21); + this.languageList.TabIndex = 1; + // + // bttnOkay + // + this.bttnOkay.Enabled = false; + this.bttnOkay.Location = new System.Drawing.Point(538, 328); + this.bttnOkay.Name = "bttnOkay"; + this.bttnOkay.Size = new System.Drawing.Size(75, 23); + this.bttnOkay.TabIndex = 2; + this.bttnOkay.Text = "okay"; + this.bttnOkay.UseVisualStyleBackColor = true; + this.bttnOkay.Click += new System.EventHandler(this.bttnOkay_Click); + // + // bttnCancel + // + this.bttnCancel.Location = new System.Drawing.Point(457, 329); + this.bttnCancel.Name = "bttnCancel"; + this.bttnCancel.Size = new System.Drawing.Size(75, 23); + this.bttnCancel.TabIndex = 3; + this.bttnCancel.Text = "cancel"; + this.bttnCancel.UseVisualStyleBackColor = true; + this.bttnCancel.Click += new System.EventHandler(this.bttnCancel_Click); + // + // FrmPreferences + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(625, 364); + this.Controls.Add(this.bttnCancel); + this.Controls.Add(this.bttnOkay); + this.Controls.Add(this.languagesGroup); + this.Controls.Add(this.preferenceSections); + this.Name = "FrmPreferences"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "preferences"; + this.languagesGroup.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.TreeView preferenceSections; + private System.Windows.Forms.GroupBox languagesGroup; + private System.Windows.Forms.ComboBox languageList; + private IBBoard.Windows.Forms.IBBLabel lblLanguage; + private System.Windows.Forms.Button bttnOkay; + private System.Windows.Forms.Button bttnCancel; + } +} \ No newline at end of file