-namespace Lugens.Passer
-{
- partial class AddEngineForm
- {
- /// <summary>
- /// 必要なデザイナ変数です。
- /// </summary>
- private System.ComponentModel.IContainer components = null;
-
- /// <summary>
- /// 使用中のリソースをすべてクリーンアップします。
- /// </summary>
- /// <param name="disposing">マネージ リソースが破棄される場合 true、破棄されない場合は false です。</param>
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows フォーム デザイナで生成されたコード
-
- /// <summary>
- /// デザイナ サポートに必要なメソッドです。このメソッドの内容を
- /// コード エディタで変更しないでください。
- /// </summary>
- private void InitializeComponent()
- {
- this.label_name = new System.Windows.Forms.Label();
- this.label_shortcut = new System.Windows.Forms.Label();
- this.textBox_name = new System.Windows.Forms.TextBox();
- this.button_ok = new System.Windows.Forms.Button();
- this.button_cancel = new System.Windows.Forms.Button();
- this.label_bar = new System.Windows.Forms.Label();
- this.label_shortcut_duplicate = new System.Windows.Forms.Label();
- this.label_args = new System.Windows.Forms.Label();
- this.textBox_display = new System.Windows.Forms.TextBox();
- this.textBox_shortcut = new Lugens.Components.HotKeyTextBox();
- this.label_searchUrl = new System.Windows.Forms.Label();
- this.textBox_searchUrl = new System.Windows.Forms.TextBox();
- this.label2 = new System.Windows.Forms.Label();
- this.button_icon_get = new System.Windows.Forms.Button();
- this.button_icon = new System.Windows.Forms.Button();
- this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
- this.label_engine_duplicate = new System.Windows.Forms.Label();
- this.label_suggestUrl = new System.Windows.Forms.Label();
- this.textBox_suggestUrl = new System.Windows.Forms.TextBox();
- this.label_url = new System.Windows.Forms.Label();
- this.textBox_url = new System.Windows.Forms.TextBox();
- this.SuspendLayout();
- //
- // label_name
- //
- this.label_name.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.label_name.Location = new System.Drawing.Point(38, 16);
- this.label_name.Name = "label_name";
- this.label_name.Size = new System.Drawing.Size(52, 16);
- this.label_name.TabIndex = 13;
- this.label_name.Text = "エンジン名";
- this.label_name.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // label_shortcut
- //
- this.label_shortcut.Location = new System.Drawing.Point(5, 185);
- this.label_shortcut.Name = "label_shortcut";
- this.label_shortcut.Size = new System.Drawing.Size(89, 17);
- this.label_shortcut.TabIndex = 14;
- this.label_shortcut.Text = "ショートカットキー";
- this.label_shortcut.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // textBox_name
- //
- this.textBox_name.Location = new System.Drawing.Point(96, 13);
- this.textBox_name.Name = "textBox_name";
- this.textBox_name.Size = new System.Drawing.Size(204, 19);
- this.textBox_name.TabIndex = 0;
- this.textBox_name.TextChanged += new System.EventHandler(this.textBox_name_TextChanged);
- //
- // button_ok
- //
- this.button_ok.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.button_ok.Location = new System.Drawing.Point(164, 231);
- this.button_ok.Name = "button_ok";
- this.button_ok.Size = new System.Drawing.Size(64, 24);
- this.button_ok.TabIndex = 8;
- this.button_ok.Text = "OK";
- this.button_ok.Click += new System.EventHandler(this.button_ok_Click);
- //
- // button_cancel
- //
- this.button_cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
- this.button_cancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.button_cancel.Location = new System.Drawing.Point(252, 231);
- this.button_cancel.Name = "button_cancel";
- this.button_cancel.Size = new System.Drawing.Size(64, 24);
- this.button_cancel.TabIndex = 9;
- this.button_cancel.Text = "キャンセル";
- this.button_cancel.Click += new System.EventHandler(this.button_cancel_Click);
- //
- // label_bar
- //
- this.label_bar.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
- this.label_bar.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.label_bar.Location = new System.Drawing.Point(7, 216);
- this.label_bar.Name = "label_bar";
- this.label_bar.Size = new System.Drawing.Size(456, 2);
- this.label_bar.TabIndex = 5;
- //
- // label_shortcut_duplicate
- //
- this.label_shortcut_duplicate.AutoSize = true;
- this.label_shortcut_duplicate.ForeColor = System.Drawing.Color.Red;
- this.label_shortcut_duplicate.Location = new System.Drawing.Point(305, 158);
- this.label_shortcut_duplicate.Name = "label_shortcut_duplicate";
- this.label_shortcut_duplicate.Size = new System.Drawing.Size(120, 12);
- this.label_shortcut_duplicate.TabIndex = 27;
- this.label_shortcut_duplicate.Text = "※他で使用されています";
- this.label_shortcut_duplicate.Visible = false;
- //
- // label_args
- //
- this.label_args.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.label_args.Location = new System.Drawing.Point(40, 154);
- this.label_args.Name = "label_args";
- this.label_args.Size = new System.Drawing.Size(52, 16);
- this.label_args.TabIndex = 33;
- this.label_args.Text = "表示名";
- this.label_args.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // textBox_display
- //
- this.textBox_display.Location = new System.Drawing.Point(96, 151);
- this.textBox_display.Name = "textBox_display";
- this.textBox_display.Size = new System.Drawing.Size(366, 19);
- this.textBox_display.TabIndex = 6;
- //
- // textBox_shortcut
- //
- this.textBox_shortcut.AcceptKeys = null;
- this.textBox_shortcut.DefaultText = "なし";
- this.textBox_shortcut.HotKeycode = 0;
- this.textBox_shortcut.ImeMode = System.Windows.Forms.ImeMode.Disable;
- this.textBox_shortcut.Location = new System.Drawing.Point(95, 183);
- this.textBox_shortcut.Name = "textBox_shortcut";
- this.textBox_shortcut.Size = new System.Drawing.Size(205, 19);
- this.textBox_shortcut.TabIndex = 7;
- this.textBox_shortcut.Text = "なし";
- this.textBox_shortcut.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- this.textBox_shortcut.TextChanged += new System.EventHandler(this.textBox_shortcut_TextChanged);
- //
- // label_searchUrl
- //
- this.label_searchUrl.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.label_searchUrl.Location = new System.Drawing.Point(39, 79);
- this.label_searchUrl.Name = "label_searchUrl";
- this.label_searchUrl.Size = new System.Drawing.Size(52, 16);
- this.label_searchUrl.TabIndex = 37;
- this.label_searchUrl.Text = "検索URL";
- this.label_searchUrl.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // textBox_searchUrl
- //
- this.textBox_searchUrl.Location = new System.Drawing.Point(95, 76);
- this.textBox_searchUrl.Name = "textBox_searchUrl";
- this.textBox_searchUrl.Size = new System.Drawing.Size(367, 19);
- this.textBox_searchUrl.TabIndex = 4;
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.ForeColor = System.Drawing.Color.Black;
- this.label2.Location = new System.Drawing.Point(94, 130);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(285, 12);
- this.label2.TabIndex = 38;
- this.label2.Text = "※URL、サジェストURLのキーワードは %s を指定してください";
- this.label2.Visible = false;
- //
- // button_icon_get
- //
- this.button_icon_get.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.button_icon_get.Location = new System.Drawing.Point(384, 42);
- this.button_icon_get.Name = "button_icon_get";
- this.button_icon_get.Size = new System.Drawing.Size(78, 24);
- this.button_icon_get.TabIndex = 3;
- this.button_icon_get.Text = "アイコン取得";
- this.button_icon_get.Click += new System.EventHandler(this.button_icon_get_Click);
- //
- // button_icon
- //
- this.button_icon.BackColor = System.Drawing.Color.Transparent;
- this.button_icon.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
- this.button_icon.Location = new System.Drawing.Point(306, 10);
- this.button_icon.Name = "button_icon";
- this.button_icon.Size = new System.Drawing.Size(24, 24);
- this.button_icon.TabIndex = 1;
- this.button_icon.UseVisualStyleBackColor = false;
- this.button_icon.Click += new System.EventHandler(this.button_icon_Click);
- //
- // openFileDialog
- //
- this.openFileDialog.Filter = "ICONファイル(*.ico)|*.ico|すべてのファイル(*.*)|*.*";
- //
- // label_engine_duplicate
- //
- this.label_engine_duplicate.AutoSize = true;
- this.label_engine_duplicate.ForeColor = System.Drawing.Color.Red;
- this.label_engine_duplicate.Location = new System.Drawing.Point(336, 16);
- this.label_engine_duplicate.Name = "label_engine_duplicate";
- this.label_engine_duplicate.Size = new System.Drawing.Size(88, 12);
- this.label_engine_duplicate.TabIndex = 39;
- this.label_engine_duplicate.Text = "※重複しています";
- this.label_engine_duplicate.Visible = false;
- //
- // label_suggestUrl
- //
- this.label_suggestUrl.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.label_suggestUrl.Location = new System.Drawing.Point(22, 110);
- this.label_suggestUrl.Name = "label_suggestUrl";
- this.label_suggestUrl.Size = new System.Drawing.Size(69, 19);
- this.label_suggestUrl.TabIndex = 41;
- this.label_suggestUrl.Text = "サジェストURL";
- this.label_suggestUrl.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // textBox_suggestUrl
- //
- this.textBox_suggestUrl.Location = new System.Drawing.Point(95, 107);
- this.textBox_suggestUrl.Name = "textBox_suggestUrl";
- this.textBox_suggestUrl.Size = new System.Drawing.Size(367, 19);
- this.textBox_suggestUrl.TabIndex = 5;
- //
- // label_url
- //
- this.label_url.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.label_url.Location = new System.Drawing.Point(41, 48);
- this.label_url.Name = "label_url";
- this.label_url.Size = new System.Drawing.Size(52, 16);
- this.label_url.TabIndex = 43;
- this.label_url.Text = "URL";
- this.label_url.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // textBox_url
- //
- this.textBox_url.Location = new System.Drawing.Point(97, 45);
- this.textBox_url.Name = "textBox_url";
- this.textBox_url.Size = new System.Drawing.Size(284, 19);
- this.textBox_url.TabIndex = 2;
- //
- // AddEngineForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(478, 260);
- this.ControlBox = false;
- this.Controls.Add(this.label_url);
- this.Controls.Add(this.textBox_url);
- this.Controls.Add(this.label_suggestUrl);
- this.Controls.Add(this.textBox_suggestUrl);
- this.Controls.Add(this.label_engine_duplicate);
- this.Controls.Add(this.button_icon);
- this.Controls.Add(this.button_icon_get);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.label_searchUrl);
- this.Controls.Add(this.textBox_searchUrl);
- this.Controls.Add(this.label_args);
- this.Controls.Add(this.textBox_display);
- this.Controls.Add(this.label_shortcut_duplicate);
- this.Controls.Add(this.textBox_shortcut);
- this.Controls.Add(this.label_name);
- this.Controls.Add(this.label_shortcut);
- this.Controls.Add(this.textBox_name);
- this.Controls.Add(this.button_ok);
- this.Controls.Add(this.button_cancel);
- this.Controls.Add(this.label_bar);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
- this.MaximumSize = new System.Drawing.Size(484, 292);
- this.MinimumSize = new System.Drawing.Size(484, 292);
- this.Name = "AddEngineForm";
- this.ShowInTaskbar = false;
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "検索エンジン追加";
- this.TopMost = true;
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.Label label_name;
- private System.Windows.Forms.Label label_shortcut;
- private System.Windows.Forms.TextBox textBox_name;
- private System.Windows.Forms.Button button_ok;
- private System.Windows.Forms.Button button_cancel;
- private System.Windows.Forms.Label label_bar;
- private Lugens.Components.HotKeyTextBox textBox_shortcut;
- private System.Windows.Forms.Label label_shortcut_duplicate;
- private System.Windows.Forms.Label label_args;
- private System.Windows.Forms.TextBox textBox_display;
- private System.Windows.Forms.Label label_searchUrl;
- private System.Windows.Forms.TextBox textBox_searchUrl;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.Button button_icon_get;
- private System.Windows.Forms.Button button_icon;
- private System.Windows.Forms.OpenFileDialog openFileDialog;
- private System.Windows.Forms.Label label_engine_duplicate;
- private System.Windows.Forms.Label label_suggestUrl;
- private System.Windows.Forms.TextBox textBox_suggestUrl;
- private System.Windows.Forms.Label label_url;
- private System.Windows.Forms.TextBox textBox_url;
- }
+namespace Lugens.Passer\r
+{\r
+ partial class AddEngineForm\r
+ {\r
+ /// <summary>\r
+ /// 必要なデザイナ変数です。\r
+ /// </summary>\r
+ private System.ComponentModel.IContainer components = null;\r
+\r
+ /// <summary>\r
+ /// 使用中のリソースをすべてクリーンアップします。\r
+ /// </summary>\r
+ /// <param name="disposing">マネージ リソースが破棄される場合 true、破棄されない場合は false です。</param>\r
+ protected override void Dispose(bool disposing)\r
+ {\r
+ if (disposing && (components != null))\r
+ {\r
+ components.Dispose();\r
+ }\r
+ base.Dispose(disposing);\r
+ }\r
+\r
+ #region Windows フォーム デザイナで生成されたコード\r
+\r
+ /// <summary>\r
+ /// デザイナ サポートに必要なメソッドです。このメソッドの内容を\r
+ /// コード エディタで変更しないでください。\r
+ /// </summary>\r
+ private void InitializeComponent()\r
+ {\r
+ this.label_name = new System.Windows.Forms.Label();\r
+ this.label_shortcut = new System.Windows.Forms.Label();\r
+ this.textBox_name = new System.Windows.Forms.TextBox();\r
+ this.button_ok = new System.Windows.Forms.Button();\r
+ this.button_cancel = new System.Windows.Forms.Button();\r
+ this.label_bar = new System.Windows.Forms.Label();\r
+ this.label_shortcut_duplicate = new System.Windows.Forms.Label();\r
+ this.label_args = new System.Windows.Forms.Label();\r
+ this.textBox_display = new System.Windows.Forms.TextBox();\r
+ this.textBox_shortcut = new Lugens.Components.HotKeyTextBox();\r
+ this.label_searchUrl = new System.Windows.Forms.Label();\r
+ this.textBox_searchUrl = new System.Windows.Forms.TextBox();\r
+ this.label2 = new System.Windows.Forms.Label();\r
+ this.button_icon_get = new System.Windows.Forms.Button();\r
+ this.button_icon = new System.Windows.Forms.Button();\r
+ this.openFileDialog = new System.Windows.Forms.OpenFileDialog();\r
+ this.label_engine_duplicate = new System.Windows.Forms.Label();\r
+ this.label_suggestUrl = new System.Windows.Forms.Label();\r
+ this.textBox_suggestUrl = new System.Windows.Forms.TextBox();\r
+ this.label_url = new System.Windows.Forms.Label();\r
+ this.textBox_url = new System.Windows.Forms.TextBox();\r
+ this.label1 = new System.Windows.Forms.Label();\r
+ this.comboBox_encoding = new System.Windows.Forms.ComboBox();\r
+ this.SuspendLayout();\r
+ // \r
+ // label_name\r
+ // \r
+ this.label_name.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.label_name.Location = new System.Drawing.Point(38, 16);\r
+ this.label_name.Name = "label_name";\r
+ this.label_name.Size = new System.Drawing.Size(52, 16);\r
+ this.label_name.TabIndex = 13;\r
+ this.label_name.Text = "エンジン名";\r
+ this.label_name.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
+ // \r
+ // label_shortcut\r
+ // \r
+ this.label_shortcut.Location = new System.Drawing.Point(5, 212);\r
+ this.label_shortcut.Name = "label_shortcut";\r
+ this.label_shortcut.Size = new System.Drawing.Size(89, 17);\r
+ this.label_shortcut.TabIndex = 14;\r
+ this.label_shortcut.Text = "ショートカットキー";\r
+ this.label_shortcut.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
+ // \r
+ // textBox_name\r
+ // \r
+ this.textBox_name.Location = new System.Drawing.Point(96, 13);\r
+ this.textBox_name.Name = "textBox_name";\r
+ this.textBox_name.Size = new System.Drawing.Size(204, 19);\r
+ this.textBox_name.TabIndex = 0;\r
+ this.textBox_name.TextChanged += new System.EventHandler(this.textBox_name_TextChanged);\r
+ // \r
+ // button_ok\r
+ // \r
+ this.button_ok.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.button_ok.Location = new System.Drawing.Point(164, 258);\r
+ this.button_ok.Name = "button_ok";\r
+ this.button_ok.Size = new System.Drawing.Size(64, 24);\r
+ this.button_ok.TabIndex = 8;\r
+ this.button_ok.Text = "OK";\r
+ this.button_ok.Click += new System.EventHandler(this.button_ok_Click);\r
+ // \r
+ // button_cancel\r
+ // \r
+ this.button_cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;\r
+ this.button_cancel.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.button_cancel.Location = new System.Drawing.Point(252, 258);\r
+ this.button_cancel.Name = "button_cancel";\r
+ this.button_cancel.Size = new System.Drawing.Size(64, 24);\r
+ this.button_cancel.TabIndex = 9;\r
+ this.button_cancel.Text = "キャンセル";\r
+ this.button_cancel.Click += new System.EventHandler(this.button_cancel_Click);\r
+ // \r
+ // label_bar\r
+ // \r
+ this.label_bar.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;\r
+ this.label_bar.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.label_bar.Location = new System.Drawing.Point(7, 243);\r
+ this.label_bar.Name = "label_bar";\r
+ this.label_bar.Size = new System.Drawing.Size(456, 2);\r
+ this.label_bar.TabIndex = 5;\r
+ // \r
+ // label_shortcut_duplicate\r
+ // \r
+ this.label_shortcut_duplicate.AutoSize = true;\r
+ this.label_shortcut_duplicate.ForeColor = System.Drawing.Color.Red;\r
+ this.label_shortcut_duplicate.Location = new System.Drawing.Point(305, 185);\r
+ this.label_shortcut_duplicate.Name = "label_shortcut_duplicate";\r
+ this.label_shortcut_duplicate.Size = new System.Drawing.Size(120, 12);\r
+ this.label_shortcut_duplicate.TabIndex = 27;\r
+ this.label_shortcut_duplicate.Text = "※他で使用されています";\r
+ this.label_shortcut_duplicate.Visible = false;\r
+ // \r
+ // label_args\r
+ // \r
+ this.label_args.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.label_args.Location = new System.Drawing.Point(40, 181);\r
+ this.label_args.Name = "label_args";\r
+ this.label_args.Size = new System.Drawing.Size(52, 16);\r
+ this.label_args.TabIndex = 33;\r
+ this.label_args.Text = "表示名";\r
+ this.label_args.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
+ // \r
+ // textBox_display\r
+ // \r
+ this.textBox_display.Location = new System.Drawing.Point(96, 178);\r
+ this.textBox_display.Name = "textBox_display";\r
+ this.textBox_display.Size = new System.Drawing.Size(366, 19);\r
+ this.textBox_display.TabIndex = 6;\r
+ // \r
+ // textBox_shortcut\r
+ // \r
+ this.textBox_shortcut.AcceptKeys = null;\r
+ this.textBox_shortcut.DefaultText = "なし";\r
+ this.textBox_shortcut.HotKeycode = 0;\r
+ this.textBox_shortcut.ImeMode = System.Windows.Forms.ImeMode.Disable;\r
+ this.textBox_shortcut.Location = new System.Drawing.Point(95, 210);\r
+ this.textBox_shortcut.Name = "textBox_shortcut";\r
+ this.textBox_shortcut.Size = new System.Drawing.Size(205, 19);\r
+ this.textBox_shortcut.TabIndex = 7;\r
+ this.textBox_shortcut.Text = "なし";\r
+ this.textBox_shortcut.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;\r
+ this.textBox_shortcut.TextChanged += new System.EventHandler(this.textBox_shortcut_TextChanged);\r
+ // \r
+ // label_searchUrl\r
+ // \r
+ this.label_searchUrl.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.label_searchUrl.Location = new System.Drawing.Point(39, 79);\r
+ this.label_searchUrl.Name = "label_searchUrl";\r
+ this.label_searchUrl.Size = new System.Drawing.Size(52, 16);\r
+ this.label_searchUrl.TabIndex = 37;\r
+ this.label_searchUrl.Text = "検索URL";\r
+ this.label_searchUrl.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
+ // \r
+ // textBox_searchUrl\r
+ // \r
+ this.textBox_searchUrl.Location = new System.Drawing.Point(95, 76);\r
+ this.textBox_searchUrl.Name = "textBox_searchUrl";\r
+ this.textBox_searchUrl.Size = new System.Drawing.Size(367, 19);\r
+ this.textBox_searchUrl.TabIndex = 4;\r
+ // \r
+ // label2\r
+ // \r
+ this.label2.AutoSize = true;\r
+ this.label2.ForeColor = System.Drawing.Color.Black;\r
+ this.label2.Location = new System.Drawing.Point(94, 130);\r
+ this.label2.Name = "label2";\r
+ this.label2.Size = new System.Drawing.Size(285, 12);\r
+ this.label2.TabIndex = 38;\r
+ this.label2.Text = "※URL、サジェストURLのキーワードは %s を指定してください";\r
+ this.label2.Visible = false;\r
+ // \r
+ // button_icon_get\r
+ // \r
+ this.button_icon_get.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.button_icon_get.Location = new System.Drawing.Point(384, 42);\r
+ this.button_icon_get.Name = "button_icon_get";\r
+ this.button_icon_get.Size = new System.Drawing.Size(78, 24);\r
+ this.button_icon_get.TabIndex = 3;\r
+ this.button_icon_get.Text = "アイコン取得";\r
+ this.button_icon_get.Click += new System.EventHandler(this.button_icon_get_Click);\r
+ // \r
+ // button_icon\r
+ // \r
+ this.button_icon.BackColor = System.Drawing.Color.Transparent;\r
+ this.button_icon.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;\r
+ this.button_icon.Location = new System.Drawing.Point(306, 10);\r
+ this.button_icon.Name = "button_icon";\r
+ this.button_icon.Size = new System.Drawing.Size(24, 24);\r
+ this.button_icon.TabIndex = 1;\r
+ this.button_icon.UseVisualStyleBackColor = false;\r
+ this.button_icon.Click += new System.EventHandler(this.button_icon_Click);\r
+ // \r
+ // openFileDialog\r
+ // \r
+ this.openFileDialog.Filter = "ICONファイル(*.ico)|*.ico|すべてのファイル(*.*)|*.*";\r
+ // \r
+ // label_engine_duplicate\r
+ // \r
+ this.label_engine_duplicate.AutoSize = true;\r
+ this.label_engine_duplicate.ForeColor = System.Drawing.Color.Red;\r
+ this.label_engine_duplicate.Location = new System.Drawing.Point(336, 16);\r
+ this.label_engine_duplicate.Name = "label_engine_duplicate";\r
+ this.label_engine_duplicate.Size = new System.Drawing.Size(88, 12);\r
+ this.label_engine_duplicate.TabIndex = 39;\r
+ this.label_engine_duplicate.Text = "※重複しています";\r
+ this.label_engine_duplicate.Visible = false;\r
+ // \r
+ // label_suggestUrl\r
+ // \r
+ this.label_suggestUrl.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.label_suggestUrl.Location = new System.Drawing.Point(22, 110);\r
+ this.label_suggestUrl.Name = "label_suggestUrl";\r
+ this.label_suggestUrl.Size = new System.Drawing.Size(69, 19);\r
+ this.label_suggestUrl.TabIndex = 41;\r
+ this.label_suggestUrl.Text = "サジェストURL";\r
+ this.label_suggestUrl.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
+ // \r
+ // textBox_suggestUrl\r
+ // \r
+ this.textBox_suggestUrl.Location = new System.Drawing.Point(95, 107);\r
+ this.textBox_suggestUrl.Name = "textBox_suggestUrl";\r
+ this.textBox_suggestUrl.Size = new System.Drawing.Size(367, 19);\r
+ this.textBox_suggestUrl.TabIndex = 5;\r
+ // \r
+ // label_url\r
+ // \r
+ this.label_url.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.label_url.Location = new System.Drawing.Point(41, 48);\r
+ this.label_url.Name = "label_url";\r
+ this.label_url.Size = new System.Drawing.Size(52, 16);\r
+ this.label_url.TabIndex = 43;\r
+ this.label_url.Text = "URL";\r
+ this.label_url.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
+ // \r
+ // textBox_url\r
+ // \r
+ this.textBox_url.Location = new System.Drawing.Point(97, 45);\r
+ this.textBox_url.Name = "textBox_url";\r
+ this.textBox_url.Size = new System.Drawing.Size(284, 19);\r
+ this.textBox_url.TabIndex = 2;\r
+ // \r
+ // label1\r
+ // \r
+ this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.label1.Location = new System.Drawing.Point(39, 151);\r
+ this.label1.Name = "label1";\r
+ this.label1.Size = new System.Drawing.Size(52, 16);\r
+ this.label1.TabIndex = 45;\r
+ this.label1.Text = "文字コード";\r
+ this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
+ // \r
+ // comboBox_encoding\r
+ // \r
+ this.comboBox_encoding.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
+ this.comboBox_encoding.FormattingEnabled = true;\r
+ this.comboBox_encoding.Items.AddRange(new object[] {\r
+ "UTF-8",\r
+ "Shift_JIS",\r
+ "EUC-JP"});\r
+ this.comboBox_encoding.Location = new System.Drawing.Point(95, 147);\r
+ this.comboBox_encoding.Name = "comboBox_encoding";\r
+ this.comboBox_encoding.Size = new System.Drawing.Size(121, 20);\r
+ this.comboBox_encoding.TabIndex = 46;\r
+ // \r
+ // AddEngineForm\r
+ // \r
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);\r
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\r
+ this.ClientSize = new System.Drawing.Size(478, 290);\r
+ this.ControlBox = false;\r
+ this.Controls.Add(this.comboBox_encoding);\r
+ this.Controls.Add(this.label1);\r
+ this.Controls.Add(this.label_url);\r
+ this.Controls.Add(this.textBox_url);\r
+ this.Controls.Add(this.label_suggestUrl);\r
+ this.Controls.Add(this.textBox_suggestUrl);\r
+ this.Controls.Add(this.label_engine_duplicate);\r
+ this.Controls.Add(this.button_icon);\r
+ this.Controls.Add(this.button_icon_get);\r
+ this.Controls.Add(this.label2);\r
+ this.Controls.Add(this.label_searchUrl);\r
+ this.Controls.Add(this.textBox_searchUrl);\r
+ this.Controls.Add(this.label_args);\r
+ this.Controls.Add(this.textBox_display);\r
+ this.Controls.Add(this.label_shortcut_duplicate);\r
+ this.Controls.Add(this.textBox_shortcut);\r
+ this.Controls.Add(this.label_name);\r
+ this.Controls.Add(this.label_shortcut);\r
+ this.Controls.Add(this.textBox_name);\r
+ this.Controls.Add(this.button_ok);\r
+ this.Controls.Add(this.button_cancel);\r
+ this.Controls.Add(this.label_bar);\r
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;\r
+ this.MaximumSize = new System.Drawing.Size(484, 318);\r
+ this.MinimumSize = new System.Drawing.Size(484, 318);\r
+ this.Name = "AddEngineForm";\r
+ this.ShowInTaskbar = false;\r
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;\r
+ this.Text = "検索エンジン追加";\r
+ this.TopMost = true;\r
+ this.ResumeLayout(false);\r
+ this.PerformLayout();\r
+\r
+ }\r
+\r
+ #endregion\r
+\r
+ private System.Windows.Forms.Label label_name;\r
+ private System.Windows.Forms.Label label_shortcut;\r
+ private System.Windows.Forms.TextBox textBox_name;\r
+ private System.Windows.Forms.Button button_ok;\r
+ private System.Windows.Forms.Button button_cancel;\r
+ private System.Windows.Forms.Label label_bar;\r
+ private Lugens.Components.HotKeyTextBox textBox_shortcut;\r
+ private System.Windows.Forms.Label label_shortcut_duplicate;\r
+ private System.Windows.Forms.Label label_args;\r
+ private System.Windows.Forms.TextBox textBox_display;\r
+ private System.Windows.Forms.Label label_searchUrl;\r
+ private System.Windows.Forms.TextBox textBox_searchUrl;\r
+ private System.Windows.Forms.Label label2;\r
+ private System.Windows.Forms.Button button_icon_get;\r
+ private System.Windows.Forms.Button button_icon;\r
+ private System.Windows.Forms.OpenFileDialog openFileDialog;\r
+ private System.Windows.Forms.Label label_engine_duplicate;\r
+ private System.Windows.Forms.Label label_suggestUrl;\r
+ private System.Windows.Forms.TextBox textBox_suggestUrl;\r
+ private System.Windows.Forms.Label label_url;\r
+ private System.Windows.Forms.TextBox textBox_url;\r
+ private System.Windows.Forms.Label label1;\r
+ private System.Windows.Forms.ComboBox comboBox_encoding;\r
+ }\r
}
\ No newline at end of file
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.IO;
-using System.Text;
-using System.Windows.Forms;
-using System.Diagnostics;
-using System.Runtime.InteropServices;
-using System.Net;
-using Lugens.Components;
-using Lugens.Passer.Macro;
-using Lugens.Utils;
-
-namespace Lugens.Passer
-{
- public partial class AddEngineForm : Form
- {
- private string id;
- private bool iconChanged;
-
- public AddEngineForm()
- {
- InitializeComponent();
- this.Init();
- }
-
- public void Init()
- {
- this.textBox_name.Text = "";
- this.textBox_searchUrl.Text = "";
- this.textBox_display.Text = "";
- this.textBox_shortcut.HotKeycode = 0;
- this.button_icon.Image = null;
-
- this.textBox_shortcut.AcceptKeys = SettingForm.AcceptKeyList;
- this.textBox_shortcut.GotFocus += SettingForm.hotKeyTextBox_GotFocus;
- this.textBox_shortcut.LostFocus += SettingForm.hotKeyTextBox_LostFocus;
-
- this.id = Program.GetEngineID();
- this.iconChanged = false;
- }
-
- private void textBox_shortcut_TextChanged(object sender, EventArgs e)
- {
- /* if (this.textBox_shortcut.HotKeycode != 0)
- {
- foreach (EngineInfo info in Program.DefaultEngineDic.Values)
- {
- if (info.Shortcut == this.textBox_shortcut.HotKeycode)
- {
- this.label_shortcut_duplicate.Visible = true;
- this.button_ok.Enabled = false;
- return;
- }
- }
- foreach (EngineInfo info in Program.SettingForm.EngineDicTmp.Values)
- {
- if(info.Shortcut == this.textBox_shortcut.HotKeycode)
- {
- this.label_shortcut_duplicate.Visible = true;
- this.button_ok.Enabled = false;
- return;
- }
- }
- }
- this.label_shortcut_duplicate.Visible = false;
- this.button_ok.Enabled = true;*/
- }
-
- private void button_ok_Click(object sender, EventArgs e)
- {
- EngineInfo info = new EngineInfo();
- info.Id = this.id;
- info.Name = this.textBox_name.Text;
- info.Url = this.textBox_url.Text;
- info.SearchUrl = this.textBox_searchUrl.Text;
- info.SuggestUrl = this.textBox_suggestUrl.Text;
- info.Shortcut = this.textBox_shortcut.HotKeycode;
- info.Display = this.textBox_display.Text;
- info.IconChanged = this.iconChanged;
-
- if (Program.SettingForm.EngineListTmp.Contains(this.textBox_name.Text) && !Program.SettingForm.EngineDicTmp[this.textBox_name.Text].Removed)
- {
- //重複エラー
- MessageBox.Show("すでに登録されている名前です");
- return;
- }
-
- if (String.IsNullOrEmpty(info.Url))
- {
- MessageBox.Show("URLを入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
- }
-
- if (!info.Url.StartsWith("http://") && !info.Url.StartsWith("https://"))
- {
- MessageBox.Show("URLを正しく入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
- }
-
- if (!String.IsNullOrEmpty(info.SearchUrl) && !info.SearchUrl.StartsWith("http://") && !info.SearchUrl.StartsWith("https://"))
- {
- MessageBox.Show("検索URLを正しく入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
- }
-
- if (!String.IsNullOrEmpty(info.SuggestUrl) && !info.SuggestUrl.StartsWith("http://") && !info.SuggestUrl.StartsWith("https://"))
- {
- MessageBox.Show("サジェストURLを正しく入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
- }
-
- if (this.iconChanged)
- {
- if (!Directory.Exists(Program.EngineIconTmpDir))
- Directory.CreateDirectory(Program.EngineIconTmpDir);
-
- string iconFile = Program.EngineIconTmpDir + "\\" + this.id;
- this.button_icon.Image.Save(iconFile, System.Drawing.Imaging.ImageFormat.Png);
- Bitmap bitmap = new Bitmap(iconFile);
- info.IconImage = new Bitmap(bitmap);
- bitmap.Dispose();
- }
- else
- {
- info.IconImage = Properties.Resources.DefaultEngine.ToBitmap();
- }
-
- Program.SettingForm.EngineListTmp.Add(info.Name);
- Program.SettingForm.EngineDicTmp.Add(info.Name, info);
- Program.SettingForm.ReadEngineList(true);
- Program.SettingForm.RequestEngineListViewSelect(info.Name);
- this.Visible = false;
- }
-
- private void button_icon_Click(object sender, EventArgs e)
- {
- if (openFileDialog.ShowDialog() == DialogResult.OK)
- {
- string file = openFileDialog.FileName;
- if (File.Exists(file))
- {
- try
- {
- Win32.SHFILEINFO shinfo = new Win32.SHFILEINFO();
- Win32.SHGetFileInfo(file, 0, ref shinfo, Marshal.SizeOf(shinfo), Win32.SHGFI_ICON | Win32.SHGFI_SMALLICON);
- Icon icon = Icon.FromHandle(shinfo.hIcon);
- this.button_icon.Image = icon.ToBitmap();
- icon.Dispose();
- this.iconChanged = true;
- }
- catch (Exception ex) { ex.ToString(); }
- }
- }
- }
-
- private void textBox_name_TextChanged(object sender, EventArgs e)
- {
- if (String.IsNullOrEmpty(this.textBox_name.Text))
- return;
-
- if (this.textBox_name.Text[0] == '@')
- {
- this.label_engine_duplicate.Text = "※先頭に@は使用できません";
- this.label_engine_duplicate.Visible = true;
- this.button_ok.Enabled = false;
- return;
- }
-
- if (Program.SettingForm.EngineListTmp.Contains(this.textBox_name.Text) && !Program.SettingForm.EngineDicTmp[this.textBox_name.Text].Removed)
- {
- this.label_engine_duplicate.Text = "※重複しています";
- this.label_engine_duplicate.Visible = true;
- this.button_ok.Enabled = false;
- }
- else
- {
- this.label_engine_duplicate.Visible = false;
- this.button_ok.Enabled = true;
- }
- }
-
- private void button_icon_get_Click(object sender, EventArgs e)
- {
- string str = this.textBox_url.Text;
- if(String.IsNullOrEmpty(str))
- {
- MessageBox.Show("URLを入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
- }
-
- if (!str.StartsWith("http://") && !str.StartsWith("https://"))
- {
- MessageBox.Show("URLを正しく入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
- }
-
- int n = str.IndexOf("//");
- if(str.LastIndexOf('/') == n + 1)
- str += "/favicon.ico";
- else
- str = str.Substring(0, str.IndexOf('/', n + 2)) + "/favicon.ico";
-
- WebClient wc = new WebClient();
- try
- {
- Program.CreateEngineIconTmpDir();
- string file = Program.EngineIconTmpDir + "\\" + this.id;
- wc.DownloadFile(str, file);
- Bitmap bitmap = new Bitmap(file);
- this.button_icon.Image = new Bitmap(bitmap);
- bitmap.Dispose();
- this.iconChanged = true;
- }
- catch
- {
- MessageBox.Show("ダウンロードエラー");
- }
- }
-
- private void button_cancel_Click(object sender, EventArgs e)
- {
- this.Close();
- }
-
-
- }
-}
+using System;\r
+using System.Collections.Generic;\r
+using System.ComponentModel;\r
+using System.Data;\r
+using System.Drawing;\r
+using System.IO;\r
+using System.Text;\r
+using System.Windows.Forms;\r
+using System.Diagnostics;\r
+using System.Runtime.InteropServices;\r
+using System.Net;\r
+using Lugens.Components;\r
+using Lugens.Passer.Macro;\r
+using Lugens.Utils;\r
+\r
+namespace Lugens.Passer\r
+{\r
+ public partial class AddEngineForm : Form\r
+ {\r
+ private string id;\r
+ private bool iconChanged;\r
+\r
+ public AddEngineForm()\r
+ {\r
+ InitializeComponent();\r
+ this.Init();\r
+ }\r
+\r
+ public void Init()\r
+ {\r
+ this.textBox_name.Text = "";\r
+ this.textBox_searchUrl.Text = "";\r
+ this.textBox_display.Text = "";\r
+ this.textBox_shortcut.HotKeycode = 0;\r
+ this.button_icon.Image = null;\r
+ this.comboBox_encoding.Text = "UTF-8";\r
+\r
+ this.textBox_shortcut.AcceptKeys = SettingForm.AcceptKeyList;\r
+ this.textBox_shortcut.GotFocus += SettingForm.hotKeyTextBox_GotFocus;\r
+ this.textBox_shortcut.LostFocus += SettingForm.hotKeyTextBox_LostFocus;\r
+\r
+ this.id = Program.GetEngineID();\r
+ this.iconChanged = false;\r
+ }\r
+\r
+ private void textBox_shortcut_TextChanged(object sender, EventArgs e)\r
+ {\r
+ /* if (this.textBox_shortcut.HotKeycode != 0)\r
+ {\r
+ foreach (EngineInfo info in Program.DefaultEngineDic.Values)\r
+ {\r
+ if (info.Shortcut == this.textBox_shortcut.HotKeycode)\r
+ {\r
+ this.label_shortcut_duplicate.Visible = true;\r
+ this.button_ok.Enabled = false;\r
+ return;\r
+ }\r
+ }\r
+ foreach (EngineInfo info in Program.SettingForm.EngineDicTmp.Values)\r
+ {\r
+ if(info.Shortcut == this.textBox_shortcut.HotKeycode)\r
+ {\r
+ this.label_shortcut_duplicate.Visible = true;\r
+ this.button_ok.Enabled = false;\r
+ return;\r
+ }\r
+ }\r
+ }\r
+ this.label_shortcut_duplicate.Visible = false;\r
+ this.button_ok.Enabled = true;*/\r
+ }\r
+\r
+ private void button_ok_Click(object sender, EventArgs e)\r
+ {\r
+ EngineInfo info = new EngineInfo();\r
+ info.Id = this.id;\r
+ info.Name = this.textBox_name.Text;\r
+ info.Url = this.textBox_url.Text;\r
+ info.SearchUrl = this.textBox_searchUrl.Text;\r
+ info.SuggestUrl = this.textBox_suggestUrl.Text;\r
+ info.Shortcut = this.textBox_shortcut.HotKeycode;\r
+ info.Encoding = this.comboBox_encoding.Text;\r
+ info.Display = this.textBox_display.Text;\r
+ info.IconChanged = this.iconChanged;\r
+\r
+ if (Program.SettingForm.EngineListTmp.Contains(this.textBox_name.Text) && !Program.SettingForm.EngineDicTmp[this.textBox_name.Text].Removed)\r
+ {\r
+ //重複エラー\r
+ MessageBox.Show("すでに登録されている名前です");\r
+ return;\r
+ }\r
+\r
+ if (String.IsNullOrEmpty(info.Url))\r
+ {\r
+ MessageBox.Show("URLを入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+ return;\r
+ }\r
+\r
+ if (!info.Url.StartsWith("http://") && !info.Url.StartsWith("https://"))\r
+ {\r
+ MessageBox.Show("URLを正しく入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+ return;\r
+ }\r
+\r
+ if (!String.IsNullOrEmpty(info.SearchUrl) && !info.SearchUrl.StartsWith("http://") && !info.SearchUrl.StartsWith("https://"))\r
+ {\r
+ MessageBox.Show("検索URLを正しく入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+ return;\r
+ }\r
+\r
+ if (!String.IsNullOrEmpty(info.SuggestUrl) && !info.SuggestUrl.StartsWith("http://") && !info.SuggestUrl.StartsWith("https://"))\r
+ {\r
+ MessageBox.Show("サジェストURLを正しく入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+ return;\r
+ }\r
+\r
+ if (this.iconChanged)\r
+ {\r
+ if (!Directory.Exists(Program.EngineIconTmpDir))\r
+ Directory.CreateDirectory(Program.EngineIconTmpDir);\r
+\r
+ string iconFile = Program.EngineIconTmpDir + "\\" + this.id;\r
+ this.button_icon.Image.Save(iconFile, System.Drawing.Imaging.ImageFormat.Png);\r
+ Bitmap bitmap = new Bitmap(iconFile);\r
+ info.IconImage = new Bitmap(bitmap);\r
+ bitmap.Dispose();\r
+ }\r
+ else\r
+ {\r
+ info.IconImage = Properties.Resources.DefaultEngine.ToBitmap();\r
+ }\r
+\r
+ Program.SettingForm.EngineListTmp.Add(info.Name);\r
+ Program.SettingForm.EngineDicTmp.Add(info.Name, info);\r
+ Program.SettingForm.ReadEngineList(true);\r
+ Program.SettingForm.RequestEngineListViewSelect(info.Name);\r
+ this.Visible = false;\r
+ }\r
+\r
+ private void button_icon_Click(object sender, EventArgs e)\r
+ {\r
+ if (openFileDialog.ShowDialog() == DialogResult.OK)\r
+ {\r
+ string file = openFileDialog.FileName;\r
+ if (File.Exists(file))\r
+ {\r
+ try\r
+ {\r
+ Win32.SHFILEINFO shinfo = new Win32.SHFILEINFO();\r
+ Win32.SHGetFileInfo(file, 0, ref shinfo, Marshal.SizeOf(shinfo), Win32.SHGFI_ICON | Win32.SHGFI_SMALLICON);\r
+ Icon icon = Icon.FromHandle(shinfo.hIcon);\r
+ this.button_icon.Image = icon.ToBitmap();\r
+ icon.Dispose();\r
+ this.iconChanged = true;\r
+ }\r
+ catch (Exception ex) { ex.ToString(); }\r
+ }\r
+ }\r
+ }\r
+\r
+ private void textBox_name_TextChanged(object sender, EventArgs e)\r
+ {\r
+ if (String.IsNullOrEmpty(this.textBox_name.Text))\r
+ return;\r
+\r
+ if (this.textBox_name.Text[0] == '@')\r
+ {\r
+ this.label_engine_duplicate.Text = "※先頭に@は使用できません";\r
+ this.label_engine_duplicate.Visible = true;\r
+ this.button_ok.Enabled = false;\r
+ return;\r
+ }\r
+\r
+ if (Program.SettingForm.EngineListTmp.Contains(this.textBox_name.Text) && !Program.SettingForm.EngineDicTmp[this.textBox_name.Text].Removed)\r
+ {\r
+ this.label_engine_duplicate.Text = "※重複しています";\r
+ this.label_engine_duplicate.Visible = true;\r
+ this.button_ok.Enabled = false;\r
+ }\r
+ else\r
+ {\r
+ this.label_engine_duplicate.Visible = false;\r
+ this.button_ok.Enabled = true;\r
+ }\r
+ }\r
+\r
+ private void button_icon_get_Click(object sender, EventArgs e)\r
+ {\r
+ string str = this.textBox_url.Text;\r
+ if(String.IsNullOrEmpty(str))\r
+ {\r
+ MessageBox.Show("URLを入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+ return;\r
+ }\r
+\r
+ if (!str.StartsWith("http://") && !str.StartsWith("https://"))\r
+ {\r
+ MessageBox.Show("URLを正しく入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+ return;\r
+ }\r
+\r
+ int n = str.IndexOf("//");\r
+ if(str.LastIndexOf('/') == n + 1)\r
+ str += "/favicon.ico";\r
+ else\r
+ str = str.Substring(0, str.IndexOf('/', n + 2)) + "/favicon.ico";\r
+\r
+ WebClient wc = new WebClient();\r
+ try\r
+ {\r
+ Program.CreateEngineIconTmpDir();\r
+ string file = Program.EngineIconTmpDir + "\\" + this.id;\r
+ wc.DownloadFile(str, file);\r
+ Bitmap bitmap = new Bitmap(file);\r
+ this.button_icon.Image = new Bitmap(bitmap);\r
+ bitmap.Dispose();\r
+ this.iconChanged = true;\r
+ }\r
+ catch\r
+ {\r
+ MessageBox.Show("ダウンロードエラー");\r
+ }\r
+ }\r
+\r
+ private void button_cancel_Click(object sender, EventArgs e)\r
+ {\r
+ this.Close();\r
+ }\r
+\r
+\r
+ }\r
+}\r
-<?xml version="1.0" encoding="utf-8"?>
-<root>
- <!--
- Microsoft ResX Schema
-
- Version 2.0
-
- The primary goals of this format is to allow a simple XML format
- that is mostly human readable. The generation and parsing of the
- various data types are done through the TypeConverter classes
- associated with the data types.
-
- Example:
-
- ... ado.net/XML headers & schema ...
- <resheader name="resmimetype">text/microsoft-resx</resheader>
- <resheader name="version">2.0</resheader>
- <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
- <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
- <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
- <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
- <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
- <value>[base64 mime encoded serialized .NET Framework object]</value>
- </data>
- <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
- <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
- <comment>This is a comment</comment>
- </data>
-
- There are any number of "resheader" rows that contain simple
- name/value pairs.
-
- Each data row contains a name, and value. The row also contains a
- type or mimetype. Type corresponds to a .NET class that support
- text/value conversion through the TypeConverter architecture.
- Classes that don't support this are serialized and stored with the
- mimetype set.
-
- The mimetype is used for serialized objects, and tells the
- ResXResourceReader how to depersist the object. This is currently not
- extensible. For a given mimetype the value must be set accordingly:
-
- Note - application/x-microsoft.net.object.binary.base64 is the format
- that the ResXResourceWriter will generate, however the reader can
- read any of the formats listed below.
-
- mimetype: application/x-microsoft.net.object.binary.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.soap.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.bytearray.base64
- value : The object must be serialized into a byte array
- : using a System.ComponentModel.TypeConverter
- : and then encoded with base64 encoding.
- -->
- <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
- <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
- <xsd:element name="root" msdata:IsDataSet="true">
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="metadata">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" />
- </xsd:sequence>
- <xsd:attribute name="name" use="required" type="xsd:string" />
- <xsd:attribute name="type" type="xsd:string" />
- <xsd:attribute name="mimetype" type="xsd:string" />
- <xsd:attribute ref="xml:space" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="assembly">
- <xsd:complexType>
- <xsd:attribute name="alias" type="xsd:string" />
- <xsd:attribute name="name" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="data">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
- <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
- <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
- <xsd:attribute ref="xml:space" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="resheader">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" />
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:schema>
- <resheader name="resmimetype">
- <value>text/microsoft-resx</value>
- </resheader>
- <resheader name="version">
- <value>2.0</value>
- </resheader>
- <resheader name="reader">
- <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
- <resheader name="writer">
- <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
- <metadata name="openFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
- <value>17, 17</value>
- </metadata>
+<?xml version="1.0" encoding="utf-8"?>\r
+<root>\r
+ <!-- \r
+ Microsoft ResX Schema \r
+ \r
+ Version 2.0\r
+ \r
+ The primary goals of this format is to allow a simple XML format \r
+ that is mostly human readable. The generation and parsing of the \r
+ various data types are done through the TypeConverter classes \r
+ associated with the data types.\r
+ \r
+ Example:\r
+ \r
+ ... ado.net/XML headers & schema ...\r
+ <resheader name="resmimetype">text/microsoft-resx</resheader>\r
+ <resheader name="version">2.0</resheader>\r
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>\r
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>\r
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>\r
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>\r
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">\r
+ <value>[base64 mime encoded serialized .NET Framework object]</value>\r
+ </data>\r
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">\r
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>\r
+ <comment>This is a comment</comment>\r
+ </data>\r
+ \r
+ There are any number of "resheader" rows that contain simple \r
+ name/value pairs.\r
+ \r
+ Each data row contains a name, and value. The row also contains a \r
+ type or mimetype. Type corresponds to a .NET class that support \r
+ text/value conversion through the TypeConverter architecture. \r
+ Classes that don't support this are serialized and stored with the \r
+ mimetype set.\r
+ \r
+ The mimetype is used for serialized objects, and tells the \r
+ ResXResourceReader how to depersist the object. This is currently not \r
+ extensible. For a given mimetype the value must be set accordingly:\r
+ \r
+ Note - application/x-microsoft.net.object.binary.base64 is the format \r
+ that the ResXResourceWriter will generate, however the reader can \r
+ read any of the formats listed below.\r
+ \r
+ mimetype: application/x-microsoft.net.object.binary.base64\r
+ value : The object must be serialized with \r
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter\r
+ : and then encoded with base64 encoding.\r
+ \r
+ mimetype: application/x-microsoft.net.object.soap.base64\r
+ value : The object must be serialized with \r
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter\r
+ : and then encoded with base64 encoding.\r
+\r
+ mimetype: application/x-microsoft.net.object.bytearray.base64\r
+ value : The object must be serialized into a byte array \r
+ : using a System.ComponentModel.TypeConverter\r
+ : and then encoded with base64 encoding.\r
+ -->\r
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">\r
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />\r
+ <xsd:element name="root" msdata:IsDataSet="true">\r
+ <xsd:complexType>\r
+ <xsd:choice maxOccurs="unbounded">\r
+ <xsd:element name="metadata">\r
+ <xsd:complexType>\r
+ <xsd:sequence>\r
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />\r
+ </xsd:sequence>\r
+ <xsd:attribute name="name" use="required" type="xsd:string" />\r
+ <xsd:attribute name="type" type="xsd:string" />\r
+ <xsd:attribute name="mimetype" type="xsd:string" />\r
+ <xsd:attribute ref="xml:space" />\r
+ </xsd:complexType>\r
+ </xsd:element>\r
+ <xsd:element name="assembly">\r
+ <xsd:complexType>\r
+ <xsd:attribute name="alias" type="xsd:string" />\r
+ <xsd:attribute name="name" type="xsd:string" />\r
+ </xsd:complexType>\r
+ </xsd:element>\r
+ <xsd:element name="data">\r
+ <xsd:complexType>\r
+ <xsd:sequence>\r
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />\r
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />\r
+ </xsd:sequence>\r
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />\r
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />\r
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />\r
+ <xsd:attribute ref="xml:space" />\r
+ </xsd:complexType>\r
+ </xsd:element>\r
+ <xsd:element name="resheader">\r
+ <xsd:complexType>\r
+ <xsd:sequence>\r
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />\r
+ </xsd:sequence>\r
+ <xsd:attribute name="name" type="xsd:string" use="required" />\r
+ </xsd:complexType>\r
+ </xsd:element>\r
+ </xsd:choice>\r
+ </xsd:complexType>\r
+ </xsd:element>\r
+ </xsd:schema>\r
+ <resheader name="resmimetype">\r
+ <value>text/microsoft-resx</value>\r
+ </resheader>\r
+ <resheader name="version">\r
+ <value>2.0</value>\r
+ </resheader>\r
+ <resheader name="reader">\r
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+ </resheader>\r
+ <resheader name="writer">\r
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+ </resheader>\r
+ <metadata name="openFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">\r
+ <value>17, 17</value>\r
+ </metadata>\r
</root>
\ No newline at end of file
-namespace Lugens.Passer
-{
- partial class EditEngineForm
- {
- /// <summary>
- /// 必要なデザイナ変数です。
- /// </summary>
- private System.ComponentModel.IContainer components = null;
-
- /// <summary>
- /// 使用中のリソースをすべてクリーンアップします。
- /// </summary>
- /// <param name="disposing">マネージ リソースが破棄される場合 true、破棄されない場合は false です。</param>
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows フォーム デザイナで生成されたコード
-
- /// <summary>
- /// デザイナ サポートに必要なメソッドです。このメソッドの内容を
- /// コード エディタで変更しないでください。
- /// </summary>
- private void InitializeComponent()
- {
- this.label_name = new System.Windows.Forms.Label();
- this.label_shortcut = new System.Windows.Forms.Label();
- this.textBox_name = new System.Windows.Forms.TextBox();
- this.button_ok = new System.Windows.Forms.Button();
- this.button_cancel = new System.Windows.Forms.Button();
- this.label_bar = new System.Windows.Forms.Label();
- this.label_args = new System.Windows.Forms.Label();
- this.textBox_display = new System.Windows.Forms.TextBox();
- this.textBox_shortcut = new Lugens.Components.HotKeyTextBox();
- this.label_searchUrl = new System.Windows.Forms.Label();
- this.textBox_searchUrl = new System.Windows.Forms.TextBox();
- this.label2 = new System.Windows.Forms.Label();
- this.button_icon_get = new System.Windows.Forms.Button();
- this.button_icon = new System.Windows.Forms.Button();
- this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
- this.label_engine_duplicate = new System.Windows.Forms.Label();
- this.label_suggestUrl = new System.Windows.Forms.Label();
- this.textBox_suggestUrl = new System.Windows.Forms.TextBox();
- this.label_url = new System.Windows.Forms.Label();
- this.textBox_url = new System.Windows.Forms.TextBox();
- this.SuspendLayout();
- //
- // label_name
- //
- this.label_name.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.label_name.Location = new System.Drawing.Point(38, 16);
- this.label_name.Name = "label_name";
- this.label_name.Size = new System.Drawing.Size(52, 16);
- this.label_name.TabIndex = 13;
- this.label_name.Text = "エンジン名";
- this.label_name.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // label_shortcut
- //
- this.label_shortcut.Location = new System.Drawing.Point(5, 185);
- this.label_shortcut.Name = "label_shortcut";
- this.label_shortcut.Size = new System.Drawing.Size(89, 17);
- this.label_shortcut.TabIndex = 14;
- this.label_shortcut.Text = "ショートカットキー";
- this.label_shortcut.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // textBox_name
- //
- this.textBox_name.Location = new System.Drawing.Point(96, 13);
- this.textBox_name.Name = "textBox_name";
- this.textBox_name.Size = new System.Drawing.Size(204, 19);
- this.textBox_name.TabIndex = 0;
- this.textBox_name.TextChanged += new System.EventHandler(this.textBox_name_TextChanged);
- //
- // button_ok
- //
- this.button_ok.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.button_ok.Location = new System.Drawing.Point(164, 231);
- this.button_ok.Name = "button_ok";
- this.button_ok.Size = new System.Drawing.Size(64, 24);
- this.button_ok.TabIndex = 8;
- this.button_ok.Text = "OK";
- this.button_ok.Click += new System.EventHandler(this.button_ok_Click);
- //
- // button_cancel
- //
- this.button_cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
- this.button_cancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.button_cancel.Location = new System.Drawing.Point(252, 231);
- this.button_cancel.Name = "button_cancel";
- this.button_cancel.Size = new System.Drawing.Size(64, 24);
- this.button_cancel.TabIndex = 9;
- this.button_cancel.Text = "キャンセル";
- this.button_cancel.Click += new System.EventHandler(this.button_cancel_Click);
- //
- // label_bar
- //
- this.label_bar.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
- this.label_bar.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.label_bar.Location = new System.Drawing.Point(7, 216);
- this.label_bar.Name = "label_bar";
- this.label_bar.Size = new System.Drawing.Size(456, 2);
- this.label_bar.TabIndex = 5;
- //
- // label_args
- //
- this.label_args.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.label_args.Location = new System.Drawing.Point(40, 154);
- this.label_args.Name = "label_args";
- this.label_args.Size = new System.Drawing.Size(52, 16);
- this.label_args.TabIndex = 33;
- this.label_args.Text = "表示名";
- this.label_args.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // textBox_display
- //
- this.textBox_display.Location = new System.Drawing.Point(96, 151);
- this.textBox_display.Name = "textBox_display";
- this.textBox_display.Size = new System.Drawing.Size(366, 19);
- this.textBox_display.TabIndex = 6;
- //
- // textBox_shortcut
- //
- this.textBox_shortcut.AcceptKeys = null;
- this.textBox_shortcut.DefaultText = "なし";
- this.textBox_shortcut.HotKeycode = 0;
- this.textBox_shortcut.ImeMode = System.Windows.Forms.ImeMode.Disable;
- this.textBox_shortcut.Location = new System.Drawing.Point(95, 183);
- this.textBox_shortcut.Name = "textBox_shortcut";
- this.textBox_shortcut.Size = new System.Drawing.Size(205, 19);
- this.textBox_shortcut.TabIndex = 7;
- this.textBox_shortcut.Text = "なし";
- this.textBox_shortcut.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- this.textBox_shortcut.TextChanged += new System.EventHandler(this.textBox_shortcut_TextChanged);
- //
- // label_searchUrl
- //
- this.label_searchUrl.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.label_searchUrl.Location = new System.Drawing.Point(39, 79);
- this.label_searchUrl.Name = "label_searchUrl";
- this.label_searchUrl.Size = new System.Drawing.Size(52, 16);
- this.label_searchUrl.TabIndex = 37;
- this.label_searchUrl.Text = "検索URL";
- this.label_searchUrl.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // textBox_searchUrl
- //
- this.textBox_searchUrl.Location = new System.Drawing.Point(95, 76);
- this.textBox_searchUrl.Name = "textBox_searchUrl";
- this.textBox_searchUrl.Size = new System.Drawing.Size(367, 19);
- this.textBox_searchUrl.TabIndex = 4;
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.ForeColor = System.Drawing.Color.Black;
- this.label2.Location = new System.Drawing.Point(94, 130);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(285, 12);
- this.label2.TabIndex = 38;
- this.label2.Text = "※URL、サジェストURLのキーワードは %s を指定してください";
- this.label2.Visible = false;
- //
- // button_icon_get
- //
- this.button_icon_get.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.button_icon_get.Location = new System.Drawing.Point(384, 42);
- this.button_icon_get.Name = "button_icon_get";
- this.button_icon_get.Size = new System.Drawing.Size(78, 24);
- this.button_icon_get.TabIndex = 3;
- this.button_icon_get.Text = "アイコン取得";
- this.button_icon_get.Click += new System.EventHandler(this.button_icon_get_Click);
- //
- // button_icon
- //
- this.button_icon.BackColor = System.Drawing.Color.Transparent;
- this.button_icon.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
- this.button_icon.Location = new System.Drawing.Point(306, 10);
- this.button_icon.Name = "button_icon";
- this.button_icon.Size = new System.Drawing.Size(24, 24);
- this.button_icon.TabIndex = 1;
- this.button_icon.UseVisualStyleBackColor = false;
- this.button_icon.Click += new System.EventHandler(this.button_icon_Click);
- //
- // openFileDialog
- //
- this.openFileDialog.Filter = "ICONファイル(*.ico)|*.ico|すべてのファイル(*.*)|*.*";
- //
- // label_engine_duplicate
- //
- this.label_engine_duplicate.AutoSize = true;
- this.label_engine_duplicate.ForeColor = System.Drawing.Color.Red;
- this.label_engine_duplicate.Location = new System.Drawing.Point(336, 16);
- this.label_engine_duplicate.Name = "label_engine_duplicate";
- this.label_engine_duplicate.Size = new System.Drawing.Size(88, 12);
- this.label_engine_duplicate.TabIndex = 39;
- this.label_engine_duplicate.Text = "※重複しています";
- this.label_engine_duplicate.Visible = false;
- //
- // label_suggestUrl
- //
- this.label_suggestUrl.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.label_suggestUrl.Location = new System.Drawing.Point(12, 110);
- this.label_suggestUrl.Name = "label_suggestUrl";
- this.label_suggestUrl.Size = new System.Drawing.Size(79, 16);
- this.label_suggestUrl.TabIndex = 41;
- this.label_suggestUrl.Text = "サジェストURL";
- this.label_suggestUrl.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // textBox_suggestUrl
- //
- this.textBox_suggestUrl.Location = new System.Drawing.Point(95, 107);
- this.textBox_suggestUrl.Name = "textBox_suggestUrl";
- this.textBox_suggestUrl.Size = new System.Drawing.Size(367, 19);
- this.textBox_suggestUrl.TabIndex = 5;
- //
- // label_url
- //
- this.label_url.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.label_url.Location = new System.Drawing.Point(41, 48);
- this.label_url.Name = "label_url";
- this.label_url.Size = new System.Drawing.Size(52, 16);
- this.label_url.TabIndex = 43;
- this.label_url.Text = "URL";
- this.label_url.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // textBox_url
- //
- this.textBox_url.Location = new System.Drawing.Point(97, 45);
- this.textBox_url.Name = "textBox_url";
- this.textBox_url.Size = new System.Drawing.Size(284, 19);
- this.textBox_url.TabIndex = 2;
- //
- // EditEngineForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(478, 260);
- this.ControlBox = false;
- this.Controls.Add(this.label_url);
- this.Controls.Add(this.textBox_url);
- this.Controls.Add(this.label_suggestUrl);
- this.Controls.Add(this.textBox_suggestUrl);
- this.Controls.Add(this.label_engine_duplicate);
- this.Controls.Add(this.button_icon);
- this.Controls.Add(this.button_icon_get);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.label_searchUrl);
- this.Controls.Add(this.textBox_searchUrl);
- this.Controls.Add(this.label_args);
- this.Controls.Add(this.textBox_display);
- this.Controls.Add(this.textBox_shortcut);
- this.Controls.Add(this.label_name);
- this.Controls.Add(this.label_shortcut);
- this.Controls.Add(this.textBox_name);
- this.Controls.Add(this.button_ok);
- this.Controls.Add(this.button_cancel);
- this.Controls.Add(this.label_bar);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
- this.MaximumSize = new System.Drawing.Size(484, 292);
- this.MinimizeBox = false;
- this.MinimumSize = new System.Drawing.Size(484, 292);
- this.Name = "EditEngineForm";
- this.ShowInTaskbar = false;
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "検索エンジン編集";
- this.TopMost = true;
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.Label label_name;
- private System.Windows.Forms.Label label_shortcut;
- private System.Windows.Forms.TextBox textBox_name;
- private System.Windows.Forms.Button button_ok;
- private System.Windows.Forms.Button button_cancel;
- private System.Windows.Forms.Label label_bar;
- private Lugens.Components.HotKeyTextBox textBox_shortcut;
- private System.Windows.Forms.Label label_args;
- private System.Windows.Forms.TextBox textBox_display;
- private System.Windows.Forms.Label label_searchUrl;
- private System.Windows.Forms.TextBox textBox_searchUrl;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.Button button_icon_get;
- private System.Windows.Forms.Button button_icon;
- private System.Windows.Forms.OpenFileDialog openFileDialog;
- private System.Windows.Forms.Label label_engine_duplicate;
- private System.Windows.Forms.Label label_suggestUrl;
- private System.Windows.Forms.TextBox textBox_suggestUrl;
- private System.Windows.Forms.Label label_url;
- private System.Windows.Forms.TextBox textBox_url;
- }
+namespace Lugens.Passer\r
+{\r
+ partial class EditEngineForm\r
+ {\r
+ /// <summary>\r
+ /// 必要なデザイナ変数です。\r
+ /// </summary>\r
+ private System.ComponentModel.IContainer components = null;\r
+\r
+ /// <summary>\r
+ /// 使用中のリソースをすべてクリーンアップします。\r
+ /// </summary>\r
+ /// <param name="disposing">マネージ リソースが破棄される場合 true、破棄されない場合は false です。</param>\r
+ protected override void Dispose(bool disposing)\r
+ {\r
+ if (disposing && (components != null))\r
+ {\r
+ components.Dispose();\r
+ }\r
+ base.Dispose(disposing);\r
+ }\r
+\r
+ #region Windows フォーム デザイナで生成されたコード\r
+\r
+ /// <summary>\r
+ /// デザイナ サポートに必要なメソッドです。このメソッドの内容を\r
+ /// コード エディタで変更しないでください。\r
+ /// </summary>\r
+ private void InitializeComponent()\r
+ {\r
+ this.label_name = new System.Windows.Forms.Label();\r
+ this.label_shortcut = new System.Windows.Forms.Label();\r
+ this.textBox_name = new System.Windows.Forms.TextBox();\r
+ this.button_ok = new System.Windows.Forms.Button();\r
+ this.button_cancel = new System.Windows.Forms.Button();\r
+ this.label_bar = new System.Windows.Forms.Label();\r
+ this.label_args = new System.Windows.Forms.Label();\r
+ this.textBox_display = new System.Windows.Forms.TextBox();\r
+ this.textBox_shortcut = new Lugens.Components.HotKeyTextBox();\r
+ this.label_searchUrl = new System.Windows.Forms.Label();\r
+ this.textBox_searchUrl = new System.Windows.Forms.TextBox();\r
+ this.label2 = new System.Windows.Forms.Label();\r
+ this.button_icon_get = new System.Windows.Forms.Button();\r
+ this.button_icon = new System.Windows.Forms.Button();\r
+ this.openFileDialog = new System.Windows.Forms.OpenFileDialog();\r
+ this.label_engine_duplicate = new System.Windows.Forms.Label();\r
+ this.label_suggestUrl = new System.Windows.Forms.Label();\r
+ this.textBox_suggestUrl = new System.Windows.Forms.TextBox();\r
+ this.label_url = new System.Windows.Forms.Label();\r
+ this.textBox_url = new System.Windows.Forms.TextBox();\r
+ this.comboBox_encoding = new System.Windows.Forms.ComboBox();\r
+ this.label1 = new System.Windows.Forms.Label();\r
+ this.SuspendLayout();\r
+ // \r
+ // label_name\r
+ // \r
+ this.label_name.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.label_name.Location = new System.Drawing.Point(38, 16);\r
+ this.label_name.Name = "label_name";\r
+ this.label_name.Size = new System.Drawing.Size(52, 16);\r
+ this.label_name.TabIndex = 13;\r
+ this.label_name.Text = "エンジン名";\r
+ this.label_name.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
+ // \r
+ // label_shortcut\r
+ // \r
+ this.label_shortcut.Location = new System.Drawing.Point(5, 212);\r
+ this.label_shortcut.Name = "label_shortcut";\r
+ this.label_shortcut.Size = new System.Drawing.Size(89, 17);\r
+ this.label_shortcut.TabIndex = 14;\r
+ this.label_shortcut.Text = "ショートカットキー";\r
+ this.label_shortcut.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
+ // \r
+ // textBox_name\r
+ // \r
+ this.textBox_name.Location = new System.Drawing.Point(96, 13);\r
+ this.textBox_name.Name = "textBox_name";\r
+ this.textBox_name.Size = new System.Drawing.Size(204, 19);\r
+ this.textBox_name.TabIndex = 0;\r
+ this.textBox_name.TextChanged += new System.EventHandler(this.textBox_name_TextChanged);\r
+ // \r
+ // button_ok\r
+ // \r
+ this.button_ok.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.button_ok.Location = new System.Drawing.Point(164, 258);\r
+ this.button_ok.Name = "button_ok";\r
+ this.button_ok.Size = new System.Drawing.Size(64, 24);\r
+ this.button_ok.TabIndex = 8;\r
+ this.button_ok.Text = "OK";\r
+ this.button_ok.Click += new System.EventHandler(this.button_ok_Click);\r
+ // \r
+ // button_cancel\r
+ // \r
+ this.button_cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;\r
+ this.button_cancel.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.button_cancel.Location = new System.Drawing.Point(252, 258);\r
+ this.button_cancel.Name = "button_cancel";\r
+ this.button_cancel.Size = new System.Drawing.Size(64, 24);\r
+ this.button_cancel.TabIndex = 9;\r
+ this.button_cancel.Text = "キャンセル";\r
+ this.button_cancel.Click += new System.EventHandler(this.button_cancel_Click);\r
+ // \r
+ // label_bar\r
+ // \r
+ this.label_bar.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;\r
+ this.label_bar.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.label_bar.Location = new System.Drawing.Point(7, 243);\r
+ this.label_bar.Name = "label_bar";\r
+ this.label_bar.Size = new System.Drawing.Size(456, 2);\r
+ this.label_bar.TabIndex = 5;\r
+ // \r
+ // label_args\r
+ // \r
+ this.label_args.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.label_args.Location = new System.Drawing.Point(40, 181);\r
+ this.label_args.Name = "label_args";\r
+ this.label_args.Size = new System.Drawing.Size(52, 16);\r
+ this.label_args.TabIndex = 33;\r
+ this.label_args.Text = "表示名";\r
+ this.label_args.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
+ // \r
+ // textBox_display\r
+ // \r
+ this.textBox_display.Location = new System.Drawing.Point(96, 178);\r
+ this.textBox_display.Name = "textBox_display";\r
+ this.textBox_display.Size = new System.Drawing.Size(366, 19);\r
+ this.textBox_display.TabIndex = 6;\r
+ // \r
+ // textBox_shortcut\r
+ // \r
+ this.textBox_shortcut.AcceptKeys = null;\r
+ this.textBox_shortcut.DefaultText = "なし";\r
+ this.textBox_shortcut.HotKeycode = 0;\r
+ this.textBox_shortcut.ImeMode = System.Windows.Forms.ImeMode.Disable;\r
+ this.textBox_shortcut.Location = new System.Drawing.Point(95, 210);\r
+ this.textBox_shortcut.Name = "textBox_shortcut";\r
+ this.textBox_shortcut.Size = new System.Drawing.Size(205, 19);\r
+ this.textBox_shortcut.TabIndex = 7;\r
+ this.textBox_shortcut.Text = "なし";\r
+ this.textBox_shortcut.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;\r
+ this.textBox_shortcut.TextChanged += new System.EventHandler(this.textBox_shortcut_TextChanged);\r
+ // \r
+ // label_searchUrl\r
+ // \r
+ this.label_searchUrl.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.label_searchUrl.Location = new System.Drawing.Point(39, 79);\r
+ this.label_searchUrl.Name = "label_searchUrl";\r
+ this.label_searchUrl.Size = new System.Drawing.Size(52, 16);\r
+ this.label_searchUrl.TabIndex = 37;\r
+ this.label_searchUrl.Text = "検索URL";\r
+ this.label_searchUrl.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
+ // \r
+ // textBox_searchUrl\r
+ // \r
+ this.textBox_searchUrl.Location = new System.Drawing.Point(95, 76);\r
+ this.textBox_searchUrl.Name = "textBox_searchUrl";\r
+ this.textBox_searchUrl.Size = new System.Drawing.Size(367, 19);\r
+ this.textBox_searchUrl.TabIndex = 4;\r
+ // \r
+ // label2\r
+ // \r
+ this.label2.AutoSize = true;\r
+ this.label2.ForeColor = System.Drawing.Color.Black;\r
+ this.label2.Location = new System.Drawing.Point(94, 130);\r
+ this.label2.Name = "label2";\r
+ this.label2.Size = new System.Drawing.Size(285, 12);\r
+ this.label2.TabIndex = 38;\r
+ this.label2.Text = "※URL、サジェストURLのキーワードは %s を指定してください";\r
+ this.label2.Visible = false;\r
+ // \r
+ // button_icon_get\r
+ // \r
+ this.button_icon_get.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.button_icon_get.Location = new System.Drawing.Point(384, 42);\r
+ this.button_icon_get.Name = "button_icon_get";\r
+ this.button_icon_get.Size = new System.Drawing.Size(78, 24);\r
+ this.button_icon_get.TabIndex = 3;\r
+ this.button_icon_get.Text = "アイコン取得";\r
+ this.button_icon_get.Click += new System.EventHandler(this.button_icon_get_Click);\r
+ // \r
+ // button_icon\r
+ // \r
+ this.button_icon.BackColor = System.Drawing.Color.Transparent;\r
+ this.button_icon.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;\r
+ this.button_icon.Location = new System.Drawing.Point(306, 10);\r
+ this.button_icon.Name = "button_icon";\r
+ this.button_icon.Size = new System.Drawing.Size(24, 24);\r
+ this.button_icon.TabIndex = 1;\r
+ this.button_icon.UseVisualStyleBackColor = false;\r
+ this.button_icon.Click += new System.EventHandler(this.button_icon_Click);\r
+ // \r
+ // openFileDialog\r
+ // \r
+ this.openFileDialog.Filter = "ICONファイル(*.ico)|*.ico|すべてのファイル(*.*)|*.*";\r
+ // \r
+ // label_engine_duplicate\r
+ // \r
+ this.label_engine_duplicate.AutoSize = true;\r
+ this.label_engine_duplicate.ForeColor = System.Drawing.Color.Red;\r
+ this.label_engine_duplicate.Location = new System.Drawing.Point(336, 16);\r
+ this.label_engine_duplicate.Name = "label_engine_duplicate";\r
+ this.label_engine_duplicate.Size = new System.Drawing.Size(88, 12);\r
+ this.label_engine_duplicate.TabIndex = 39;\r
+ this.label_engine_duplicate.Text = "※重複しています";\r
+ this.label_engine_duplicate.Visible = false;\r
+ // \r
+ // label_suggestUrl\r
+ // \r
+ this.label_suggestUrl.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.label_suggestUrl.Location = new System.Drawing.Point(12, 110);\r
+ this.label_suggestUrl.Name = "label_suggestUrl";\r
+ this.label_suggestUrl.Size = new System.Drawing.Size(79, 16);\r
+ this.label_suggestUrl.TabIndex = 41;\r
+ this.label_suggestUrl.Text = "サジェストURL";\r
+ this.label_suggestUrl.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
+ // \r
+ // textBox_suggestUrl\r
+ // \r
+ this.textBox_suggestUrl.Location = new System.Drawing.Point(95, 107);\r
+ this.textBox_suggestUrl.Name = "textBox_suggestUrl";\r
+ this.textBox_suggestUrl.Size = new System.Drawing.Size(367, 19);\r
+ this.textBox_suggestUrl.TabIndex = 5;\r
+ // \r
+ // label_url\r
+ // \r
+ this.label_url.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.label_url.Location = new System.Drawing.Point(41, 48);\r
+ this.label_url.Name = "label_url";\r
+ this.label_url.Size = new System.Drawing.Size(52, 16);\r
+ this.label_url.TabIndex = 43;\r
+ this.label_url.Text = "URL";\r
+ this.label_url.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
+ // \r
+ // textBox_url\r
+ // \r
+ this.textBox_url.Location = new System.Drawing.Point(97, 45);\r
+ this.textBox_url.Name = "textBox_url";\r
+ this.textBox_url.Size = new System.Drawing.Size(284, 19);\r
+ this.textBox_url.TabIndex = 2;\r
+ // \r
+ // comboBox_encoding\r
+ // \r
+ this.comboBox_encoding.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
+ this.comboBox_encoding.FormattingEnabled = true;\r
+ this.comboBox_encoding.Items.AddRange(new object[] {\r
+ "UTF-8",\r
+ "Shift_JIS",\r
+ "EUC-JP"});\r
+ this.comboBox_encoding.Location = new System.Drawing.Point(95, 147);\r
+ this.comboBox_encoding.Name = "comboBox_encoding";\r
+ this.comboBox_encoding.Size = new System.Drawing.Size(121, 20);\r
+ this.comboBox_encoding.TabIndex = 48;\r
+ // \r
+ // label1\r
+ // \r
+ this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.label1.Location = new System.Drawing.Point(39, 151);\r
+ this.label1.Name = "label1";\r
+ this.label1.Size = new System.Drawing.Size(52, 16);\r
+ this.label1.TabIndex = 47;\r
+ this.label1.Text = "文字コード";\r
+ this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
+ // \r
+ // EditEngineForm\r
+ // \r
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);\r
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\r
+ this.ClientSize = new System.Drawing.Size(478, 290);\r
+ this.ControlBox = false;\r
+ this.Controls.Add(this.comboBox_encoding);\r
+ this.Controls.Add(this.label1);\r
+ this.Controls.Add(this.label_url);\r
+ this.Controls.Add(this.textBox_url);\r
+ this.Controls.Add(this.label_suggestUrl);\r
+ this.Controls.Add(this.textBox_suggestUrl);\r
+ this.Controls.Add(this.label_engine_duplicate);\r
+ this.Controls.Add(this.button_icon);\r
+ this.Controls.Add(this.button_icon_get);\r
+ this.Controls.Add(this.label2);\r
+ this.Controls.Add(this.label_searchUrl);\r
+ this.Controls.Add(this.textBox_searchUrl);\r
+ this.Controls.Add(this.label_args);\r
+ this.Controls.Add(this.textBox_display);\r
+ this.Controls.Add(this.textBox_shortcut);\r
+ this.Controls.Add(this.label_name);\r
+ this.Controls.Add(this.label_shortcut);\r
+ this.Controls.Add(this.textBox_name);\r
+ this.Controls.Add(this.button_ok);\r
+ this.Controls.Add(this.button_cancel);\r
+ this.Controls.Add(this.label_bar);\r
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;\r
+ this.MaximumSize = new System.Drawing.Size(484, 318);\r
+ this.MinimizeBox = false;\r
+ this.MinimumSize = new System.Drawing.Size(484, 318);\r
+ this.Name = "EditEngineForm";\r
+ this.ShowInTaskbar = false;\r
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;\r
+ this.Text = "検索エンジン編集";\r
+ this.TopMost = true;\r
+ this.ResumeLayout(false);\r
+ this.PerformLayout();\r
+\r
+ }\r
+\r
+ #endregion\r
+\r
+ private System.Windows.Forms.Label label_name;\r
+ private System.Windows.Forms.Label label_shortcut;\r
+ private System.Windows.Forms.TextBox textBox_name;\r
+ private System.Windows.Forms.Button button_ok;\r
+ private System.Windows.Forms.Button button_cancel;\r
+ private System.Windows.Forms.Label label_bar;\r
+ private Lugens.Components.HotKeyTextBox textBox_shortcut;\r
+ private System.Windows.Forms.Label label_args;\r
+ private System.Windows.Forms.TextBox textBox_display;\r
+ private System.Windows.Forms.Label label_searchUrl;\r
+ private System.Windows.Forms.TextBox textBox_searchUrl;\r
+ private System.Windows.Forms.Label label2;\r
+ private System.Windows.Forms.Button button_icon_get;\r
+ private System.Windows.Forms.Button button_icon;\r
+ private System.Windows.Forms.OpenFileDialog openFileDialog;\r
+ private System.Windows.Forms.Label label_engine_duplicate;\r
+ private System.Windows.Forms.Label label_suggestUrl;\r
+ private System.Windows.Forms.TextBox textBox_suggestUrl;\r
+ private System.Windows.Forms.Label label_url;\r
+ private System.Windows.Forms.TextBox textBox_url;\r
+ private System.Windows.Forms.ComboBox comboBox_encoding;\r
+ private System.Windows.Forms.Label label1;\r
+ }\r
}
\ No newline at end of file
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.IO;
-using System.Text;
-using System.Windows.Forms;
-using System.Diagnostics;
-using System.Runtime.InteropServices;
-using System.Net;
-using Lugens.Components;
-using Lugens.Passer.Macro;
-using Lugens.Utils;
-
-namespace Lugens.Passer
-{
- public partial class EditEngineForm : Form
- {
- private string id;
- private string name;
- private int shortcut;
- private bool iconChanged;
-
- public EditEngineForm(EngineInfo info)
- {
- InitializeComponent();
- this.Init(info);
- }
-
- public void Init(EngineInfo info)
- {
- this.id = info.Id;
- this.name = info.Name;
- this.shortcut = info.Shortcut;
- this.textBox_name.Text = info.Name;
- this.textBox_url.Text = info.Url;
- this.textBox_searchUrl.Text = info.SearchUrl;
- this.textBox_suggestUrl.Text = info.SuggestUrl;
- this.textBox_display.Text = info.Display;
- this.textBox_shortcut.HotKeycode = info.Shortcut;
- this.button_icon.Image = info.IconImage;
-
- this.textBox_shortcut.AcceptKeys = SettingForm.AcceptKeyList;
- this.textBox_shortcut.GotFocus += SettingForm.hotKeyTextBox_GotFocus;
- this.textBox_shortcut.LostFocus += SettingForm.hotKeyTextBox_LostFocus;
-
- this.iconChanged = false;
- }
-
- private void textBox_shortcut_TextChanged(object sender, EventArgs e)
- {
-/* if (this.textBox_shortcut.HotKeycode != 0)
- {
- foreach (EngineInfo info in Program.DefaultEngineDic.Values)
- {
- if (info.Shortcut == this.textBox_shortcut.HotKeycode && info.Shortcut != this.shortcut)
- {
- this.label_shortcut_duplicate.Visible = true;
- this.button_ok.Enabled = false;
- return;
- }
- }
- foreach (EngineInfo info in Program.SettingForm.EngineDicTmp.Values)
- {
- if (info.Shortcut == this.textBox_shortcut.HotKeycode && info.Shortcut != this.shortcut)
- {
- this.label_shortcut_duplicate.Visible = true;
- this.button_ok.Enabled = false;
- return;
- }
- }
- }
- this.label_shortcut_duplicate.Visible = false;
- this.button_ok.Enabled = true;*/
- }
-
- private void button_ok_Click(object sender, EventArgs e)
- {
- EngineInfo info = new EngineInfo();
- info.Id = this.id;
- info.Name = this.textBox_name.Text;
- info.Url = this.textBox_url.Text;
- info.SearchUrl = this.textBox_searchUrl.Text;
- info.SuggestUrl = this.textBox_suggestUrl.Text;
- info.Shortcut = this.textBox_shortcut.HotKeycode;
- info.Display = this.textBox_display.Text;
- info.IconChanged = this.iconChanged;
-
- if (String.IsNullOrEmpty(info.Url))
- {
- MessageBox.Show("URLを入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
- }
-
- if (!info.Url.StartsWith("http://") && !info.Url.StartsWith("https://"))
- {
- MessageBox.Show("URLを正しく入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
- }
-
- if (!String.IsNullOrEmpty(info.SearchUrl) && !info.SearchUrl.StartsWith("http://") && !info.SearchUrl.StartsWith("https://"))
- {
- MessageBox.Show("検索URLを正しく入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
- }
-
- if (!String.IsNullOrEmpty(info.SuggestUrl) && !info.SuggestUrl.StartsWith("http://") && !info.SuggestUrl.StartsWith("https://"))
- {
- MessageBox.Show("サジェストURLを正しく入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
- }
-
- if (this.iconChanged)
- {
- if (!Directory.Exists(Program.EngineIconTmpDir))
- Directory.CreateDirectory(Program.EngineIconTmpDir);
-
- string iconFile = Program.EngineIconTmpDir + "\\" + this.id;
- this.button_icon.Image.Save(iconFile, System.Drawing.Imaging.ImageFormat.Png);
- Bitmap bitmap = new Bitmap(iconFile);
- info.IconImage = new Bitmap(bitmap);
- bitmap.Dispose();
- }
- else
- {
- info.IconImage = this.button_icon.Image;
- }
-
- int index = Program.SettingForm.EngineListTmp.IndexOf(this.name);
- Program.SettingForm.EngineListTmp[index] = this.textBox_name.Text;
- Program.SettingForm.EngineDicTmp.Remove(this.name);
- Program.SettingForm.EngineDicTmp.Add(info.Name, info);
- Program.SettingForm.ReadEngineList(true);
- Program.SettingForm.RequestEngineListViewSelect(info.Name);
- this.Visible = false;
- }
-
- private void button_icon_Click(object sender, EventArgs e)
- {
- if (openFileDialog.ShowDialog() == DialogResult.OK)
- {
- string file = openFileDialog.FileName;
- if (File.Exists(file))
- {
- try
- {
- Win32.SHFILEINFO shinfo = new Win32.SHFILEINFO();
- Win32.SHGetFileInfo(file, 0, ref shinfo, Marshal.SizeOf(shinfo), Win32.SHGFI_ICON | Win32.SHGFI_SMALLICON);
- Icon icon = Icon.FromHandle(shinfo.hIcon);
- this.button_icon.Image = icon.ToBitmap();
- icon.Dispose();
- this.iconChanged = true;
- }
- catch (Exception ex) { ex.ToString(); }
- }
- }
- }
-
- private void textBox_name_TextChanged(object sender, EventArgs e)
- {
- if (!this.name.Equals(this.textBox_name.Text) && Program.SettingForm.EngineListTmp.Contains(this.textBox_name.Text))
- {
- this.label_engine_duplicate.Visible = true;
- this.button_ok.Enabled = false;
- }
- else
- {
- this.label_engine_duplicate.Visible = false;
- this.button_ok.Enabled = true;
- }
- }
-
- private void button_icon_get_Click(object sender, EventArgs e)
- {
- string str = this.textBox_url.Text;
- if(String.IsNullOrEmpty(str))
- {
- MessageBox.Show("URLを入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
- }
-
- if (!str.StartsWith("http://") && !str.StartsWith("https://"))
- {
- MessageBox.Show("URLを正しく入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
- }
-
- int n = str.IndexOf("//");
- if(str.LastIndexOf('/') == n + 1)
- str += "/favicon.ico";
- else
- str = str.Substring(0, str.IndexOf('/', n + 2)) + "/favicon.ico";
-
- WebClient wc = new WebClient();
- string file = Program.EngineIconTmpDir + "\\" + this.id;
- try
- {
- Program.CreateEngineIconTmpDir();
- wc.DownloadFile(str, file);
- }
- catch
- {
- MessageBox.Show("ダウンロードエラー");
- return;
- }
-
- try
- {
- Bitmap bitmap = new Bitmap(file);
- this.button_icon.Image = new Bitmap(bitmap);
- bitmap.Dispose();
- this.iconChanged = true;
- return;
- }
- catch
- {
- MessageBox.Show("画像の変換に失敗しました。");
- return;
- }
-
- }
-
- private void button_cancel_Click(object sender, EventArgs e)
- {
- this.Close();
- }
-
-
- }
-}
+using System;\r
+using System.Collections.Generic;\r
+using System.ComponentModel;\r
+using System.Data;\r
+using System.Drawing;\r
+using System.IO;\r
+using System.Text;\r
+using System.Windows.Forms;\r
+using System.Diagnostics;\r
+using System.Runtime.InteropServices;\r
+using System.Net;\r
+using Lugens.Components;\r
+using Lugens.Passer.Macro;\r
+using Lugens.Utils;\r
+\r
+namespace Lugens.Passer\r
+{\r
+ public partial class EditEngineForm : Form\r
+ {\r
+ private string id;\r
+ private string name;\r
+ private int shortcut;\r
+ private bool iconChanged;\r
+\r
+ public EditEngineForm(EngineInfo info)\r
+ {\r
+ InitializeComponent();\r
+ this.Init(info);\r
+ }\r
+\r
+ public void Init(EngineInfo info)\r
+ {\r
+ this.id = info.Id;\r
+ this.name = info.Name;\r
+ this.shortcut = info.Shortcut;\r
+ this.textBox_name.Text = info.Name;\r
+ this.textBox_url.Text = info.Url;\r
+ this.textBox_searchUrl.Text = info.SearchUrl;\r
+ this.textBox_suggestUrl.Text = info.SuggestUrl;\r
+ this.textBox_display.Text = info.Display;\r
+ this.textBox_shortcut.HotKeycode = info.Shortcut;\r
+ this.button_icon.Image = info.IconImage;\r
+ this.comboBox_encoding.Text = info.Encoding;\r
+\r
+ this.textBox_shortcut.AcceptKeys = SettingForm.AcceptKeyList;\r
+ this.textBox_shortcut.GotFocus += SettingForm.hotKeyTextBox_GotFocus;\r
+ this.textBox_shortcut.LostFocus += SettingForm.hotKeyTextBox_LostFocus;\r
+\r
+ this.iconChanged = false;\r
+ }\r
+\r
+ private void textBox_shortcut_TextChanged(object sender, EventArgs e)\r
+ {\r
+/* if (this.textBox_shortcut.HotKeycode != 0)\r
+ {\r
+ foreach (EngineInfo info in Program.DefaultEngineDic.Values)\r
+ {\r
+ if (info.Shortcut == this.textBox_shortcut.HotKeycode && info.Shortcut != this.shortcut)\r
+ {\r
+ this.label_shortcut_duplicate.Visible = true;\r
+ this.button_ok.Enabled = false;\r
+ return;\r
+ }\r
+ }\r
+ foreach (EngineInfo info in Program.SettingForm.EngineDicTmp.Values)\r
+ {\r
+ if (info.Shortcut == this.textBox_shortcut.HotKeycode && info.Shortcut != this.shortcut)\r
+ {\r
+ this.label_shortcut_duplicate.Visible = true;\r
+ this.button_ok.Enabled = false;\r
+ return;\r
+ }\r
+ }\r
+ }\r
+ this.label_shortcut_duplicate.Visible = false;\r
+ this.button_ok.Enabled = true;*/\r
+ }\r
+\r
+ private void button_ok_Click(object sender, EventArgs e)\r
+ {\r
+ EngineInfo info = new EngineInfo();\r
+ info.Id = this.id;\r
+ info.Name = this.textBox_name.Text;\r
+ info.Url = this.textBox_url.Text;\r
+ info.SearchUrl = this.textBox_searchUrl.Text;\r
+ info.SuggestUrl = this.textBox_suggestUrl.Text;\r
+ info.Shortcut = this.textBox_shortcut.HotKeycode;\r
+ info.Encoding = this.comboBox_encoding.Text;\r
+ info.Display = this.textBox_display.Text;\r
+ info.IconChanged = this.iconChanged;\r
+\r
+ if (String.IsNullOrEmpty(info.Url))\r
+ {\r
+ MessageBox.Show("URLを入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+ return;\r
+ }\r
+\r
+ if (!info.Url.StartsWith("http://") && !info.Url.StartsWith("https://"))\r
+ {\r
+ MessageBox.Show("URLを正しく入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+ return;\r
+ }\r
+\r
+ if (!String.IsNullOrEmpty(info.SearchUrl) && !info.SearchUrl.StartsWith("http://") && !info.SearchUrl.StartsWith("https://"))\r
+ {\r
+ MessageBox.Show("検索URLを正しく入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+ return;\r
+ }\r
+\r
+ if (!String.IsNullOrEmpty(info.SuggestUrl) && !info.SuggestUrl.StartsWith("http://") && !info.SuggestUrl.StartsWith("https://"))\r
+ {\r
+ MessageBox.Show("サジェストURLを正しく入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+ return;\r
+ }\r
+\r
+ if (this.iconChanged)\r
+ {\r
+ if (!Directory.Exists(Program.EngineIconTmpDir))\r
+ Directory.CreateDirectory(Program.EngineIconTmpDir);\r
+\r
+ string iconFile = Program.EngineIconTmpDir + "\\" + this.id;\r
+ this.button_icon.Image.Save(iconFile, System.Drawing.Imaging.ImageFormat.Png);\r
+ Bitmap bitmap = new Bitmap(iconFile);\r
+ info.IconImage = new Bitmap(bitmap);\r
+ bitmap.Dispose();\r
+ }\r
+ else\r
+ {\r
+ info.IconImage = this.button_icon.Image;\r
+ }\r
+\r
+ int index = Program.SettingForm.EngineListTmp.IndexOf(this.name);\r
+ Program.SettingForm.EngineListTmp[index] = this.textBox_name.Text;\r
+ Program.SettingForm.EngineDicTmp.Remove(this.name);\r
+ Program.SettingForm.EngineDicTmp.Add(info.Name, info);\r
+ Program.SettingForm.ReadEngineList(true);\r
+ Program.SettingForm.RequestEngineListViewSelect(info.Name);\r
+ this.Visible = false;\r
+ }\r
+\r
+ private void button_icon_Click(object sender, EventArgs e)\r
+ {\r
+ if (openFileDialog.ShowDialog() == DialogResult.OK)\r
+ {\r
+ string file = openFileDialog.FileName;\r
+ if (File.Exists(file))\r
+ {\r
+ try\r
+ {\r
+ Win32.SHFILEINFO shinfo = new Win32.SHFILEINFO();\r
+ Win32.SHGetFileInfo(file, 0, ref shinfo, Marshal.SizeOf(shinfo), Win32.SHGFI_ICON | Win32.SHGFI_SMALLICON);\r
+ Icon icon = Icon.FromHandle(shinfo.hIcon);\r
+ this.button_icon.Image = icon.ToBitmap();\r
+ icon.Dispose();\r
+ this.iconChanged = true;\r
+ }\r
+ catch (Exception ex) { ex.ToString(); }\r
+ }\r
+ }\r
+ }\r
+\r
+ private void textBox_name_TextChanged(object sender, EventArgs e)\r
+ {\r
+ if (!this.name.Equals(this.textBox_name.Text) && Program.SettingForm.EngineListTmp.Contains(this.textBox_name.Text))\r
+ {\r
+ this.label_engine_duplicate.Visible = true;\r
+ this.button_ok.Enabled = false;\r
+ }\r
+ else\r
+ {\r
+ this.label_engine_duplicate.Visible = false;\r
+ this.button_ok.Enabled = true;\r
+ }\r
+ }\r
+\r
+ private void button_icon_get_Click(object sender, EventArgs e)\r
+ {\r
+ string str = this.textBox_url.Text;\r
+ if(String.IsNullOrEmpty(str))\r
+ {\r
+ MessageBox.Show("URLを入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+ return;\r
+ }\r
+\r
+ if (!str.StartsWith("http://") && !str.StartsWith("https://"))\r
+ {\r
+ MessageBox.Show("URLを正しく入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+ return;\r
+ }\r
+\r
+ int n = str.IndexOf("//");\r
+ if(str.LastIndexOf('/') == n + 1)\r
+ str += "/favicon.ico";\r
+ else\r
+ str = str.Substring(0, str.IndexOf('/', n + 2)) + "/favicon.ico";\r
+\r
+ WebClient wc = new WebClient();\r
+ string file = Program.EngineIconTmpDir + "\\" + this.id;\r
+ try\r
+ {\r
+ Program.CreateEngineIconTmpDir();\r
+ wc.DownloadFile(str, file);\r
+ }\r
+ catch\r
+ {\r
+ MessageBox.Show("ダウンロードエラー");\r
+ return;\r
+ }\r
+\r
+ try\r
+ {\r
+ Bitmap bitmap = new Bitmap(file);\r
+ this.button_icon.Image = new Bitmap(bitmap);\r
+ bitmap.Dispose();\r
+ this.iconChanged = true;\r
+ return;\r
+ }\r
+ catch \r
+ {\r
+ MessageBox.Show("画像の変換に失敗しました。");\r
+ return;\r
+ }\r
+\r
+ }\r
+\r
+ private void button_cancel_Click(object sender, EventArgs e)\r
+ {\r
+ this.Close();\r
+ }\r
+\r
+\r
+ }\r
+}\r
-<?xml version="1.0" encoding="utf-8"?>
-<root>
- <!--
- Microsoft ResX Schema
-
- Version 2.0
-
- The primary goals of this format is to allow a simple XML format
- that is mostly human readable. The generation and parsing of the
- various data types are done through the TypeConverter classes
- associated with the data types.
-
- Example:
-
- ... ado.net/XML headers & schema ...
- <resheader name="resmimetype">text/microsoft-resx</resheader>
- <resheader name="version">2.0</resheader>
- <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
- <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
- <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
- <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
- <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
- <value>[base64 mime encoded serialized .NET Framework object]</value>
- </data>
- <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
- <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
- <comment>This is a comment</comment>
- </data>
-
- There are any number of "resheader" rows that contain simple
- name/value pairs.
-
- Each data row contains a name, and value. The row also contains a
- type or mimetype. Type corresponds to a .NET class that support
- text/value conversion through the TypeConverter architecture.
- Classes that don't support this are serialized and stored with the
- mimetype set.
-
- The mimetype is used for serialized objects, and tells the
- ResXResourceReader how to depersist the object. This is currently not
- extensible. For a given mimetype the value must be set accordingly:
-
- Note - application/x-microsoft.net.object.binary.base64 is the format
- that the ResXResourceWriter will generate, however the reader can
- read any of the formats listed below.
-
- mimetype: application/x-microsoft.net.object.binary.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.soap.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.bytearray.base64
- value : The object must be serialized into a byte array
- : using a System.ComponentModel.TypeConverter
- : and then encoded with base64 encoding.
- -->
- <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
- <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
- <xsd:element name="root" msdata:IsDataSet="true">
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="metadata">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" />
- </xsd:sequence>
- <xsd:attribute name="name" use="required" type="xsd:string" />
- <xsd:attribute name="type" type="xsd:string" />
- <xsd:attribute name="mimetype" type="xsd:string" />
- <xsd:attribute ref="xml:space" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="assembly">
- <xsd:complexType>
- <xsd:attribute name="alias" type="xsd:string" />
- <xsd:attribute name="name" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="data">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
- <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
- <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
- <xsd:attribute ref="xml:space" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="resheader">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" />
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:schema>
- <resheader name="resmimetype">
- <value>text/microsoft-resx</value>
- </resheader>
- <resheader name="version">
- <value>2.0</value>
- </resheader>
- <resheader name="reader">
- <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
- <resheader name="writer">
- <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
- <metadata name="openFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
- <value>17, 17</value>
- </metadata>
+<?xml version="1.0" encoding="utf-8"?>\r
+<root>\r
+ <!-- \r
+ Microsoft ResX Schema \r
+ \r
+ Version 2.0\r
+ \r
+ The primary goals of this format is to allow a simple XML format \r
+ that is mostly human readable. The generation and parsing of the \r
+ various data types are done through the TypeConverter classes \r
+ associated with the data types.\r
+ \r
+ Example:\r
+ \r
+ ... ado.net/XML headers & schema ...\r
+ <resheader name="resmimetype">text/microsoft-resx</resheader>\r
+ <resheader name="version">2.0</resheader>\r
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>\r
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>\r
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>\r
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>\r
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">\r
+ <value>[base64 mime encoded serialized .NET Framework object]</value>\r
+ </data>\r
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">\r
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>\r
+ <comment>This is a comment</comment>\r
+ </data>\r
+ \r
+ There are any number of "resheader" rows that contain simple \r
+ name/value pairs.\r
+ \r
+ Each data row contains a name, and value. The row also contains a \r
+ type or mimetype. Type corresponds to a .NET class that support \r
+ text/value conversion through the TypeConverter architecture. \r
+ Classes that don't support this are serialized and stored with the \r
+ mimetype set.\r
+ \r
+ The mimetype is used for serialized objects, and tells the \r
+ ResXResourceReader how to depersist the object. This is currently not \r
+ extensible. For a given mimetype the value must be set accordingly:\r
+ \r
+ Note - application/x-microsoft.net.object.binary.base64 is the format \r
+ that the ResXResourceWriter will generate, however the reader can \r
+ read any of the formats listed below.\r
+ \r
+ mimetype: application/x-microsoft.net.object.binary.base64\r
+ value : The object must be serialized with \r
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter\r
+ : and then encoded with base64 encoding.\r
+ \r
+ mimetype: application/x-microsoft.net.object.soap.base64\r
+ value : The object must be serialized with \r
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter\r
+ : and then encoded with base64 encoding.\r
+\r
+ mimetype: application/x-microsoft.net.object.bytearray.base64\r
+ value : The object must be serialized into a byte array \r
+ : using a System.ComponentModel.TypeConverter\r
+ : and then encoded with base64 encoding.\r
+ -->\r
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">\r
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />\r
+ <xsd:element name="root" msdata:IsDataSet="true">\r
+ <xsd:complexType>\r
+ <xsd:choice maxOccurs="unbounded">\r
+ <xsd:element name="metadata">\r
+ <xsd:complexType>\r
+ <xsd:sequence>\r
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />\r
+ </xsd:sequence>\r
+ <xsd:attribute name="name" use="required" type="xsd:string" />\r
+ <xsd:attribute name="type" type="xsd:string" />\r
+ <xsd:attribute name="mimetype" type="xsd:string" />\r
+ <xsd:attribute ref="xml:space" />\r
+ </xsd:complexType>\r
+ </xsd:element>\r
+ <xsd:element name="assembly">\r
+ <xsd:complexType>\r
+ <xsd:attribute name="alias" type="xsd:string" />\r
+ <xsd:attribute name="name" type="xsd:string" />\r
+ </xsd:complexType>\r
+ </xsd:element>\r
+ <xsd:element name="data">\r
+ <xsd:complexType>\r
+ <xsd:sequence>\r
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />\r
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />\r
+ </xsd:sequence>\r
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />\r
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />\r
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />\r
+ <xsd:attribute ref="xml:space" />\r
+ </xsd:complexType>\r
+ </xsd:element>\r
+ <xsd:element name="resheader">\r
+ <xsd:complexType>\r
+ <xsd:sequence>\r
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />\r
+ </xsd:sequence>\r
+ <xsd:attribute name="name" type="xsd:string" use="required" />\r
+ </xsd:complexType>\r
+ </xsd:element>\r
+ </xsd:choice>\r
+ </xsd:complexType>\r
+ </xsd:element>\r
+ </xsd:schema>\r
+ <resheader name="resmimetype">\r
+ <value>text/microsoft-resx</value>\r
+ </resheader>\r
+ <resheader name="version">\r
+ <value>2.0</value>\r
+ </resheader>\r
+ <resheader name="reader">\r
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+ </resheader>\r
+ <resheader name="writer">\r
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+ </resheader>\r
+ <metadata name="openFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">\r
+ <value>17, 17</value>\r
+ </metadata>\r
</root>
\ No newline at end of file
byte[] tmp = src.GetBytes(str);
Encoding enc = Encoding.GetEncoding("UTF-8");
byte[] tmp2 = Encoding.Convert(src, enc, tmp);
- MessageBox.Show(Uri.EscapeUriString(enc.GetString(tmp)));
- MessageBox.Show(Uri.EscapeUriString(enc.GetString(tmp2)));
- str = info.SearchUrl.Replace("%s", Uri.EscapeUriString(enc.GetString(tmp)));
- MessageBox.Show(str);
+ str = info.SearchUrl.Replace("%s", HttpUtility.UrlEncode(str, Encoding.GetEncoding(info.Encoding)));
}
System.Diagnostics.Process.Start(str);
this.DoVisibleChange(false);
-using System;
-using System.Collections.Generic;
-using System.Drawing;
-using System.Text;
-using System.Runtime.InteropServices;
-using System.Reflection;
-using System.IO;
-using System.Windows.Forms;
-using System.Xml;
-
-using Lugens.Utils;
-
-namespace Lugens.Passer
-{
- public class EngineInfo
- {
- /// <summary>
- /// 一意のID
- /// </summary>
- public string Id;
-
- /// <summary>
- /// コマンド名
- /// </summary>
- public string Name;
-
- /// <summary>
- /// タイプ(0.COMMAND 1.LOCAL_SEARCH 2.WEB_SEARCH)
- /// </summary>
- public int Type;
-
- /// <summary>
- /// URL
- /// </summary>
- public string Url;
-
- /// <summary>
- /// 検索URL
- /// </summary>
- public string SearchUrl;
-
- /// <summary>
- /// サジェストURL
- /// </summary>
- public string SuggestUrl;
-
-
- /// <summary>
- /// アイコン
- /// </summary>
- //public Icon Icon;
-
- /// <summary>
- /// アイコン画像
- /// </summary>
- public Image IconImage;
-
- /// <summary>
- /// 表示名
- /// </summary>
- public string Display;
-
- /// <summary>
- /// ショートカットキー
- /// </summary>
- public int Shortcut;
-
- /// <summary>
- /// 削除したか
- /// </summary>
- public bool Removed;
-
- /// <summary>
- /// アイコンを変更したか
- /// </summary>
- public bool IconChanged;
-
- }
-
- public static partial class Program
- {
- private static string chars = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
-
- public static readonly string EngineIconDir = Application.StartupPath + @"\engine";
- public static readonly string EngineIconTmpDir = Application.StartupPath + @"\engine\tmp";
- public static readonly string EngineFileName = Application.StartupPath + @"\EngineList.xml";
-
- /// <summary>
- /// 検索エンジンリスト
- /// </summary>
- public static List<string> EngineList = new List<string>();
- public static Dictionary<string, EngineInfo> EngineDic = new Dictionary<string, EngineInfo>();
-
- /// <summary>
- /// 検索エンジンリスト
- /// </summary>
- public static List<string> DefaultEngineList = new List<string>();
- public static Dictionary<string, EngineInfo> DefaultEngineDic = new Dictionary<string, EngineInfo>();
-
- /// <summary>
- /// ホットキー押下時の検索エンジンリスト
- /// </summary>
- public static List<int> HotKeyEngineList = new List<int>();
-
- /// <summary>
- /// 検索エンジンのアイコン用テンポラリディレクトリ作成
- /// </summary>
- public static void CreateEngineIconTmpDir()
- {
- if(Directory.Exists(Program.EngineIconTmpDir))
- return;
-
- if (!Directory.Exists(Program.EngineIconDir))
- Directory.CreateDirectory(Program.EngineIconDir);
-
- if (!Directory.Exists(Program.EngineIconTmpDir))
- Directory.CreateDirectory(Program.EngineIconTmpDir);
- }
-
- /// <summary>
- /// 検索エンジンのインデックスを返す
- /// </summary>
- /// <param name="name"></param>
- /// <returns></returns>
- public static int GetEngineIndex(string name)
- {
- int i = 0;
- foreach (string key in Program.DefaultEngineList)
- {
- if(name.Equals(Program.DefaultEngineDic[key].Name))
- return i;
- i++;
- }
- foreach (string key in Program.EngineList)
- {
- if(name.Equals(Program.EngineDic[key].Name))
- return i;
- i++;
- }
- return -1;
- }
-
- /// <summary>
- /// 検索エンジンを返す
- /// </summary>
- /// <param name="index"></param>
- /// <returns></returns>
- public static EngineInfo GetEngineInfo(int index)
- {
- if(index < Program.DefaultEngineList.Count)
- return Program.DefaultEngineDic[Program.DefaultEngineList[index]];
-
- index -= Program.DefaultEngineList.Count;
- if (index < Program.EngineList.Count)
- return Program.EngineDic[Program.EngineList[index]];
-
- return null;
- }
-
- public static EngineInfo GetEngineInfoFromHotKey(int hotkey)
- {
- if (!Program.HotKeyEngineList.Contains(hotkey))
- return null;
-
- int index;
- int sindex = Program.MainForm.SelectedEngineIndex;
- int dcount = Program.DefaultEngineList.Count;
- int count = dcount + Program.EngineList.Count;
- EngineInfo info;
- for (int i = 1; i < count; i++)
- {
- index = sindex + i;
- if (index >= count)
- index -= count;
-
- if (index < dcount)
- {
- info = Program.DefaultEngineDic[Program.DefaultEngineList[index]];
- if (info.Shortcut == hotkey)
- return info;
- }
- else
- {
- index -= dcount;
- info = Program.EngineDic[Program.EngineList[index]];
- if (info.Shortcut == hotkey)
- return info;
- }
- }
- return null;
- }
-
- /// <summary>
- /// 検索エンジンの一意IDを作成
- /// </summary>
- /// <returns></returns>
- public static string GetEngineID()
- {
- string id;
- bool check;
- Random r = new Random();
- do
- {
- id = "";
- for (int i = 0; i < 4; i++)
- {
- id += chars[r.Next(0, chars.Length - 1)];
- }
-
- check = false;
- foreach (EngineInfo info in Program.DefaultEngineDic.Values)
- {
- if (id.Equals(info.Id))
- {
- check = true;
- break;
- }
- }
-
- if (check)
- continue;
-
- foreach (EngineInfo info in Program.EngineDic.Values)
- {
- if (id.Equals(info.Id))
- {
- check = true;
- break;
- }
- }
-
- if (check)
- continue;
-
- foreach (EngineInfo info in Program.SettingForm.EngineDicTmp.Values)
- {
- if (id.Equals(info.Id))
- {
- check = true;
- break;
- }
- }
-
-
- } while (check);
-
- return id;
- }
-
-
- /// <summary>
- /// 検索エンジンリスト読み込み
- /// </summary>
- /// <returns></returns>
- public static bool ReadEngineList()
- {
- SetDefaultEngineList();
-
- string file = null;
- if (Settings.ContainsKey(Settings.PASSER_ENGINELIST_DIR))
- {
- file = Settings.Get(Settings.PASSER_ENGINELIST_DIR);
- if (file[file.Length - 1] == '\\')
- file = file.Substring(0, file.Length - 1);
- file += @"\EngineList.xml";
- if (!File.Exists(Program.EngineFileName))
- file = null;
- }
-
- if (file == null)
- file = Program.EngineFileName;
-
- if (!File.Exists(file))
- return false;
-
- EngineInfo info = new EngineInfo();
- XmlTextReader reader = null;
- Program.EngineList.Clear();
- Program.EngineDic.Clear();
-
- try
- {
- using (reader = new XmlTextReader(file))
- {
- while (reader.Read())
- {
- if (reader.IsStartElement() && !reader.IsEmptyElement)
- {
- if (reader.LocalName.Equals("Engine"))
- {
- info = new EngineInfo();
- continue;
- }
- if (reader.LocalName.Equals("Id"))
- {
- reader.Read();
- info.Id = reader.Value;
- continue;
- }
- if (reader.LocalName.Equals("Name"))
- {
- reader.Read();
- info.Name = reader.Value;
- continue;
- }
- if (reader.LocalName.Equals("Url"))
- {
- reader.Read();
- info.Url = reader.Value;
- continue;
- }
- if (reader.LocalName.Equals("SearchUrl"))
- {
- reader.Read();
- info.SearchUrl = reader.Value;
- continue;
- }
- if (reader.LocalName.Equals("SuggestUrl"))
- {
- reader.Read();
- info.SuggestUrl = reader.Value;
- continue;
- }
- if (reader.LocalName.Equals("Display"))
- {
- reader.Read();
- info.Display = reader.Value;
- continue;
- }
- if (reader.LocalName.Equals("Shortcut"))
- {
- reader.Read();
- info.Shortcut = int.Parse(reader.Value);
- continue;
- }
- }
- else if (reader.LocalName.Equals("Engine"))
- {
- info.Type = 2;
- Bitmap bitmap = new Bitmap(Program.EngineIconDir + "\\" + info.Id);
- info.IconImage = new Bitmap(bitmap);
- bitmap.Dispose();
-
- Program.EngineList.Add(info.Name);
- Program.EngineDic.Add(info.Name, info);
- if(info.Shortcut > 0 && !Program.HotKeyEngineList.Contains(info.Shortcut))
- Program.HotKeyEngineList.Add(info.Shortcut);
- }
- }
- }
- return true;
- }
- catch (Exception ex)
- {
- MessageBox.Show(ex.ToString());
- return false;
- }
- }
-
- /// <summary>
- /// 検索エンジンリスト書き込み
- /// </summary>
- public static void WriteEngineList()
- {
- Version version = Assembly.GetExecutingAssembly().GetName().Version;
- XmlTextWriter writer = null;
-
- using (writer = new XmlTextWriter(Program.EngineFileName, Encoding.UTF8))
- {
- writer.Formatting = Formatting.Indented;
-
- writer.WriteStartDocument();
- writer.WriteStartElement(Assembly.GetExecutingAssembly().GetName().Name);
- writer.WriteAttributeString("version", version.Major.ToString() + "." + version.Minor.ToString());
- writer.WriteStartElement("EngineList");
-
- foreach (string key in Program.EngineList)
- {
- EngineInfo info = Program.EngineDic[key];
- if (info.Removed)
- {
- string file = Program.EngineIconDir + "\\" + info.Id;
- if (File.Exists(file))
- File.Delete(file);
-
- Program.EngineDic.Remove(key);
- continue;
- }
- writer.WriteStartElement("Engine");
-
- writer.WriteStartElement("Id");
- writer.WriteString(info.Id);
- writer.WriteEndElement();
-
- writer.WriteStartElement("Name");
- writer.WriteString(info.Name);
- writer.WriteEndElement();
-
- writer.WriteStartElement("Url");
- writer.WriteString(info.Url);
- writer.WriteEndElement();
-
- writer.WriteStartElement("SearchUrl");
- writer.WriteString(info.SearchUrl);
- writer.WriteEndElement();
-
- writer.WriteStartElement("SuggestUrl");
- writer.WriteString(info.SuggestUrl);
- writer.WriteEndElement();
-
- writer.WriteStartElement("Display");
- writer.WriteString(info.Display);
- writer.WriteEndElement();
-
- writer.WriteStartElement("Shortcut");
- writer.WriteString(info.Shortcut.ToString());
- writer.WriteEndElement();
-
- writer.WriteEndElement();
- info.IconImage.Save(Program.EngineIconDir + "\\" + info.Id, System.Drawing.Imaging.ImageFormat.Png);
- }
- writer.WriteEndElement();
- writer.WriteEndElement();
- writer.Flush();
- writer.Close();
- }
- if(Directory.Exists(Program.EngineIconTmpDir))
- Directory.Delete(Program.EngineIconTmpDir, true);
- }
-
- /// <summary>
- /// デフォルトエンジンをセットする
- /// </summary>
- private static void SetDefaultEngineList()
- {
- Program.DefaultEngineList.Clear();
- Program.DefaultEngineDic.Clear();
- Program.HotKeyEngineList.Clear();
- EngineInfo info = new EngineInfo();
- info.Id = "0001";
- info.Name = "コマンドラインランチャー";
- info.Type = 0;
- info.Shortcut = 4186; //RControl + Z
- info.IconImage = Properties.Resources.EngineCommand.ToBitmap();
- info.Display = "コマンドを入力してください";
- Program.DefaultEngineList.Add(info.Name);
- Program.DefaultEngineDic.Add(info.Name, info);
- Program.HotKeyEngineList.Add(info.Shortcut);
-
- info = new EngineInfo();
- info.Id = "0002";
- info.Name = "ファイル検索";
- info.Type = 1;
- info.Shortcut = 4166; //RControl + F
- info.IconImage = Properties.Resources.EngineSearch.ToBitmap();
- info.Display = "ファイル名を入力してください";
- Program.DefaultEngineList.Add(info.Name);
- Program.DefaultEngineDic.Add(info.Name, info);
- Program.HotKeyEngineList.Add(info.Shortcut);
- }
- }
-}
+using System;\r
+using System.Collections.Generic;\r
+using System.Drawing;\r
+using System.Text;\r
+using System.Runtime.InteropServices;\r
+using System.Reflection;\r
+using System.IO;\r
+using System.Windows.Forms;\r
+using System.Xml;\r
+\r
+using Lugens.Utils;\r
+\r
+namespace Lugens.Passer\r
+{\r
+ public class EngineInfo\r
+ {\r
+ /// <summary>\r
+ /// 一意のID\r
+ /// </summary>\r
+ public string Id;\r
+\r
+ /// <summary>\r
+ /// コマンド名\r
+ /// </summary>\r
+ public string Name;\r
+\r
+ /// <summary>\r
+ /// タイプ(0.COMMAND 1.LOCAL_SEARCH 2.WEB_SEARCH)\r
+ /// </summary>\r
+ public int Type;\r
+\r
+ /// <summary>\r
+ /// URL\r
+ /// </summary>\r
+ public string Url;\r
+\r
+ /// <summary>\r
+ /// 検索URL\r
+ /// </summary>\r
+ public string SearchUrl;\r
+\r
+ /// <summary>\r
+ /// サジェストURL\r
+ /// </summary>\r
+ public string SuggestUrl;\r
+\r
+ /// <summary>\r
+ /// エンコーディング\r
+ /// </summary>\r
+ public string Encoding;\r
+\r
+ /// <summary>\r
+ /// アイコン\r
+ /// </summary>\r
+ //public Icon Icon;\r
+\r
+ /// <summary>\r
+ /// アイコン画像\r
+ /// </summary>\r
+ public Image IconImage;\r
+\r
+ /// <summary>\r
+ /// 表示名\r
+ /// </summary>\r
+ public string Display;\r
+\r
+ /// <summary>\r
+ /// ショートカットキー\r
+ /// </summary>\r
+ public int Shortcut;\r
+\r
+ /// <summary>\r
+ /// 削除したか\r
+ /// </summary>\r
+ public bool Removed;\r
+\r
+ /// <summary>\r
+ /// アイコンを変更したか\r
+ /// </summary>\r
+ public bool IconChanged;\r
+\r
+ }\r
+\r
+ public static partial class Program\r
+ {\r
+ private static string chars = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";\r
+\r
+ public static readonly string EngineIconDir = Application.StartupPath + @"\engine";\r
+ public static readonly string EngineIconTmpDir = Application.StartupPath + @"\engine\tmp";\r
+ public static readonly string EngineFileName = Application.StartupPath + @"\EngineList.xml";\r
+\r
+ /// <summary>\r
+ /// 検索エンジンリスト\r
+ /// </summary>\r
+ public static List<string> EngineList = new List<string>();\r
+ public static Dictionary<string, EngineInfo> EngineDic = new Dictionary<string, EngineInfo>();\r
+\r
+ /// <summary>\r
+ /// 検索エンジンリスト\r
+ /// </summary>\r
+ public static List<string> DefaultEngineList = new List<string>();\r
+ public static Dictionary<string, EngineInfo> DefaultEngineDic = new Dictionary<string, EngineInfo>();\r
+\r
+ /// <summary>\r
+ /// ホットキー押下時の検索エンジンリスト\r
+ /// </summary>\r
+ public static List<int> HotKeyEngineList = new List<int>();\r
+\r
+ /// <summary>\r
+ /// 検索エンジンのアイコン用テンポラリディレクトリ作成\r
+ /// </summary>\r
+ public static void CreateEngineIconTmpDir()\r
+ {\r
+ if(Directory.Exists(Program.EngineIconTmpDir))\r
+ return;\r
+\r
+ if (!Directory.Exists(Program.EngineIconDir))\r
+ Directory.CreateDirectory(Program.EngineIconDir);\r
+\r
+ if (!Directory.Exists(Program.EngineIconTmpDir))\r
+ Directory.CreateDirectory(Program.EngineIconTmpDir);\r
+ }\r
+\r
+ /// <summary>\r
+ /// 検索エンジンのインデックスを返す\r
+ /// </summary>\r
+ /// <param name="name"></param>\r
+ /// <returns></returns>\r
+ public static int GetEngineIndex(string name)\r
+ {\r
+ int i = 0;\r
+ foreach (string key in Program.DefaultEngineList)\r
+ {\r
+ if(name.Equals(Program.DefaultEngineDic[key].Name))\r
+ return i;\r
+ i++;\r
+ }\r
+ foreach (string key in Program.EngineList)\r
+ {\r
+ if(name.Equals(Program.EngineDic[key].Name))\r
+ return i;\r
+ i++;\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ /// <summary>\r
+ /// 検索エンジンを返す\r
+ /// </summary>\r
+ /// <param name="index"></param>\r
+ /// <returns></returns>\r
+ public static EngineInfo GetEngineInfo(int index)\r
+ {\r
+ if(index < Program.DefaultEngineList.Count)\r
+ return Program.DefaultEngineDic[Program.DefaultEngineList[index]];\r
+\r
+ index -= Program.DefaultEngineList.Count;\r
+ if (index < Program.EngineList.Count)\r
+ return Program.EngineDic[Program.EngineList[index]];\r
+\r
+ return null;\r
+ }\r
+\r
+ public static EngineInfo GetEngineInfoFromHotKey(int hotkey)\r
+ {\r
+ if (!Program.HotKeyEngineList.Contains(hotkey))\r
+ return null;\r
+\r
+ int index;\r
+ int sindex = Program.MainForm.SelectedEngineIndex;\r
+ int dcount = Program.DefaultEngineList.Count;\r
+ int count = dcount + Program.EngineList.Count;\r
+ EngineInfo info;\r
+ for (int i = 1; i < count; i++)\r
+ {\r
+ index = sindex + i;\r
+ if (index >= count)\r
+ index -= count;\r
+\r
+ if (index < dcount)\r
+ {\r
+ info = Program.DefaultEngineDic[Program.DefaultEngineList[index]];\r
+ if (info.Shortcut == hotkey)\r
+ return info;\r
+ }\r
+ else\r
+ {\r
+ index -= dcount;\r
+ info = Program.EngineDic[Program.EngineList[index]];\r
+ if (info.Shortcut == hotkey)\r
+ return info;\r
+ }\r
+ }\r
+ return null;\r
+ }\r
+\r
+ /// <summary>\r
+ /// 検索エンジンの一意IDを作成\r
+ /// </summary>\r
+ /// <returns></returns>\r
+ public static string GetEngineID()\r
+ {\r
+ string id;\r
+ bool check;\r
+ Random r = new Random();\r
+ do\r
+ {\r
+ id = "";\r
+ for (int i = 0; i < 4; i++)\r
+ {\r
+ id += chars[r.Next(0, chars.Length - 1)];\r
+ }\r
+\r
+ check = false;\r
+ foreach (EngineInfo info in Program.DefaultEngineDic.Values)\r
+ {\r
+ if (id.Equals(info.Id))\r
+ {\r
+ check = true;\r
+ break;\r
+ }\r
+ }\r
+\r
+ if (check)\r
+ continue;\r
+\r
+ foreach (EngineInfo info in Program.EngineDic.Values)\r
+ {\r
+ if (id.Equals(info.Id))\r
+ {\r
+ check = true;\r
+ break;\r
+ }\r
+ }\r
+\r
+ if (check)\r
+ continue;\r
+\r
+ foreach (EngineInfo info in Program.SettingForm.EngineDicTmp.Values)\r
+ {\r
+ if (id.Equals(info.Id))\r
+ {\r
+ check = true;\r
+ break;\r
+ }\r
+ }\r
+\r
+\r
+ } while (check);\r
+\r
+ return id;\r
+ }\r
+\r
+\r
+ /// <summary>\r
+ /// 検索エンジンリスト読み込み\r
+ /// </summary>\r
+ /// <returns></returns>\r
+ public static bool ReadEngineList()\r
+ {\r
+ SetDefaultEngineList();\r
+\r
+ string file = null;\r
+ if (Settings.ContainsKey(Settings.PASSER_ENGINELIST_DIR))\r
+ {\r
+ file = Settings.Get(Settings.PASSER_ENGINELIST_DIR);\r
+ if (file[file.Length - 1] == '\\')\r
+ file = file.Substring(0, file.Length - 1);\r
+ file += @"\EngineList.xml";\r
+ if (!File.Exists(Program.EngineFileName))\r
+ file = null;\r
+ }\r
+\r
+ if (file == null)\r
+ file = Program.EngineFileName;\r
+\r
+ if (!File.Exists(file))\r
+ return false;\r
+\r
+ EngineInfo info = new EngineInfo();\r
+ XmlTextReader reader = null;\r
+ Program.EngineList.Clear();\r
+ Program.EngineDic.Clear();\r
+\r
+ try\r
+ {\r
+ using (reader = new XmlTextReader(file))\r
+ {\r
+ while (reader.Read())\r
+ {\r
+ if (reader.IsStartElement() && !reader.IsEmptyElement)\r
+ {\r
+ if (reader.LocalName.Equals("Engine"))\r
+ {\r
+ info = new EngineInfo();\r
+ continue;\r
+ }\r
+ if (reader.LocalName.Equals("Id"))\r
+ {\r
+ reader.Read();\r
+ info.Id = reader.Value;\r
+ continue;\r
+ }\r
+ if (reader.LocalName.Equals("Name"))\r
+ {\r
+ reader.Read();\r
+ info.Name = reader.Value;\r
+ continue;\r
+ }\r
+ if (reader.LocalName.Equals("Url"))\r
+ {\r
+ reader.Read();\r
+ info.Url = reader.Value;\r
+ continue;\r
+ }\r
+ if (reader.LocalName.Equals("SearchUrl"))\r
+ {\r
+ reader.Read();\r
+ info.SearchUrl = reader.Value;\r
+ continue;\r
+ }\r
+ if (reader.LocalName.Equals("SuggestUrl"))\r
+ {\r
+ reader.Read();\r
+ info.SuggestUrl = reader.Value;\r
+ continue;\r
+ }\r
+ if (reader.LocalName.Equals("Encoding"))\r
+ {\r
+ reader.Read();\r
+ info.Encoding = reader.Value;\r
+ continue;\r
+ }\r
+ if (reader.LocalName.Equals("Display"))\r
+ {\r
+ reader.Read();\r
+ info.Display = reader.Value;\r
+ continue;\r
+ }\r
+ if (reader.LocalName.Equals("Shortcut"))\r
+ {\r
+ reader.Read();\r
+ info.Shortcut = int.Parse(reader.Value);\r
+ continue;\r
+ }\r
+ }\r
+ else if (reader.LocalName.Equals("Engine"))\r
+ {\r
+ info.Type = 2;\r
+ Bitmap bitmap = new Bitmap(Program.EngineIconDir + "\\" + info.Id);\r
+ info.IconImage = new Bitmap(bitmap);\r
+ bitmap.Dispose();\r
+\r
+ Program.EngineList.Add(info.Name);\r
+ Program.EngineDic.Add(info.Name, info);\r
+ if(info.Shortcut > 0 && !Program.HotKeyEngineList.Contains(info.Shortcut))\r
+ Program.HotKeyEngineList.Add(info.Shortcut);\r
+ }\r
+ }\r
+ }\r
+ return true;\r
+ }\r
+ catch (Exception ex)\r
+ {\r
+ MessageBox.Show(ex.ToString());\r
+ return false;\r
+ }\r
+ }\r
+\r
+ /// <summary>\r
+ /// 検索エンジンリスト書き込み\r
+ /// </summary>\r
+ public static void WriteEngineList()\r
+ {\r
+ Version version = Assembly.GetExecutingAssembly().GetName().Version;\r
+ XmlTextWriter writer = null;\r
+\r
+ using (writer = new XmlTextWriter(Program.EngineFileName, Encoding.UTF8))\r
+ {\r
+ writer.Formatting = Formatting.Indented;\r
+\r
+ writer.WriteStartDocument();\r
+ writer.WriteStartElement(Assembly.GetExecutingAssembly().GetName().Name);\r
+ writer.WriteAttributeString("version", version.Major.ToString() + "." + version.Minor.ToString());\r
+ writer.WriteStartElement("EngineList");\r
+\r
+ foreach (string key in Program.EngineList)\r
+ {\r
+ EngineInfo info = Program.EngineDic[key];\r
+ if (info.Removed)\r
+ {\r
+ string file = Program.EngineIconDir + "\\" + info.Id;\r
+ if (File.Exists(file))\r
+ File.Delete(file);\r
+\r
+ Program.EngineDic.Remove(key);\r
+ continue;\r
+ }\r
+ writer.WriteStartElement("Engine");\r
+\r
+ writer.WriteStartElement("Id");\r
+ writer.WriteString(info.Id);\r
+ writer.WriteEndElement();\r
+\r
+ writer.WriteStartElement("Name");\r
+ writer.WriteString(info.Name);\r
+ writer.WriteEndElement();\r
+\r
+ writer.WriteStartElement("Url");\r
+ writer.WriteString(info.Url);\r
+ writer.WriteEndElement();\r
+\r
+ writer.WriteStartElement("SearchUrl");\r
+ writer.WriteString(info.SearchUrl);\r
+ writer.WriteEndElement();\r
+\r
+ writer.WriteStartElement("SuggestUrl");\r
+ writer.WriteString(info.SuggestUrl);\r
+ writer.WriteEndElement();\r
+\r
+ writer.WriteStartElement("Encoding");\r
+ writer.WriteString(info.Encoding);\r
+ writer.WriteEndElement();\r
+ \r
+ writer.WriteStartElement("Display");\r
+ writer.WriteString(info.Display);\r
+ writer.WriteEndElement();\r
+\r
+ writer.WriteStartElement("Shortcut");\r
+ writer.WriteString(info.Shortcut.ToString());\r
+ writer.WriteEndElement();\r
+\r
+ writer.WriteEndElement();\r
+ info.IconImage.Save(Program.EngineIconDir + "\\" + info.Id, System.Drawing.Imaging.ImageFormat.Png);\r
+ }\r
+ writer.WriteEndElement();\r
+ writer.WriteEndElement();\r
+ writer.Flush();\r
+ writer.Close();\r
+ }\r
+ if(Directory.Exists(Program.EngineIconTmpDir))\r
+ Directory.Delete(Program.EngineIconTmpDir, true);\r
+ }\r
+\r
+ /// <summary>\r
+ /// デフォルトエンジンをセットする\r
+ /// </summary>\r
+ private static void SetDefaultEngineList()\r
+ {\r
+ Program.DefaultEngineList.Clear();\r
+ Program.DefaultEngineDic.Clear();\r
+ Program.HotKeyEngineList.Clear();\r
+ EngineInfo info = new EngineInfo();\r
+ info.Id = "0001";\r
+ info.Name = "コマンドラインランチャー";\r
+ info.Type = 0;\r
+ info.Shortcut = 4186; //RControl + Z\r
+ info.IconImage = Properties.Resources.EngineCommand.ToBitmap();\r
+ info.Display = "コマンドを入力してください";\r
+ Program.DefaultEngineList.Add(info.Name);\r
+ Program.DefaultEngineDic.Add(info.Name, info);\r
+ Program.HotKeyEngineList.Add(info.Shortcut);\r
+\r
+ info = new EngineInfo();\r
+ info.Id = "0002";\r
+ info.Name = "ファイル検索";\r
+ info.Type = 1;\r
+ info.Shortcut = 4166; //RControl + F\r
+ info.IconImage = Properties.Resources.EngineSearch.ToBitmap();\r
+ info.Display = "ファイル名を入力してください";\r
+ Program.DefaultEngineList.Add(info.Name);\r
+ Program.DefaultEngineDic.Add(info.Name, info);\r
+ Program.HotKeyEngineList.Add(info.Shortcut);\r
+ }\r
+ }\r
+}\r
// Build Number
// Revision
//
-[assembly: AssemblyVersion("2.6.0.*")]
-[assembly: AssemblyFileVersion("2.6.0.0")]
+[assembly: AssemblyVersion("2.6.1.1")]
+[assembly: AssemblyFileVersion("2.6.1.1")]
/// コード エディタで変更しないでください。
/// </summary>
private void InitializeComponent()
- {
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SettingForm));
- this.button_ok = new System.Windows.Forms.Button();
- this.button_cancel = new System.Windows.Forms.Button();
- this.tabPageCommand = new System.Windows.Forms.TabPage();
- this.command_iconListBox = new Lugens.Components.IconListBox();
- this.command_button_edit = new System.Windows.Forms.Button();
- this.command_pictureBox1 = new System.Windows.Forms.PictureBox();
- this.command_textBox_arguments = new System.Windows.Forms.TextBox();
- this.label6 = new System.Windows.Forms.Label();
- this.command_textBox_comment = new System.Windows.Forms.TextBox();
- this.label5 = new System.Windows.Forms.Label();
- this.command_textBox_path = new System.Windows.Forms.TextBox();
- this.label4 = new System.Windows.Forms.Label();
- this.label3 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.command_button_delete = new System.Windows.Forms.Button();
- this.command_textBox_name = new System.Windows.Forms.TextBox();
- this.command_textBox_target = new System.Windows.Forms.TextBox();
- this.command_button_new = new System.Windows.Forms.Button();
- this.tabControl = new System.Windows.Forms.TabControl();
- this.tabPageSetting = new System.Windows.Forms.TabPage();
- this.checkBox_memorizeEngine = new System.Windows.Forms.CheckBox();
- this.checkBox_showBalloonWhileRecoding = new System.Windows.Forms.CheckBox();
- this.checkBox_fadeIn = new System.Windows.Forms.CheckBox();
- this.checkBox_sendRecordToClipboard = new System.Windows.Forms.CheckBox();
- this.checkBox_showScriptToolTip = new System.Windows.Forms.CheckBox();
- this.label16 = new System.Windows.Forms.Label();
- this.label15 = new System.Windows.Forms.Label();
- this.label14 = new System.Windows.Forms.Label();
- this.textBox_opacity = new System.Windows.Forms.TextBox();
- this.trackBar_opacity = new System.Windows.Forms.TrackBar();
- this.groupBox_hotKey = new System.Windows.Forms.GroupBox();
- this.hotKeyTextBox_KeyPlay = new Lugens.Components.HotKeyTextBox();
- this.label18 = new System.Windows.Forms.Label();
- this.hotKeyTextBox_KeyRecord = new Lugens.Components.HotKeyTextBox();
- this.label17 = new System.Windows.Forms.Label();
- this.label_hotKeyError = new System.Windows.Forms.Label();
- this.label1 = new System.Windows.Forms.Label();
- this.label8 = new System.Windows.Forms.Label();
- this.hotKeyTextBox_ClipPaste = new Lugens.Components.HotKeyTextBox();
- this.label7 = new System.Windows.Forms.Label();
- this.hotKeyTextBox_Clip = new Lugens.Components.HotKeyTextBox();
- this.hotKeyTextBox_Main = new Lugens.Components.HotKeyTextBox();
- this.tabPageSentence = new System.Windows.Forms.TabPage();
- this.sentence_label_description = new System.Windows.Forms.Label();
- this.sentence_textBox_description = new System.Windows.Forms.TextBox();
- this.sentence_label_summary = new System.Windows.Forms.Label();
- this.sentence_textBox_summary = new System.Windows.Forms.TextBox();
- this.sentence_label_args = new System.Windows.Forms.Label();
- this.sentence_textBox_args = new System.Windows.Forms.TextBox();
- this.sentence_label_macroName = new System.Windows.Forms.Label();
- this.sentence_textBox_macroName = new System.Windows.Forms.TextBox();
- this.sentence_textBox_group = new System.Windows.Forms.TextBox();
- this.sentence_label_group = new System.Windows.Forms.Label();
- this.sentence_label_value = new System.Windows.Forms.Label();
- this.sentence_textBox_value = new System.Windows.Forms.TextBox();
- this.sentence_textBox_shortcut = new System.Windows.Forms.TextBox();
- this.sentence_label_shortcut = new System.Windows.Forms.Label();
- this.sentence_label_type = new System.Windows.Forms.Label();
- this.sentence_label_name = new System.Windows.Forms.Label();
- this.sentence_textBox_name = new System.Windows.Forms.TextBox();
- this.sentence_textBox_type = new System.Windows.Forms.TextBox();
- this.sentence_button_edit = new System.Windows.Forms.Button();
- this.sentence_button_delete = new System.Windows.Forms.Button();
- this.sentence_button_new = new System.Windows.Forms.Button();
- this.sentence_radio0 = new System.Windows.Forms.RadioButton();
- this.sentence_radio5 = new System.Windows.Forms.RadioButton();
- this.sentence_radio4 = new System.Windows.Forms.RadioButton();
- this.sentence_radio3 = new System.Windows.Forms.RadioButton();
- this.sentence_radio2 = new System.Windows.Forms.RadioButton();
- this.sentence_radio1 = new System.Windows.Forms.RadioButton();
- this.sentence_iconListBox = new Lugens.Components.IconListBox();
- this.tabPageEngine = new System.Windows.Forms.TabPage();
- this.engine_textBox_url = new System.Windows.Forms.TextBox();
- this.label24 = new System.Windows.Forms.Label();
- this.engine_textBox_suggestUrl = new System.Windows.Forms.TextBox();
- this.label_engine_suggestUrl = new System.Windows.Forms.Label();
- this.label21 = new System.Windows.Forms.Label();
- this.engine_textBox_comment = new System.Windows.Forms.TextBox();
- this.label11 = new System.Windows.Forms.Label();
- this.engine_textBox_shortcut = new System.Windows.Forms.TextBox();
- this.label12 = new System.Windows.Forms.Label();
- this.engine_textBox_display = new System.Windows.Forms.TextBox();
- this.label13 = new System.Windows.Forms.Label();
- this.engine_textBox_searchUrl = new System.Windows.Forms.TextBox();
- this.engine_pictureBox = new System.Windows.Forms.PictureBox();
- this.label9 = new System.Windows.Forms.Label();
- this.label10 = new System.Windows.Forms.Label();
- this.engine_textBox_name = new System.Windows.Forms.TextBox();
- this.engine_button_edit = new System.Windows.Forms.Button();
- this.engine_button_delete = new System.Windows.Forms.Button();
- this.engine_button_new = new System.Windows.Forms.Button();
- this.engine_iconListBox = new Lugens.Components.IconListBox();
- this.tabPageMacro = new System.Windows.Forms.TabPage();
- this.macro_textBox_summary = new System.Windows.Forms.TextBox();
- this.label20 = new System.Windows.Forms.Label();
- this.label19 = new System.Windows.Forms.Label();
- this.macro_textBox_description = new System.Windows.Forms.TextBox();
- this.label22 = new System.Windows.Forms.Label();
- this.label23 = new System.Windows.Forms.Label();
- this.macro_textBox_id = new System.Windows.Forms.TextBox();
- this.macro_iconListBox = new Lugens.Components.IconListBox();
- this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
- this.tabPageCommand.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.command_pictureBox1)).BeginInit();
- this.tabControl.SuspendLayout();
- this.tabPageSetting.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.trackBar_opacity)).BeginInit();
- this.groupBox_hotKey.SuspendLayout();
- this.tabPageSentence.SuspendLayout();
- this.tabPageEngine.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.engine_pictureBox)).BeginInit();
- this.tabPageMacro.SuspendLayout();
- this.SuspendLayout();
- //
- // button_ok
- //
- this.button_ok.DialogResult = System.Windows.Forms.DialogResult.OK;
- this.button_ok.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.button_ok.Location = new System.Drawing.Point(367, 330);
- this.button_ok.Name = "button_ok";
- this.button_ok.Size = new System.Drawing.Size(78, 22);
- this.button_ok.TabIndex = 98;
- this.button_ok.Text = "OK";
- this.button_ok.UseVisualStyleBackColor = true;
- this.button_ok.Click += new System.EventHandler(this.button_ok_Click);
- //
- // button_cancel
- //
- this.button_cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
- this.button_cancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.button_cancel.Location = new System.Drawing.Point(451, 330);
- this.button_cancel.Name = "button_cancel";
- this.button_cancel.Size = new System.Drawing.Size(78, 22);
- this.button_cancel.TabIndex = 99;
- this.button_cancel.Text = "キャンセル";
- this.button_cancel.UseVisualStyleBackColor = true;
- this.button_cancel.Click += new System.EventHandler(this.button_cancel_Click);
- //
- // tabPageCommand
- //
- this.tabPageCommand.AllowDrop = true;
- this.tabPageCommand.BackColor = System.Drawing.Color.Transparent;
- this.tabPageCommand.Controls.Add(this.command_iconListBox);
- this.tabPageCommand.Controls.Add(this.command_button_edit);
- this.tabPageCommand.Controls.Add(this.command_pictureBox1);
- this.tabPageCommand.Controls.Add(this.command_textBox_arguments);
- this.tabPageCommand.Controls.Add(this.label6);
- this.tabPageCommand.Controls.Add(this.command_textBox_comment);
- this.tabPageCommand.Controls.Add(this.label5);
- this.tabPageCommand.Controls.Add(this.command_textBox_path);
- this.tabPageCommand.Controls.Add(this.label4);
- this.tabPageCommand.Controls.Add(this.label3);
- this.tabPageCommand.Controls.Add(this.label2);
- this.tabPageCommand.Controls.Add(this.command_button_delete);
- this.tabPageCommand.Controls.Add(this.command_textBox_name);
- this.tabPageCommand.Controls.Add(this.command_textBox_target);
- this.tabPageCommand.Controls.Add(this.command_button_new);
- this.tabPageCommand.Location = new System.Drawing.Point(4, 22);
- this.tabPageCommand.Name = "tabPageCommand";
- this.tabPageCommand.Padding = new System.Windows.Forms.Padding(3);
- this.tabPageCommand.Size = new System.Drawing.Size(513, 286);
- this.tabPageCommand.TabIndex = 0;
- this.tabPageCommand.Text = "コマンド";
- this.tabPageCommand.UseVisualStyleBackColor = true;
- this.tabPageCommand.DragDrop += new System.Windows.Forms.DragEventHandler(this.SettingForm_DragDrop);
- this.tabPageCommand.DragEnter += new System.Windows.Forms.DragEventHandler(this.SettingForm_DragEnter);
- //
- // command_iconListBox
- //
- this.command_iconListBox.AllowDrop = true;
- this.command_iconListBox.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
- this.command_iconListBox.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.command_iconListBox.FormattingEnabled = true;
- this.command_iconListBox.ItemHeight = 18;
- this.command_iconListBox.Location = new System.Drawing.Point(7, 10);
- this.command_iconListBox.Name = "command_iconListBox";
- this.command_iconListBox.PreSelectedBackgroundImage = global::Lugens.Passer.Properties.Resources.preselect_7;
- this.command_iconListBox.SearchItemMode = true;
- this.command_iconListBox.SelectedBackgroundImage = global::Lugens.Passer.Properties.Resources.select_7;
- this.command_iconListBox.Size = new System.Drawing.Size(150, 238);
- this.command_iconListBox.Status = 1;
- this.command_iconListBox.TabIndex = 27;
- this.command_iconListBox.ViewMode = Lugens.Components.ViewMode.IconText;
- this.command_iconListBox.DragDrop += new System.Windows.Forms.DragEventHandler(this.command_iconListBox_DragDrop);
- this.command_iconListBox.DragEnter += new System.Windows.Forms.DragEventHandler(this.command_iconListBox_DragEnter);
- this.command_iconListBox.QueryContinueDrag += new System.Windows.Forms.QueryContinueDragEventHandler(this.command_iconListBox_QueryContinueDrag);
- this.command_iconListBox.DoubleClick += new System.EventHandler(this.command_iconListBox_DoubleClick);
- this.command_iconListBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.command_iconListBox_KeyDown);
- this.command_iconListBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.command_iconListBox_MouseDown);
- this.command_iconListBox.MouseEnter += new System.EventHandler(this.command_iconListBox_MouseEnter);
- this.command_iconListBox.MouseMove += new System.Windows.Forms.MouseEventHandler(this.command_iconListBox_MouseMove);
- this.command_iconListBox.MouseUp += new System.Windows.Forms.MouseEventHandler(this.command_iconListBox_MouseUp);
- //
- // command_button_edit
- //
- this.command_button_edit.Enabled = false;
- this.command_button_edit.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.command_button_edit.Location = new System.Drawing.Point(77, 254);
- this.command_button_edit.Name = "command_button_edit";
- this.command_button_edit.Size = new System.Drawing.Size(64, 24);
- this.command_button_edit.TabIndex = 6;
- this.command_button_edit.Text = "編集";
- this.command_button_edit.Click += new System.EventHandler(this.command_button_edit_Click);
- //
- // command_pictureBox1
- //
- this.command_pictureBox1.BackColor = System.Drawing.Color.Transparent;
- this.command_pictureBox1.Location = new System.Drawing.Point(414, 17);
- this.command_pictureBox1.Name = "command_pictureBox1";
- this.command_pictureBox1.Size = new System.Drawing.Size(32, 32);
- this.command_pictureBox1.TabIndex = 25;
- this.command_pictureBox1.TabStop = false;
- //
- // command_textBox_arguments
- //
- this.command_textBox_arguments.Location = new System.Drawing.Point(163, 136);
- this.command_textBox_arguments.Name = "command_textBox_arguments";
- this.command_textBox_arguments.ReadOnly = true;
- this.command_textBox_arguments.Size = new System.Drawing.Size(342, 19);
- this.command_textBox_arguments.TabIndex = 10;
- //
- // label6
- //
- this.label6.AutoSize = true;
- this.label6.BackColor = System.Drawing.Color.Transparent;
- this.label6.Location = new System.Drawing.Point(165, 158);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(38, 12);
- this.label6.TabIndex = 24;
- this.label6.Text = "コメント";
- //
- // command_textBox_comment
- //
- this.command_textBox_comment.AcceptsReturn = true;
- this.command_textBox_comment.AcceptsTab = true;
- this.command_textBox_comment.Location = new System.Drawing.Point(163, 173);
- this.command_textBox_comment.Multiline = true;
- this.command_textBox_comment.Name = "command_textBox_comment";
- this.command_textBox_comment.ReadOnly = true;
- this.command_textBox_comment.Size = new System.Drawing.Size(342, 75);
- this.command_textBox_comment.TabIndex = 11;
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.BackColor = System.Drawing.Color.Transparent;
- this.label5.Location = new System.Drawing.Point(165, 121);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(29, 12);
- this.label5.TabIndex = 23;
- this.label5.Text = "引数";
- //
- // command_textBox_path
- //
- this.command_textBox_path.Location = new System.Drawing.Point(163, 99);
- this.command_textBox_path.Name = "command_textBox_path";
- this.command_textBox_path.ReadOnly = true;
- this.command_textBox_path.Size = new System.Drawing.Size(342, 19);
- this.command_textBox_path.TabIndex = 9;
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.BackColor = System.Drawing.Color.Transparent;
- this.label4.Location = new System.Drawing.Point(165, 84);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(24, 12);
- this.label4.TabIndex = 22;
- this.label4.Text = "パス";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.BackColor = System.Drawing.Color.Transparent;
- this.label3.Location = new System.Drawing.Point(165, 47);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(51, 12);
- this.label3.TabIndex = 21;
- this.label3.Text = "ファイル名";
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.BackColor = System.Drawing.Color.Transparent;
- this.label2.Location = new System.Drawing.Point(163, 10);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(41, 12);
- this.label2.TabIndex = 20;
- this.label2.Text = "設定名";
- //
- // command_button_delete
- //
- this.command_button_delete.Enabled = false;
- this.command_button_delete.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.command_button_delete.Location = new System.Drawing.Point(147, 254);
- this.command_button_delete.Name = "command_button_delete";
- this.command_button_delete.Size = new System.Drawing.Size(64, 24);
- this.command_button_delete.TabIndex = 5;
- this.command_button_delete.Text = "削除";
- this.command_button_delete.Click += new System.EventHandler(this.command_button_delete_Click);
- //
- // command_textBox_name
- //
- this.command_textBox_name.Location = new System.Drawing.Point(163, 25);
- this.command_textBox_name.Name = "command_textBox_name";
- this.command_textBox_name.ReadOnly = true;
- this.command_textBox_name.Size = new System.Drawing.Size(238, 19);
- this.command_textBox_name.TabIndex = 7;
- //
- // command_textBox_target
- //
- this.command_textBox_target.Location = new System.Drawing.Point(163, 62);
- this.command_textBox_target.Name = "command_textBox_target";
- this.command_textBox_target.ReadOnly = true;
- this.command_textBox_target.Size = new System.Drawing.Size(342, 19);
- this.command_textBox_target.TabIndex = 8;
- //
- // command_button_new
- //
- this.command_button_new.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.command_button_new.Location = new System.Drawing.Point(7, 254);
- this.command_button_new.Name = "command_button_new";
- this.command_button_new.Size = new System.Drawing.Size(64, 24);
- this.command_button_new.TabIndex = 4;
- this.command_button_new.Text = "新規";
- this.command_button_new.Click += new System.EventHandler(this.command_button_new_Click);
- //
- // tabControl
- //
- this.tabControl.AllowDrop = true;
- this.tabControl.Controls.Add(this.tabPageSetting);
- this.tabControl.Controls.Add(this.tabPageCommand);
- this.tabControl.Controls.Add(this.tabPageSentence);
- this.tabControl.Controls.Add(this.tabPageEngine);
- this.tabControl.Controls.Add(this.tabPageMacro);
- this.tabControl.Location = new System.Drawing.Point(12, 12);
- this.tabControl.Name = "tabControl";
- this.tabControl.SelectedIndex = 0;
- this.tabControl.Size = new System.Drawing.Size(521, 312);
- this.tabControl.TabIndex = 0;
- this.tabControl.DragDrop += new System.Windows.Forms.DragEventHandler(this.SettingForm_DragDrop);
- this.tabControl.DragEnter += new System.Windows.Forms.DragEventHandler(this.SettingForm_DragEnter);
- //
- // tabPageSetting
- //
- this.tabPageSetting.BackColor = System.Drawing.Color.Transparent;
- this.tabPageSetting.Controls.Add(this.checkBox_memorizeEngine);
- this.tabPageSetting.Controls.Add(this.checkBox_showBalloonWhileRecoding);
- this.tabPageSetting.Controls.Add(this.checkBox_fadeIn);
- this.tabPageSetting.Controls.Add(this.checkBox_sendRecordToClipboard);
- this.tabPageSetting.Controls.Add(this.checkBox_showScriptToolTip);
- this.tabPageSetting.Controls.Add(this.label16);
- this.tabPageSetting.Controls.Add(this.label15);
- this.tabPageSetting.Controls.Add(this.label14);
- this.tabPageSetting.Controls.Add(this.textBox_opacity);
- this.tabPageSetting.Controls.Add(this.trackBar_opacity);
- this.tabPageSetting.Controls.Add(this.groupBox_hotKey);
- this.tabPageSetting.Location = new System.Drawing.Point(4, 22);
- this.tabPageSetting.Name = "tabPageSetting";
- this.tabPageSetting.Padding = new System.Windows.Forms.Padding(3);
- this.tabPageSetting.Size = new System.Drawing.Size(513, 286);
- this.tabPageSetting.TabIndex = 3;
- this.tabPageSetting.Text = "設定";
- this.tabPageSetting.UseVisualStyleBackColor = true;
- //
- // checkBox_memorizeEngine
- //
- this.checkBox_memorizeEngine.AutoSize = true;
- this.checkBox_memorizeEngine.BackColor = System.Drawing.Color.Transparent;
- this.checkBox_memorizeEngine.Location = new System.Drawing.Point(16, 117);
- this.checkBox_memorizeEngine.Name = "checkBox_memorizeEngine";
- this.checkBox_memorizeEngine.Size = new System.Drawing.Size(212, 16);
- this.checkBox_memorizeEngine.TabIndex = 17;
- this.checkBox_memorizeEngine.Text = "最後に使用した検索エンジンを記憶する";
- this.checkBox_memorizeEngine.UseVisualStyleBackColor = false;
- //
- // checkBox_showBalloonWhileRecoding
- //
- this.checkBox_showBalloonWhileRecoding.AutoSize = true;
- this.checkBox_showBalloonWhileRecoding.BackColor = System.Drawing.Color.Transparent;
- this.checkBox_showBalloonWhileRecoding.Location = new System.Drawing.Point(16, 71);
- this.checkBox_showBalloonWhileRecoding.Name = "checkBox_showBalloonWhileRecoding";
- this.checkBox_showBalloonWhileRecoding.Size = new System.Drawing.Size(161, 16);
- this.checkBox_showBalloonWhileRecoding.TabIndex = 16;
- this.checkBox_showBalloonWhileRecoding.Text = "キー記録中にバルーンを表示";
- this.checkBox_showBalloonWhileRecoding.UseVisualStyleBackColor = false;
- //
- // checkBox_fadeIn
- //
- this.checkBox_fadeIn.AutoSize = true;
- this.checkBox_fadeIn.BackColor = System.Drawing.Color.Transparent;
- this.checkBox_fadeIn.Location = new System.Drawing.Point(16, 23);
- this.checkBox_fadeIn.Name = "checkBox_fadeIn";
- this.checkBox_fadeIn.Size = new System.Drawing.Size(133, 16);
- this.checkBox_fadeIn.TabIndex = 14;
- this.checkBox_fadeIn.Text = "フェードイン効果を使用";
- this.checkBox_fadeIn.UseVisualStyleBackColor = false;
- //
- // checkBox_sendRecordToClipboard
- //
- this.checkBox_sendRecordToClipboard.AutoSize = true;
- this.checkBox_sendRecordToClipboard.BackColor = System.Drawing.Color.Transparent;
- this.checkBox_sendRecordToClipboard.Location = new System.Drawing.Point(16, 95);
- this.checkBox_sendRecordToClipboard.Name = "checkBox_sendRecordToClipboard";
- this.checkBox_sendRecordToClipboard.Size = new System.Drawing.Size(188, 16);
- this.checkBox_sendRecordToClipboard.TabIndex = 13;
- this.checkBox_sendRecordToClipboard.Text = "記録したキーをクリップボードに送信";
- this.checkBox_sendRecordToClipboard.UseVisualStyleBackColor = false;
- //
- // checkBox_showScriptToolTip
- //
- this.checkBox_showScriptToolTip.AutoSize = true;
- this.checkBox_showScriptToolTip.BackColor = System.Drawing.Color.Transparent;
- this.checkBox_showScriptToolTip.Location = new System.Drawing.Point(16, 47);
- this.checkBox_showScriptToolTip.Name = "checkBox_showScriptToolTip";
- this.checkBox_showScriptToolTip.Size = new System.Drawing.Size(161, 16);
- this.checkBox_showScriptToolTip.TabIndex = 12;
- this.checkBox_showScriptToolTip.Text = "スクリプトにツールチップを表示";
- this.checkBox_showScriptToolTip.UseVisualStyleBackColor = false;
- //
- // label16
- //
- this.label16.AutoSize = true;
- this.label16.BackColor = System.Drawing.Color.Transparent;
- this.label16.Location = new System.Drawing.Point(20, 247);
- this.label16.Name = "label16";
- this.label16.Size = new System.Drawing.Size(29, 12);
- this.label16.TabIndex = 11;
- this.label16.Text = "透明";
- //
- // label15
- //
- this.label15.AutoSize = true;
- this.label15.BackColor = System.Drawing.Color.Transparent;
- this.label15.Location = new System.Drawing.Point(205, 247);
- this.label15.Name = "label15";
- this.label15.Size = new System.Drawing.Size(41, 12);
- this.label15.TabIndex = 10;
- this.label15.Text = "非透明";
- //
- // label14
- //
- this.label14.AutoSize = true;
- this.label14.BackColor = System.Drawing.Color.Transparent;
- this.label14.Location = new System.Drawing.Point(18, 202);
- this.label14.Name = "label14";
- this.label14.Size = new System.Drawing.Size(41, 12);
- this.label14.TabIndex = 9;
- this.label14.Text = "透明度";
- //
- // textBox_opacity
- //
- this.textBox_opacity.Location = new System.Drawing.Point(256, 220);
- this.textBox_opacity.Name = "textBox_opacity";
- this.textBox_opacity.ReadOnly = true;
- this.textBox_opacity.Size = new System.Drawing.Size(39, 19);
- this.textBox_opacity.TabIndex = 8;
- this.textBox_opacity.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // trackBar_opacity
- //
- this.trackBar_opacity.BackColor = System.Drawing.SystemColors.ButtonHighlight;
- this.trackBar_opacity.Location = new System.Drawing.Point(16, 217);
- this.trackBar_opacity.Maximum = 100;
- this.trackBar_opacity.Minimum = 50;
- this.trackBar_opacity.Name = "trackBar_opacity";
- this.trackBar_opacity.Size = new System.Drawing.Size(233, 45);
- this.trackBar_opacity.TabIndex = 7;
- this.trackBar_opacity.TickStyle = System.Windows.Forms.TickStyle.None;
- this.trackBar_opacity.Value = 100;
- this.trackBar_opacity.ValueChanged += new System.EventHandler(this.trackBar_opacity_ValueChanged);
- //
- // groupBox_hotKey
- //
- this.groupBox_hotKey.BackColor = System.Drawing.Color.Transparent;
- this.groupBox_hotKey.Controls.Add(this.hotKeyTextBox_KeyPlay);
- this.groupBox_hotKey.Controls.Add(this.label18);
- this.groupBox_hotKey.Controls.Add(this.hotKeyTextBox_KeyRecord);
- this.groupBox_hotKey.Controls.Add(this.label17);
- this.groupBox_hotKey.Controls.Add(this.label_hotKeyError);
- this.groupBox_hotKey.Controls.Add(this.label1);
- this.groupBox_hotKey.Controls.Add(this.label8);
- this.groupBox_hotKey.Controls.Add(this.hotKeyTextBox_ClipPaste);
- this.groupBox_hotKey.Controls.Add(this.label7);
- this.groupBox_hotKey.Controls.Add(this.hotKeyTextBox_Clip);
- this.groupBox_hotKey.Controls.Add(this.hotKeyTextBox_Main);
- this.groupBox_hotKey.Location = new System.Drawing.Point(304, 6);
- this.groupBox_hotKey.Name = "groupBox_hotKey";
- this.groupBox_hotKey.Size = new System.Drawing.Size(203, 261);
- this.groupBox_hotKey.TabIndex = 6;
- this.groupBox_hotKey.TabStop = false;
- this.groupBox_hotKey.Text = "ホットキー";
- //
- // hotKeyTextBox_KeyPlay
- //
- this.hotKeyTextBox_KeyPlay.AcceptKeys = null;
- this.hotKeyTextBox_KeyPlay.DefaultText = "";
- this.hotKeyTextBox_KeyPlay.HotKeycode = 0;
- this.hotKeyTextBox_KeyPlay.ImeMode = System.Windows.Forms.ImeMode.Disable;
- this.hotKeyTextBox_KeyPlay.Location = new System.Drawing.Point(18, 216);
- this.hotKeyTextBox_KeyPlay.Name = "hotKeyTextBox_KeyPlay";
- this.hotKeyTextBox_KeyPlay.Size = new System.Drawing.Size(166, 19);
- this.hotKeyTextBox_KeyPlay.TabIndex = 10;
- this.hotKeyTextBox_KeyPlay.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // label18
- //
- this.label18.AutoSize = true;
- this.label18.Location = new System.Drawing.Point(16, 201);
- this.label18.Name = "label18";
- this.label18.Size = new System.Drawing.Size(78, 12);
- this.label18.TabIndex = 9;
- this.label18.Text = "キーボード再生";
- //
- // hotKeyTextBox_KeyRecord
- //
- this.hotKeyTextBox_KeyRecord.AcceptKeys = null;
- this.hotKeyTextBox_KeyRecord.DefaultText = "";
- this.hotKeyTextBox_KeyRecord.HotKeycode = 0;
- this.hotKeyTextBox_KeyRecord.ImeMode = System.Windows.Forms.ImeMode.Disable;
- this.hotKeyTextBox_KeyRecord.Location = new System.Drawing.Point(18, 176);
- this.hotKeyTextBox_KeyRecord.Name = "hotKeyTextBox_KeyRecord";
- this.hotKeyTextBox_KeyRecord.Size = new System.Drawing.Size(166, 19);
- this.hotKeyTextBox_KeyRecord.TabIndex = 8;
- this.hotKeyTextBox_KeyRecord.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // label17
- //
- this.label17.AutoSize = true;
- this.label17.Location = new System.Drawing.Point(16, 161);
- this.label17.Name = "label17";
- this.label17.Size = new System.Drawing.Size(78, 12);
- this.label17.TabIndex = 7;
- this.label17.Text = "キーボード記憶";
- //
- // label_hotKeyError
- //
- this.label_hotKeyError.AutoSize = true;
- this.label_hotKeyError.ForeColor = System.Drawing.Color.Red;
- this.label_hotKeyError.Location = new System.Drawing.Point(16, 21);
- this.label_hotKeyError.Name = "label_hotKeyError";
- this.label_hotKeyError.Size = new System.Drawing.Size(88, 12);
- this.label_hotKeyError.TabIndex = 6;
- this.label_hotKeyError.Text = "※重複しています";
- this.label_hotKeyError.Visible = false;
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(16, 39);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(49, 12);
- this.label1.TabIndex = 1;
- this.label1.Text = "ランチャー";
- //
- // label8
- //
- this.label8.AutoSize = true;
- this.label8.Location = new System.Drawing.Point(16, 121);
- this.label8.Name = "label8";
- this.label8.Size = new System.Drawing.Size(143, 12);
- this.label8.TabIndex = 5;
- this.label8.Text = "クリップボード文字列貼り付け";
- //
- // hotKeyTextBox_ClipPaste
- //
- this.hotKeyTextBox_ClipPaste.AcceptKeys = null;
- this.hotKeyTextBox_ClipPaste.DefaultText = "";
- this.hotKeyTextBox_ClipPaste.HotKeycode = 0;
- this.hotKeyTextBox_ClipPaste.ImeMode = System.Windows.Forms.ImeMode.Disable;
- this.hotKeyTextBox_ClipPaste.Location = new System.Drawing.Point(18, 136);
- this.hotKeyTextBox_ClipPaste.Name = "hotKeyTextBox_ClipPaste";
- this.hotKeyTextBox_ClipPaste.Size = new System.Drawing.Size(166, 19);
- this.hotKeyTextBox_ClipPaste.TabIndex = 3;
- this.hotKeyTextBox_ClipPaste.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // label7
- //
- this.label7.AutoSize = true;
- this.label7.Location = new System.Drawing.Point(16, 80);
- this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(89, 12);
- this.label7.TabIndex = 3;
- this.label7.Text = "クリップボードリスト";
- //
- // hotKeyTextBox_Clip
- //
- this.hotKeyTextBox_Clip.AcceptKeys = null;
- this.hotKeyTextBox_Clip.DefaultText = "";
- this.hotKeyTextBox_Clip.HotKeycode = 0;
- this.hotKeyTextBox_Clip.ImeMode = System.Windows.Forms.ImeMode.Disable;
- this.hotKeyTextBox_Clip.Location = new System.Drawing.Point(18, 95);
- this.hotKeyTextBox_Clip.Name = "hotKeyTextBox_Clip";
- this.hotKeyTextBox_Clip.Size = new System.Drawing.Size(166, 19);
- this.hotKeyTextBox_Clip.TabIndex = 2;
- this.hotKeyTextBox_Clip.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // hotKeyTextBox_Main
- //
- this.hotKeyTextBox_Main.AcceptKeys = null;
- this.hotKeyTextBox_Main.DefaultText = "";
- this.hotKeyTextBox_Main.HotKeycode = 0;
- this.hotKeyTextBox_Main.ImeMode = System.Windows.Forms.ImeMode.Disable;
- this.hotKeyTextBox_Main.Location = new System.Drawing.Point(18, 54);
- this.hotKeyTextBox_Main.Name = "hotKeyTextBox_Main";
- this.hotKeyTextBox_Main.Size = new System.Drawing.Size(166, 19);
- this.hotKeyTextBox_Main.TabIndex = 1;
- this.hotKeyTextBox_Main.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // tabPageSentence
- //
- this.tabPageSentence.BackColor = System.Drawing.Color.Transparent;
- this.tabPageSentence.Controls.Add(this.sentence_label_description);
- this.tabPageSentence.Controls.Add(this.sentence_textBox_description);
- this.tabPageSentence.Controls.Add(this.sentence_label_summary);
- this.tabPageSentence.Controls.Add(this.sentence_textBox_summary);
- this.tabPageSentence.Controls.Add(this.sentence_label_args);
- this.tabPageSentence.Controls.Add(this.sentence_textBox_args);
- this.tabPageSentence.Controls.Add(this.sentence_label_macroName);
- this.tabPageSentence.Controls.Add(this.sentence_textBox_macroName);
- this.tabPageSentence.Controls.Add(this.sentence_textBox_group);
- this.tabPageSentence.Controls.Add(this.sentence_label_group);
- this.tabPageSentence.Controls.Add(this.sentence_label_value);
- this.tabPageSentence.Controls.Add(this.sentence_textBox_value);
- this.tabPageSentence.Controls.Add(this.sentence_textBox_shortcut);
- this.tabPageSentence.Controls.Add(this.sentence_label_shortcut);
- this.tabPageSentence.Controls.Add(this.sentence_label_type);
- this.tabPageSentence.Controls.Add(this.sentence_label_name);
- this.tabPageSentence.Controls.Add(this.sentence_textBox_name);
- this.tabPageSentence.Controls.Add(this.sentence_textBox_type);
- this.tabPageSentence.Controls.Add(this.sentence_button_edit);
- this.tabPageSentence.Controls.Add(this.sentence_button_delete);
- this.tabPageSentence.Controls.Add(this.sentence_button_new);
- this.tabPageSentence.Controls.Add(this.sentence_radio0);
- this.tabPageSentence.Controls.Add(this.sentence_radio5);
- this.tabPageSentence.Controls.Add(this.sentence_radio4);
- this.tabPageSentence.Controls.Add(this.sentence_radio3);
- this.tabPageSentence.Controls.Add(this.sentence_radio2);
- this.tabPageSentence.Controls.Add(this.sentence_radio1);
- this.tabPageSentence.Controls.Add(this.sentence_iconListBox);
- this.tabPageSentence.Location = new System.Drawing.Point(4, 22);
- this.tabPageSentence.Name = "tabPageSentence";
- this.tabPageSentence.Size = new System.Drawing.Size(513, 286);
- this.tabPageSentence.TabIndex = 4;
- this.tabPageSentence.Text = "定型文";
- this.tabPageSentence.UseVisualStyleBackColor = true;
- //
- // sentence_label_description
- //
- this.sentence_label_description.AutoSize = true;
- this.sentence_label_description.BackColor = System.Drawing.Color.Transparent;
- this.sentence_label_description.Location = new System.Drawing.Point(168, 162);
- this.sentence_label_description.Name = "sentence_label_description";
- this.sentence_label_description.Size = new System.Drawing.Size(55, 12);
- this.sentence_label_description.TabIndex = 46;
- this.sentence_label_description.Text = "マクロ説明";
- this.sentence_label_description.Visible = false;
- //
- // sentence_textBox_description
- //
- this.sentence_textBox_description.AcceptsTab = true;
- this.sentence_textBox_description.Location = new System.Drawing.Point(168, 177);
- this.sentence_textBox_description.Multiline = true;
- this.sentence_textBox_description.Name = "sentence_textBox_description";
- this.sentence_textBox_description.ReadOnly = true;
- this.sentence_textBox_description.ScrollBars = System.Windows.Forms.ScrollBars.Both;
- this.sentence_textBox_description.Size = new System.Drawing.Size(337, 70);
- this.sentence_textBox_description.TabIndex = 45;
- this.sentence_textBox_description.Visible = false;
- //
- // sentence_label_summary
- //
- this.sentence_label_summary.AutoSize = true;
- this.sentence_label_summary.BackColor = System.Drawing.Color.Transparent;
- this.sentence_label_summary.Location = new System.Drawing.Point(168, 121);
- this.sentence_label_summary.Name = "sentence_label_summary";
- this.sentence_label_summary.Size = new System.Drawing.Size(55, 12);
- this.sentence_label_summary.TabIndex = 44;
- this.sentence_label_summary.Text = "マクロ概要";
- this.sentence_label_summary.Visible = false;
- //
- // sentence_textBox_summary
- //
- this.sentence_textBox_summary.Location = new System.Drawing.Point(170, 136);
- this.sentence_textBox_summary.Name = "sentence_textBox_summary";
- this.sentence_textBox_summary.ReadOnly = true;
- this.sentence_textBox_summary.Size = new System.Drawing.Size(335, 19);
- this.sentence_textBox_summary.TabIndex = 43;
- this.sentence_textBox_summary.Visible = false;
- //
- // sentence_label_args
- //
- this.sentence_label_args.AutoSize = true;
- this.sentence_label_args.BackColor = System.Drawing.Color.Transparent;
- this.sentence_label_args.Location = new System.Drawing.Point(332, 82);
- this.sentence_label_args.Name = "sentence_label_args";
- this.sentence_label_args.Size = new System.Drawing.Size(29, 12);
- this.sentence_label_args.TabIndex = 42;
- this.sentence_label_args.Text = "引数";
- this.sentence_label_args.Visible = false;
- //
- // sentence_textBox_args
- //
- this.sentence_textBox_args.Location = new System.Drawing.Point(334, 97);
- this.sentence_textBox_args.Name = "sentence_textBox_args";
- this.sentence_textBox_args.ReadOnly = true;
- this.sentence_textBox_args.Size = new System.Drawing.Size(171, 19);
- this.sentence_textBox_args.TabIndex = 41;
- this.sentence_textBox_args.Visible = false;
- //
- // sentence_label_macroName
- //
- this.sentence_label_macroName.AutoSize = true;
- this.sentence_label_macroName.BackColor = System.Drawing.Color.Transparent;
- this.sentence_label_macroName.Location = new System.Drawing.Point(168, 82);
- this.sentence_label_macroName.Name = "sentence_label_macroName";
- this.sentence_label_macroName.Size = new System.Drawing.Size(43, 12);
- this.sentence_label_macroName.TabIndex = 40;
- this.sentence_label_macroName.Text = "マクロ名";
- this.sentence_label_macroName.Visible = false;
- //
- // sentence_textBox_macroName
- //
- this.sentence_textBox_macroName.Location = new System.Drawing.Point(170, 97);
- this.sentence_textBox_macroName.Name = "sentence_textBox_macroName";
- this.sentence_textBox_macroName.ReadOnly = true;
- this.sentence_textBox_macroName.Size = new System.Drawing.Size(157, 19);
- this.sentence_textBox_macroName.TabIndex = 39;
- this.sentence_textBox_macroName.Visible = false;
- //
- // sentence_textBox_group
- //
- this.sentence_textBox_group.Location = new System.Drawing.Point(6, 22);
- this.sentence_textBox_group.Name = "sentence_textBox_group";
- this.sentence_textBox_group.Size = new System.Drawing.Size(157, 19);
- this.sentence_textBox_group.TabIndex = 36;
- this.sentence_textBox_group.TextChanged += new System.EventHandler(this.sentence_textBox_group_TextChanged);
- //
- // sentence_label_group
- //
- this.sentence_label_group.AutoSize = true;
- this.sentence_label_group.BackColor = System.Drawing.Color.Transparent;
- this.sentence_label_group.Location = new System.Drawing.Point(4, 6);
- this.sentence_label_group.Name = "sentence_label_group";
- this.sentence_label_group.Size = new System.Drawing.Size(55, 12);
- this.sentence_label_group.TabIndex = 35;
- this.sentence_label_group.Text = "グループ名";
- //
- // sentence_label_value
- //
- this.sentence_label_value.AutoSize = true;
- this.sentence_label_value.BackColor = System.Drawing.Color.Transparent;
- this.sentence_label_value.Location = new System.Drawing.Point(168, 82);
- this.sentence_label_value.Name = "sentence_label_value";
- this.sentence_label_value.Size = new System.Drawing.Size(41, 12);
- this.sentence_label_value.TabIndex = 34;
- this.sentence_label_value.Text = "定型文";
- //
- // sentence_textBox_value
- //
- this.sentence_textBox_value.AcceptsTab = true;
- this.sentence_textBox_value.Location = new System.Drawing.Point(168, 97);
- this.sentence_textBox_value.Multiline = true;
- this.sentence_textBox_value.Name = "sentence_textBox_value";
- this.sentence_textBox_value.ReadOnly = true;
- this.sentence_textBox_value.ScrollBars = System.Windows.Forms.ScrollBars.Both;
- this.sentence_textBox_value.Size = new System.Drawing.Size(332, 150);
- this.sentence_textBox_value.TabIndex = 29;
- //
- // sentence_textBox_shortcut
- //
- this.sentence_textBox_shortcut.Location = new System.Drawing.Point(334, 59);
- this.sentence_textBox_shortcut.Name = "sentence_textBox_shortcut";
- this.sentence_textBox_shortcut.ReadOnly = true;
- this.sentence_textBox_shortcut.Size = new System.Drawing.Size(171, 19);
- this.sentence_textBox_shortcut.TabIndex = 27;
- //
- // sentence_label_shortcut
- //
- this.sentence_label_shortcut.AutoSize = true;
- this.sentence_label_shortcut.BackColor = System.Drawing.Color.Transparent;
- this.sentence_label_shortcut.Location = new System.Drawing.Point(332, 44);
- this.sentence_label_shortcut.Name = "sentence_label_shortcut";
- this.sentence_label_shortcut.Size = new System.Drawing.Size(83, 12);
- this.sentence_label_shortcut.TabIndex = 32;
- this.sentence_label_shortcut.Text = "ショートカットキー";
- //
- // sentence_label_type
- //
- this.sentence_label_type.AutoSize = true;
- this.sentence_label_type.BackColor = System.Drawing.Color.Transparent;
- this.sentence_label_type.Location = new System.Drawing.Point(168, 44);
- this.sentence_label_type.Name = "sentence_label_type";
- this.sentence_label_type.Size = new System.Drawing.Size(31, 12);
- this.sentence_label_type.TabIndex = 31;
- this.sentence_label_type.Text = "タイプ";
- //
- // sentence_label_name
- //
- this.sentence_label_name.AutoSize = true;
- this.sentence_label_name.BackColor = System.Drawing.Color.Transparent;
- this.sentence_label_name.Location = new System.Drawing.Point(168, 6);
- this.sentence_label_name.Name = "sentence_label_name";
- this.sentence_label_name.Size = new System.Drawing.Size(41, 12);
- this.sentence_label_name.TabIndex = 30;
- this.sentence_label_name.Text = "設定名";
- //
- // sentence_textBox_name
- //
- this.sentence_textBox_name.Location = new System.Drawing.Point(170, 22);
- this.sentence_textBox_name.Name = "sentence_textBox_name";
- this.sentence_textBox_name.ReadOnly = true;
- this.sentence_textBox_name.Size = new System.Drawing.Size(335, 19);
- this.sentence_textBox_name.TabIndex = 25;
- //
- // sentence_textBox_type
- //
- this.sentence_textBox_type.Location = new System.Drawing.Point(170, 59);
- this.sentence_textBox_type.Name = "sentence_textBox_type";
- this.sentence_textBox_type.ReadOnly = true;
- this.sentence_textBox_type.Size = new System.Drawing.Size(157, 19);
- this.sentence_textBox_type.TabIndex = 26;
- //
- // sentence_button_edit
- //
- this.sentence_button_edit.Location = new System.Drawing.Point(240, 252);
- this.sentence_button_edit.Name = "sentence_button_edit";
- this.sentence_button_edit.Size = new System.Drawing.Size(64, 24);
- this.sentence_button_edit.TabIndex = 12;
- this.sentence_button_edit.Text = "編集";
- this.sentence_button_edit.UseVisualStyleBackColor = true;
- this.sentence_button_edit.Click += new System.EventHandler(this.sentence_button_edit_Click);
- //
- // sentence_button_delete
- //
- this.sentence_button_delete.Location = new System.Drawing.Point(310, 252);
- this.sentence_button_delete.Name = "sentence_button_delete";
- this.sentence_button_delete.Size = new System.Drawing.Size(64, 24);
- this.sentence_button_delete.TabIndex = 11;
- this.sentence_button_delete.Text = "削除";
- this.sentence_button_delete.UseVisualStyleBackColor = true;
- this.sentence_button_delete.Click += new System.EventHandler(this.sentence_button_delete_Click);
- //
- // sentence_button_new
- //
- this.sentence_button_new.Location = new System.Drawing.Point(170, 252);
- this.sentence_button_new.Name = "sentence_button_new";
- this.sentence_button_new.Size = new System.Drawing.Size(64, 24);
- this.sentence_button_new.TabIndex = 10;
- this.sentence_button_new.Text = "新規";
- this.sentence_button_new.UseVisualStyleBackColor = true;
- this.sentence_button_new.Click += new System.EventHandler(this.sentence_button_new_Click);
- //
- // sentence_radio0
- //
- this.sentence_radio0.Appearance = System.Windows.Forms.Appearance.Button;
- this.sentence_radio0.AutoSize = true;
- this.sentence_radio0.Location = new System.Drawing.Point(141, 254);
- this.sentence_radio0.Name = "sentence_radio0";
- this.sentence_radio0.Size = new System.Drawing.Size(21, 22);
- this.sentence_radio0.TabIndex = 9;
- this.sentence_radio0.Text = "0";
- this.sentence_radio0.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- this.sentence_radio0.UseVisualStyleBackColor = true;
- this.sentence_radio0.CheckedChanged += new System.EventHandler(this.sentence_radio0_CheckedChanged);
- //
- // sentence_radio5
- //
- this.sentence_radio5.Appearance = System.Windows.Forms.Appearance.Button;
- this.sentence_radio5.AutoSize = true;
- this.sentence_radio5.Location = new System.Drawing.Point(114, 254);
- this.sentence_radio5.Name = "sentence_radio5";
- this.sentence_radio5.Size = new System.Drawing.Size(21, 22);
- this.sentence_radio5.TabIndex = 8;
- this.sentence_radio5.Text = "5";
- this.sentence_radio5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- this.sentence_radio5.UseVisualStyleBackColor = true;
- this.sentence_radio5.CheckedChanged += new System.EventHandler(this.sentence_radio5_CheckedChanged);
- //
- // sentence_radio4
- //
- this.sentence_radio4.Appearance = System.Windows.Forms.Appearance.Button;
- this.sentence_radio4.AutoSize = true;
- this.sentence_radio4.Location = new System.Drawing.Point(87, 254);
- this.sentence_radio4.Name = "sentence_radio4";
- this.sentence_radio4.Size = new System.Drawing.Size(21, 22);
- this.sentence_radio4.TabIndex = 7;
- this.sentence_radio4.Text = "4";
- this.sentence_radio4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- this.sentence_radio4.UseVisualStyleBackColor = true;
- this.sentence_radio4.CheckedChanged += new System.EventHandler(this.sentence_radio4_CheckedChanged);
- //
- // sentence_radio3
- //
- this.sentence_radio3.Appearance = System.Windows.Forms.Appearance.Button;
- this.sentence_radio3.AutoSize = true;
- this.sentence_radio3.Location = new System.Drawing.Point(60, 254);
- this.sentence_radio3.Name = "sentence_radio3";
- this.sentence_radio3.Size = new System.Drawing.Size(21, 22);
- this.sentence_radio3.TabIndex = 6;
- this.sentence_radio3.Text = "3";
- this.sentence_radio3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- this.sentence_radio3.UseVisualStyleBackColor = true;
- this.sentence_radio3.CheckedChanged += new System.EventHandler(this.sentence_radio3_CheckedChanged);
- //
- // sentence_radio2
- //
- this.sentence_radio2.Appearance = System.Windows.Forms.Appearance.Button;
- this.sentence_radio2.AutoSize = true;
- this.sentence_radio2.Location = new System.Drawing.Point(33, 254);
- this.sentence_radio2.Name = "sentence_radio2";
- this.sentence_radio2.Size = new System.Drawing.Size(21, 22);
- this.sentence_radio2.TabIndex = 5;
- this.sentence_radio2.Text = "2";
- this.sentence_radio2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- this.sentence_radio2.UseVisualStyleBackColor = true;
- this.sentence_radio2.CheckedChanged += new System.EventHandler(this.sentence_radio2_CheckedChanged);
- //
- // sentence_radio1
- //
- this.sentence_radio1.Appearance = System.Windows.Forms.Appearance.Button;
- this.sentence_radio1.AutoSize = true;
- this.sentence_radio1.Location = new System.Drawing.Point(6, 254);
- this.sentence_radio1.Name = "sentence_radio1";
- this.sentence_radio1.Size = new System.Drawing.Size(21, 22);
- this.sentence_radio1.TabIndex = 4;
- this.sentence_radio1.Text = "1";
- this.sentence_radio1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- this.sentence_radio1.UseVisualStyleBackColor = true;
- this.sentence_radio1.CheckedChanged += new System.EventHandler(this.sentence_radio1_CheckedChanged);
- //
- // sentence_iconListBox
- //
- this.sentence_iconListBox.AllowDrop = true;
- this.sentence_iconListBox.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
- this.sentence_iconListBox.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.sentence_iconListBox.FormattingEnabled = true;
- this.sentence_iconListBox.ItemHeight = 18;
- this.sentence_iconListBox.Location = new System.Drawing.Point(6, 44);
- this.sentence_iconListBox.Name = "sentence_iconListBox";
- this.sentence_iconListBox.PreSelectedBackgroundImage = global::Lugens.Passer.Properties.Resources.preselect_7;
- this.sentence_iconListBox.SearchItemMode = true;
- this.sentence_iconListBox.SelectedBackgroundImage = global::Lugens.Passer.Properties.Resources.select_7;
- this.sentence_iconListBox.Size = new System.Drawing.Size(156, 202);
- this.sentence_iconListBox.Status = 1;
- this.sentence_iconListBox.TabIndex = 38;
- this.sentence_iconListBox.ViewMode = Lugens.Components.ViewMode.IconText;
- this.sentence_iconListBox.SelectedIndexChanged += new System.EventHandler(this.sentence_iconListBox_SelectedIndexChanged);
- this.sentence_iconListBox.DragDrop += new System.Windows.Forms.DragEventHandler(this.sentence_iconListBox_DragDrop);
- this.sentence_iconListBox.DragEnter += new System.Windows.Forms.DragEventHandler(this.sentence_iconListBox_DragEnter_1);
- this.sentence_iconListBox.QueryContinueDrag += new System.Windows.Forms.QueryContinueDragEventHandler(this.sentence_iconListBox_QueryContinueDrag);
- this.sentence_iconListBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.sentence_iconListBox_KeyDown);
- this.sentence_iconListBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.sentence_iconListBox_MouseDown);
- this.sentence_iconListBox.MouseEnter += new System.EventHandler(this.sentence_iconListBox_MouseEnter);
- this.sentence_iconListBox.MouseMove += new System.Windows.Forms.MouseEventHandler(this.sentence_iconListBox_MouseMove);
- this.sentence_iconListBox.MouseUp += new System.Windows.Forms.MouseEventHandler(this.sentence_iconListBox_MouseUp);
- //
- // tabPageEngine
- //
- this.tabPageEngine.Controls.Add(this.engine_textBox_url);
- this.tabPageEngine.Controls.Add(this.label24);
- this.tabPageEngine.Controls.Add(this.engine_textBox_suggestUrl);
- this.tabPageEngine.Controls.Add(this.label_engine_suggestUrl);
- this.tabPageEngine.Controls.Add(this.label21);
- this.tabPageEngine.Controls.Add(this.engine_textBox_comment);
- this.tabPageEngine.Controls.Add(this.label11);
- this.tabPageEngine.Controls.Add(this.engine_textBox_shortcut);
- this.tabPageEngine.Controls.Add(this.label12);
- this.tabPageEngine.Controls.Add(this.engine_textBox_display);
- this.tabPageEngine.Controls.Add(this.label13);
- this.tabPageEngine.Controls.Add(this.engine_textBox_searchUrl);
- this.tabPageEngine.Controls.Add(this.engine_pictureBox);
- this.tabPageEngine.Controls.Add(this.label9);
- this.tabPageEngine.Controls.Add(this.label10);
- this.tabPageEngine.Controls.Add(this.engine_textBox_name);
- this.tabPageEngine.Controls.Add(this.engine_button_edit);
- this.tabPageEngine.Controls.Add(this.engine_button_delete);
- this.tabPageEngine.Controls.Add(this.engine_button_new);
- this.tabPageEngine.Controls.Add(this.engine_iconListBox);
- this.tabPageEngine.Location = new System.Drawing.Point(4, 22);
- this.tabPageEngine.Name = "tabPageEngine";
- this.tabPageEngine.Size = new System.Drawing.Size(513, 286);
- this.tabPageEngine.TabIndex = 6;
- this.tabPageEngine.Text = "検索エンジン";
- this.tabPageEngine.UseVisualStyleBackColor = true;
- //
- // engine_textBox_url
- //
- this.engine_textBox_url.Location = new System.Drawing.Point(163, 62);
- this.engine_textBox_url.Name = "engine_textBox_url";
- this.engine_textBox_url.ReadOnly = true;
- this.engine_textBox_url.Size = new System.Drawing.Size(342, 19);
- this.engine_textBox_url.TabIndex = 54;
- //
- // label24
- //
- this.label24.AutoSize = true;
- this.label24.BackColor = System.Drawing.Color.Transparent;
- this.label24.Location = new System.Drawing.Point(165, 47);
- this.label24.Name = "label24";
- this.label24.Size = new System.Drawing.Size(27, 12);
- this.label24.TabIndex = 53;
- this.label24.Text = "URL";
- //
- // engine_textBox_suggestUrl
- //
- this.engine_textBox_suggestUrl.Location = new System.Drawing.Point(163, 137);
- this.engine_textBox_suggestUrl.Name = "engine_textBox_suggestUrl";
- this.engine_textBox_suggestUrl.ReadOnly = true;
- this.engine_textBox_suggestUrl.Size = new System.Drawing.Size(342, 19);
- this.engine_textBox_suggestUrl.TabIndex = 52;
- //
- // label_engine_suggestUrl
- //
- this.label_engine_suggestUrl.AutoSize = true;
- this.label_engine_suggestUrl.BackColor = System.Drawing.Color.Transparent;
- this.label_engine_suggestUrl.Location = new System.Drawing.Point(165, 122);
- this.label_engine_suggestUrl.Name = "label_engine_suggestUrl";
- this.label_engine_suggestUrl.Size = new System.Drawing.Size(71, 12);
- this.label_engine_suggestUrl.TabIndex = 51;
- this.label_engine_suggestUrl.Text = "サジェストURL";
- //
- // label21
- //
- this.label21.AutoSize = true;
- this.label21.BackColor = System.Drawing.Color.Transparent;
- this.label21.Location = new System.Drawing.Point(165, 197);
- this.label21.Name = "label21";
- this.label21.Size = new System.Drawing.Size(38, 12);
- this.label21.TabIndex = 50;
- this.label21.Text = "コメント";
- this.label21.Visible = false;
- //
- // engine_textBox_comment
- //
- this.engine_textBox_comment.AcceptsReturn = true;
- this.engine_textBox_comment.AcceptsTab = true;
- this.engine_textBox_comment.Location = new System.Drawing.Point(163, 212);
- this.engine_textBox_comment.Multiline = true;
- this.engine_textBox_comment.Name = "engine_textBox_comment";
- this.engine_textBox_comment.ReadOnly = true;
- this.engine_textBox_comment.Size = new System.Drawing.Size(342, 22);
- this.engine_textBox_comment.TabIndex = 49;
- this.engine_textBox_comment.Visible = false;
- //
- // label11
- //
- this.label11.AutoSize = true;
- this.label11.BackColor = System.Drawing.Color.Transparent;
- this.label11.Location = new System.Drawing.Point(343, 160);
- this.label11.Name = "label11";
- this.label11.Size = new System.Drawing.Size(80, 12);
- this.label11.TabIndex = 48;
- this.label11.Text = "ショットカットキー";
- //
- // engine_textBox_shortcut
- //
- this.engine_textBox_shortcut.Location = new System.Drawing.Point(345, 175);
- this.engine_textBox_shortcut.Name = "engine_textBox_shortcut";
- this.engine_textBox_shortcut.ReadOnly = true;
- this.engine_textBox_shortcut.Size = new System.Drawing.Size(160, 19);
- this.engine_textBox_shortcut.TabIndex = 47;
- //
- // label12
- //
- this.label12.AutoSize = true;
- this.label12.BackColor = System.Drawing.Color.Transparent;
- this.label12.Location = new System.Drawing.Point(163, 160);
- this.label12.Name = "label12";
- this.label12.Size = new System.Drawing.Size(41, 12);
- this.label12.TabIndex = 46;
- this.label12.Text = "表示名";
- //
- // engine_textBox_display
- //
- this.engine_textBox_display.Location = new System.Drawing.Point(165, 175);
- this.engine_textBox_display.Name = "engine_textBox_display";
- this.engine_textBox_display.ReadOnly = true;
- this.engine_textBox_display.Size = new System.Drawing.Size(174, 19);
- this.engine_textBox_display.TabIndex = 45;
- //
- // label13
- //
- this.label13.AutoSize = true;
- this.label13.BackColor = System.Drawing.Color.Transparent;
- this.label13.Location = new System.Drawing.Point(163, 160);
- this.label13.Name = "label13";
- this.label13.Size = new System.Drawing.Size(41, 12);
- this.label13.TabIndex = 44;
- this.label13.Text = "定型文";
- //
- // engine_textBox_searchUrl
- //
- this.engine_textBox_searchUrl.Location = new System.Drawing.Point(163, 99);
- this.engine_textBox_searchUrl.Name = "engine_textBox_searchUrl";
- this.engine_textBox_searchUrl.ReadOnly = true;
- this.engine_textBox_searchUrl.Size = new System.Drawing.Size(342, 19);
- this.engine_textBox_searchUrl.TabIndex = 36;
- //
- // engine_pictureBox
- //
- this.engine_pictureBox.BackColor = System.Drawing.Color.Transparent;
- this.engine_pictureBox.Location = new System.Drawing.Point(407, 26);
- this.engine_pictureBox.Name = "engine_pictureBox";
- this.engine_pictureBox.Size = new System.Drawing.Size(16, 16);
- this.engine_pictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
- this.engine_pictureBox.TabIndex = 35;
- this.engine_pictureBox.TabStop = false;
- //
- // label9
- //
- this.label9.AutoSize = true;
- this.label9.BackColor = System.Drawing.Color.Transparent;
- this.label9.Location = new System.Drawing.Point(165, 84);
- this.label9.Name = "label9";
- this.label9.Size = new System.Drawing.Size(51, 12);
- this.label9.TabIndex = 34;
- this.label9.Text = "検索URL";
- //
- // label10
- //
- this.label10.AutoSize = true;
- this.label10.BackColor = System.Drawing.Color.Transparent;
- this.label10.Location = new System.Drawing.Point(163, 10);
- this.label10.Name = "label10";
- this.label10.Size = new System.Drawing.Size(41, 12);
- this.label10.TabIndex = 33;
- this.label10.Text = "設定名";
- //
- // engine_textBox_name
- //
- this.engine_textBox_name.Location = new System.Drawing.Point(163, 25);
- this.engine_textBox_name.Name = "engine_textBox_name";
- this.engine_textBox_name.ReadOnly = true;
- this.engine_textBox_name.Size = new System.Drawing.Size(238, 19);
- this.engine_textBox_name.TabIndex = 32;
- //
- // engine_button_edit
- //
- this.engine_button_edit.Enabled = false;
- this.engine_button_edit.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.engine_button_edit.Location = new System.Drawing.Point(77, 254);
- this.engine_button_edit.Name = "engine_button_edit";
- this.engine_button_edit.Size = new System.Drawing.Size(64, 24);
- this.engine_button_edit.TabIndex = 31;
- this.engine_button_edit.Text = "編集";
- this.engine_button_edit.Click += new System.EventHandler(this.engine_button_edit_Click);
- //
- // engine_button_delete
- //
- this.engine_button_delete.Enabled = false;
- this.engine_button_delete.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.engine_button_delete.Location = new System.Drawing.Point(147, 254);
- this.engine_button_delete.Name = "engine_button_delete";
- this.engine_button_delete.Size = new System.Drawing.Size(64, 24);
- this.engine_button_delete.TabIndex = 30;
- this.engine_button_delete.Text = "削除";
- this.engine_button_delete.Click += new System.EventHandler(this.engine_button_delete_Click);
- //
- // engine_button_new
- //
- this.engine_button_new.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.engine_button_new.Location = new System.Drawing.Point(7, 254);
- this.engine_button_new.Name = "engine_button_new";
- this.engine_button_new.Size = new System.Drawing.Size(64, 24);
- this.engine_button_new.TabIndex = 29;
- this.engine_button_new.Text = "新規";
- this.engine_button_new.Click += new System.EventHandler(this.engine_button_new_Click);
- //
- // engine_iconListBox
- //
- this.engine_iconListBox.AllowDrop = true;
- this.engine_iconListBox.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
- this.engine_iconListBox.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.engine_iconListBox.FormattingEnabled = true;
- this.engine_iconListBox.ItemHeight = 18;
- this.engine_iconListBox.Location = new System.Drawing.Point(7, 10);
- this.engine_iconListBox.Name = "engine_iconListBox";
- this.engine_iconListBox.PreSelectedBackgroundImage = global::Lugens.Passer.Properties.Resources.preselect_7;
- this.engine_iconListBox.SearchItemMode = true;
- this.engine_iconListBox.SelectedBackgroundImage = global::Lugens.Passer.Properties.Resources.select_7;
- this.engine_iconListBox.Size = new System.Drawing.Size(150, 238);
- this.engine_iconListBox.Status = 1;
- this.engine_iconListBox.TabIndex = 28;
- this.engine_iconListBox.ViewMode = Lugens.Components.ViewMode.IconText;
- this.engine_iconListBox.SelectedIndexChanged += new System.EventHandler(this.engine_iconListBox_SelectedIndexChanged);
- this.engine_iconListBox.DragDrop += new System.Windows.Forms.DragEventHandler(this.engine_iconListBox_DragDrop);
- this.engine_iconListBox.DragEnter += new System.Windows.Forms.DragEventHandler(this.engine_iconListBox_DragEnter);
- this.engine_iconListBox.QueryContinueDrag += new System.Windows.Forms.QueryContinueDragEventHandler(this.engine_iconListBox_QueryContinueDrag);
- this.engine_iconListBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.engine_iconListBox_MouseDown);
- this.engine_iconListBox.MouseEnter += new System.EventHandler(this.engine_iconListBox_MouseEnter);
- this.engine_iconListBox.MouseMove += new System.Windows.Forms.MouseEventHandler(this.engine_iconListBox_MouseMove);
- this.engine_iconListBox.MouseUp += new System.Windows.Forms.MouseEventHandler(this.engine_iconListBox_MouseUp);
- //
- // tabPageMacro
- //
- this.tabPageMacro.BackColor = System.Drawing.Color.Transparent;
- this.tabPageMacro.Controls.Add(this.macro_textBox_summary);
- this.tabPageMacro.Controls.Add(this.label20);
- this.tabPageMacro.Controls.Add(this.label19);
- this.tabPageMacro.Controls.Add(this.macro_textBox_description);
- this.tabPageMacro.Controls.Add(this.label22);
- this.tabPageMacro.Controls.Add(this.label23);
- this.tabPageMacro.Controls.Add(this.macro_textBox_id);
- this.tabPageMacro.Controls.Add(this.macro_iconListBox);
- this.tabPageMacro.Location = new System.Drawing.Point(4, 22);
- this.tabPageMacro.Name = "tabPageMacro";
- this.tabPageMacro.Padding = new System.Windows.Forms.Padding(3);
- this.tabPageMacro.Size = new System.Drawing.Size(513, 286);
- this.tabPageMacro.TabIndex = 5;
- this.tabPageMacro.Text = "マクロ一覧";
- this.tabPageMacro.UseVisualStyleBackColor = true;
- //
- // macro_textBox_summary
- //
- this.macro_textBox_summary.Location = new System.Drawing.Point(167, 59);
- this.macro_textBox_summary.Name = "macro_textBox_summary";
- this.macro_textBox_summary.ReadOnly = true;
- this.macro_textBox_summary.Size = new System.Drawing.Size(330, 19);
- this.macro_textBox_summary.TabIndex = 43;
- //
- // label20
- //
- this.label20.AutoSize = true;
- this.label20.Location = new System.Drawing.Point(167, 44);
- this.label20.Name = "label20";
- this.label20.Size = new System.Drawing.Size(53, 12);
- this.label20.TabIndex = 42;
- this.label20.Text = "機能概要";
- //
- // label19
- //
- this.label19.AutoSize = true;
- this.label19.Location = new System.Drawing.Point(167, 81);
- this.label19.Name = "label19";
- this.label19.Size = new System.Drawing.Size(53, 12);
- this.label19.TabIndex = 37;
- this.label19.Text = "機能説明";
- //
- // macro_textBox_description
- //
- this.macro_textBox_description.Font = new System.Drawing.Font("MS ゴシック", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
- this.macro_textBox_description.Location = new System.Drawing.Point(167, 96);
- this.macro_textBox_description.Multiline = true;
- this.macro_textBox_description.Name = "macro_textBox_description";
- this.macro_textBox_description.ReadOnly = true;
- this.macro_textBox_description.Size = new System.Drawing.Size(330, 184);
- this.macro_textBox_description.TabIndex = 32;
- //
- // label22
- //
- this.label22.AutoSize = true;
- this.label22.Location = new System.Drawing.Point(165, 6);
- this.label22.Name = "label22";
- this.label22.Size = new System.Drawing.Size(42, 12);
- this.label22.TabIndex = 34;
- this.label22.Text = "マクロID";
- //
- // label23
- //
- this.label23.AutoSize = true;
- this.label23.Location = new System.Drawing.Point(142, 5);
- this.label23.Name = "label23";
- this.label23.Size = new System.Drawing.Size(0, 12);
- this.label23.TabIndex = 33;
- //
- // macro_textBox_id
- //
- this.macro_textBox_id.Location = new System.Drawing.Point(167, 22);
- this.macro_textBox_id.Name = "macro_textBox_id";
- this.macro_textBox_id.ReadOnly = true;
- this.macro_textBox_id.Size = new System.Drawing.Size(330, 19);
- this.macro_textBox_id.TabIndex = 29;
- //
- // macro_iconListBox
- //
- this.macro_iconListBox.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
- this.macro_iconListBox.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.macro_iconListBox.FormattingEnabled = true;
- this.macro_iconListBox.ItemHeight = 18;
- this.macro_iconListBox.Location = new System.Drawing.Point(4, 6);
- this.macro_iconListBox.Name = "macro_iconListBox";
- this.macro_iconListBox.PreSelectedBackgroundImage = global::Lugens.Passer.Properties.Resources.preselect_7;
- this.macro_iconListBox.SearchItemMode = true;
- this.macro_iconListBox.SelectedBackgroundImage = ((System.Drawing.Image)(resources.GetObject("macro_iconListBox.SelectedBackgroundImage")));
- this.macro_iconListBox.Size = new System.Drawing.Size(157, 274);
- this.macro_iconListBox.Status = 1;
- this.macro_iconListBox.TabIndex = 41;
- this.macro_iconListBox.ViewMode = Lugens.Components.ViewMode.IconText;
- this.macro_iconListBox.SelectedIndexChanged += new System.EventHandler(this.macro_iconListBox_SelectedIndexChanged);
- //
- // columnHeader1
- //
- this.columnHeader1.Width = 105;
- //
- // SettingForm
- //
- this.AllowDrop = true;
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(545, 360);
- this.ControlBox = false;
- this.Controls.Add(this.button_cancel);
- this.Controls.Add(this.button_ok);
- this.Controls.Add(this.tabControl);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
- this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "SettingForm";
- this.ShowInTaskbar = false;
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "設定";
- this.TopMost = true;
- this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.SettingForm_FormClosing);
- this.DragDrop += new System.Windows.Forms.DragEventHandler(this.SettingForm_DragDrop);
- this.DragEnter += new System.Windows.Forms.DragEventHandler(this.SettingForm_DragEnter);
- this.tabPageCommand.ResumeLayout(false);
- this.tabPageCommand.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.command_pictureBox1)).EndInit();
- this.tabControl.ResumeLayout(false);
- this.tabPageSetting.ResumeLayout(false);
- this.tabPageSetting.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.trackBar_opacity)).EndInit();
- this.groupBox_hotKey.ResumeLayout(false);
- this.groupBox_hotKey.PerformLayout();
- this.tabPageSentence.ResumeLayout(false);
- this.tabPageSentence.PerformLayout();
- this.tabPageEngine.ResumeLayout(false);
- this.tabPageEngine.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.engine_pictureBox)).EndInit();
- this.tabPageMacro.ResumeLayout(false);
- this.tabPageMacro.PerformLayout();
- this.ResumeLayout(false);
-
+ {\r
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SettingForm));\r
+ this.button_ok = new System.Windows.Forms.Button();\r
+ this.button_cancel = new System.Windows.Forms.Button();\r
+ this.tabPageCommand = new System.Windows.Forms.TabPage();\r
+ this.command_iconListBox = new Lugens.Components.IconListBox();\r
+ this.command_button_edit = new System.Windows.Forms.Button();\r
+ this.command_pictureBox1 = new System.Windows.Forms.PictureBox();\r
+ this.command_textBox_arguments = new System.Windows.Forms.TextBox();\r
+ this.label6 = new System.Windows.Forms.Label();\r
+ this.command_textBox_comment = new System.Windows.Forms.TextBox();\r
+ this.label5 = new System.Windows.Forms.Label();\r
+ this.command_textBox_path = new System.Windows.Forms.TextBox();\r
+ this.label4 = new System.Windows.Forms.Label();\r
+ this.label3 = new System.Windows.Forms.Label();\r
+ this.label2 = new System.Windows.Forms.Label();\r
+ this.command_button_delete = new System.Windows.Forms.Button();\r
+ this.command_textBox_name = new System.Windows.Forms.TextBox();\r
+ this.command_textBox_target = new System.Windows.Forms.TextBox();\r
+ this.command_button_new = new System.Windows.Forms.Button();\r
+ this.tabControl = new System.Windows.Forms.TabControl();\r
+ this.tabPageSetting = new System.Windows.Forms.TabPage();\r
+ this.checkBox_memorizeEngine = new System.Windows.Forms.CheckBox();\r
+ this.checkBox_showBalloonWhileRecoding = new System.Windows.Forms.CheckBox();\r
+ this.checkBox_fadeIn = new System.Windows.Forms.CheckBox();\r
+ this.checkBox_sendRecordToClipboard = new System.Windows.Forms.CheckBox();\r
+ this.checkBox_showScriptToolTip = new System.Windows.Forms.CheckBox();\r
+ this.label16 = new System.Windows.Forms.Label();\r
+ this.label15 = new System.Windows.Forms.Label();\r
+ this.label14 = new System.Windows.Forms.Label();\r
+ this.textBox_opacity = new System.Windows.Forms.TextBox();\r
+ this.trackBar_opacity = new System.Windows.Forms.TrackBar();\r
+ this.groupBox_hotKey = new System.Windows.Forms.GroupBox();\r
+ this.hotKeyTextBox_KeyPlay = new Lugens.Components.HotKeyTextBox();\r
+ this.label18 = new System.Windows.Forms.Label();\r
+ this.hotKeyTextBox_KeyRecord = new Lugens.Components.HotKeyTextBox();\r
+ this.label17 = new System.Windows.Forms.Label();\r
+ this.label_hotKeyError = new System.Windows.Forms.Label();\r
+ this.label1 = new System.Windows.Forms.Label();\r
+ this.label8 = new System.Windows.Forms.Label();\r
+ this.hotKeyTextBox_ClipPaste = new Lugens.Components.HotKeyTextBox();\r
+ this.label7 = new System.Windows.Forms.Label();\r
+ this.hotKeyTextBox_Clip = new Lugens.Components.HotKeyTextBox();\r
+ this.hotKeyTextBox_Main = new Lugens.Components.HotKeyTextBox();\r
+ this.tabPageSentence = new System.Windows.Forms.TabPage();\r
+ this.sentence_label_description = new System.Windows.Forms.Label();\r
+ this.sentence_textBox_description = new System.Windows.Forms.TextBox();\r
+ this.sentence_label_summary = new System.Windows.Forms.Label();\r
+ this.sentence_textBox_summary = new System.Windows.Forms.TextBox();\r
+ this.sentence_label_args = new System.Windows.Forms.Label();\r
+ this.sentence_textBox_args = new System.Windows.Forms.TextBox();\r
+ this.sentence_label_macroName = new System.Windows.Forms.Label();\r
+ this.sentence_textBox_macroName = new System.Windows.Forms.TextBox();\r
+ this.sentence_textBox_group = new System.Windows.Forms.TextBox();\r
+ this.sentence_label_group = new System.Windows.Forms.Label();\r
+ this.sentence_label_value = new System.Windows.Forms.Label();\r
+ this.sentence_textBox_value = new System.Windows.Forms.TextBox();\r
+ this.sentence_textBox_shortcut = new System.Windows.Forms.TextBox();\r
+ this.sentence_label_shortcut = new System.Windows.Forms.Label();\r
+ this.sentence_label_type = new System.Windows.Forms.Label();\r
+ this.sentence_label_name = new System.Windows.Forms.Label();\r
+ this.sentence_textBox_name = new System.Windows.Forms.TextBox();\r
+ this.sentence_textBox_type = new System.Windows.Forms.TextBox();\r
+ this.sentence_button_edit = new System.Windows.Forms.Button();\r
+ this.sentence_button_delete = new System.Windows.Forms.Button();\r
+ this.sentence_button_new = new System.Windows.Forms.Button();\r
+ this.sentence_radio0 = new System.Windows.Forms.RadioButton();\r
+ this.sentence_radio5 = new System.Windows.Forms.RadioButton();\r
+ this.sentence_radio4 = new System.Windows.Forms.RadioButton();\r
+ this.sentence_radio3 = new System.Windows.Forms.RadioButton();\r
+ this.sentence_radio2 = new System.Windows.Forms.RadioButton();\r
+ this.sentence_radio1 = new System.Windows.Forms.RadioButton();\r
+ this.sentence_iconListBox = new Lugens.Components.IconListBox();\r
+ this.tabPageEngine = new System.Windows.Forms.TabPage();\r
+ this.engine_textBox_encoding = new System.Windows.Forms.TextBox();\r
+ this.label25 = new System.Windows.Forms.Label();\r
+ this.engine_textBox_url = new System.Windows.Forms.TextBox();\r
+ this.label24 = new System.Windows.Forms.Label();\r
+ this.engine_textBox_suggestUrl = new System.Windows.Forms.TextBox();\r
+ this.label_engine_suggestUrl = new System.Windows.Forms.Label();\r
+ this.label21 = new System.Windows.Forms.Label();\r
+ this.engine_textBox_comment = new System.Windows.Forms.TextBox();\r
+ this.label11 = new System.Windows.Forms.Label();\r
+ this.engine_textBox_shortcut = new System.Windows.Forms.TextBox();\r
+ this.label12 = new System.Windows.Forms.Label();\r
+ this.engine_textBox_display = new System.Windows.Forms.TextBox();\r
+ this.label13 = new System.Windows.Forms.Label();\r
+ this.engine_textBox_searchUrl = new System.Windows.Forms.TextBox();\r
+ this.engine_pictureBox = new System.Windows.Forms.PictureBox();\r
+ this.label9 = new System.Windows.Forms.Label();\r
+ this.label10 = new System.Windows.Forms.Label();\r
+ this.engine_textBox_name = new System.Windows.Forms.TextBox();\r
+ this.engine_button_edit = new System.Windows.Forms.Button();\r
+ this.engine_button_delete = new System.Windows.Forms.Button();\r
+ this.engine_button_new = new System.Windows.Forms.Button();\r
+ this.engine_iconListBox = new Lugens.Components.IconListBox();\r
+ this.tabPageMacro = new System.Windows.Forms.TabPage();\r
+ this.macro_textBox_summary = new System.Windows.Forms.TextBox();\r
+ this.label20 = new System.Windows.Forms.Label();\r
+ this.label19 = new System.Windows.Forms.Label();\r
+ this.macro_textBox_description = new System.Windows.Forms.TextBox();\r
+ this.label22 = new System.Windows.Forms.Label();\r
+ this.label23 = new System.Windows.Forms.Label();\r
+ this.macro_textBox_id = new System.Windows.Forms.TextBox();\r
+ this.macro_iconListBox = new Lugens.Components.IconListBox();\r
+ this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));\r
+ this.tabPageCommand.SuspendLayout();\r
+ ((System.ComponentModel.ISupportInitialize)(this.command_pictureBox1)).BeginInit();\r
+ this.tabControl.SuspendLayout();\r
+ this.tabPageSetting.SuspendLayout();\r
+ ((System.ComponentModel.ISupportInitialize)(this.trackBar_opacity)).BeginInit();\r
+ this.groupBox_hotKey.SuspendLayout();\r
+ this.tabPageSentence.SuspendLayout();\r
+ this.tabPageEngine.SuspendLayout();\r
+ ((System.ComponentModel.ISupportInitialize)(this.engine_pictureBox)).BeginInit();\r
+ this.tabPageMacro.SuspendLayout();\r
+ this.SuspendLayout();\r
+ // \r
+ // button_ok\r
+ // \r
+ this.button_ok.DialogResult = System.Windows.Forms.DialogResult.OK;\r
+ this.button_ok.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.button_ok.Location = new System.Drawing.Point(367, 330);\r
+ this.button_ok.Name = "button_ok";\r
+ this.button_ok.Size = new System.Drawing.Size(78, 22);\r
+ this.button_ok.TabIndex = 98;\r
+ this.button_ok.Text = "OK";\r
+ this.button_ok.UseVisualStyleBackColor = true;\r
+ this.button_ok.Click += new System.EventHandler(this.button_ok_Click);\r
+ // \r
+ // button_cancel\r
+ // \r
+ this.button_cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;\r
+ this.button_cancel.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.button_cancel.Location = new System.Drawing.Point(451, 330);\r
+ this.button_cancel.Name = "button_cancel";\r
+ this.button_cancel.Size = new System.Drawing.Size(78, 22);\r
+ this.button_cancel.TabIndex = 99;\r
+ this.button_cancel.Text = "キャンセル";\r
+ this.button_cancel.UseVisualStyleBackColor = true;\r
+ this.button_cancel.Click += new System.EventHandler(this.button_cancel_Click);\r
+ // \r
+ // tabPageCommand\r
+ // \r
+ this.tabPageCommand.AllowDrop = true;\r
+ this.tabPageCommand.BackColor = System.Drawing.Color.Transparent;\r
+ this.tabPageCommand.Controls.Add(this.command_iconListBox);\r
+ this.tabPageCommand.Controls.Add(this.command_button_edit);\r
+ this.tabPageCommand.Controls.Add(this.command_pictureBox1);\r
+ this.tabPageCommand.Controls.Add(this.command_textBox_arguments);\r
+ this.tabPageCommand.Controls.Add(this.label6);\r
+ this.tabPageCommand.Controls.Add(this.command_textBox_comment);\r
+ this.tabPageCommand.Controls.Add(this.label5);\r
+ this.tabPageCommand.Controls.Add(this.command_textBox_path);\r
+ this.tabPageCommand.Controls.Add(this.label4);\r
+ this.tabPageCommand.Controls.Add(this.label3);\r
+ this.tabPageCommand.Controls.Add(this.label2);\r
+ this.tabPageCommand.Controls.Add(this.command_button_delete);\r
+ this.tabPageCommand.Controls.Add(this.command_textBox_name);\r
+ this.tabPageCommand.Controls.Add(this.command_textBox_target);\r
+ this.tabPageCommand.Controls.Add(this.command_button_new);\r
+ this.tabPageCommand.Location = new System.Drawing.Point(4, 22);\r
+ this.tabPageCommand.Name = "tabPageCommand";\r
+ this.tabPageCommand.Padding = new System.Windows.Forms.Padding(3);\r
+ this.tabPageCommand.Size = new System.Drawing.Size(513, 286);\r
+ this.tabPageCommand.TabIndex = 0;\r
+ this.tabPageCommand.Text = "コマンド";\r
+ this.tabPageCommand.UseVisualStyleBackColor = true;\r
+ this.tabPageCommand.DragDrop += new System.Windows.Forms.DragEventHandler(this.SettingForm_DragDrop);\r
+ this.tabPageCommand.DragEnter += new System.Windows.Forms.DragEventHandler(this.SettingForm_DragEnter);\r
+ // \r
+ // command_iconListBox\r
+ // \r
+ this.command_iconListBox.AllowDrop = true;\r
+ this.command_iconListBox.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;\r
+ this.command_iconListBox.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+ this.command_iconListBox.FormattingEnabled = true;\r
+ this.command_iconListBox.ItemHeight = 18;\r
+ this.command_iconListBox.Location = new System.Drawing.Point(7, 10);\r
+ this.command_iconListBox.Name = "command_iconListBox";\r
+ this.command_iconListBox.PreSelectedBackgroundImage = global::Lugens.Passer.Properties.Resources.preselect_7;\r
+ this.command_iconListBox.SearchItemMode = true;\r
+ this.command_iconListBox.SelectedBackgroundImage = global::Lugens.Passer.Properties.Resources.select_7;\r
+ this.command_iconListBox.Size = new System.Drawing.Size(150, 238);\r
+ this.command_iconListBox.Status = 1;\r
+ this.command_iconListBox.TabIndex = 27;\r
+ this.command_iconListBox.ViewMode = Lugens.Components.ViewMode.IconText;\r
+ this.command_iconListBox.DragDrop += new System.Windows.Forms.DragEventHandler(this.command_iconListBox_DragDrop);\r
+ this.command_iconListBox.DragEnter += new System.Windows.Forms.DragEventHandler(this.command_iconListBox_DragEnter);\r
+ this.command_iconListBox.QueryContinueDrag += new System.Windows.Forms.QueryContinueDragEventHandler(this.command_iconListBox_QueryContinueDrag);\r
+ this.command_iconListBox.DoubleClick += new System.EventHandler(this.command_iconListBox_DoubleClick);\r
+ this.command_iconListBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.command_iconListBox_KeyDown);\r
+ this.command_iconListBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.command_iconListBox_MouseDown);\r
+ this.command_iconListBox.MouseEnter += new System.EventHandler(this.command_iconListBox_MouseEnter);\r
+ this.command_iconListBox.MouseMove += new System.Windows.Forms.MouseEventHandler(this.command_iconListBox_MouseMove);\r
+ this.command_iconListBox.MouseUp += new System.Windows.Forms.MouseEventHandler(this.command_iconListBox_MouseUp);\r
+ // \r
+ // command_button_edit\r
+ // \r
+ this.command_button_edit.Enabled = false;\r
+ this.command_button_edit.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.command_button_edit.Location = new System.Drawing.Point(77, 254);\r
+ this.command_button_edit.Name = "command_button_edit";\r
+ this.command_button_edit.Size = new System.Drawing.Size(64, 24);\r
+ this.command_button_edit.TabIndex = 6;\r
+ this.command_button_edit.Text = "編集";\r
+ this.command_button_edit.Click += new System.EventHandler(this.command_button_edit_Click);\r
+ // \r
+ // command_pictureBox1\r
+ // \r
+ this.command_pictureBox1.BackColor = System.Drawing.Color.Transparent;\r
+ this.command_pictureBox1.Location = new System.Drawing.Point(414, 17);\r
+ this.command_pictureBox1.Name = "command_pictureBox1";\r
+ this.command_pictureBox1.Size = new System.Drawing.Size(32, 32);\r
+ this.command_pictureBox1.TabIndex = 25;\r
+ this.command_pictureBox1.TabStop = false;\r
+ // \r
+ // command_textBox_arguments\r
+ // \r
+ this.command_textBox_arguments.Location = new System.Drawing.Point(163, 136);\r
+ this.command_textBox_arguments.Name = "command_textBox_arguments";\r
+ this.command_textBox_arguments.ReadOnly = true;\r
+ this.command_textBox_arguments.Size = new System.Drawing.Size(342, 19);\r
+ this.command_textBox_arguments.TabIndex = 10;\r
+ // \r
+ // label6\r
+ // \r
+ this.label6.AutoSize = true;\r
+ this.label6.BackColor = System.Drawing.Color.Transparent;\r
+ this.label6.Location = new System.Drawing.Point(165, 158);\r
+ this.label6.Name = "label6";\r
+ this.label6.Size = new System.Drawing.Size(38, 12);\r
+ this.label6.TabIndex = 24;\r
+ this.label6.Text = "コメント";\r
+ // \r
+ // command_textBox_comment\r
+ // \r
+ this.command_textBox_comment.AcceptsReturn = true;\r
+ this.command_textBox_comment.AcceptsTab = true;\r
+ this.command_textBox_comment.Location = new System.Drawing.Point(163, 173);\r
+ this.command_textBox_comment.Multiline = true;\r
+ this.command_textBox_comment.Name = "command_textBox_comment";\r
+ this.command_textBox_comment.ReadOnly = true;\r
+ this.command_textBox_comment.Size = new System.Drawing.Size(342, 75);\r
+ this.command_textBox_comment.TabIndex = 11;\r
+ // \r
+ // label5\r
+ // \r
+ this.label5.AutoSize = true;\r
+ this.label5.BackColor = System.Drawing.Color.Transparent;\r
+ this.label5.Location = new System.Drawing.Point(165, 121);\r
+ this.label5.Name = "label5";\r
+ this.label5.Size = new System.Drawing.Size(29, 12);\r
+ this.label5.TabIndex = 23;\r
+ this.label5.Text = "引数";\r
+ // \r
+ // command_textBox_path\r
+ // \r
+ this.command_textBox_path.Location = new System.Drawing.Point(163, 99);\r
+ this.command_textBox_path.Name = "command_textBox_path";\r
+ this.command_textBox_path.ReadOnly = true;\r
+ this.command_textBox_path.Size = new System.Drawing.Size(342, 19);\r
+ this.command_textBox_path.TabIndex = 9;\r
+ // \r
+ // label4\r
+ // \r
+ this.label4.AutoSize = true;\r
+ this.label4.BackColor = System.Drawing.Color.Transparent;\r
+ this.label4.Location = new System.Drawing.Point(165, 84);\r
+ this.label4.Name = "label4";\r
+ this.label4.Size = new System.Drawing.Size(24, 12);\r
+ this.label4.TabIndex = 22;\r
+ this.label4.Text = "パス";\r
+ // \r
+ // label3\r
+ // \r
+ this.label3.AutoSize = true;\r
+ this.label3.BackColor = System.Drawing.Color.Transparent;\r
+ this.label3.Location = new System.Drawing.Point(165, 47);\r
+ this.label3.Name = "label3";\r
+ this.label3.Size = new System.Drawing.Size(51, 12);\r
+ this.label3.TabIndex = 21;\r
+ this.label3.Text = "ファイル名";\r
+ // \r
+ // label2\r
+ // \r
+ this.label2.AutoSize = true;\r
+ this.label2.BackColor = System.Drawing.Color.Transparent;\r
+ this.label2.Location = new System.Drawing.Point(163, 10);\r
+ this.label2.Name = "label2";\r
+ this.label2.Size = new System.Drawing.Size(41, 12);\r
+ this.label2.TabIndex = 20;\r
+ this.label2.Text = "設定名";\r
+ // \r
+ // command_button_delete\r
+ // \r
+ this.command_button_delete.Enabled = false;\r
+ this.command_button_delete.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.command_button_delete.Location = new System.Drawing.Point(147, 254);\r
+ this.command_button_delete.Name = "command_button_delete";\r
+ this.command_button_delete.Size = new System.Drawing.Size(64, 24);\r
+ this.command_button_delete.TabIndex = 5;\r
+ this.command_button_delete.Text = "削除";\r
+ this.command_button_delete.Click += new System.EventHandler(this.command_button_delete_Click);\r
+ // \r
+ // command_textBox_name\r
+ // \r
+ this.command_textBox_name.Location = new System.Drawing.Point(163, 25);\r
+ this.command_textBox_name.Name = "command_textBox_name";\r
+ this.command_textBox_name.ReadOnly = true;\r
+ this.command_textBox_name.Size = new System.Drawing.Size(238, 19);\r
+ this.command_textBox_name.TabIndex = 7;\r
+ // \r
+ // command_textBox_target\r
+ // \r
+ this.command_textBox_target.Location = new System.Drawing.Point(163, 62);\r
+ this.command_textBox_target.Name = "command_textBox_target";\r
+ this.command_textBox_target.ReadOnly = true;\r
+ this.command_textBox_target.Size = new System.Drawing.Size(342, 19);\r
+ this.command_textBox_target.TabIndex = 8;\r
+ // \r
+ // command_button_new\r
+ // \r
+ this.command_button_new.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.command_button_new.Location = new System.Drawing.Point(7, 254);\r
+ this.command_button_new.Name = "command_button_new";\r
+ this.command_button_new.Size = new System.Drawing.Size(64, 24);\r
+ this.command_button_new.TabIndex = 4;\r
+ this.command_button_new.Text = "新規";\r
+ this.command_button_new.Click += new System.EventHandler(this.command_button_new_Click);\r
+ // \r
+ // tabControl\r
+ // \r
+ this.tabControl.AllowDrop = true;\r
+ this.tabControl.Controls.Add(this.tabPageSetting);\r
+ this.tabControl.Controls.Add(this.tabPageCommand);\r
+ this.tabControl.Controls.Add(this.tabPageSentence);\r
+ this.tabControl.Controls.Add(this.tabPageEngine);\r
+ this.tabControl.Controls.Add(this.tabPageMacro);\r
+ this.tabControl.Location = new System.Drawing.Point(12, 12);\r
+ this.tabControl.Name = "tabControl";\r
+ this.tabControl.SelectedIndex = 0;\r
+ this.tabControl.Size = new System.Drawing.Size(521, 312);\r
+ this.tabControl.TabIndex = 0;\r
+ this.tabControl.DragDrop += new System.Windows.Forms.DragEventHandler(this.SettingForm_DragDrop);\r
+ this.tabControl.DragEnter += new System.Windows.Forms.DragEventHandler(this.SettingForm_DragEnter);\r
+ // \r
+ // tabPageSetting\r
+ // \r
+ this.tabPageSetting.BackColor = System.Drawing.Color.Transparent;\r
+ this.tabPageSetting.Controls.Add(this.checkBox_memorizeEngine);\r
+ this.tabPageSetting.Controls.Add(this.checkBox_showBalloonWhileRecoding);\r
+ this.tabPageSetting.Controls.Add(this.checkBox_fadeIn);\r
+ this.tabPageSetting.Controls.Add(this.checkBox_sendRecordToClipboard);\r
+ this.tabPageSetting.Controls.Add(this.checkBox_showScriptToolTip);\r
+ this.tabPageSetting.Controls.Add(this.label16);\r
+ this.tabPageSetting.Controls.Add(this.label15);\r
+ this.tabPageSetting.Controls.Add(this.label14);\r
+ this.tabPageSetting.Controls.Add(this.textBox_opacity);\r
+ this.tabPageSetting.Controls.Add(this.trackBar_opacity);\r
+ this.tabPageSetting.Controls.Add(this.groupBox_hotKey);\r
+ this.tabPageSetting.Location = new System.Drawing.Point(4, 22);\r
+ this.tabPageSetting.Name = "tabPageSetting";\r
+ this.tabPageSetting.Padding = new System.Windows.Forms.Padding(3);\r
+ this.tabPageSetting.Size = new System.Drawing.Size(513, 286);\r
+ this.tabPageSetting.TabIndex = 3;\r
+ this.tabPageSetting.Text = "設定";\r
+ this.tabPageSetting.UseVisualStyleBackColor = true;\r
+ // \r
+ // checkBox_memorizeEngine\r
+ // \r
+ this.checkBox_memorizeEngine.AutoSize = true;\r
+ this.checkBox_memorizeEngine.BackColor = System.Drawing.Color.Transparent;\r
+ this.checkBox_memorizeEngine.Location = new System.Drawing.Point(16, 117);\r
+ this.checkBox_memorizeEngine.Name = "checkBox_memorizeEngine";\r
+ this.checkBox_memorizeEngine.Size = new System.Drawing.Size(212, 16);\r
+ this.checkBox_memorizeEngine.TabIndex = 17;\r
+ this.checkBox_memorizeEngine.Text = "最後に使用した検索エンジンを記憶する";\r
+ this.checkBox_memorizeEngine.UseVisualStyleBackColor = false;\r
+ // \r
+ // checkBox_showBalloonWhileRecoding\r
+ // \r
+ this.checkBox_showBalloonWhileRecoding.AutoSize = true;\r
+ this.checkBox_showBalloonWhileRecoding.BackColor = System.Drawing.Color.Transparent;\r
+ this.checkBox_showBalloonWhileRecoding.Location = new System.Drawing.Point(16, 71);\r
+ this.checkBox_showBalloonWhileRecoding.Name = "checkBox_showBalloonWhileRecoding";\r
+ this.checkBox_showBalloonWhileRecoding.Size = new System.Drawing.Size(161, 16);\r
+ this.checkBox_showBalloonWhileRecoding.TabIndex = 16;\r
+ this.checkBox_showBalloonWhileRecoding.Text = "キー記録中にバルーンを表示";\r
+ this.checkBox_showBalloonWhileRecoding.UseVisualStyleBackColor = false;\r
+ // \r
+ // checkBox_fadeIn\r
+ // \r
+ this.checkBox_fadeIn.AutoSize = true;\r
+ this.checkBox_fadeIn.BackColor = System.Drawing.Color.Transparent;\r
+ this.checkBox_fadeIn.Location = new System.Drawing.Point(16, 23);\r
+ this.checkBox_fadeIn.Name = "checkBox_fadeIn";\r
+ this.checkBox_fadeIn.Size = new System.Drawing.Size(133, 16);\r
+ this.checkBox_fadeIn.TabIndex = 14;\r
+ this.checkBox_fadeIn.Text = "フェードイン効果を使用";\r
+ this.checkBox_fadeIn.UseVisualStyleBackColor = false;\r
+ // \r
+ // checkBox_sendRecordToClipboard\r
+ // \r
+ this.checkBox_sendRecordToClipboard.AutoSize = true;\r
+ this.checkBox_sendRecordToClipboard.BackColor = System.Drawing.Color.Transparent;\r
+ this.checkBox_sendRecordToClipboard.Location = new System.Drawing.Point(16, 95);\r
+ this.checkBox_sendRecordToClipboard.Name = "checkBox_sendRecordToClipboard";\r
+ this.checkBox_sendRecordToClipboard.Size = new System.Drawing.Size(188, 16);\r
+ this.checkBox_sendRecordToClipboard.TabIndex = 13;\r
+ this.checkBox_sendRecordToClipboard.Text = "記録したキーをクリップボードに送信";\r
+ this.checkBox_sendRecordToClipboard.UseVisualStyleBackColor = false;\r
+ // \r
+ // checkBox_showScriptToolTip\r
+ // \r
+ this.checkBox_showScriptToolTip.AutoSize = true;\r
+ this.checkBox_showScriptToolTip.BackColor = System.Drawing.Color.Transparent;\r
+ this.checkBox_showScriptToolTip.Location = new System.Drawing.Point(16, 47);\r
+ this.checkBox_showScriptToolTip.Name = "checkBox_showScriptToolTip";\r
+ this.checkBox_showScriptToolTip.Size = new System.Drawing.Size(161, 16);\r
+ this.checkBox_showScriptToolTip.TabIndex = 12;\r
+ this.checkBox_showScriptToolTip.Text = "スクリプトにツールチップを表示";\r
+ this.checkBox_showScriptToolTip.UseVisualStyleBackColor = false;\r
+ // \r
+ // label16\r
+ // \r
+ this.label16.AutoSize = true;\r
+ this.label16.BackColor = System.Drawing.Color.Transparent;\r
+ this.label16.Location = new System.Drawing.Point(20, 247);\r
+ this.label16.Name = "label16";\r
+ this.label16.Size = new System.Drawing.Size(29, 12);\r
+ this.label16.TabIndex = 11;\r
+ this.label16.Text = "透明";\r
+ // \r
+ // label15\r
+ // \r
+ this.label15.AutoSize = true;\r
+ this.label15.BackColor = System.Drawing.Color.Transparent;\r
+ this.label15.Location = new System.Drawing.Point(205, 247);\r
+ this.label15.Name = "label15";\r
+ this.label15.Size = new System.Drawing.Size(41, 12);\r
+ this.label15.TabIndex = 10;\r
+ this.label15.Text = "非透明";\r
+ // \r
+ // label14\r
+ // \r
+ this.label14.AutoSize = true;\r
+ this.label14.BackColor = System.Drawing.Color.Transparent;\r
+ this.label14.Location = new System.Drawing.Point(18, 202);\r
+ this.label14.Name = "label14";\r
+ this.label14.Size = new System.Drawing.Size(41, 12);\r
+ this.label14.TabIndex = 9;\r
+ this.label14.Text = "透明度";\r
+ // \r
+ // textBox_opacity\r
+ // \r
+ this.textBox_opacity.Location = new System.Drawing.Point(256, 220);\r
+ this.textBox_opacity.Name = "textBox_opacity";\r
+ this.textBox_opacity.ReadOnly = true;\r
+ this.textBox_opacity.Size = new System.Drawing.Size(39, 19);\r
+ this.textBox_opacity.TabIndex = 8;\r
+ this.textBox_opacity.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;\r
+ // \r
+ // trackBar_opacity\r
+ // \r
+ this.trackBar_opacity.BackColor = System.Drawing.SystemColors.ButtonHighlight;\r
+ this.trackBar_opacity.Location = new System.Drawing.Point(16, 217);\r
+ this.trackBar_opacity.Maximum = 100;\r
+ this.trackBar_opacity.Minimum = 50;\r
+ this.trackBar_opacity.Name = "trackBar_opacity";\r
+ this.trackBar_opacity.Size = new System.Drawing.Size(233, 45);\r
+ this.trackBar_opacity.TabIndex = 7;\r
+ this.trackBar_opacity.TickStyle = System.Windows.Forms.TickStyle.None;\r
+ this.trackBar_opacity.Value = 100;\r
+ this.trackBar_opacity.ValueChanged += new System.EventHandler(this.trackBar_opacity_ValueChanged);\r
+ // \r
+ // groupBox_hotKey\r
+ // \r
+ this.groupBox_hotKey.BackColor = System.Drawing.Color.Transparent;\r
+ this.groupBox_hotKey.Controls.Add(this.hotKeyTextBox_KeyPlay);\r
+ this.groupBox_hotKey.Controls.Add(this.label18);\r
+ this.groupBox_hotKey.Controls.Add(this.hotKeyTextBox_KeyRecord);\r
+ this.groupBox_hotKey.Controls.Add(this.label17);\r
+ this.groupBox_hotKey.Controls.Add(this.label_hotKeyError);\r
+ this.groupBox_hotKey.Controls.Add(this.label1);\r
+ this.groupBox_hotKey.Controls.Add(this.label8);\r
+ this.groupBox_hotKey.Controls.Add(this.hotKeyTextBox_ClipPaste);\r
+ this.groupBox_hotKey.Controls.Add(this.label7);\r
+ this.groupBox_hotKey.Controls.Add(this.hotKeyTextBox_Clip);\r
+ this.groupBox_hotKey.Controls.Add(this.hotKeyTextBox_Main);\r
+ this.groupBox_hotKey.Location = new System.Drawing.Point(304, 6);\r
+ this.groupBox_hotKey.Name = "groupBox_hotKey";\r
+ this.groupBox_hotKey.Size = new System.Drawing.Size(203, 261);\r
+ this.groupBox_hotKey.TabIndex = 6;\r
+ this.groupBox_hotKey.TabStop = false;\r
+ this.groupBox_hotKey.Text = "ホットキー";\r
+ // \r
+ // hotKeyTextBox_KeyPlay\r
+ // \r
+ this.hotKeyTextBox_KeyPlay.AcceptKeys = null;\r
+ this.hotKeyTextBox_KeyPlay.DefaultText = "";\r
+ this.hotKeyTextBox_KeyPlay.HotKeycode = 0;\r
+ this.hotKeyTextBox_KeyPlay.ImeMode = System.Windows.Forms.ImeMode.Disable;\r
+ this.hotKeyTextBox_KeyPlay.Location = new System.Drawing.Point(18, 216);\r
+ this.hotKeyTextBox_KeyPlay.Name = "hotKeyTextBox_KeyPlay";\r
+ this.hotKeyTextBox_KeyPlay.Size = new System.Drawing.Size(166, 19);\r
+ this.hotKeyTextBox_KeyPlay.TabIndex = 10;\r
+ this.hotKeyTextBox_KeyPlay.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;\r
+ // \r
+ // label18\r
+ // \r
+ this.label18.AutoSize = true;\r
+ this.label18.Location = new System.Drawing.Point(16, 201);\r
+ this.label18.Name = "label18";\r
+ this.label18.Size = new System.Drawing.Size(78, 12);\r
+ this.label18.TabIndex = 9;\r
+ this.label18.Text = "キーボード再生";\r
+ // \r
+ // hotKeyTextBox_KeyRecord\r
+ // \r
+ this.hotKeyTextBox_KeyRecord.AcceptKeys = null;\r
+ this.hotKeyTextBox_KeyRecord.DefaultText = "";\r
+ this.hotKeyTextBox_KeyRecord.HotKeycode = 0;\r
+ this.hotKeyTextBox_KeyRecord.ImeMode = System.Windows.Forms.ImeMode.Disable;\r
+ this.hotKeyTextBox_KeyRecord.Location = new System.Drawing.Point(18, 176);\r
+ this.hotKeyTextBox_KeyRecord.Name = "hotKeyTextBox_KeyRecord";\r
+ this.hotKeyTextBox_KeyRecord.Size = new System.Drawing.Size(166, 19);\r
+ this.hotKeyTextBox_KeyRecord.TabIndex = 8;\r
+ this.hotKeyTextBox_KeyRecord.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;\r
+ // \r
+ // label17\r
+ // \r
+ this.label17.AutoSize = true;\r
+ this.label17.Location = new System.Drawing.Point(16, 161);\r
+ this.label17.Name = "label17";\r
+ this.label17.Size = new System.Drawing.Size(78, 12);\r
+ this.label17.TabIndex = 7;\r
+ this.label17.Text = "キーボード記憶";\r
+ // \r
+ // label_hotKeyError\r
+ // \r
+ this.label_hotKeyError.AutoSize = true;\r
+ this.label_hotKeyError.ForeColor = System.Drawing.Color.Red;\r
+ this.label_hotKeyError.Location = new System.Drawing.Point(16, 21);\r
+ this.label_hotKeyError.Name = "label_hotKeyError";\r
+ this.label_hotKeyError.Size = new System.Drawing.Size(88, 12);\r
+ this.label_hotKeyError.TabIndex = 6;\r
+ this.label_hotKeyError.Text = "※重複しています";\r
+ this.label_hotKeyError.Visible = false;\r
+ // \r
+ // label1\r
+ // \r
+ this.label1.AutoSize = true;\r
+ this.label1.Location = new System.Drawing.Point(16, 39);\r
+ this.label1.Name = "label1";\r
+ this.label1.Size = new System.Drawing.Size(49, 12);\r
+ this.label1.TabIndex = 1;\r
+ this.label1.Text = "ランチャー";\r
+ // \r
+ // label8\r
+ // \r
+ this.label8.AutoSize = true;\r
+ this.label8.Location = new System.Drawing.Point(16, 121);\r
+ this.label8.Name = "label8";\r
+ this.label8.Size = new System.Drawing.Size(143, 12);\r
+ this.label8.TabIndex = 5;\r
+ this.label8.Text = "クリップボード文字列貼り付け";\r
+ // \r
+ // hotKeyTextBox_ClipPaste\r
+ // \r
+ this.hotKeyTextBox_ClipPaste.AcceptKeys = null;\r
+ this.hotKeyTextBox_ClipPaste.DefaultText = "";\r
+ this.hotKeyTextBox_ClipPaste.HotKeycode = 0;\r
+ this.hotKeyTextBox_ClipPaste.ImeMode = System.Windows.Forms.ImeMode.Disable;\r
+ this.hotKeyTextBox_ClipPaste.Location = new System.Drawing.Point(18, 136);\r
+ this.hotKeyTextBox_ClipPaste.Name = "hotKeyTextBox_ClipPaste";\r
+ this.hotKeyTextBox_ClipPaste.Size = new System.Drawing.Size(166, 19);\r
+ this.hotKeyTextBox_ClipPaste.TabIndex = 3;\r
+ this.hotKeyTextBox_ClipPaste.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;\r
+ // \r
+ // label7\r
+ // \r
+ this.label7.AutoSize = true;\r
+ this.label7.Location = new System.Drawing.Point(16, 80);\r
+ this.label7.Name = "label7";\r
+ this.label7.Size = new System.Drawing.Size(89, 12);\r
+ this.label7.TabIndex = 3;\r
+ this.label7.Text = "クリップボードリスト";\r
+ // \r
+ // hotKeyTextBox_Clip\r
+ // \r
+ this.hotKeyTextBox_Clip.AcceptKeys = null;\r
+ this.hotKeyTextBox_Clip.DefaultText = "";\r
+ this.hotKeyTextBox_Clip.HotKeycode = 0;\r
+ this.hotKeyTextBox_Clip.ImeMode = System.Windows.Forms.ImeMode.Disable;\r
+ this.hotKeyTextBox_Clip.Location = new System.Drawing.Point(18, 95);\r
+ this.hotKeyTextBox_Clip.Name = "hotKeyTextBox_Clip";\r
+ this.hotKeyTextBox_Clip.Size = new System.Drawing.Size(166, 19);\r
+ this.hotKeyTextBox_Clip.TabIndex = 2;\r
+ this.hotKeyTextBox_Clip.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;\r
+ // \r
+ // hotKeyTextBox_Main\r
+ // \r
+ this.hotKeyTextBox_Main.AcceptKeys = null;\r
+ this.hotKeyTextBox_Main.DefaultText = "";\r
+ this.hotKeyTextBox_Main.HotKeycode = 0;\r
+ this.hotKeyTextBox_Main.ImeMode = System.Windows.Forms.ImeMode.Disable;\r
+ this.hotKeyTextBox_Main.Location = new System.Drawing.Point(18, 54);\r
+ this.hotKeyTextBox_Main.Name = "hotKeyTextBox_Main";\r
+ this.hotKeyTextBox_Main.Size = new System.Drawing.Size(166, 19);\r
+ this.hotKeyTextBox_Main.TabIndex = 1;\r
+ this.hotKeyTextBox_Main.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;\r
+ // \r
+ // tabPageSentence\r
+ // \r
+ this.tabPageSentence.BackColor = System.Drawing.Color.Transparent;\r
+ this.tabPageSentence.Controls.Add(this.sentence_label_description);\r
+ this.tabPageSentence.Controls.Add(this.sentence_textBox_description);\r
+ this.tabPageSentence.Controls.Add(this.sentence_label_summary);\r
+ this.tabPageSentence.Controls.Add(this.sentence_textBox_summary);\r
+ this.tabPageSentence.Controls.Add(this.sentence_label_args);\r
+ this.tabPageSentence.Controls.Add(this.sentence_textBox_args);\r
+ this.tabPageSentence.Controls.Add(this.sentence_label_macroName);\r
+ this.tabPageSentence.Controls.Add(this.sentence_textBox_macroName);\r
+ this.tabPageSentence.Controls.Add(this.sentence_textBox_group);\r
+ this.tabPageSentence.Controls.Add(this.sentence_label_group);\r
+ this.tabPageSentence.Controls.Add(this.sentence_label_value);\r
+ this.tabPageSentence.Controls.Add(this.sentence_textBox_value);\r
+ this.tabPageSentence.Controls.Add(this.sentence_textBox_shortcut);\r
+ this.tabPageSentence.Controls.Add(this.sentence_label_shortcut);\r
+ this.tabPageSentence.Controls.Add(this.sentence_label_type);\r
+ this.tabPageSentence.Controls.Add(this.sentence_label_name);\r
+ this.tabPageSentence.Controls.Add(this.sentence_textBox_name);\r
+ this.tabPageSentence.Controls.Add(this.sentence_textBox_type);\r
+ this.tabPageSentence.Controls.Add(this.sentence_button_edit);\r
+ this.tabPageSentence.Controls.Add(this.sentence_button_delete);\r
+ this.tabPageSentence.Controls.Add(this.sentence_button_new);\r
+ this.tabPageSentence.Controls.Add(this.sentence_radio0);\r
+ this.tabPageSentence.Controls.Add(this.sentence_radio5);\r
+ this.tabPageSentence.Controls.Add(this.sentence_radio4);\r
+ this.tabPageSentence.Controls.Add(this.sentence_radio3);\r
+ this.tabPageSentence.Controls.Add(this.sentence_radio2);\r
+ this.tabPageSentence.Controls.Add(this.sentence_radio1);\r
+ this.tabPageSentence.Controls.Add(this.sentence_iconListBox);\r
+ this.tabPageSentence.Location = new System.Drawing.Point(4, 22);\r
+ this.tabPageSentence.Name = "tabPageSentence";\r
+ this.tabPageSentence.Size = new System.Drawing.Size(513, 286);\r
+ this.tabPageSentence.TabIndex = 4;\r
+ this.tabPageSentence.Text = "定型文";\r
+ this.tabPageSentence.UseVisualStyleBackColor = true;\r
+ // \r
+ // sentence_label_description\r
+ // \r
+ this.sentence_label_description.AutoSize = true;\r
+ this.sentence_label_description.BackColor = System.Drawing.Color.Transparent;\r
+ this.sentence_label_description.Location = new System.Drawing.Point(168, 162);\r
+ this.sentence_label_description.Name = "sentence_label_description";\r
+ this.sentence_label_description.Size = new System.Drawing.Size(55, 12);\r
+ this.sentence_label_description.TabIndex = 46;\r
+ this.sentence_label_description.Text = "マクロ説明";\r
+ this.sentence_label_description.Visible = false;\r
+ // \r
+ // sentence_textBox_description\r
+ // \r
+ this.sentence_textBox_description.AcceptsTab = true;\r
+ this.sentence_textBox_description.Location = new System.Drawing.Point(168, 177);\r
+ this.sentence_textBox_description.Multiline = true;\r
+ this.sentence_textBox_description.Name = "sentence_textBox_description";\r
+ this.sentence_textBox_description.ReadOnly = true;\r
+ this.sentence_textBox_description.ScrollBars = System.Windows.Forms.ScrollBars.Both;\r
+ this.sentence_textBox_description.Size = new System.Drawing.Size(337, 70);\r
+ this.sentence_textBox_description.TabIndex = 45;\r
+ this.sentence_textBox_description.Visible = false;\r
+ // \r
+ // sentence_label_summary\r
+ // \r
+ this.sentence_label_summary.AutoSize = true;\r
+ this.sentence_label_summary.BackColor = System.Drawing.Color.Transparent;\r
+ this.sentence_label_summary.Location = new System.Drawing.Point(168, 121);\r
+ this.sentence_label_summary.Name = "sentence_label_summary";\r
+ this.sentence_label_summary.Size = new System.Drawing.Size(55, 12);\r
+ this.sentence_label_summary.TabIndex = 44;\r
+ this.sentence_label_summary.Text = "マクロ概要";\r
+ this.sentence_label_summary.Visible = false;\r
+ // \r
+ // sentence_textBox_summary\r
+ // \r
+ this.sentence_textBox_summary.Location = new System.Drawing.Point(170, 136);\r
+ this.sentence_textBox_summary.Name = "sentence_textBox_summary";\r
+ this.sentence_textBox_summary.ReadOnly = true;\r
+ this.sentence_textBox_summary.Size = new System.Drawing.Size(335, 19);\r
+ this.sentence_textBox_summary.TabIndex = 43;\r
+ this.sentence_textBox_summary.Visible = false;\r
+ // \r
+ // sentence_label_args\r
+ // \r
+ this.sentence_label_args.AutoSize = true;\r
+ this.sentence_label_args.BackColor = System.Drawing.Color.Transparent;\r
+ this.sentence_label_args.Location = new System.Drawing.Point(332, 82);\r
+ this.sentence_label_args.Name = "sentence_label_args";\r
+ this.sentence_label_args.Size = new System.Drawing.Size(29, 12);\r
+ this.sentence_label_args.TabIndex = 42;\r
+ this.sentence_label_args.Text = "引数";\r
+ this.sentence_label_args.Visible = false;\r
+ // \r
+ // sentence_textBox_args\r
+ // \r
+ this.sentence_textBox_args.Location = new System.Drawing.Point(334, 97);\r
+ this.sentence_textBox_args.Name = "sentence_textBox_args";\r
+ this.sentence_textBox_args.ReadOnly = true;\r
+ this.sentence_textBox_args.Size = new System.Drawing.Size(171, 19);\r
+ this.sentence_textBox_args.TabIndex = 41;\r
+ this.sentence_textBox_args.Visible = false;\r
+ // \r
+ // sentence_label_macroName\r
+ // \r
+ this.sentence_label_macroName.AutoSize = true;\r
+ this.sentence_label_macroName.BackColor = System.Drawing.Color.Transparent;\r
+ this.sentence_label_macroName.Location = new System.Drawing.Point(168, 82);\r
+ this.sentence_label_macroName.Name = "sentence_label_macroName";\r
+ this.sentence_label_macroName.Size = new System.Drawing.Size(43, 12);\r
+ this.sentence_label_macroName.TabIndex = 40;\r
+ this.sentence_label_macroName.Text = "マクロ名";\r
+ this.sentence_label_macroName.Visible = false;\r
+ // \r
+ // sentence_textBox_macroName\r
+ // \r
+ this.sentence_textBox_macroName.Location = new System.Drawing.Point(170, 97);\r
+ this.sentence_textBox_macroName.Name = "sentence_textBox_macroName";\r
+ this.sentence_textBox_macroName.ReadOnly = true;\r
+ this.sentence_textBox_macroName.Size = new System.Drawing.Size(157, 19);\r
+ this.sentence_textBox_macroName.TabIndex = 39;\r
+ this.sentence_textBox_macroName.Visible = false;\r
+ // \r
+ // sentence_textBox_group\r
+ // \r
+ this.sentence_textBox_group.Location = new System.Drawing.Point(6, 22);\r
+ this.sentence_textBox_group.Name = "sentence_textBox_group";\r
+ this.sentence_textBox_group.Size = new System.Drawing.Size(157, 19);\r
+ this.sentence_textBox_group.TabIndex = 36;\r
+ this.sentence_textBox_group.TextChanged += new System.EventHandler(this.sentence_textBox_group_TextChanged);\r
+ // \r
+ // sentence_label_group\r
+ // \r
+ this.sentence_label_group.AutoSize = true;\r
+ this.sentence_label_group.BackColor = System.Drawing.Color.Transparent;\r
+ this.sentence_label_group.Location = new System.Drawing.Point(4, 6);\r
+ this.sentence_label_group.Name = "sentence_label_group";\r
+ this.sentence_label_group.Size = new System.Drawing.Size(55, 12);\r
+ this.sentence_label_group.TabIndex = 35;\r
+ this.sentence_label_group.Text = "グループ名";\r
+ // \r
+ // sentence_label_value\r
+ // \r
+ this.sentence_label_value.AutoSize = true;\r
+ this.sentence_label_value.BackColor = System.Drawing.Color.Transparent;\r
+ this.sentence_label_value.Location = new System.Drawing.Point(168, 82);\r
+ this.sentence_label_value.Name = "sentence_label_value";\r
+ this.sentence_label_value.Size = new System.Drawing.Size(41, 12);\r
+ this.sentence_label_value.TabIndex = 34;\r
+ this.sentence_label_value.Text = "定型文";\r
+ // \r
+ // sentence_textBox_value\r
+ // \r
+ this.sentence_textBox_value.AcceptsTab = true;\r
+ this.sentence_textBox_value.Location = new System.Drawing.Point(168, 97);\r
+ this.sentence_textBox_value.Multiline = true;\r
+ this.sentence_textBox_value.Name = "sentence_textBox_value";\r
+ this.sentence_textBox_value.ReadOnly = true;\r
+ this.sentence_textBox_value.ScrollBars = System.Windows.Forms.ScrollBars.Both;\r
+ this.sentence_textBox_value.Size = new System.Drawing.Size(332, 150);\r
+ this.sentence_textBox_value.TabIndex = 29;\r
+ // \r
+ // sentence_textBox_shortcut\r
+ // \r
+ this.sentence_textBox_shortcut.Location = new System.Drawing.Point(334, 59);\r
+ this.sentence_textBox_shortcut.Name = "sentence_textBox_shortcut";\r
+ this.sentence_textBox_shortcut.ReadOnly = true;\r
+ this.sentence_textBox_shortcut.Size = new System.Drawing.Size(171, 19);\r
+ this.sentence_textBox_shortcut.TabIndex = 27;\r
+ // \r
+ // sentence_label_shortcut\r
+ // \r
+ this.sentence_label_shortcut.AutoSize = true;\r
+ this.sentence_label_shortcut.BackColor = System.Drawing.Color.Transparent;\r
+ this.sentence_label_shortcut.Location = new System.Drawing.Point(332, 44);\r
+ this.sentence_label_shortcut.Name = "sentence_label_shortcut";\r
+ this.sentence_label_shortcut.Size = new System.Drawing.Size(83, 12);\r
+ this.sentence_label_shortcut.TabIndex = 32;\r
+ this.sentence_label_shortcut.Text = "ショートカットキー";\r
+ // \r
+ // sentence_label_type\r
+ // \r
+ this.sentence_label_type.AutoSize = true;\r
+ this.sentence_label_type.BackColor = System.Drawing.Color.Transparent;\r
+ this.sentence_label_type.Location = new System.Drawing.Point(168, 44);\r
+ this.sentence_label_type.Name = "sentence_label_type";\r
+ this.sentence_label_type.Size = new System.Drawing.Size(31, 12);\r
+ this.sentence_label_type.TabIndex = 31;\r
+ this.sentence_label_type.Text = "タイプ";\r
+ // \r
+ // sentence_label_name\r
+ // \r
+ this.sentence_label_name.AutoSize = true;\r
+ this.sentence_label_name.BackColor = System.Drawing.Color.Transparent;\r
+ this.sentence_label_name.Location = new System.Drawing.Point(168, 6);\r
+ this.sentence_label_name.Name = "sentence_label_name";\r
+ this.sentence_label_name.Size = new System.Drawing.Size(41, 12);\r
+ this.sentence_label_name.TabIndex = 30;\r
+ this.sentence_label_name.Text = "設定名";\r
+ // \r
+ // sentence_textBox_name\r
+ // \r
+ this.sentence_textBox_name.Location = new System.Drawing.Point(170, 22);\r
+ this.sentence_textBox_name.Name = "sentence_textBox_name";\r
+ this.sentence_textBox_name.ReadOnly = true;\r
+ this.sentence_textBox_name.Size = new System.Drawing.Size(335, 19);\r
+ this.sentence_textBox_name.TabIndex = 25;\r
+ // \r
+ // sentence_textBox_type\r
+ // \r
+ this.sentence_textBox_type.Location = new System.Drawing.Point(170, 59);\r
+ this.sentence_textBox_type.Name = "sentence_textBox_type";\r
+ this.sentence_textBox_type.ReadOnly = true;\r
+ this.sentence_textBox_type.Size = new System.Drawing.Size(157, 19);\r
+ this.sentence_textBox_type.TabIndex = 26;\r
+ // \r
+ // sentence_button_edit\r
+ // \r
+ this.sentence_button_edit.Location = new System.Drawing.Point(240, 252);\r
+ this.sentence_button_edit.Name = "sentence_button_edit";\r
+ this.sentence_button_edit.Size = new System.Drawing.Size(64, 24);\r
+ this.sentence_button_edit.TabIndex = 12;\r
+ this.sentence_button_edit.Text = "編集";\r
+ this.sentence_button_edit.UseVisualStyleBackColor = true;\r
+ this.sentence_button_edit.Click += new System.EventHandler(this.sentence_button_edit_Click);\r
+ // \r
+ // sentence_button_delete\r
+ // \r
+ this.sentence_button_delete.Location = new System.Drawing.Point(310, 252);\r
+ this.sentence_button_delete.Name = "sentence_button_delete";\r
+ this.sentence_button_delete.Size = new System.Drawing.Size(64, 24);\r
+ this.sentence_button_delete.TabIndex = 11;\r
+ this.sentence_button_delete.Text = "削除";\r
+ this.sentence_button_delete.UseVisualStyleBackColor = true;\r
+ this.sentence_button_delete.Click += new System.EventHandler(this.sentence_button_delete_Click);\r
+ // \r
+ // sentence_button_new\r
+ // \r
+ this.sentence_button_new.Location = new System.Drawing.Point(170, 252);\r
+ this.sentence_button_new.Name = "sentence_button_new";\r
+ this.sentence_button_new.Size = new System.Drawing.Size(64, 24);\r
+ this.sentence_button_new.TabIndex = 10;\r
+ this.sentence_button_new.Text = "新規";\r
+ this.sentence_button_new.UseVisualStyleBackColor = true;\r
+ this.sentence_button_new.Click += new System.EventHandler(this.sentence_button_new_Click);\r
+ // \r
+ // sentence_radio0\r
+ // \r
+ this.sentence_radio0.Appearance = System.Windows.Forms.Appearance.Button;\r
+ this.sentence_radio0.AutoSize = true;\r
+ this.sentence_radio0.Location = new System.Drawing.Point(141, 254);\r
+ this.sentence_radio0.Name = "sentence_radio0";\r
+ this.sentence_radio0.Size = new System.Drawing.Size(21, 22);\r
+ this.sentence_radio0.TabIndex = 9;\r
+ this.sentence_radio0.Text = "0";\r
+ this.sentence_radio0.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;\r
+ this.sentence_radio0.UseVisualStyleBackColor = true;\r
+ this.sentence_radio0.CheckedChanged += new System.EventHandler(this.sentence_radio0_CheckedChanged);\r
+ // \r
+ // sentence_radio5\r
+ // \r
+ this.sentence_radio5.Appearance = System.Windows.Forms.Appearance.Button;\r
+ this.sentence_radio5.AutoSize = true;\r
+ this.sentence_radio5.Location = new System.Drawing.Point(114, 254);\r
+ this.sentence_radio5.Name = "sentence_radio5";\r
+ this.sentence_radio5.Size = new System.Drawing.Size(21, 22);\r
+ this.sentence_radio5.TabIndex = 8;\r
+ this.sentence_radio5.Text = "5";\r
+ this.sentence_radio5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;\r
+ this.sentence_radio5.UseVisualStyleBackColor = true;\r
+ this.sentence_radio5.CheckedChanged += new System.EventHandler(this.sentence_radio5_CheckedChanged);\r
+ // \r
+ // sentence_radio4\r
+ // \r
+ this.sentence_radio4.Appearance = System.Windows.Forms.Appearance.Button;\r
+ this.sentence_radio4.AutoSize = true;\r
+ this.sentence_radio4.Location = new System.Drawing.Point(87, 254);\r
+ this.sentence_radio4.Name = "sentence_radio4";\r
+ this.sentence_radio4.Size = new System.Drawing.Size(21, 22);\r
+ this.sentence_radio4.TabIndex = 7;\r
+ this.sentence_radio4.Text = "4";\r
+ this.sentence_radio4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;\r
+ this.sentence_radio4.UseVisualStyleBackColor = true;\r
+ this.sentence_radio4.CheckedChanged += new System.EventHandler(this.sentence_radio4_CheckedChanged);\r
+ // \r
+ // sentence_radio3\r
+ // \r
+ this.sentence_radio3.Appearance = System.Windows.Forms.Appearance.Button;\r
+ this.sentence_radio3.AutoSize = true;\r
+ this.sentence_radio3.Location = new System.Drawing.Point(60, 254);\r
+ this.sentence_radio3.Name = "sentence_radio3";\r
+ this.sentence_radio3.Size = new System.Drawing.Size(21, 22);\r
+ this.sentence_radio3.TabIndex = 6;\r
+ this.sentence_radio3.Text = "3";\r
+ this.sentence_radio3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;\r
+ this.sentence_radio3.UseVisualStyleBackColor = true;\r
+ this.sentence_radio3.CheckedChanged += new System.EventHandler(this.sentence_radio3_CheckedChanged);\r
+ // \r
+ // sentence_radio2\r
+ // \r
+ this.sentence_radio2.Appearance = System.Windows.Forms.Appearance.Button;\r
+ this.sentence_radio2.AutoSize = true;\r
+ this.sentence_radio2.Location = new System.Drawing.Point(33, 254);\r
+ this.sentence_radio2.Name = "sentence_radio2";\r
+ this.sentence_radio2.Size = new System.Drawing.Size(21, 22);\r
+ this.sentence_radio2.TabIndex = 5;\r
+ this.sentence_radio2.Text = "2";\r
+ this.sentence_radio2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;\r
+ this.sentence_radio2.UseVisualStyleBackColor = true;\r
+ this.sentence_radio2.CheckedChanged += new System.EventHandler(this.sentence_radio2_CheckedChanged);\r
+ // \r
+ // sentence_radio1\r
+ // \r
+ this.sentence_radio1.Appearance = System.Windows.Forms.Appearance.Button;\r
+ this.sentence_radio1.AutoSize = true;\r
+ this.sentence_radio1.Location = new System.Drawing.Point(6, 254);\r
+ this.sentence_radio1.Name = "sentence_radio1";\r
+ this.sentence_radio1.Size = new System.Drawing.Size(21, 22);\r
+ this.sentence_radio1.TabIndex = 4;\r
+ this.sentence_radio1.Text = "1";\r
+ this.sentence_radio1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;\r
+ this.sentence_radio1.UseVisualStyleBackColor = true;\r
+ this.sentence_radio1.CheckedChanged += new System.EventHandler(this.sentence_radio1_CheckedChanged);\r
+ // \r
+ // sentence_iconListBox\r
+ // \r
+ this.sentence_iconListBox.AllowDrop = true;\r
+ this.sentence_iconListBox.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;\r
+ this.sentence_iconListBox.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+ this.sentence_iconListBox.FormattingEnabled = true;\r
+ this.sentence_iconListBox.ItemHeight = 18;\r
+ this.sentence_iconListBox.Location = new System.Drawing.Point(6, 44);\r
+ this.sentence_iconListBox.Name = "sentence_iconListBox";\r
+ this.sentence_iconListBox.PreSelectedBackgroundImage = global::Lugens.Passer.Properties.Resources.preselect_7;\r
+ this.sentence_iconListBox.SearchItemMode = true;\r
+ this.sentence_iconListBox.SelectedBackgroundImage = global::Lugens.Passer.Properties.Resources.select_7;\r
+ this.sentence_iconListBox.Size = new System.Drawing.Size(156, 202);\r
+ this.sentence_iconListBox.Status = 1;\r
+ this.sentence_iconListBox.TabIndex = 38;\r
+ this.sentence_iconListBox.ViewMode = Lugens.Components.ViewMode.IconText;\r
+ this.sentence_iconListBox.SelectedIndexChanged += new System.EventHandler(this.sentence_iconListBox_SelectedIndexChanged);\r
+ this.sentence_iconListBox.DragDrop += new System.Windows.Forms.DragEventHandler(this.sentence_iconListBox_DragDrop);\r
+ this.sentence_iconListBox.DragEnter += new System.Windows.Forms.DragEventHandler(this.sentence_iconListBox_DragEnter_1);\r
+ this.sentence_iconListBox.QueryContinueDrag += new System.Windows.Forms.QueryContinueDragEventHandler(this.sentence_iconListBox_QueryContinueDrag);\r
+ this.sentence_iconListBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.sentence_iconListBox_KeyDown);\r
+ this.sentence_iconListBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.sentence_iconListBox_MouseDown);\r
+ this.sentence_iconListBox.MouseEnter += new System.EventHandler(this.sentence_iconListBox_MouseEnter);\r
+ this.sentence_iconListBox.MouseMove += new System.Windows.Forms.MouseEventHandler(this.sentence_iconListBox_MouseMove);\r
+ this.sentence_iconListBox.MouseUp += new System.Windows.Forms.MouseEventHandler(this.sentence_iconListBox_MouseUp);\r
+ // \r
+ // tabPageEngine\r
+ // \r
+ this.tabPageEngine.Controls.Add(this.engine_textBox_encoding);\r
+ this.tabPageEngine.Controls.Add(this.label25);\r
+ this.tabPageEngine.Controls.Add(this.engine_textBox_url);\r
+ this.tabPageEngine.Controls.Add(this.label24);\r
+ this.tabPageEngine.Controls.Add(this.engine_textBox_suggestUrl);\r
+ this.tabPageEngine.Controls.Add(this.label_engine_suggestUrl);\r
+ this.tabPageEngine.Controls.Add(this.label21);\r
+ this.tabPageEngine.Controls.Add(this.engine_textBox_comment);\r
+ this.tabPageEngine.Controls.Add(this.label11);\r
+ this.tabPageEngine.Controls.Add(this.engine_textBox_shortcut);\r
+ this.tabPageEngine.Controls.Add(this.label12);\r
+ this.tabPageEngine.Controls.Add(this.engine_textBox_display);\r
+ this.tabPageEngine.Controls.Add(this.label13);\r
+ this.tabPageEngine.Controls.Add(this.engine_textBox_searchUrl);\r
+ this.tabPageEngine.Controls.Add(this.engine_pictureBox);\r
+ this.tabPageEngine.Controls.Add(this.label9);\r
+ this.tabPageEngine.Controls.Add(this.label10);\r
+ this.tabPageEngine.Controls.Add(this.engine_textBox_name);\r
+ this.tabPageEngine.Controls.Add(this.engine_button_edit);\r
+ this.tabPageEngine.Controls.Add(this.engine_button_delete);\r
+ this.tabPageEngine.Controls.Add(this.engine_button_new);\r
+ this.tabPageEngine.Controls.Add(this.engine_iconListBox);\r
+ this.tabPageEngine.Location = new System.Drawing.Point(4, 22);\r
+ this.tabPageEngine.Name = "tabPageEngine";\r
+ this.tabPageEngine.Size = new System.Drawing.Size(513, 286);\r
+ this.tabPageEngine.TabIndex = 6;\r
+ this.tabPageEngine.Text = "検索エンジン";\r
+ this.tabPageEngine.UseVisualStyleBackColor = true;\r
+ // \r
+ // engine_textBox_encoding\r
+ // \r
+ this.engine_textBox_encoding.Location = new System.Drawing.Point(163, 176);\r
+ this.engine_textBox_encoding.Name = "engine_textBox_encoding";\r
+ this.engine_textBox_encoding.ReadOnly = true;\r
+ this.engine_textBox_encoding.Size = new System.Drawing.Size(174, 19);\r
+ this.engine_textBox_encoding.TabIndex = 56;\r
+ // \r
+ // label25\r
+ // \r
+ this.label25.AutoSize = true;\r
+ this.label25.BackColor = System.Drawing.Color.Transparent;\r
+ this.label25.Location = new System.Drawing.Point(161, 161);\r
+ this.label25.Name = "label25";\r
+ this.label25.Size = new System.Drawing.Size(56, 12);\r
+ this.label25.TabIndex = 55;\r
+ this.label25.Text = "文字コード";\r
+ // \r
+ // engine_textBox_url\r
+ // \r
+ this.engine_textBox_url.Location = new System.Drawing.Point(163, 62);\r
+ this.engine_textBox_url.Name = "engine_textBox_url";\r
+ this.engine_textBox_url.ReadOnly = true;\r
+ this.engine_textBox_url.Size = new System.Drawing.Size(342, 19);\r
+ this.engine_textBox_url.TabIndex = 54;\r
+ // \r
+ // label24\r
+ // \r
+ this.label24.AutoSize = true;\r
+ this.label24.BackColor = System.Drawing.Color.Transparent;\r
+ this.label24.Location = new System.Drawing.Point(165, 47);\r
+ this.label24.Name = "label24";\r
+ this.label24.Size = new System.Drawing.Size(27, 12);\r
+ this.label24.TabIndex = 53;\r
+ this.label24.Text = "URL";\r
+ // \r
+ // engine_textBox_suggestUrl\r
+ // \r
+ this.engine_textBox_suggestUrl.Location = new System.Drawing.Point(163, 137);\r
+ this.engine_textBox_suggestUrl.Name = "engine_textBox_suggestUrl";\r
+ this.engine_textBox_suggestUrl.ReadOnly = true;\r
+ this.engine_textBox_suggestUrl.Size = new System.Drawing.Size(342, 19);\r
+ this.engine_textBox_suggestUrl.TabIndex = 52;\r
+ // \r
+ // label_engine_suggestUrl\r
+ // \r
+ this.label_engine_suggestUrl.AutoSize = true;\r
+ this.label_engine_suggestUrl.BackColor = System.Drawing.Color.Transparent;\r
+ this.label_engine_suggestUrl.Location = new System.Drawing.Point(165, 122);\r
+ this.label_engine_suggestUrl.Name = "label_engine_suggestUrl";\r
+ this.label_engine_suggestUrl.Size = new System.Drawing.Size(71, 12);\r
+ this.label_engine_suggestUrl.TabIndex = 51;\r
+ this.label_engine_suggestUrl.Text = "サジェストURL";\r
+ // \r
+ // label21\r
+ // \r
+ this.label21.AutoSize = true;\r
+ this.label21.BackColor = System.Drawing.Color.Transparent;\r
+ this.label21.Location = new System.Drawing.Point(165, 239);\r
+ this.label21.Name = "label21";\r
+ this.label21.Size = new System.Drawing.Size(38, 12);\r
+ this.label21.TabIndex = 50;\r
+ this.label21.Text = "コメント";\r
+ this.label21.Visible = false;\r
+ // \r
+ // engine_textBox_comment\r
+ // \r
+ this.engine_textBox_comment.AcceptsReturn = true;\r
+ this.engine_textBox_comment.AcceptsTab = true;\r
+ this.engine_textBox_comment.Location = new System.Drawing.Point(163, 254);\r
+ this.engine_textBox_comment.Multiline = true;\r
+ this.engine_textBox_comment.Name = "engine_textBox_comment";\r
+ this.engine_textBox_comment.ReadOnly = true;\r
+ this.engine_textBox_comment.Size = new System.Drawing.Size(342, 22);\r
+ this.engine_textBox_comment.TabIndex = 49;\r
+ this.engine_textBox_comment.Visible = false;\r
+ // \r
+ // label11\r
+ // \r
+ this.label11.AutoSize = true;\r
+ this.label11.BackColor = System.Drawing.Color.Transparent;\r
+ this.label11.Location = new System.Drawing.Point(341, 202);\r
+ this.label11.Name = "label11";\r
+ this.label11.Size = new System.Drawing.Size(80, 12);\r
+ this.label11.TabIndex = 48;\r
+ this.label11.Text = "ショットカットキー";\r
+ // \r
+ // engine_textBox_shortcut\r
+ // \r
+ this.engine_textBox_shortcut.Location = new System.Drawing.Point(343, 217);\r
+ this.engine_textBox_shortcut.Name = "engine_textBox_shortcut";\r
+ this.engine_textBox_shortcut.ReadOnly = true;\r
+ this.engine_textBox_shortcut.Size = new System.Drawing.Size(160, 19);\r
+ this.engine_textBox_shortcut.TabIndex = 47;\r
+ // \r
+ // label12\r
+ // \r
+ this.label12.AutoSize = true;\r
+ this.label12.BackColor = System.Drawing.Color.Transparent;\r
+ this.label12.Location = new System.Drawing.Point(161, 202);\r
+ this.label12.Name = "label12";\r
+ this.label12.Size = new System.Drawing.Size(41, 12);\r
+ this.label12.TabIndex = 46;\r
+ this.label12.Text = "表示名";\r
+ // \r
+ // engine_textBox_display\r
+ // \r
+ this.engine_textBox_display.Location = new System.Drawing.Point(163, 217);\r
+ this.engine_textBox_display.Name = "engine_textBox_display";\r
+ this.engine_textBox_display.ReadOnly = true;\r
+ this.engine_textBox_display.Size = new System.Drawing.Size(174, 19);\r
+ this.engine_textBox_display.TabIndex = 45;\r
+ // \r
+ // label13\r
+ // \r
+ this.label13.AutoSize = true;\r
+ this.label13.BackColor = System.Drawing.Color.Transparent;\r
+ this.label13.Location = new System.Drawing.Point(161, 202);\r
+ this.label13.Name = "label13";\r
+ this.label13.Size = new System.Drawing.Size(41, 12);\r
+ this.label13.TabIndex = 44;\r
+ this.label13.Text = "定型文";\r
+ // \r
+ // engine_textBox_searchUrl\r
+ // \r
+ this.engine_textBox_searchUrl.Location = new System.Drawing.Point(163, 99);\r
+ this.engine_textBox_searchUrl.Name = "engine_textBox_searchUrl";\r
+ this.engine_textBox_searchUrl.ReadOnly = true;\r
+ this.engine_textBox_searchUrl.Size = new System.Drawing.Size(342, 19);\r
+ this.engine_textBox_searchUrl.TabIndex = 36;\r
+ // \r
+ // engine_pictureBox\r
+ // \r
+ this.engine_pictureBox.BackColor = System.Drawing.Color.Transparent;\r
+ this.engine_pictureBox.Location = new System.Drawing.Point(407, 26);\r
+ this.engine_pictureBox.Name = "engine_pictureBox";\r
+ this.engine_pictureBox.Size = new System.Drawing.Size(16, 16);\r
+ this.engine_pictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;\r
+ this.engine_pictureBox.TabIndex = 35;\r
+ this.engine_pictureBox.TabStop = false;\r
+ // \r
+ // label9\r
+ // \r
+ this.label9.AutoSize = true;\r
+ this.label9.BackColor = System.Drawing.Color.Transparent;\r
+ this.label9.Location = new System.Drawing.Point(165, 84);\r
+ this.label9.Name = "label9";\r
+ this.label9.Size = new System.Drawing.Size(51, 12);\r
+ this.label9.TabIndex = 34;\r
+ this.label9.Text = "検索URL";\r
+ // \r
+ // label10\r
+ // \r
+ this.label10.AutoSize = true;\r
+ this.label10.BackColor = System.Drawing.Color.Transparent;\r
+ this.label10.Location = new System.Drawing.Point(163, 10);\r
+ this.label10.Name = "label10";\r
+ this.label10.Size = new System.Drawing.Size(41, 12);\r
+ this.label10.TabIndex = 33;\r
+ this.label10.Text = "設定名";\r
+ // \r
+ // engine_textBox_name\r
+ // \r
+ this.engine_textBox_name.Location = new System.Drawing.Point(163, 25);\r
+ this.engine_textBox_name.Name = "engine_textBox_name";\r
+ this.engine_textBox_name.ReadOnly = true;\r
+ this.engine_textBox_name.Size = new System.Drawing.Size(238, 19);\r
+ this.engine_textBox_name.TabIndex = 32;\r
+ // \r
+ // engine_button_edit\r
+ // \r
+ this.engine_button_edit.Enabled = false;\r
+ this.engine_button_edit.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.engine_button_edit.Location = new System.Drawing.Point(77, 254);\r
+ this.engine_button_edit.Name = "engine_button_edit";\r
+ this.engine_button_edit.Size = new System.Drawing.Size(64, 24);\r
+ this.engine_button_edit.TabIndex = 31;\r
+ this.engine_button_edit.Text = "編集";\r
+ this.engine_button_edit.Click += new System.EventHandler(this.engine_button_edit_Click);\r
+ // \r
+ // engine_button_delete\r
+ // \r
+ this.engine_button_delete.Enabled = false;\r
+ this.engine_button_delete.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.engine_button_delete.Location = new System.Drawing.Point(147, 254);\r
+ this.engine_button_delete.Name = "engine_button_delete";\r
+ this.engine_button_delete.Size = new System.Drawing.Size(64, 24);\r
+ this.engine_button_delete.TabIndex = 30;\r
+ this.engine_button_delete.Text = "削除";\r
+ this.engine_button_delete.Click += new System.EventHandler(this.engine_button_delete_Click);\r
+ // \r
+ // engine_button_new\r
+ // \r
+ this.engine_button_new.FlatStyle = System.Windows.Forms.FlatStyle.System;\r
+ this.engine_button_new.Location = new System.Drawing.Point(7, 254);\r
+ this.engine_button_new.Name = "engine_button_new";\r
+ this.engine_button_new.Size = new System.Drawing.Size(64, 24);\r
+ this.engine_button_new.TabIndex = 29;\r
+ this.engine_button_new.Text = "新規";\r
+ this.engine_button_new.Click += new System.EventHandler(this.engine_button_new_Click);\r
+ // \r
+ // engine_iconListBox\r
+ // \r
+ this.engine_iconListBox.AllowDrop = true;\r
+ this.engine_iconListBox.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;\r
+ this.engine_iconListBox.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+ this.engine_iconListBox.FormattingEnabled = true;\r
+ this.engine_iconListBox.ItemHeight = 18;\r
+ this.engine_iconListBox.Location = new System.Drawing.Point(7, 10);\r
+ this.engine_iconListBox.Name = "engine_iconListBox";\r
+ this.engine_iconListBox.PreSelectedBackgroundImage = global::Lugens.Passer.Properties.Resources.preselect_7;\r
+ this.engine_iconListBox.SearchItemMode = true;\r
+ this.engine_iconListBox.SelectedBackgroundImage = global::Lugens.Passer.Properties.Resources.select_7;\r
+ this.engine_iconListBox.Size = new System.Drawing.Size(150, 238);\r
+ this.engine_iconListBox.Status = 1;\r
+ this.engine_iconListBox.TabIndex = 28;\r
+ this.engine_iconListBox.ViewMode = Lugens.Components.ViewMode.IconText;\r
+ this.engine_iconListBox.SelectedIndexChanged += new System.EventHandler(this.engine_iconListBox_SelectedIndexChanged);\r
+ this.engine_iconListBox.DragDrop += new System.Windows.Forms.DragEventHandler(this.engine_iconListBox_DragDrop);\r
+ this.engine_iconListBox.DragEnter += new System.Windows.Forms.DragEventHandler(this.engine_iconListBox_DragEnter);\r
+ this.engine_iconListBox.QueryContinueDrag += new System.Windows.Forms.QueryContinueDragEventHandler(this.engine_iconListBox_QueryContinueDrag);\r
+ this.engine_iconListBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.engine_iconListBox_MouseDown);\r
+ this.engine_iconListBox.MouseEnter += new System.EventHandler(this.engine_iconListBox_MouseEnter);\r
+ this.engine_iconListBox.MouseMove += new System.Windows.Forms.MouseEventHandler(this.engine_iconListBox_MouseMove);\r
+ this.engine_iconListBox.MouseUp += new System.Windows.Forms.MouseEventHandler(this.engine_iconListBox_MouseUp);\r
+ // \r
+ // tabPageMacro\r
+ // \r
+ this.tabPageMacro.BackColor = System.Drawing.Color.Transparent;\r
+ this.tabPageMacro.Controls.Add(this.macro_textBox_summary);\r
+ this.tabPageMacro.Controls.Add(this.label20);\r
+ this.tabPageMacro.Controls.Add(this.label19);\r
+ this.tabPageMacro.Controls.Add(this.macro_textBox_description);\r
+ this.tabPageMacro.Controls.Add(this.label22);\r
+ this.tabPageMacro.Controls.Add(this.label23);\r
+ this.tabPageMacro.Controls.Add(this.macro_textBox_id);\r
+ this.tabPageMacro.Controls.Add(this.macro_iconListBox);\r
+ this.tabPageMacro.Location = new System.Drawing.Point(4, 22);\r
+ this.tabPageMacro.Name = "tabPageMacro";\r
+ this.tabPageMacro.Padding = new System.Windows.Forms.Padding(3);\r
+ this.tabPageMacro.Size = new System.Drawing.Size(513, 286);\r
+ this.tabPageMacro.TabIndex = 5;\r
+ this.tabPageMacro.Text = "マクロ一覧";\r
+ this.tabPageMacro.UseVisualStyleBackColor = true;\r
+ // \r
+ // macro_textBox_summary\r
+ // \r
+ this.macro_textBox_summary.Location = new System.Drawing.Point(167, 59);\r
+ this.macro_textBox_summary.Name = "macro_textBox_summary";\r
+ this.macro_textBox_summary.ReadOnly = true;\r
+ this.macro_textBox_summary.Size = new System.Drawing.Size(330, 19);\r
+ this.macro_textBox_summary.TabIndex = 43;\r
+ // \r
+ // label20\r
+ // \r
+ this.label20.AutoSize = true;\r
+ this.label20.Location = new System.Drawing.Point(167, 44);\r
+ this.label20.Name = "label20";\r
+ this.label20.Size = new System.Drawing.Size(53, 12);\r
+ this.label20.TabIndex = 42;\r
+ this.label20.Text = "機能概要";\r
+ // \r
+ // label19\r
+ // \r
+ this.label19.AutoSize = true;\r
+ this.label19.Location = new System.Drawing.Point(167, 81);\r
+ this.label19.Name = "label19";\r
+ this.label19.Size = new System.Drawing.Size(53, 12);\r
+ this.label19.TabIndex = 37;\r
+ this.label19.Text = "機能説明";\r
+ // \r
+ // macro_textBox_description\r
+ // \r
+ this.macro_textBox_description.Font = new System.Drawing.Font("MS ゴシック", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128)));\r
+ this.macro_textBox_description.Location = new System.Drawing.Point(167, 96);\r
+ this.macro_textBox_description.Multiline = true;\r
+ this.macro_textBox_description.Name = "macro_textBox_description";\r
+ this.macro_textBox_description.ReadOnly = true;\r
+ this.macro_textBox_description.Size = new System.Drawing.Size(330, 184);\r
+ this.macro_textBox_description.TabIndex = 32;\r
+ // \r
+ // label22\r
+ // \r
+ this.label22.AutoSize = true;\r
+ this.label22.Location = new System.Drawing.Point(165, 6);\r
+ this.label22.Name = "label22";\r
+ this.label22.Size = new System.Drawing.Size(42, 12);\r
+ this.label22.TabIndex = 34;\r
+ this.label22.Text = "マクロID";\r
+ // \r
+ // label23\r
+ // \r
+ this.label23.AutoSize = true;\r
+ this.label23.Location = new System.Drawing.Point(142, 5);\r
+ this.label23.Name = "label23";\r
+ this.label23.Size = new System.Drawing.Size(0, 12);\r
+ this.label23.TabIndex = 33;\r
+ // \r
+ // macro_textBox_id\r
+ // \r
+ this.macro_textBox_id.Location = new System.Drawing.Point(167, 22);\r
+ this.macro_textBox_id.Name = "macro_textBox_id";\r
+ this.macro_textBox_id.ReadOnly = true;\r
+ this.macro_textBox_id.Size = new System.Drawing.Size(330, 19);\r
+ this.macro_textBox_id.TabIndex = 29;\r
+ // \r
+ // macro_iconListBox\r
+ // \r
+ this.macro_iconListBox.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;\r
+ this.macro_iconListBox.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+ this.macro_iconListBox.FormattingEnabled = true;\r
+ this.macro_iconListBox.ItemHeight = 18;\r
+ this.macro_iconListBox.Location = new System.Drawing.Point(4, 6);\r
+ this.macro_iconListBox.Name = "macro_iconListBox";\r
+ this.macro_iconListBox.PreSelectedBackgroundImage = global::Lugens.Passer.Properties.Resources.preselect_7;\r
+ this.macro_iconListBox.SearchItemMode = true;\r
+ this.macro_iconListBox.SelectedBackgroundImage = ((System.Drawing.Image)(resources.GetObject("macro_iconListBox.SelectedBackgroundImage")));\r
+ this.macro_iconListBox.Size = new System.Drawing.Size(157, 274);\r
+ this.macro_iconListBox.Status = 1;\r
+ this.macro_iconListBox.TabIndex = 41;\r
+ this.macro_iconListBox.ViewMode = Lugens.Components.ViewMode.IconText;\r
+ this.macro_iconListBox.SelectedIndexChanged += new System.EventHandler(this.macro_iconListBox_SelectedIndexChanged);\r
+ // \r
+ // columnHeader1\r
+ // \r
+ this.columnHeader1.Width = 105;\r
+ // \r
+ // SettingForm\r
+ // \r
+ this.AllowDrop = true;\r
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);\r
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\r
+ this.ClientSize = new System.Drawing.Size(545, 360);\r
+ this.ControlBox = false;\r
+ this.Controls.Add(this.button_cancel);\r
+ this.Controls.Add(this.button_ok);\r
+ this.Controls.Add(this.tabControl);\r
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;\r
+ this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));\r
+ this.MaximizeBox = false;\r
+ this.MinimizeBox = false;\r
+ this.Name = "SettingForm";\r
+ this.ShowInTaskbar = false;\r
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;\r
+ this.Text = "設定";\r
+ this.TopMost = true;\r
+ this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.SettingForm_FormClosing);\r
+ this.DragDrop += new System.Windows.Forms.DragEventHandler(this.SettingForm_DragDrop);\r
+ this.DragEnter += new System.Windows.Forms.DragEventHandler(this.SettingForm_DragEnter);\r
+ this.tabPageCommand.ResumeLayout(false);\r
+ this.tabPageCommand.PerformLayout();\r
+ ((System.ComponentModel.ISupportInitialize)(this.command_pictureBox1)).EndInit();\r
+ this.tabControl.ResumeLayout(false);\r
+ this.tabPageSetting.ResumeLayout(false);\r
+ this.tabPageSetting.PerformLayout();\r
+ ((System.ComponentModel.ISupportInitialize)(this.trackBar_opacity)).EndInit();\r
+ this.groupBox_hotKey.ResumeLayout(false);\r
+ this.groupBox_hotKey.PerformLayout();\r
+ this.tabPageSentence.ResumeLayout(false);\r
+ this.tabPageSentence.PerformLayout();\r
+ this.tabPageEngine.ResumeLayout(false);\r
+ this.tabPageEngine.PerformLayout();\r
+ ((System.ComponentModel.ISupportInitialize)(this.engine_pictureBox)).EndInit();\r
+ this.tabPageMacro.ResumeLayout(false);\r
+ this.tabPageMacro.PerformLayout();\r
+ this.ResumeLayout(false);\r
+\r
}
#endregion
private System.Windows.Forms.Label label_engine_suggestUrl;
private System.Windows.Forms.CheckBox checkBox_memorizeEngine;
private System.Windows.Forms.TextBox engine_textBox_url;
- private System.Windows.Forms.Label label24;
+ private System.Windows.Forms.Label label24;\r
+ private System.Windows.Forms.TextBox engine_textBox_encoding;\r
+ private System.Windows.Forms.Label label25;
}
}
\ No newline at end of file
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Diagnostics;
-using System.Drawing;
-using System.Reflection;
-using System.Text;
-using System.Runtime.InteropServices;
-
-using System.Windows.Forms;
-using System.Xml;
-
-using Lugens.Components;
-using Lugens.Utils;
-using Lugens.Passer.Macro;
-using System.IO;
-
-namespace Lugens.Passer
-{
- public partial class SettingForm : Form
- {
-
- //private ImageList imageList;
-
- //private Point mousePoint;
-
- public Form TargetForm = null;
-
- private Dictionary<int, int> checkHotKeyDic = new Dictionary<int, int>();
-
- /// <summary>
- /// \83R\83}\83\93\83h\83\8a\83X\83g
- /// </summary>
- private List<string> commandListTmp = new List<string>();
- public List<string> CommandListTmp
- {
- get { return commandListTmp; }
- }
- private Dictionary<string, CommandInfo> commandDicTmp = new Dictionary<string, CommandInfo>();
- public Dictionary<string, CommandInfo> CommandDicTmp
- {
- get { return commandDicTmp; }
- }
-
- /// <summary>
- /// \83O\83\8b\81[\83v\96\88\82Ì\92è\8c^\95¶\82Ì\83\8a\83X\83g
- /// </summary>
- private List<SentenceInfo>[] sentenceGroupListTmp = new List<SentenceInfo>[6];
- public List<SentenceInfo>[] SentenceGroupListTmp
- {
- get { return sentenceGroupListTmp; }
- }
-
- /// <summary>
- /// \83}\83N\83\8d\83\8a\83X\83g
- /// </summary>
- private Dictionary<string, MacroInfo> macroDicTmp = new Dictionary<string, MacroInfo>();
- public Dictionary<string, MacroInfo> MacroDicTmp
- {
- get { return macroDicTmp; }
- }
-
- /// <summary>
- /// \92è\8c^\95¶\82Ì\83O\83\8b\81[\83v\96¼
- /// </summary>
- private string[] sentenceGroupNameTmp = new string[6];
- public string[] SentenceGroupNameTmp
- {
- get { return sentenceGroupNameTmp; }
- }
-
- private int sentenceRadio = -1;
- public int SentenceRadio
- {
- get { return sentenceRadio; }
- }
-
- /// <summary>
- /// \8c\9f\8dõ\83G\83\93\83W\83\93\83\8a\83X\83g
- /// </summary>
- private List<string> engineListTmp = new List<string>();
- public List<string> EngineListTmp
- {
- get { return engineListTmp; }
- }
- private Dictionary<string, EngineInfo> engineDicTmp = new Dictionary<string, EngineInfo>();
- public Dictionary<string, EngineInfo> EngineDicTmp
- {
- get { return engineDicTmp; }
- }
-
- private static readonly List<int> acceptKeyList = null;
- public static List<int> AcceptKeyList
- {
- get { return acceptKeyList; }
- }
-
- public TabControl TabControl
- {
- get { return tabControl; }
- }
-
- static SettingForm()
- {
- acceptKeyList = new List<int>();
- acceptKeyList.Add((int)Keycode.F1); // F1
- acceptKeyList.Add((int)Keycode.F2); // F2
- acceptKeyList.Add((int)Keycode.F3); // F3
- acceptKeyList.Add((int)Keycode.F4); // F4
- acceptKeyList.Add((int)Keycode.F5); // F5
- acceptKeyList.Add((int)Keycode.F6); // F6
- acceptKeyList.Add((int)Keycode.F7); // F7
- acceptKeyList.Add((int)Keycode.F8); // F8
- acceptKeyList.Add((int)Keycode.F9); // F9
- acceptKeyList.Add((int)Keycode.F10); // F10
- acceptKeyList.Add((int)Keycode.F11); // F11
- acceptKeyList.Add((int)Keycode.F12); // F12
- acceptKeyList.Add((int)Keycode.D1); // D1
- acceptKeyList.Add((int)Keycode.D2); // D2
- acceptKeyList.Add((int)Keycode.D3); // D3
- acceptKeyList.Add((int)Keycode.D4); // D4
- acceptKeyList.Add((int)Keycode.D5); // D5
- acceptKeyList.Add((int)Keycode.D6); // D6
- acceptKeyList.Add((int)Keycode.D7); // D7
- acceptKeyList.Add((int)Keycode.D8); // D8
- acceptKeyList.Add((int)Keycode.D9); // D9
- acceptKeyList.Add((int)Keycode.D0); // D0
- acceptKeyList.Add((int)Keycode.Equals); // =
- acceptKeyList.Add((int)Keycode.Tilde); // ~
- acceptKeyList.Add((int)Keycode.VerticalBar); // |
- acceptKeyList.Add((int)Keycode.Q); // Q
- acceptKeyList.Add((int)Keycode.W); // W
- acceptKeyList.Add((int)Keycode.E); // E
- acceptKeyList.Add((int)Keycode.R); // R
- acceptKeyList.Add((int)Keycode.T); // T
- acceptKeyList.Add((int)Keycode.Y); // Y
- acceptKeyList.Add((int)Keycode.U); // U
- acceptKeyList.Add((int)Keycode.I); // I
- acceptKeyList.Add((int)Keycode.O); // O
- acceptKeyList.Add((int)Keycode.P); // P
- acceptKeyList.Add((int)Keycode.At); // @
- acceptKeyList.Add((int)Keycode.OpenBracket); // [
- acceptKeyList.Add((int)Keycode.A); // A
- acceptKeyList.Add((int)Keycode.S); // S
- acceptKeyList.Add((int)Keycode.D); // D
- acceptKeyList.Add((int)Keycode.F); // F
- acceptKeyList.Add((int)Keycode.G); // G
- acceptKeyList.Add((int)Keycode.H); // H
- acceptKeyList.Add((int)Keycode.J); // J
- acceptKeyList.Add((int)Keycode.K); // K
- acceptKeyList.Add((int)Keycode.L); // L
- acceptKeyList.Add((int)Keycode.SemiColon); // ;
- acceptKeyList.Add((int)Keycode.Colon); // :
- acceptKeyList.Add((int)Keycode.CloseBracket); // ]
- acceptKeyList.Add((int)Keycode.Z); // Z
- acceptKeyList.Add((int)Keycode.X); // X
- acceptKeyList.Add((int)Keycode.C); // C
- acceptKeyList.Add((int)Keycode.V); // V
- acceptKeyList.Add((int)Keycode.B); // B
- acceptKeyList.Add((int)Keycode.N); // N
- acceptKeyList.Add((int)Keycode.M); // M
- acceptKeyList.Add((int)Keycode.Less); // <
- acceptKeyList.Add((int)Keycode.Greater); // >
- acceptKeyList.Add((int)Keycode.Question); // ?
- acceptKeyList.Add((int)Keycode.Underscore); // _
- acceptKeyList.Add((int)Keycode.Left); // \81©
- acceptKeyList.Add((int)Keycode.Up); // \81ª
- acceptKeyList.Add((int)Keycode.Right); // \81¨
- acceptKeyList.Add((int)Keycode.Down); // \81«
- acceptKeyList.Add((int)Keycode.Insert);
- acceptKeyList.Add((int)Keycode.Delete);
- acceptKeyList.Add((int)Keycode.Home);
- acceptKeyList.Add((int)Keycode.End);
- acceptKeyList.Add((int)Keycode.PageUp);
- acceptKeyList.Add((int)Keycode.PageDown);
- acceptKeyList.Add((int)Keycode.Space);
- acceptKeyList.Add((int)Keycode.BackSpace);
- acceptKeyList.Add((int)Keycode.Escape);
- acceptKeyList.Add((int)Keycode.Tab);
- acceptKeyList.Add((int)Keycode.Enter);
- acceptKeyList.Add((int)Keycode.Win);
- acceptKeyList.Add((int)Keycode.Control);
- acceptKeyList.Add((int)Keycode.LControl);
- acceptKeyList.Add((int)Keycode.RControl);
- acceptKeyList.Add((int)Keycode.Alt);
- acceptKeyList.Add((int)Keycode.LAlt);
- acceptKeyList.Add((int)Keycode.RAlt);
- acceptKeyList.Add((int)Keycode.Shift);
- acceptKeyList.Add((int)Keycode.LShift);
- acceptKeyList.Add((int)Keycode.RShift);
- }
-
- public SettingForm()
- {
- InitializeComponent();
-
- this.hotKeyTextBox_Main.AcceptKeys = SettingForm.acceptKeyList;
- this.hotKeyTextBox_Main.GotFocus += SettingForm.hotKeyTextBox_GotFocus;
- this.hotKeyTextBox_Main.LostFocus += SettingForm.hotKeyTextBox_LostFocus;
- this.hotKeyTextBox_Main.TextChanged += this.hotKeyTextBox_TextChanged;
-
- this.hotKeyTextBox_Clip.AcceptKeys = SettingForm.acceptKeyList;
- this.hotKeyTextBox_Clip.GotFocus += SettingForm.hotKeyTextBox_GotFocus;
- this.hotKeyTextBox_Clip.LostFocus += SettingForm.hotKeyTextBox_LostFocus;
- this.hotKeyTextBox_Clip.TextChanged += this.hotKeyTextBox_TextChanged;
-
- this.hotKeyTextBox_ClipPaste.AcceptKeys = SettingForm.acceptKeyList;
- this.hotKeyTextBox_ClipPaste.GotFocus += SettingForm.hotKeyTextBox_GotFocus;
- this.hotKeyTextBox_ClipPaste.LostFocus += SettingForm.hotKeyTextBox_LostFocus;
- this.hotKeyTextBox_ClipPaste.TextChanged += this.hotKeyTextBox_TextChanged;
-
- this.hotKeyTextBox_KeyRecord.AcceptKeys = SettingForm.acceptKeyList;
- this.hotKeyTextBox_KeyRecord.GotFocus += SettingForm.hotKeyTextBox_GotFocus;
- this.hotKeyTextBox_KeyRecord.LostFocus += SettingForm.hotKeyTextBox_LostFocus;
- this.hotKeyTextBox_KeyRecord.TextChanged += this.hotKeyTextBox_TextChanged;
-
- this.hotKeyTextBox_KeyPlay.AcceptKeys = SettingForm.acceptKeyList;
- this.hotKeyTextBox_KeyPlay.GotFocus += SettingForm.hotKeyTextBox_GotFocus;
- this.hotKeyTextBox_KeyPlay.LostFocus += SettingForm.hotKeyTextBox_LostFocus;
- this.hotKeyTextBox_KeyPlay.TextChanged += this.hotKeyTextBox_TextChanged;
- }
-
- /// <summary>
- /// \90Ý\92è\83t\83@\83C\83\8b\82Ì\93Ç\82Ý\8d\9e\82Ý
- /// </summary>
- private void ReadSetting()
- {
- this.checkBox_fadeIn.Checked = Settings.GetBool(Settings.PASSER_MAIN_FADEIN);
- this.checkBox_showBalloonWhileRecoding.Checked = Settings.GetBool(Settings.PASSER_MAIN_SHOWBALLOONWHILERECODING);
- this.checkBox_sendRecordToClipboard.Checked = Settings.GetBool(Settings.PASSER_MAIN_SENDRECORDTOCLIPBOARD);
- this.checkBox_showScriptToolTip.Checked = Settings.GetBool(Settings.PASSER_SENTENCE_SHOWSCRIPTTOOLTIP);
- this.checkBox_memorizeEngine.Checked = Settings.GetBool(Settings.PASSER_MAIN_MEMORIZE_ENGINE);
- this.hotKeyTextBox_Main.HotKeycode = Settings.GetInt(Settings.PASSER_HOTKEY_MAIN);
- this.hotKeyTextBox_Clip.HotKeycode = Settings.GetInt(Settings.PASSER_HOTKEY_CLIP);
- this.hotKeyTextBox_ClipPaste.HotKeycode = Settings.GetInt(Settings.PASSER_HOTKEY_CLIP_PASTE);
- this.hotKeyTextBox_KeyRecord.HotKeycode = Settings.GetInt(Settings.PASSER_HOTKEY_KEY_RECORD);
- this.hotKeyTextBox_KeyPlay.HotKeycode = Settings.GetInt(Settings.PASSER_HOTKEY_KEY_PLAY);
- this.trackBar_opacity.Value = Settings.GetInt(Settings.PASSER_FORM_OPACITY);
- this.textBox_opacity.Text = this.trackBar_opacity.Value.ToString();
-
- }
-
- /// <summary>
- /// \83}\83N\83\8d\82Ì\93Ç\82Ý\8d\9e\82Ý
- /// </summary>
- public void ReadMacroList()
- {
- this.macro_textBox_id.Text = "";
- this.macro_textBox_summary.Text = "";
- this.macro_textBox_description.Text = "";
-
- this.macroDicTmp.Clear();
- this.macro_iconListBox.Items.Clear();
- foreach (string key in Program.MacroDic.Keys)
- {
- MacroInfo info = new MacroInfo();
- info.Macro = Program.MacroDic[key].Macro;
- info.Item = new IconListBoxItem();
- info.Item.Name = info.Macro.Id();
- info.Item.Text = info.Macro.Name();
- info.Item.IconImage = Properties.Resources.IconMacro.ToBitmap();
- info.Item.Regex = Program.Ime.GetRomaji(info.Item.Text);
- this.macroDicTmp.Add(key, info);
- this.macro_iconListBox.Items.Add(info.Item);
- }
- }
-
- /// <summary>
- /// \92è\8c^\95¶\82Ì\93Ç\82Ý\8d\9e\82Ý
- /// </summary>
- public void ReadSentenceList()
- {
- for (int i = 0; i < sentenceGroupNameTmp.Length; i++)
- {
- this.sentenceGroupNameTmp[i] = Program.sentenceGroupName[i];
- this.sentenceGroupListTmp[i] = new List<SentenceInfo>();
- if (Program.SentenceGroupList[i] != null)
- {
- foreach (SentenceInfo info in Program.SentenceGroupList[i])
- this.sentenceGroupListTmp[i].Add(info);
- }
- }
- this.sentence_radio1.Checked = true;
- this.sentenceRadio = 1;
- this.ChangeSentenceGroup();
- }
-
- /// <summary>
- /// \8c\9f\8dõ\83G\83\93\83W\83\93\82Ì\93Ç\82Ý\8d\9e\82Ý
- /// </summary>
- public void ReadEngineList()
- {
- Program.SettingForm.ReadEngineList(false);
- /*
- this.engineListTmp.Clear();
- this.engineDicTmp.Clear();
- this.engine_iconListBox.Items.Clear();
-
- foreach (string key in Program.EngineList)
- {
- this.engineListTmp.Add(key);
- this.EngineDicTmp.Add(key, Program.EngineDic[key]);
- IconListBoxItem item = new IconListBoxItem();
- item.Name = key;
- item.Text = key;
- item.IconImage = this.EngineDicTmp[key].IconImage;
- item.Type = IconListBoxType.Command;
- item.Regex = Program.Ime.GetRomaji(key);
- this.engine_iconListBox.Items.Add(item);
- }
- */
- }
-
- /// <summary>
- /// \83R\83}\83\93\83h\83t\83@\83C\83\8b\82Ì\93Ç\82Ý\8d\9e\82Ý
- /// </summary>
- public void ReadCommandList()
- {
- this.ReadCommandList(false);
- }
-
- /// <summary>
- /// \83R\83}\83\93\83h\83t\83@\83C\83\8b\82Ì\93Ç\82Ý\8d\9e\82Ý
- /// </summary>
- public void ReadCommandList(bool refresh)
- {
- this.command_textBox_name.Text = "";
- this.command_textBox_target.Text = "";
- this.command_textBox_path.Text = "";
- this.command_textBox_arguments.Text = "";
- this.command_textBox_comment.Text = "";
- this.command_pictureBox1.Image = null;
-
- if (refresh)
- {
- this.command_iconListBox.Items.Clear();
- foreach(string key in this.commandListTmp)
- {
- IconListBoxItem item = new IconListBoxItem();
- item.Name = key;
- item.Text = key;
- item.IconImage = this.CommandDicTmp[key].ApplicationIcon.ToBitmap();
- item.Type = IconListBoxType.Command;
- item.Regex = Program.Ime.GetRomaji(key);
- this.command_iconListBox.Items.Add(item);
- }
- }
- else
- {
- this.commandListTmp.Clear();
- this.commandDicTmp.Clear();
- this.command_iconListBox.Items.Clear();
- foreach (string key in Program.CommandList)
- {
- this.commandListTmp.Add(key);
- this.commandDicTmp.Add(key, Program.CommandDic[key]);
- IconListBoxItem item = new IconListBoxItem();
- item.Name = key;
- item.Text = key;
- item.IconImage = this.CommandDicTmp[key].ApplicationIcon.ToBitmap();
- item.Type = IconListBoxType.Command;
- item.Regex = Program.Ime.GetRomaji(key);
- this.command_iconListBox.Items.Add(item);
- }
- }
- }
-
- /// <summary>
- /// \8c\9f\8dõ\83G\83\93\83W\83\93\83t\83@\83C\83\8b\82Ì\93Ç\82Ý\8d\9e\82Ý
- /// </summary>
- public void ReadEngineList(bool refresh)
- {
- this.engine_textBox_name.Text = "";
- this.engine_textBox_url.Text = "";
- this.engine_textBox_searchUrl.Text = "";
- this.engine_textBox_suggestUrl.Text = "";
- this.engine_textBox_shortcut.Text = "";
- this.engine_textBox_display.Text = "";
- this.engine_textBox_comment.Text = "";
- this.engine_pictureBox.Image = null;
-
- if (refresh)
- {
- this.engine_iconListBox.Items.Clear();
- foreach (string key in this.engineListTmp)
- {
- if (this.EngineDicTmp[key].Removed)
- continue;
-
- IconListBoxItem item = new IconListBoxItem();
- item.Name = key;
- item.Text = key;
- item.IconImage = this.EngineDicTmp[key].IconImage;
- item.Type = IconListBoxType.Command;
- item.Regex = null;
- this.engine_iconListBox.Items.Add(item);
- }
- }
- else
- {
- this.engineListTmp.Clear();
- this.engineDicTmp.Clear();
- this.engine_iconListBox.Items.Clear();
- foreach (string key in Program.EngineList)
- {
- this.engineListTmp.Add(key);
- EngineInfo info = new EngineInfo();
- info.Id = Program.EngineDic[key].Id;
- info.Name = Program.EngineDic[key].Name;
- info.Url = Program.EngineDic[key].Url;
- info.Shortcut = Program.EngineDic[key].Shortcut;
- info.SearchUrl = Program.EngineDic[key].SearchUrl;
- info.SuggestUrl = Program.EngineDic[key].SuggestUrl;
- info.Display = Program.EngineDic[key].Display;
- info.Type = Program.EngineDic[key].Type;
- info.IconImage = Program.EngineDic[key].IconImage;
- info.IconChanged = false;
- info.Removed = false;
- this.engineDicTmp.Add(key, info);
- IconListBoxItem item = new IconListBoxItem();
- item.Name = key;
- item.Text = key;
- item.IconImage = this.EngineDicTmp[key].IconImage;
- item.Type = IconListBoxType.SearchEngine;
- item.Regex = Program.Ime.GetRomaji(key);
- this.engine_iconListBox.Items.Add(item);
- }
- }
- }
-
- /// <summary>
- /// \90Ý\92è\83t\83@\83C\83\8b\82Ì\94½\89f
- /// </summary>
- public void ReflectSetting()
- {
- Settings.Set(Settings.PASSER_MAIN_FADEIN, this.checkBox_fadeIn.Checked);
- Settings.Set(Settings.PASSER_MAIN_SHOWBALLOONWHILERECODING, this.checkBox_showBalloonWhileRecoding.Checked);
- Settings.Set(Settings.PASSER_MAIN_SENDRECORDTOCLIPBOARD, this.checkBox_sendRecordToClipboard.Checked);
- Settings.Set(Settings.PASSER_MAIN_MEMORIZE_ENGINE, this.checkBox_memorizeEngine.Checked);
- Settings.Set(Settings.PASSER_SENTENCE_SHOWSCRIPTTOOLTIP, this.checkBox_showScriptToolTip.Checked);
- Settings.Set(Settings.PASSER_HOTKEY_MAIN, this.hotKeyTextBox_Main.HotKeycode);
- Settings.Set(Settings.PASSER_HOTKEY_CLIP, this.hotKeyTextBox_Clip.HotKeycode);
- Settings.Set(Settings.PASSER_HOTKEY_CLIP_PASTE, this.hotKeyTextBox_ClipPaste.HotKeycode);
- Settings.Set(Settings.PASSER_HOTKEY_KEY_RECORD, this.hotKeyTextBox_KeyRecord.HotKeycode);
- Settings.Set(Settings.PASSER_HOTKEY_KEY_PLAY, this.hotKeyTextBox_KeyPlay.HotKeycode);
- Settings.Set(Settings.PASSER_FORM_OPACITY, this.trackBar_opacity.Value);
- }
-
- /// <summary>
- /// \83R\83}\83\93\83h\83\8a\83X\83g\82Ì\94½\89f
- /// </summary>
- public void ReflectCommandList()
- {
- Program.CommandList.Clear();
- Program.CommandDic.Clear();
- foreach (string key in this.commandListTmp)
- {
- CommandInfo info = this.commandDicTmp[key];
- Program.AddCommand(info);
- }
- }
-
- /// <summary>
- /// \92è\8c^\95¶\83\8a\83X\83g\82Ì\94½\89f
- /// </summary>
- public void ReflectSentenceList()
- {
- for (int i = 0; i < this.SentenceGroupListTmp.Length; i++)
- {
- Program.sentenceGroupName[i] = this.sentenceGroupNameTmp[i];
- Program.SentenceGroupList[i].Clear();
- Program.SentenceGroupList[i].AddRange(this.SentenceGroupListTmp[i]);
- }
- }
-
- /// <summary>
- /// \8c\9f\8dõ\83G\83\93\83W\83\93\83\8a\83X\83g\82Ì\94½\89f
- /// </summary>
- public void ReflectEngineList()
- {
- Program.EngineList.Clear();
- Program.EngineDic.Clear();
- foreach (string key in this.engineListTmp)
- {
- EngineInfo info = this.engineDicTmp[key];
- Program.EngineList.Add(info.Name);
- Program.EngineDic.Add(info.Name, info);
- }
- }
-
- public void RequestCommandListViewSelect(string key)
- {
- for (int i = 0; i < this.command_iconListBox.Items.Count; i++)
- {
- if (key.Equals(((IconListBoxItem)this.command_iconListBox.Items[i]).Text))
- {
- this.command_iconListBox.SelectedIndex = i;
- this.command_iconListBox_SelectedIndexChanged(null, null);
- return;
- }
-
- }
- }
-
- public void RequestSentenceListViewSelect(int group, int index, bool refresh)
- {
- if (refresh || this.SentenceRadio != group)
- this.ChangeSentenceGroup(group);
-
- if (this.sentence_iconListBox.Items.Count == 0)
- return;
-
- index = this.sentence_iconListBox.Items.Count > index ? index : this.sentence_iconListBox.Items.Count - 1;
- this.sentence_iconListBox.SelectedIndex = index;
-
- }
-
- public void RequestEngineListViewSelect(string key)
- {
- for (int i = 0; i < this.engine_iconListBox.Items.Count; i++)
- {
- if (key.Equals(((IconListBoxItem)this.engine_iconListBox.Items[i]).Text))
- {
- this.engine_iconListBox.SelectedIndex = i;
- this.engine_iconListBox_SelectedIndexChanged(null, null);
- return;
- }
-
- }
- }
-
- private void SettingForm_DragEnter(object sender, DragEventArgs e)
- {
- if (e.Data.GetDataPresent(DataFormats.FileDrop))
- {
- e.Effect = DragDropEffects.Move;
- }
- }
-
- private void SettingForm_DragDrop(object sender, DragEventArgs e)
- {
- string[] files = (String[])e.Data.GetData(DataFormats.FileDrop);
- if (files == null || files.Length == 0)
- return;
-
- string file = files[0];
- this.tabControl.SelectTab("tabPageCommand");
-
- AddCommandForm form = new AddCommandForm();
- form.SetSelectedFile(file);
- this.TargetForm = form;
- Win32.PostMessage(this.Handle, Program.WM_APP_SHOWFORM, IntPtr.Zero, IntPtr.Zero);
- }
-
- private void SettingForm_FormClosing(object sender, FormClosingEventArgs e)
- {
- if (e.CloseReason == CloseReason.UserClosing)
- {
- this.DoVisibleChange(false);
- e.Cancel = true;
- }
- }
-
- private void button_ok_Click(object sender, EventArgs e)
- {
- ReflectSetting();
- ReflectCommandList();
- ReflectSentenceList();
- ReflectEngineList();
- Settings.Write(Program.SettingFileName);
- Program.WriteCommandList();
- Program.WriteSentenceList();
- Program.ReadSentenceList();
- Program.WriteEngineList();
- Program.ReadEngineList();
- Program.ReadSetting();
- Program.MainForm.ReadSetting();
- Program.MainForm.ReadCommandList();
- this.DoVisibleChange(false);
- }
-
- private void button_cancel_Click(object sender, EventArgs e)
- {
- this.DoVisibleChange(false);
- }
-
- private void command_button_new_Click(object sender, EventArgs e)
- {
- new AddCommandForm().ShowDialog();
- }
-
- private void command_button_edit_Click(object sender, EventArgs e)
- {
- EditCommandForm form = new EditCommandForm();
- form.TextBox_select.Text = this.command_iconListBox.Text;
- form.ShowDialog();
- }
-
- private void command_button_delete_Click(object sender, EventArgs e)
- {
- command_delete();
- }
-
- private void hotKeyTextBox_TextChanged(object sender, EventArgs e)
- {
- HotKeyTextBox[] hotKeyTextBoxList = { this.hotKeyTextBox_Main, this.hotKeyTextBox_Clip, this.hotKeyTextBox_ClipPaste, this.hotKeyTextBox_KeyPlay, this.hotKeyTextBox_KeyRecord };
- this.checkHotKeyDic.Clear();
-
- foreach (HotKeyTextBox textBox in hotKeyTextBoxList)
- {
- if (textBox.HotKeycode == 0)
- continue;
- if (this.checkHotKeyDic.ContainsKey(textBox.HotKeycode))
- {
- this.label_hotKeyError.Visible = true;
- this.button_ok.Enabled = false;
- return;
- }
- this.checkHotKeyDic.Add(textBox.HotKeycode, 0);
- }
-
- this.label_hotKeyError.Visible = false;
- this.button_ok.Enabled = true;
-
- }
-
- public static void hotKeyTextBox_GotFocus(object sender, EventArgs e)
- {
- Program.HotKeyTextBoxHandle = ((Control)sender).Handle;
- Program.Status = ProgramStatus.HotKeyTextBoxFocus;
- }
-
- public static void hotKeyTextBox_LostFocus(object sender, EventArgs e)
- {
- Program.HotKeyTextBoxHandle = IntPtr.Zero;
- Program.Status = ProgramStatus.SettingFormOpen;
- }
-
- public void DoVisibleChange(bool visible)
- {
- if (visible)
- {
- ReadSetting();
- ReadCommandList();
- ReadMacroList();
- ReadSentenceList();
- ReadEngineList();
- this.Visible = true;
- Program.Status = ProgramStatus.SettingFormOpen;
- }
- else
- {
- this.Visible = false;
- if (Program.MainForm.Visible)
- Program.Status = ProgramStatus.MainFormOpen;
- else
- Program.Status = ProgramStatus.Waiting;
- }
- }
-
- private void sentence_button_new_Click(object sender, EventArgs e)
- {
- new AddSentenceForm().ShowDialog();
- }
-
- private void sentence_radio0_CheckedChanged(object sender, EventArgs e)
- {
- if (this.sentenceRadio != 0 && this.sentence_radio0.Checked)
- {
- this.sentenceRadio = 0;
- this.ChangeSentenceGroup();
- }
- }
-
- private void sentence_radio1_CheckedChanged(object sender, EventArgs e)
- {
- if (this.sentenceRadio != 1 && this.sentence_radio1.Checked)
- {
- this.sentenceRadio = 1;
- this.ChangeSentenceGroup();
- }
- }
-
- private void sentence_radio2_CheckedChanged(object sender, EventArgs e)
- {
- if (this.sentenceRadio != 2 && this.sentence_radio2.Checked)
- {
- this.sentenceRadio = 2;
- this.ChangeSentenceGroup();
- }
- }
-
- private void sentence_radio3_CheckedChanged(object sender, EventArgs e)
- {
- if (this.sentenceRadio != 3 && this.sentence_radio3.Checked)
- {
- this.sentenceRadio = 3;
- this.ChangeSentenceGroup();
- }
- }
-
- private void sentence_radio4_CheckedChanged(object sender, EventArgs e)
- {
- if (this.sentenceRadio != 4 && this.sentence_radio4.Checked)
- {
- this.sentenceRadio = 4;
- this.ChangeSentenceGroup();
- }
- }
-
- private void sentence_radio5_CheckedChanged(object sender, EventArgs e)
- {
- if (this.sentenceRadio != 5 && this.sentence_radio5.Checked)
- {
- this.sentenceRadio = 5;
- this.ChangeSentenceGroup();
- }
- }
-
- public void ChangeSentenceGroup()
- {
- int group = this.sentenceRadio;
- this.sentence_textBox_group.Text = this.SentenceGroupNameTmp[group];
- this.sentence_textBox_group.ReadOnly = (group == 0);
- this.sentence_button_new.Enabled = (group != 0);
- this.sentence_button_edit.Enabled = false;
- this.sentence_button_delete.Enabled = false;
-
- this.sentence_textBox_name.Text = "";
- this.sentence_textBox_type.Text = "";
- this.sentence_textBox_shortcut.Text = "";
- this.sentence_textBox_value.Text = "";
- this.sentence_textBox_macroName.Text = "";
- this.sentence_textBox_args.Text = "";
- this.sentence_textBox_summary.Text = "";
- this.sentence_textBox_description.Text = "";
- this.sentence_iconListBox.Items.Clear();
- for (int i = 0; i < SentenceGroupListTmp[group].Count; i++)
- {
- if (!String.IsNullOrEmpty(SentenceGroupListTmp[group][i].Name))
- {
- IconListBoxItem item = new IconListBoxItem();
- item.Name = SentenceGroupListTmp[group][i].Name;
- item.Text = SentenceGroupListTmp[group][i].Name;
- item.IconImage = Program.SentenceIcons[SentenceGroupListTmp[group][i].Type].ToBitmap();
- item.Regex = Program.Ime.GetRomaji(item.Name.Substring(0, item.Name.Length > 30 ? 30 : item.Name.Length));
- this.sentence_iconListBox.Items.Add(item);
- }
- }
- //this.sentence_iconListView.ItemCountChange();
- }
-
- private void OpenEditSentenceForm()
- {
- if (this.sentenceRadio == 0 || this.sentence_iconListBox.SelectedIndex < 0)
- return;
-
- SentenceInfo info = SentenceGroupListTmp[this.sentenceRadio][this.sentence_iconListBox.SelectedIndex];
- EditSentenceForm form = new EditSentenceForm();
- form.Init();
- form.textBox_srcIndex.Text = this.sentence_iconListBox.SelectedIndex.ToString();
- form.textBox_srcGroup.Text = this.sentenceRadio.ToString();
- form.textBox_name.Text = info.Name;
- form.textBox_shortcut.HotKeycode = info.Shortcut;
- form.comboBox_type.SelectedIndex = info.Type;
-
- if (info.Type == 2)
- {
- IMacro macro = Program.MacroDic[info.Id].Macro;
- form.comboBox_macroName.Text = macro.Name();
- form.textBox_args.Text = info.Value;
- }
- else
- {
- form.textBox_value.Text = info.Value;
- }
- form.ShowDialog();
- }
-
- private void trackBar_opacity_ValueChanged(object sender, EventArgs e)
- {
- this.textBox_opacity.Text = this.trackBar_opacity.Value.ToString();
- }
-
- protected override void WndProc(ref Message m)
- {
- switch (m.Msg)
- {
- case Program.WM_APP_SHOWFORM:
- if (this.TargetForm != null)
- {
- this.TargetForm.ShowDialog();
- this.TargetForm = null;
- }
- break;
- }
-
- base.WndProc(ref m);
- }
-
- private void command_iconListBox_SelectedIndexChanged(object sender, EventArgs e)
- {
- if (this.command_iconListBox.SelectedIndex < 0)
- {
- this.command_textBox_name.Text = "";
- this.command_textBox_target.Text = "";
- this.command_textBox_path.Text = "";
- this.command_textBox_arguments.Text = "";
- this.command_textBox_comment.Text = "";
- this.command_pictureBox1.Image = null;
- this.command_button_edit.Enabled = false;
- this.command_button_delete.Enabled = false;
- }
- else
- {
- CommandInfo info = this.CommandDicTmp[this.command_iconListBox.Text];
- if (!File.Exists(info.Target) && !Directory.Exists(info.Target))
- {
- this.command_textBox_name.Text = "";
- this.command_textBox_target.Text = "";
- this.command_textBox_path.Text = "";
- this.command_textBox_arguments.Text = "";
- this.command_textBox_comment.Text = "";
- this.command_pictureBox1.Image = null;
- this.command_button_edit.Enabled = true;
- this.command_button_delete.Enabled = true;
- if (MessageBox.Show("\83^\81[\83Q\83b\83g\82ª\91¶\8dÝ\82µ\82Ü\82¹\82ñ\81B\n\8dí\8f\9c\82µ\82Ü\82·\82©\81H", "\93Ç\82Ý\8d\9e\82Ý\83G\83\89\81[", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK)
- {
- command_delete();
- }
-
- return;
- }
- this.command_button_delete.Enabled = true;
- this.command_button_edit.Enabled = true;
-
- this.command_textBox_name.Text = info.Name;
- this.command_textBox_target.Text = info.Target;
- this.command_textBox_path.Text = info.Path;
- this.command_textBox_arguments.Text = info.Arguments;
- this.command_textBox_comment.Text = info.Comment;
-
- Win32.SHFILEINFO shinfo = new Win32.SHFILEINFO();
- Win32.SHGetFileInfo(info.Target, 0, ref shinfo, Marshal.SizeOf(shinfo), Win32.SHGFI_ICON | Win32.SHGFI_LARGEICON);
- Icon icon = System.Drawing.Icon.FromHandle(shinfo.hIcon);
- this.command_pictureBox1.Image = icon == null ? null : icon.ToBitmap();
- }
- }
-
- private void command_iconListBox_DoubleClick(object sender, EventArgs e)
- {
- //if (this.command_iconListBox.SelectedIndex >= 0)
- // command_button_edit_Click(null, null);
- }
-
- private void command_iconListBox_KeyDown(object sender, KeyEventArgs e)
- {
- if (this.command_iconListBox.SelectedIndex > -1 && e.KeyCode == Keys.Delete)
- {
- command_delete();
- }
- }
-
- public void ChangeSentenceGroup(int group)
- {
- switch (group)
- {
- case 0:
- this.sentenceRadio = 0;
- this.sentence_radio0.Checked = true;
- break;
- case 1:
- this.sentenceRadio = 1;
- this.sentence_radio1.Checked = true;
- break;
- case 2:
- this.sentenceRadio = 2;
- this.sentence_radio2.Checked = true;
- break;
- case 3:
- this.sentenceRadio = 3;
- this.sentence_radio3.Checked = true;
- break;
- case 4:
- this.sentenceRadio = 4;
- this.sentence_radio4.Checked = true;
- break;
- case 5:
- this.sentenceRadio = 5;
- this.sentence_radio5.Checked = true;
- break;
- }
- this.ChangeSentenceGroup();
- }
-
- private void sentence_textBox_group_TextChanged(object sender, EventArgs e)
- {
- this.SentenceGroupNameTmp[this.sentenceRadio] = this.sentence_textBox_group.Text;
- }
-
- private void sentence_button_edit_Click(object sender, EventArgs e)
- {
- OpenEditSentenceForm();
- }
-
- private void sentence_button_delete_Click(object sender, EventArgs e)
- {
- sentence_delete();
- }
-
- private void sentence_iconListBox_SelectedIndexChanged(object sender, EventArgs e)
- {
- if (this.sentence_iconListBox.SelectedIndex >= 0)
- {
- SentenceInfo info = SentenceGroupListTmp[this.sentenceRadio][this.sentence_iconListBox.SelectedIndex];
- this.sentence_textBox_name.Text = info.Name;
- this.sentence_textBox_shortcut.Text = HotKeyTextBox.GetKeyText(info.Shortcut);
-
- if (info.Type == 2)
- {
- this.sentence_label_value.Visible = false;
- this.sentence_textBox_value.Visible = false;
-
- this.sentence_label_macroName.Visible = true;
- this.sentence_textBox_macroName.Visible = true;
- this.sentence_label_args.Visible = true;
- this.sentence_textBox_args.Visible = true;
- this.sentence_label_summary.Visible = true;
- this.sentence_textBox_summary.Visible = true;
- this.sentence_label_description.Visible = true;
- this.sentence_textBox_description.Visible = true;
- }
- else
- {
- this.sentence_label_value.Visible = true;
- this.sentence_textBox_value.Visible = true;
-
- this.sentence_label_macroName.Visible = false;
- this.sentence_textBox_macroName.Visible = false;
- this.sentence_label_args.Visible = false;
- this.sentence_textBox_args.Visible = false;
- this.sentence_label_summary.Visible = false;
- this.sentence_textBox_summary.Visible = false;
- this.sentence_label_description.Visible = false;
- this.sentence_textBox_description.Visible = false;
- }
- Application.DoEvents();
-
- switch (info.Type)
- {
- case 0:
- this.sentence_textBox_type.Text = "\92è\8c^\95¶";
- this.sentence_textBox_value.Text = info.Value;
- break;
- case 1:
- this.sentence_textBox_type.Text = "\83X\83N\83\8a\83v\83g";
- this.sentence_textBox_value.Text = info.Value;
- break;
- case 2:
- if (Program.MacroDic.ContainsKey(info.Id))
- {
- IMacro macro = Program.MacroDic[info.Id].Macro;
- this.sentence_textBox_macroName.Text = macro.Name();
- this.sentence_textBox_summary.Text = macro.Summary();
- this.sentence_textBox_description.Text = macro.Description();
- this.sentence_textBox_args.Text = info.Value;
- }
- else
- {
- this.sentence_textBox_macroName.Text = "";
- this.sentence_textBox_summary.Text = "";
- this.sentence_textBox_description.Text = "";
- this.sentence_textBox_args.Text = "";
- }
- this.sentence_textBox_type.Text = "\83}\83N\83\8d";
- break;
- }
-
-
- this.sentence_button_edit.Enabled = (this.sentenceRadio != 0);
- this.sentence_button_delete.Enabled = true;
- }
- else
- {
- this.sentence_textBox_name.Text = "";
- this.sentence_textBox_type.Text = "";
- this.sentence_textBox_shortcut.Text = "";
- this.sentence_textBox_value.Text = "";
- this.sentence_textBox_macroName.Text = "";
- this.sentence_textBox_summary.Text = "";
- this.sentence_textBox_description.Text = "";
- this.sentence_textBox_args.Text = "";
- this.sentence_button_edit.Enabled = false;
- this.sentence_button_delete.Enabled = false;
- }
-
- }
-
- private void sentence_iconListBox_DragEnter(object sender, DragEventArgs e)
- {
- e.Effect = DragDropEffects.Move;
- Win32.ImageList_DragEnter(this.Handle, Cursor.Position.X - this.Left, Cursor.Position.Y - this.Top);
- }
-
- private void sentence_iconListBox_DragDrop(object sender, DragEventArgs e)
- {
- Win32.ImageList_DragLeave(this.Handle);
- int srcIndex = (int)e.Data.GetData(typeof(int));
- Point p = this.sentence_iconListBox.PointToClient(Control.MousePosition);
- int destIndex = this.sentence_iconListBox.TopIndex + this.sentence_iconListBox.DividePoint;
- if (destIndex < 0 || srcIndex == destIndex || srcIndex == (destIndex - 1))
- return;
-
- object o = this.sentence_iconListBox.Items[srcIndex];
-
- this.sentence_iconListBox.Items.RemoveAt(srcIndex);
- if (destIndex > srcIndex)
- destIndex--;
- this.sentence_iconListBox.Items.Insert(destIndex, o);
-
- SentenceInfo info = SentenceGroupListTmp[this.sentenceRadio][srcIndex];
- SentenceGroupListTmp[this.sentenceRadio].RemoveAt(srcIndex);
- SentenceGroupListTmp[this.sentenceRadio].Insert(destIndex, info);
- this.sentence_iconListBox.Invalidate();
- this.sentence_iconListBox.SelectedIndex = destIndex;
- }
-
- private void sentence_iconListBox_MouseEnter(object sender, EventArgs e)
- {
- this.sentence_iconListBox.Status = 0;
- }
-
- private void sentence_iconListBox_MouseDown(object sender, MouseEventArgs e)
- {
- int index = this.sentence_iconListBox.SelectedIndex;
- if (index < 0)
- return;
-
- sentence_iconListBox_SelectedIndexChanged(null, null);
- if (e.Clicks > 1 && e.Button == MouseButtons.Left)
- this.sentence_iconListBox.Status = 9;
- else
- this.sentence_iconListBox.Status = 1;
- IconListBox.MousePoint = e.Location;
- }
-
- private void sentence_iconListBox_MouseMove(object sender, MouseEventArgs e)
- {
- if (this.sentence_iconListBox.Status == 9)
- {
- if (IconListBox.MousePoint.X != e.Location.X || IconListBox.MousePoint.Y != e.Location.Y)
- {
- this.sentence_iconListBox.BeginDragDrop(e);
- }
- }
- else if (this.sentence_iconListBox.Status == 1 && e.Button == MouseButtons.Left)
- {
- this.sentence_iconListBox.BeginDragDrop(e);
- }
- }
-/*
- private void BeginDragDrop(MouseEventArgs e)
- {
- if (this.sentence_iconListBox.SelectedIndex < 0)
- return;
-
- int itemIndex = this.sentence_iconListBox.IndexFromPoint(this.mousePoint);
- Rectangle rect = this.sentence_iconListBox.GetItemRectangle(itemIndex);
-
- this.imageList = new ImageList();
- this.imageList.ImageSize = this.sentence_iconListBox.SelectedItemImage.Size;
- this.imageList.Images.Add(this.sentence_iconListBox.SelectedItemImage);
- Win32.ImageList_BeginDrag(imageList.Handle, 0, e.X - rect.Left, e.Y - rect.Top);
-
- this.sentence_iconListBox.Status = 2;
- sentence_iconListBox.DoDragDrop(this.sentence_iconListBox.SelectedIndex, DragDropEffects.Move);
-
- Win32.ImageList_EndDrag();
- }
-*/
- private void sentence_iconListBox_MouseUp(object sender, MouseEventArgs e)
- {
- if (this.sentence_iconListBox.Status == 9)
- {
- OpenEditSentenceForm();
- }
- this.sentence_iconListBox.Status = 0;
- }
-
- private void sentence_iconListBox_KeyDown(object sender, KeyEventArgs e)
- {
- if (this.sentence_iconListBox.SelectedIndex > -1 && e.KeyCode == Keys.Delete)
- {
- sentence_delete();
- }
-
- }
-
- private void engine_iconListBox_SelectedIndexChanged(object sender, EventArgs e)
- {
- if (this.engine_iconListBox.SelectedIndex >= 0)
- {
- EngineInfo info = EngineDicTmp[this.engine_iconListBox.Text];
- this.engine_textBox_name.Text = info.Name;
- this.engine_textBox_url.Text = info.Url;
- this.engine_textBox_searchUrl.Text = info.SearchUrl;
- this.engine_textBox_suggestUrl.Text = info.SuggestUrl;
- this.engine_textBox_shortcut.Text = HotKeyTextBox.GetKeyText(info.Shortcut);
- this.engine_textBox_display.Text = info.Display;
- this.engine_pictureBox.Image = info.IconImage;
- this.engine_button_edit.Enabled = true;
- this.engine_button_delete.Enabled = true;
- }
- else
- {
- this.engine_textBox_name.Text = "";
- this.engine_textBox_url.Text = "";
- this.engine_textBox_searchUrl.Text = "";
- this.engine_textBox_suggestUrl.Text = "";
- this.engine_textBox_shortcut.Text = "";
- this.engine_textBox_display.Text = "";
- this.engine_textBox_comment.Text = "";
- this.engine_pictureBox.Image = null;
- this.engine_button_edit.Enabled = false;
- this.engine_button_delete.Enabled = false;
- }
- }
-
- private void macro_iconListBox_SelectedIndexChanged(object sender, EventArgs e)
- {
- if (this.macro_iconListBox.SelectedIndex < 0)
- {
- this.macro_textBox_id.Text = "";
- this.macro_textBox_summary.Text = "";
- this.macro_textBox_description.Text = "";
- }
- else
- {
- IconListBoxItem item = (IconListBoxItem)this.macro_iconListBox.SelectedItem;
- MacroInfo macroInfo = this.macroDicTmp[item.Name];
- this.macro_textBox_id.Text = macroInfo.Macro.Id();
- this.macro_textBox_summary.Text = macroInfo.Macro.Summary();
- this.macro_textBox_description.Text = macroInfo.Macro.Description();
- }
- }
-
- private void macro_textBox_shortcut_TextChanged(object sender, EventArgs e)
- {
- if (this.macro_iconListBox.SelectedIndex >= 0)
- {
- IconListBoxItem item = (IconListBoxItem)this.macro_iconListBox.SelectedItem;
- MacroInfo macroInfo = this.macroDicTmp[item.Text];
- }
- }
-
- private void command_delete()
- {
- if (this.command_iconListBox.Items.Count == 0)
- return;
- int index = this.command_iconListBox.SelectedIndex;
- string key = this.command_iconListBox.Text;
- this.command_iconListBox.Items.Remove(this.command_iconListBox.SelectedItem);
- this.commandListTmp.Remove(key);
- this.commandDicTmp.Remove(key);
- Program.SettingForm.ReadCommandList(true);
- if (this.command_iconListBox.Items.Count > index)
- this.command_iconListBox.SelectedIndex = index;
- else if (this.command_iconListBox.Items.Count > 0)
- this.command_iconListBox.SelectedIndex = this.command_iconListBox.Items.Count - 1;
- else
- {
- this.command_button_edit.Enabled = false;
- this.command_button_delete.Enabled = false;
- }
- this.command_iconListBox.Update();
- }
-
- private void sentence_delete()
- {
- if (this.sentence_iconListBox.SelectedIndex < 0)
- return;
- int index = this.sentence_iconListBox.SelectedIndex;
- this.sentenceGroupListTmp[this.sentenceRadio].RemoveAt(index);
- this.RequestSentenceListViewSelect(this.sentenceRadio, index, true);
- this.sentence_iconListBox.Update();
- }
-
- private void sentence_iconListBox_QueryContinueDrag(object sender, QueryContinueDragEventArgs e)
- {
- if (e.Action == DragAction.Drop)
- {
- this.sentence_iconListBox.Status = -1;
- Win32.ImageList_DragLeave(this.Handle);
- this.sentence_iconListBox.Invalidate();
- }
- else
- {
- Win32.ImageList_DragMove(Cursor.Position.X - this.Left, Cursor.Position.Y - this.Top);
- }
- }
-
- private void command_iconListBox_DragDrop(object sender, DragEventArgs e)
- {
- string[] files = (String[])e.Data.GetData(DataFormats.FileDrop);
- if (files != null && files.Length > 0)
- {
- string file = files[0];
- AddCommandForm form = new AddCommandForm();
- form.SetSelectedFile(file);
- this.TargetForm = form;
- Win32.PostMessage(this.Handle, Program.WM_APP_SHOWFORM, IntPtr.Zero, IntPtr.Zero);
- }
- else
- {
- Win32.ImageList_DragLeave(this.Handle);
- int srcIndex = (int)e.Data.GetData(typeof(int));
- Point p = this.command_iconListBox.PointToClient(Control.MousePosition);
- int destIndex = this.command_iconListBox.TopIndex + this.command_iconListBox.DividePoint;
- if (destIndex < 0 || srcIndex == destIndex || srcIndex == (destIndex - 1))
- return;
-
- IconListBoxItem item = (IconListBoxItem)this.command_iconListBox.Items[srcIndex];
-
- this.command_iconListBox.Items.RemoveAt(srcIndex);
- this.commandListTmp.RemoveAt(srcIndex);
- if (destIndex > srcIndex)
- destIndex--;
- this.command_iconListBox.Items.Insert(destIndex, item);
- this.commandListTmp.Insert(destIndex, item.Name);
-
- this.command_iconListBox.Invalidate();
- this.command_iconListBox.SelectedIndex = destIndex;
- }
- }
-
- private void command_iconListBox_DragEnter(object sender, DragEventArgs e)
- {
- e.Effect = DragDropEffects.Move;
- Win32.ImageList_DragEnter(this.Handle, Cursor.Position.X - this.Left, Cursor.Position.Y - this.Top);
- }
-
- private void command_iconListBox_MouseDown(object sender, MouseEventArgs e)
- {
- int index = this.command_iconListBox.SelectedIndex;
- if (index < 0)
- return;
-
- command_iconListBox_SelectedIndexChanged(null, null);
- if (e.Clicks > 1 && e.Button == MouseButtons.Left)
- this.command_iconListBox.Status = 9;
- else
- this.command_iconListBox.Status = 1;
- IconListBox.MousePoint = e.Location;
- }
-
- private void command_iconListBox_MouseEnter(object sender, EventArgs e)
- {
- this.command_iconListBox.Status = 0;
- }
-
- private void command_iconListBox_MouseMove(object sender, MouseEventArgs e)
- {
- if (this.command_iconListBox.Status == 9)
- {
- if (IconListBox.MousePoint.X != e.Location.X || IconListBox.MousePoint.Y != e.Location.Y)
- {
- this.command_iconListBox.BeginDragDrop(e);
- }
- }
- else if (this.command_iconListBox.Status == 1 && e.Button == MouseButtons.Left)
- {
- this.command_iconListBox.BeginDragDrop(e);
- }
- }
-
- private void command_iconListBox_MouseUp(object sender, MouseEventArgs e)
- {
- if (this.command_iconListBox.Status == 9)
- {
- if (this.command_iconListBox.SelectedIndex >= 0)
- command_button_edit_Click(null, null);
- }
- this.command_iconListBox.Status = 0;
- }
-
- private void command_iconListBox_QueryContinueDrag(object sender, QueryContinueDragEventArgs e)
- {
- if (e.Action == DragAction.Drop)
- {
- this.command_iconListBox.Status = -1;
- Win32.ImageList_DragLeave(this.Handle);
- this.command_iconListBox.Invalidate();
- }
- else
- {
- Win32.ImageList_DragMove(Cursor.Position.X - this.Left, Cursor.Position.Y - this.Top);
- }
- }
-
- private void engine_iconListBox_QueryContinueDrag(object sender, QueryContinueDragEventArgs e)
- {
- if (e.Action == DragAction.Drop)
- {
- this.engine_iconListBox.Status = -1;
- Win32.ImageList_DragLeave(this.Handle);
- this.engine_iconListBox.Invalidate();
- }
- else
- {
- Win32.ImageList_DragMove(Cursor.Position.X - this.Left, Cursor.Position.Y - this.Top);
- }
- }
-
- private void engine_iconListBox_DragDrop(object sender, DragEventArgs e)
- {
- Win32.ImageList_DragLeave(this.Handle);
- int srcIndex = (int)e.Data.GetData(typeof(int));
- Point p = this.engine_iconListBox.PointToClient(Control.MousePosition);
- int destIndex = this.engine_iconListBox.TopIndex + this.engine_iconListBox.DividePoint;
- if (destIndex < 0 || srcIndex == destIndex || srcIndex == (destIndex - 1))
- return;
-
- IconListBoxItem item = (IconListBoxItem)this.engine_iconListBox.Items[srcIndex];
-
- this.engine_iconListBox.Items.RemoveAt(srcIndex);
- this.engineListTmp.RemoveAt(srcIndex);
- if (destIndex > srcIndex)
- destIndex--;
- this.engine_iconListBox.Items.Insert(destIndex, item);
- this.engineListTmp.Insert(destIndex, item.Name);
-
- this.engine_iconListBox.Invalidate();
- this.engine_iconListBox.SelectedIndex = destIndex;
- }
-
- private void engine_iconListBox_DragEnter(object sender, DragEventArgs e)
- {
- e.Effect = DragDropEffects.Move;
- Win32.ImageList_DragEnter(this.Handle, Cursor.Position.X - this.Left, Cursor.Position.Y - this.Top);
- }
-
- private void engine_iconListBox_MouseDown(object sender, MouseEventArgs e)
- {
- int index = this.engine_iconListBox.SelectedIndex;
- if (index < 0)
- return;
-
- engine_iconListBox_SelectedIndexChanged(null, null);
- if (e.Clicks > 1 && e.Button == MouseButtons.Left)
- this.engine_iconListBox.Status = 9;
- else
- this.engine_iconListBox.Status = 1;
- IconListBox.MousePoint = e.Location;
- }
-
- private void engine_iconListBox_MouseEnter(object sender, EventArgs e)
- {
- this.engine_iconListBox.Status = 0;
- }
-
- private void engine_iconListBox_MouseMove(object sender, MouseEventArgs e)
- {
- if (this.engine_iconListBox.Status == 9)
- {
- if (IconListBox.MousePoint.X != e.Location.X || IconListBox.MousePoint.Y != e.Location.Y)
- {
- this.engine_iconListBox.BeginDragDrop(e);
- }
- }
- else if (this.engine_iconListBox.Status == 1 && e.Button == MouseButtons.Left)
- {
- this.engine_iconListBox.BeginDragDrop(e);
- }
- }
-
- private void engine_iconListBox_MouseUp(object sender, MouseEventArgs e)
- {
- if (this.engine_iconListBox.Status == 9)
- {
- if (this.engine_iconListBox.SelectedIndex >= 0)
- {
- OpenEditEngineForm();
- }
- }
- this.engine_iconListBox.Status = 0;
- }
-
- private void sentence_iconListBox_DragEnter_1(object sender, DragEventArgs e)
- {
- e.Effect = DragDropEffects.Move;
- Win32.ImageList_DragEnter(this.Handle, Cursor.Position.X - this.Left, Cursor.Position.Y - this.Top);
- }
-
- private void engine_button_new_Click(object sender, EventArgs e)
- {
- new AddEngineForm().ShowDialog();
- }
-
- private void engine_button_delete_Click(object sender, EventArgs e)
- {
- string key = this.engine_iconListBox.Text;
- int index = this.engineListTmp.IndexOf(key);
- int selectedIndex = this.engine_iconListBox.SelectedIndex;
- this.engineListTmp.RemoveAt(index);
- this.engineListTmp.Add("@" + this.engine_iconListBox.Text);
- //this.engineListTmp[index] = "@" + this.engine_iconListBox.Text;
-
- EngineInfo info = this.engineDicTmp[key];
- info.Name = "@" + this.engine_iconListBox.Text;
- info.Removed = true;
- this.engineDicTmp.Remove(key);
- this.EngineDicTmp.Add(info.Name, info);
-
- Program.SettingForm.ReadEngineList(true);
- if (this.engine_iconListBox.Items.Count > selectedIndex)
- this.engine_iconListBox.SelectedIndex = selectedIndex;
- else if (this.engine_iconListBox.Items.Count > 0)
- this.engine_iconListBox.SelectedIndex = this.engine_iconListBox.Items.Count - 1;
- else
- {
- this.engine_button_edit.Enabled = false;
- this.engine_button_delete.Enabled = false;
- }
- this.engine_iconListBox.Update();
- }
-
- private void engine_button_edit_Click(object sender, EventArgs e)
- {
- OpenEditEngineForm();
- }
-
- public void OpenEditEngineForm()
- {
- if (this.engine_iconListBox.SelectedIndex < 0)
- return;
-
- EngineInfo info = this.EngineDicTmp[this.engine_iconListBox.Text];
- EditEngineForm form = new EditEngineForm(info);
- form.ShowDialog();
- }
-
- }
+using System;\r
+using System.Collections.Generic;\r
+using System.ComponentModel;\r
+using System.Data;\r
+using System.Diagnostics;\r
+using System.Drawing;\r
+using System.Reflection;\r
+using System.Text;\r
+using System.Runtime.InteropServices;\r
+\r
+using System.Windows.Forms;\r
+using System.Xml;\r
+\r
+using Lugens.Components;\r
+using Lugens.Utils;\r
+using Lugens.Passer.Macro;\r
+using System.IO;\r
+\r
+namespace Lugens.Passer\r
+{\r
+ public partial class SettingForm : Form\r
+ {\r
+\r
+ //private ImageList imageList;\r
+\r
+ //private Point mousePoint;\r
+\r
+ public Form TargetForm = null;\r
+\r
+ private Dictionary<int, int> checkHotKeyDic = new Dictionary<int, int>();\r
+\r
+ /// <summary>\r
+ /// \83R\83}\83\93\83h\83\8a\83X\83g\r
+ /// </summary>\r
+ private List<string> commandListTmp = new List<string>();\r
+ public List<string> CommandListTmp\r
+ {\r
+ get { return commandListTmp; }\r
+ }\r
+ private Dictionary<string, CommandInfo> commandDicTmp = new Dictionary<string, CommandInfo>();\r
+ public Dictionary<string, CommandInfo> CommandDicTmp\r
+ {\r
+ get { return commandDicTmp; }\r
+ }\r
+ \r
+ /// <summary>\r
+ /// \83O\83\8b\81[\83v\96\88\82Ì\92è\8c^\95¶\82Ì\83\8a\83X\83g\r
+ /// </summary>\r
+ private List<SentenceInfo>[] sentenceGroupListTmp = new List<SentenceInfo>[6];\r
+ public List<SentenceInfo>[] SentenceGroupListTmp\r
+ {\r
+ get { return sentenceGroupListTmp; }\r
+ }\r
+\r
+ /// <summary>\r
+ /// \83}\83N\83\8d\83\8a\83X\83g\r
+ /// </summary>\r
+ private Dictionary<string, MacroInfo> macroDicTmp = new Dictionary<string, MacroInfo>();\r
+ public Dictionary<string, MacroInfo> MacroDicTmp\r
+ {\r
+ get { return macroDicTmp; }\r
+ }\r
+\r
+ /// <summary>\r
+ /// \92è\8c^\95¶\82Ì\83O\83\8b\81[\83v\96¼\r
+ /// </summary>\r
+ private string[] sentenceGroupNameTmp = new string[6];\r
+ public string[] SentenceGroupNameTmp\r
+ {\r
+ get { return sentenceGroupNameTmp; }\r
+ }\r
+\r
+ private int sentenceRadio = -1;\r
+ public int SentenceRadio\r
+ {\r
+ get { return sentenceRadio; }\r
+ }\r
+\r
+ /// <summary>\r
+ /// \8c\9f\8dõ\83G\83\93\83W\83\93\83\8a\83X\83g\r
+ /// </summary>\r
+ private List<string> engineListTmp = new List<string>();\r
+ public List<string> EngineListTmp\r
+ {\r
+ get { return engineListTmp; }\r
+ }\r
+ private Dictionary<string, EngineInfo> engineDicTmp = new Dictionary<string, EngineInfo>();\r
+ public Dictionary<string, EngineInfo> EngineDicTmp\r
+ {\r
+ get { return engineDicTmp; }\r
+ }\r
+\r
+ private static readonly List<int> acceptKeyList = null;\r
+ public static List<int> AcceptKeyList\r
+ {\r
+ get { return acceptKeyList; }\r
+ }\r
+\r
+ public TabControl TabControl\r
+ {\r
+ get { return tabControl; }\r
+ }\r
+\r
+ static SettingForm()\r
+ {\r
+ acceptKeyList = new List<int>();\r
+ acceptKeyList.Add((int)Keycode.F1); // F1\r
+ acceptKeyList.Add((int)Keycode.F2); // F2\r
+ acceptKeyList.Add((int)Keycode.F3); // F3\r
+ acceptKeyList.Add((int)Keycode.F4); // F4\r
+ acceptKeyList.Add((int)Keycode.F5); // F5\r
+ acceptKeyList.Add((int)Keycode.F6); // F6\r
+ acceptKeyList.Add((int)Keycode.F7); // F7\r
+ acceptKeyList.Add((int)Keycode.F8); // F8\r
+ acceptKeyList.Add((int)Keycode.F9); // F9\r
+ acceptKeyList.Add((int)Keycode.F10); // F10\r
+ acceptKeyList.Add((int)Keycode.F11); // F11\r
+ acceptKeyList.Add((int)Keycode.F12); // F12\r
+ acceptKeyList.Add((int)Keycode.D1); // D1\r
+ acceptKeyList.Add((int)Keycode.D2); // D2\r
+ acceptKeyList.Add((int)Keycode.D3); // D3\r
+ acceptKeyList.Add((int)Keycode.D4); // D4\r
+ acceptKeyList.Add((int)Keycode.D5); // D5\r
+ acceptKeyList.Add((int)Keycode.D6); // D6\r
+ acceptKeyList.Add((int)Keycode.D7); // D7\r
+ acceptKeyList.Add((int)Keycode.D8); // D8\r
+ acceptKeyList.Add((int)Keycode.D9); // D9\r
+ acceptKeyList.Add((int)Keycode.D0); // D0\r
+ acceptKeyList.Add((int)Keycode.Equals); // =\r
+ acceptKeyList.Add((int)Keycode.Tilde); // ~\r
+ acceptKeyList.Add((int)Keycode.VerticalBar); // |\r
+ acceptKeyList.Add((int)Keycode.Q); // Q\r
+ acceptKeyList.Add((int)Keycode.W); // W\r
+ acceptKeyList.Add((int)Keycode.E); // E\r
+ acceptKeyList.Add((int)Keycode.R); // R\r
+ acceptKeyList.Add((int)Keycode.T); // T\r
+ acceptKeyList.Add((int)Keycode.Y); // Y\r
+ acceptKeyList.Add((int)Keycode.U); // U\r
+ acceptKeyList.Add((int)Keycode.I); // I\r
+ acceptKeyList.Add((int)Keycode.O); // O\r
+ acceptKeyList.Add((int)Keycode.P); // P\r
+ acceptKeyList.Add((int)Keycode.At); // @\r
+ acceptKeyList.Add((int)Keycode.OpenBracket); // [\r
+ acceptKeyList.Add((int)Keycode.A); // A\r
+ acceptKeyList.Add((int)Keycode.S); // S\r
+ acceptKeyList.Add((int)Keycode.D); // D\r
+ acceptKeyList.Add((int)Keycode.F); // F\r
+ acceptKeyList.Add((int)Keycode.G); // G\r
+ acceptKeyList.Add((int)Keycode.H); // H\r
+ acceptKeyList.Add((int)Keycode.J); // J\r
+ acceptKeyList.Add((int)Keycode.K); // K\r
+ acceptKeyList.Add((int)Keycode.L); // L\r
+ acceptKeyList.Add((int)Keycode.SemiColon); // ;\r
+ acceptKeyList.Add((int)Keycode.Colon); // :\r
+ acceptKeyList.Add((int)Keycode.CloseBracket); // ]\r
+ acceptKeyList.Add((int)Keycode.Z); // Z\r
+ acceptKeyList.Add((int)Keycode.X); // X\r
+ acceptKeyList.Add((int)Keycode.C); // C\r
+ acceptKeyList.Add((int)Keycode.V); // V\r
+ acceptKeyList.Add((int)Keycode.B); // B\r
+ acceptKeyList.Add((int)Keycode.N); // N\r
+ acceptKeyList.Add((int)Keycode.M); // M\r
+ acceptKeyList.Add((int)Keycode.Less); // <\r
+ acceptKeyList.Add((int)Keycode.Greater); // >\r
+ acceptKeyList.Add((int)Keycode.Question); // ?\r
+ acceptKeyList.Add((int)Keycode.Underscore); // _\r
+ acceptKeyList.Add((int)Keycode.Left); // \81©\r
+ acceptKeyList.Add((int)Keycode.Up); // \81ª\r
+ acceptKeyList.Add((int)Keycode.Right); // \81¨\r
+ acceptKeyList.Add((int)Keycode.Down); // \81«\r
+ acceptKeyList.Add((int)Keycode.Insert);\r
+ acceptKeyList.Add((int)Keycode.Delete);\r
+ acceptKeyList.Add((int)Keycode.Home);\r
+ acceptKeyList.Add((int)Keycode.End);\r
+ acceptKeyList.Add((int)Keycode.PageUp);\r
+ acceptKeyList.Add((int)Keycode.PageDown);\r
+ acceptKeyList.Add((int)Keycode.Space);\r
+ acceptKeyList.Add((int)Keycode.BackSpace);\r
+ acceptKeyList.Add((int)Keycode.Escape);\r
+ acceptKeyList.Add((int)Keycode.Tab);\r
+ acceptKeyList.Add((int)Keycode.Enter);\r
+ acceptKeyList.Add((int)Keycode.Win);\r
+ acceptKeyList.Add((int)Keycode.Control);\r
+ acceptKeyList.Add((int)Keycode.LControl);\r
+ acceptKeyList.Add((int)Keycode.RControl);\r
+ acceptKeyList.Add((int)Keycode.Alt);\r
+ acceptKeyList.Add((int)Keycode.LAlt);\r
+ acceptKeyList.Add((int)Keycode.RAlt);\r
+ acceptKeyList.Add((int)Keycode.Shift);\r
+ acceptKeyList.Add((int)Keycode.LShift);\r
+ acceptKeyList.Add((int)Keycode.RShift);\r
+ }\r
+\r
+ public SettingForm()\r
+ {\r
+ InitializeComponent();\r
+\r
+ this.hotKeyTextBox_Main.AcceptKeys = SettingForm.acceptKeyList;\r
+ this.hotKeyTextBox_Main.GotFocus += SettingForm.hotKeyTextBox_GotFocus;\r
+ this.hotKeyTextBox_Main.LostFocus += SettingForm.hotKeyTextBox_LostFocus;\r
+ this.hotKeyTextBox_Main.TextChanged += this.hotKeyTextBox_TextChanged;\r
+\r
+ this.hotKeyTextBox_Clip.AcceptKeys = SettingForm.acceptKeyList;\r
+ this.hotKeyTextBox_Clip.GotFocus += SettingForm.hotKeyTextBox_GotFocus;\r
+ this.hotKeyTextBox_Clip.LostFocus += SettingForm.hotKeyTextBox_LostFocus;\r
+ this.hotKeyTextBox_Clip.TextChanged += this.hotKeyTextBox_TextChanged;\r
+\r
+ this.hotKeyTextBox_ClipPaste.AcceptKeys = SettingForm.acceptKeyList;\r
+ this.hotKeyTextBox_ClipPaste.GotFocus += SettingForm.hotKeyTextBox_GotFocus;\r
+ this.hotKeyTextBox_ClipPaste.LostFocus += SettingForm.hotKeyTextBox_LostFocus;\r
+ this.hotKeyTextBox_ClipPaste.TextChanged += this.hotKeyTextBox_TextChanged;\r
+\r
+ this.hotKeyTextBox_KeyRecord.AcceptKeys = SettingForm.acceptKeyList;\r
+ this.hotKeyTextBox_KeyRecord.GotFocus += SettingForm.hotKeyTextBox_GotFocus;\r
+ this.hotKeyTextBox_KeyRecord.LostFocus += SettingForm.hotKeyTextBox_LostFocus;\r
+ this.hotKeyTextBox_KeyRecord.TextChanged += this.hotKeyTextBox_TextChanged;\r
+\r
+ this.hotKeyTextBox_KeyPlay.AcceptKeys = SettingForm.acceptKeyList;\r
+ this.hotKeyTextBox_KeyPlay.GotFocus += SettingForm.hotKeyTextBox_GotFocus;\r
+ this.hotKeyTextBox_KeyPlay.LostFocus += SettingForm.hotKeyTextBox_LostFocus;\r
+ this.hotKeyTextBox_KeyPlay.TextChanged += this.hotKeyTextBox_TextChanged;\r
+ }\r
+\r
+ /// <summary>\r
+ /// \90Ý\92è\83t\83@\83C\83\8b\82Ì\93Ç\82Ý\8d\9e\82Ý\r
+ /// </summary>\r
+ private void ReadSetting()\r
+ {\r
+ this.checkBox_fadeIn.Checked = Settings.GetBool(Settings.PASSER_MAIN_FADEIN);\r
+ this.checkBox_showBalloonWhileRecoding.Checked = Settings.GetBool(Settings.PASSER_MAIN_SHOWBALLOONWHILERECODING);\r
+ this.checkBox_sendRecordToClipboard.Checked = Settings.GetBool(Settings.PASSER_MAIN_SENDRECORDTOCLIPBOARD);\r
+ this.checkBox_showScriptToolTip.Checked = Settings.GetBool(Settings.PASSER_SENTENCE_SHOWSCRIPTTOOLTIP);\r
+ this.checkBox_memorizeEngine.Checked = Settings.GetBool(Settings.PASSER_MAIN_MEMORIZE_ENGINE);\r
+ this.hotKeyTextBox_Main.HotKeycode = Settings.GetInt(Settings.PASSER_HOTKEY_MAIN);\r
+ this.hotKeyTextBox_Clip.HotKeycode = Settings.GetInt(Settings.PASSER_HOTKEY_CLIP);\r
+ this.hotKeyTextBox_ClipPaste.HotKeycode = Settings.GetInt(Settings.PASSER_HOTKEY_CLIP_PASTE);\r
+ this.hotKeyTextBox_KeyRecord.HotKeycode = Settings.GetInt(Settings.PASSER_HOTKEY_KEY_RECORD);\r
+ this.hotKeyTextBox_KeyPlay.HotKeycode = Settings.GetInt(Settings.PASSER_HOTKEY_KEY_PLAY);\r
+ this.trackBar_opacity.Value = Settings.GetInt(Settings.PASSER_FORM_OPACITY);\r
+ this.textBox_opacity.Text = this.trackBar_opacity.Value.ToString();\r
+ \r
+ }\r
+\r
+ /// <summary>\r
+ /// \83}\83N\83\8d\82Ì\93Ç\82Ý\8d\9e\82Ý\r
+ /// </summary>\r
+ public void ReadMacroList()\r
+ {\r
+ this.macro_textBox_id.Text = "";\r
+ this.macro_textBox_summary.Text = "";\r
+ this.macro_textBox_description.Text = "";\r
+\r
+ this.macroDicTmp.Clear();\r
+ this.macro_iconListBox.Items.Clear();\r
+ foreach (string key in Program.MacroDic.Keys)\r
+ {\r
+ MacroInfo info = new MacroInfo();\r
+ info.Macro = Program.MacroDic[key].Macro;\r
+ info.Item = new IconListBoxItem();\r
+ info.Item.Name = info.Macro.Id();\r
+ info.Item.Text = info.Macro.Name();\r
+ info.Item.IconImage = Properties.Resources.IconMacro.ToBitmap();\r
+ info.Item.Regex = Program.Ime.GetRomaji(info.Item.Text);\r
+ this.macroDicTmp.Add(key, info);\r
+ this.macro_iconListBox.Items.Add(info.Item);\r
+ }\r
+ }\r
+\r
+ /// <summary>\r
+ /// \92è\8c^\95¶\82Ì\93Ç\82Ý\8d\9e\82Ý\r
+ /// </summary>\r
+ public void ReadSentenceList()\r
+ {\r
+ for (int i = 0; i < sentenceGroupNameTmp.Length; i++)\r
+ {\r
+ this.sentenceGroupNameTmp[i] = Program.sentenceGroupName[i];\r
+ this.sentenceGroupListTmp[i] = new List<SentenceInfo>();\r
+ if (Program.SentenceGroupList[i] != null)\r
+ {\r
+ foreach (SentenceInfo info in Program.SentenceGroupList[i])\r
+ this.sentenceGroupListTmp[i].Add(info);\r
+ }\r
+ }\r
+ this.sentence_radio1.Checked = true;\r
+ this.sentenceRadio = 1;\r
+ this.ChangeSentenceGroup();\r
+ }\r
+\r
+ /// <summary>\r
+ /// \8c\9f\8dõ\83G\83\93\83W\83\93\82Ì\93Ç\82Ý\8d\9e\82Ý\r
+ /// </summary>\r
+ public void ReadEngineList()\r
+ {\r
+ Program.SettingForm.ReadEngineList(false);\r
+ /*\r
+ this.engineListTmp.Clear();\r
+ this.engineDicTmp.Clear();\r
+ this.engine_iconListBox.Items.Clear();\r
+\r
+ foreach (string key in Program.EngineList)\r
+ {\r
+ this.engineListTmp.Add(key);\r
+ this.EngineDicTmp.Add(key, Program.EngineDic[key]);\r
+ IconListBoxItem item = new IconListBoxItem();\r
+ item.Name = key;\r
+ item.Text = key;\r
+ item.IconImage = this.EngineDicTmp[key].IconImage;\r
+ item.Type = IconListBoxType.Command;\r
+ item.Regex = Program.Ime.GetRomaji(key);\r
+ this.engine_iconListBox.Items.Add(item);\r
+ }\r
+ */\r
+ }\r
+\r
+ /// <summary>\r
+ /// \83R\83}\83\93\83h\83t\83@\83C\83\8b\82Ì\93Ç\82Ý\8d\9e\82Ý\r
+ /// </summary>\r
+ public void ReadCommandList()\r
+ {\r
+ this.ReadCommandList(false);\r
+ }\r
+\r
+ /// <summary>\r
+ /// \83R\83}\83\93\83h\83t\83@\83C\83\8b\82Ì\93Ç\82Ý\8d\9e\82Ý\r
+ /// </summary>\r
+ public void ReadCommandList(bool refresh)\r
+ {\r
+ this.command_textBox_name.Text = "";\r
+ this.command_textBox_target.Text = "";\r
+ this.command_textBox_path.Text = "";\r
+ this.command_textBox_arguments.Text = "";\r
+ this.command_textBox_comment.Text = "";\r
+ this.command_pictureBox1.Image = null;\r
+\r
+ if (refresh)\r
+ {\r
+ this.command_iconListBox.Items.Clear();\r
+ foreach(string key in this.commandListTmp)\r
+ {\r
+ IconListBoxItem item = new IconListBoxItem();\r
+ item.Name = key;\r
+ item.Text = key;\r
+ item.IconImage = this.CommandDicTmp[key].ApplicationIcon.ToBitmap();\r
+ item.Type = IconListBoxType.Command;\r
+ item.Regex = Program.Ime.GetRomaji(key);\r
+ this.command_iconListBox.Items.Add(item);\r
+ }\r
+ }\r
+ else\r
+ {\r
+ this.commandListTmp.Clear();\r
+ this.commandDicTmp.Clear();\r
+ this.command_iconListBox.Items.Clear();\r
+ foreach (string key in Program.CommandList)\r
+ {\r
+ this.commandListTmp.Add(key);\r
+ this.commandDicTmp.Add(key, Program.CommandDic[key]);\r
+ IconListBoxItem item = new IconListBoxItem();\r
+ item.Name = key;\r
+ item.Text = key;\r
+ item.IconImage = this.CommandDicTmp[key].ApplicationIcon.ToBitmap();\r
+ item.Type = IconListBoxType.Command;\r
+ item.Regex = Program.Ime.GetRomaji(key);\r
+ this.command_iconListBox.Items.Add(item);\r
+ }\r
+ }\r
+ }\r
+\r
+ /// <summary>\r
+ /// \8c\9f\8dõ\83G\83\93\83W\83\93\83t\83@\83C\83\8b\82Ì\93Ç\82Ý\8d\9e\82Ý\r
+ /// </summary>\r
+ public void ReadEngineList(bool refresh)\r
+ {\r
+ this.engine_textBox_name.Text = "";\r
+ this.engine_textBox_url.Text = "";\r
+ this.engine_textBox_searchUrl.Text = "";\r
+ this.engine_textBox_suggestUrl.Text = "";\r
+ this.engine_textBox_shortcut.Text = "";\r
+ this.engine_textBox_encoding.Text = "";\r
+ this.engine_textBox_display.Text = "";\r
+ this.engine_textBox_comment.Text = "";\r
+ this.engine_pictureBox.Image = null;\r
+\r
+ if (refresh)\r
+ {\r
+ this.engine_iconListBox.Items.Clear();\r
+ foreach (string key in this.engineListTmp)\r
+ {\r
+ if (this.EngineDicTmp[key].Removed)\r
+ continue;\r
+\r
+ IconListBoxItem item = new IconListBoxItem();\r
+ item.Name = key;\r
+ item.Text = key;\r
+ item.IconImage = this.EngineDicTmp[key].IconImage;\r
+ item.Type = IconListBoxType.Command;\r
+ item.Regex = null;\r
+ this.engine_iconListBox.Items.Add(item);\r
+ }\r
+ }\r
+ else\r
+ {\r
+ this.engineListTmp.Clear();\r
+ this.engineDicTmp.Clear();\r
+ this.engine_iconListBox.Items.Clear();\r
+ foreach (string key in Program.EngineList)\r
+ {\r
+ this.engineListTmp.Add(key);\r
+ EngineInfo info = new EngineInfo();\r
+ info.Id = Program.EngineDic[key].Id;\r
+ info.Name = Program.EngineDic[key].Name;\r
+ info.Url = Program.EngineDic[key].Url;\r
+ info.Shortcut = Program.EngineDic[key].Shortcut;\r
+ info.SearchUrl = Program.EngineDic[key].SearchUrl;\r
+ info.SuggestUrl = Program.EngineDic[key].SuggestUrl;\r
+ info.Encoding = Program.EngineDic[key].Encoding;\r
+ info.Display = Program.EngineDic[key].Display;\r
+ info.Type = Program.EngineDic[key].Type;\r
+ info.IconImage = Program.EngineDic[key].IconImage;\r
+ info.IconChanged = false;\r
+ info.Removed = false;\r
+ this.engineDicTmp.Add(key, info);\r
+ IconListBoxItem item = new IconListBoxItem();\r
+ item.Name = key;\r
+ item.Text = key;\r
+ item.IconImage = this.EngineDicTmp[key].IconImage;\r
+ item.Type = IconListBoxType.SearchEngine;\r
+ item.Regex = Program.Ime.GetRomaji(key);\r
+ this.engine_iconListBox.Items.Add(item);\r
+ }\r
+ }\r
+ }\r
+\r
+ /// <summary>\r
+ /// \90Ý\92è\83t\83@\83C\83\8b\82Ì\94½\89f\r
+ /// </summary>\r
+ public void ReflectSetting()\r
+ {\r
+ Settings.Set(Settings.PASSER_MAIN_FADEIN, this.checkBox_fadeIn.Checked);\r
+ Settings.Set(Settings.PASSER_MAIN_SHOWBALLOONWHILERECODING, this.checkBox_showBalloonWhileRecoding.Checked);\r
+ Settings.Set(Settings.PASSER_MAIN_SENDRECORDTOCLIPBOARD, this.checkBox_sendRecordToClipboard.Checked);\r
+ Settings.Set(Settings.PASSER_MAIN_MEMORIZE_ENGINE, this.checkBox_memorizeEngine.Checked);\r
+ Settings.Set(Settings.PASSER_SENTENCE_SHOWSCRIPTTOOLTIP, this.checkBox_showScriptToolTip.Checked);\r
+ Settings.Set(Settings.PASSER_HOTKEY_MAIN, this.hotKeyTextBox_Main.HotKeycode);\r
+ Settings.Set(Settings.PASSER_HOTKEY_CLIP, this.hotKeyTextBox_Clip.HotKeycode);\r
+ Settings.Set(Settings.PASSER_HOTKEY_CLIP_PASTE, this.hotKeyTextBox_ClipPaste.HotKeycode);\r
+ Settings.Set(Settings.PASSER_HOTKEY_KEY_RECORD, this.hotKeyTextBox_KeyRecord.HotKeycode);\r
+ Settings.Set(Settings.PASSER_HOTKEY_KEY_PLAY, this.hotKeyTextBox_KeyPlay.HotKeycode);\r
+ Settings.Set(Settings.PASSER_FORM_OPACITY, this.trackBar_opacity.Value);\r
+ }\r
+ \r
+ /// <summary>\r
+ /// \83R\83}\83\93\83h\83\8a\83X\83g\82Ì\94½\89f\r
+ /// </summary>\r
+ public void ReflectCommandList()\r
+ {\r
+ Program.CommandList.Clear();\r
+ Program.CommandDic.Clear();\r
+ foreach (string key in this.commandListTmp)\r
+ {\r
+ CommandInfo info = this.commandDicTmp[key];\r
+ Program.AddCommand(info);\r
+ }\r
+ }\r
+\r
+ /// <summary>\r
+ /// \92è\8c^\95¶\83\8a\83X\83g\82Ì\94½\89f\r
+ /// </summary>\r
+ public void ReflectSentenceList()\r
+ {\r
+ for (int i = 0; i < this.SentenceGroupListTmp.Length; i++)\r
+ {\r
+ Program.sentenceGroupName[i] = this.sentenceGroupNameTmp[i];\r
+ Program.SentenceGroupList[i].Clear();\r
+ Program.SentenceGroupList[i].AddRange(this.SentenceGroupListTmp[i]);\r
+ }\r
+ }\r
+\r
+ /// <summary>\r
+ /// \8c\9f\8dõ\83G\83\93\83W\83\93\83\8a\83X\83g\82Ì\94½\89f\r
+ /// </summary>\r
+ public void ReflectEngineList()\r
+ {\r
+ Program.EngineList.Clear();\r
+ Program.EngineDic.Clear();\r
+ foreach (string key in this.engineListTmp)\r
+ {\r
+ EngineInfo info = this.engineDicTmp[key];\r
+ Program.EngineList.Add(info.Name);\r
+ Program.EngineDic.Add(info.Name, info);\r
+ }\r
+ }\r
+\r
+ public void RequestCommandListViewSelect(string key)\r
+ {\r
+ for (int i = 0; i < this.command_iconListBox.Items.Count; i++)\r
+ {\r
+ if (key.Equals(((IconListBoxItem)this.command_iconListBox.Items[i]).Text))\r
+ {\r
+ this.command_iconListBox.SelectedIndex = i;\r
+ this.command_iconListBox_SelectedIndexChanged(null, null);\r
+ return;\r
+ }\r
+\r
+ }\r
+ }\r
+\r
+ public void RequestSentenceListViewSelect(int group, int index, bool refresh)\r
+ {\r
+ if (refresh || this.SentenceRadio != group)\r
+ this.ChangeSentenceGroup(group);\r
+\r
+ if (this.sentence_iconListBox.Items.Count == 0)\r
+ return;\r
+\r
+ index = this.sentence_iconListBox.Items.Count > index ? index : this.sentence_iconListBox.Items.Count - 1;\r
+ this.sentence_iconListBox.SelectedIndex = index;\r
+\r
+ }\r
+\r
+ public void RequestEngineListViewSelect(string key)\r
+ {\r
+ for (int i = 0; i < this.engine_iconListBox.Items.Count; i++)\r
+ {\r
+ if (key.Equals(((IconListBoxItem)this.engine_iconListBox.Items[i]).Text))\r
+ {\r
+ this.engine_iconListBox.SelectedIndex = i;\r
+ this.engine_iconListBox_SelectedIndexChanged(null, null);\r
+ return;\r
+ }\r
+\r
+ }\r
+ }\r
+\r
+ private void SettingForm_DragEnter(object sender, DragEventArgs e)\r
+ {\r
+ if (e.Data.GetDataPresent(DataFormats.FileDrop))\r
+ {\r
+ e.Effect = DragDropEffects.Move;\r
+ }\r
+ }\r
+\r
+ private void SettingForm_DragDrop(object sender, DragEventArgs e)\r
+ {\r
+ string[] files = (String[])e.Data.GetData(DataFormats.FileDrop);\r
+ if (files == null || files.Length == 0)\r
+ return;\r
+\r
+ string file = files[0];\r
+ this.tabControl.SelectTab("tabPageCommand");\r
+\r
+ AddCommandForm form = new AddCommandForm();\r
+ form.SetSelectedFile(file);\r
+ this.TargetForm = form;\r
+ Win32.PostMessage(this.Handle, Program.WM_APP_SHOWFORM, IntPtr.Zero, IntPtr.Zero);\r
+ }\r
+\r
+ private void SettingForm_FormClosing(object sender, FormClosingEventArgs e)\r
+ {\r
+ if (e.CloseReason == CloseReason.UserClosing)\r
+ {\r
+ this.DoVisibleChange(false);\r
+ e.Cancel = true;\r
+ }\r
+ }\r
+\r
+ private void button_ok_Click(object sender, EventArgs e)\r
+ {\r
+ ReflectSetting();\r
+ ReflectCommandList();\r
+ ReflectSentenceList();\r
+ ReflectEngineList();\r
+ Settings.Write(Program.SettingFileName);\r
+ Program.WriteCommandList();\r
+ Program.WriteSentenceList();\r
+ Program.ReadSentenceList();\r
+ Program.WriteEngineList();\r
+ Program.ReadEngineList();\r
+ Program.ReadSetting();\r
+ Program.MainForm.ReadSetting();\r
+ Program.MainForm.ReadCommandList();\r
+ this.DoVisibleChange(false);\r
+ }\r
+\r
+ private void button_cancel_Click(object sender, EventArgs e)\r
+ {\r
+ this.DoVisibleChange(false);\r
+ }\r
+\r
+ private void command_button_new_Click(object sender, EventArgs e)\r
+ {\r
+ new AddCommandForm().ShowDialog();\r
+ }\r
+\r
+ private void command_button_edit_Click(object sender, EventArgs e)\r
+ {\r
+ EditCommandForm form = new EditCommandForm();\r
+ form.TextBox_select.Text = this.command_iconListBox.Text;\r
+ form.ShowDialog();\r
+ }\r
+\r
+ private void command_button_delete_Click(object sender, EventArgs e)\r
+ {\r
+ command_delete();\r
+ }\r
+\r
+ private void hotKeyTextBox_TextChanged(object sender, EventArgs e)\r
+ {\r
+ HotKeyTextBox[] hotKeyTextBoxList = { this.hotKeyTextBox_Main, this.hotKeyTextBox_Clip, this.hotKeyTextBox_ClipPaste, this.hotKeyTextBox_KeyPlay, this.hotKeyTextBox_KeyRecord };\r
+ this.checkHotKeyDic.Clear();\r
+\r
+ foreach (HotKeyTextBox textBox in hotKeyTextBoxList)\r
+ {\r
+ if (textBox.HotKeycode == 0)\r
+ continue;\r
+ if (this.checkHotKeyDic.ContainsKey(textBox.HotKeycode))\r
+ {\r
+ this.label_hotKeyError.Visible = true;\r
+ this.button_ok.Enabled = false;\r
+ return;\r
+ }\r
+ this.checkHotKeyDic.Add(textBox.HotKeycode, 0);\r
+ }\r
+\r
+ this.label_hotKeyError.Visible = false;\r
+ this.button_ok.Enabled = true;\r
+\r
+ }\r
+\r
+ public static void hotKeyTextBox_GotFocus(object sender, EventArgs e)\r
+ {\r
+ Program.HotKeyTextBoxHandle = ((Control)sender).Handle;\r
+ Program.Status = ProgramStatus.HotKeyTextBoxFocus;\r
+ }\r
+\r
+ public static void hotKeyTextBox_LostFocus(object sender, EventArgs e)\r
+ {\r
+ Program.HotKeyTextBoxHandle = IntPtr.Zero;\r
+ Program.Status = ProgramStatus.SettingFormOpen;\r
+ }\r
+\r
+ public void DoVisibleChange(bool visible)\r
+ {\r
+ if (visible)\r
+ {\r
+ ReadSetting();\r
+ ReadCommandList();\r
+ ReadMacroList();\r
+ ReadSentenceList();\r
+ ReadEngineList();\r
+ this.Visible = true;\r
+ Program.Status = ProgramStatus.SettingFormOpen;\r
+ }\r
+ else\r
+ {\r
+ this.Visible = false;\r
+ if (Program.MainForm.Visible)\r
+ Program.Status = ProgramStatus.MainFormOpen;\r
+ else\r
+ Program.Status = ProgramStatus.Waiting;\r
+ }\r
+ }\r
+\r
+ private void sentence_button_new_Click(object sender, EventArgs e)\r
+ {\r
+ new AddSentenceForm().ShowDialog();\r
+ }\r
+\r
+ private void sentence_radio0_CheckedChanged(object sender, EventArgs e)\r
+ {\r
+ if (this.sentenceRadio != 0 && this.sentence_radio0.Checked)\r
+ {\r
+ this.sentenceRadio = 0;\r
+ this.ChangeSentenceGroup();\r
+ }\r
+ }\r
+\r
+ private void sentence_radio1_CheckedChanged(object sender, EventArgs e)\r
+ {\r
+ if (this.sentenceRadio != 1 && this.sentence_radio1.Checked)\r
+ {\r
+ this.sentenceRadio = 1;\r
+ this.ChangeSentenceGroup();\r
+ }\r
+ }\r
+\r
+ private void sentence_radio2_CheckedChanged(object sender, EventArgs e)\r
+ {\r
+ if (this.sentenceRadio != 2 && this.sentence_radio2.Checked)\r
+ {\r
+ this.sentenceRadio = 2;\r
+ this.ChangeSentenceGroup();\r
+ }\r
+ }\r
+\r
+ private void sentence_radio3_CheckedChanged(object sender, EventArgs e)\r
+ {\r
+ if (this.sentenceRadio != 3 && this.sentence_radio3.Checked)\r
+ {\r
+ this.sentenceRadio = 3;\r
+ this.ChangeSentenceGroup();\r
+ }\r
+ }\r
+\r
+ private void sentence_radio4_CheckedChanged(object sender, EventArgs e)\r
+ {\r
+ if (this.sentenceRadio != 4 && this.sentence_radio4.Checked)\r
+ {\r
+ this.sentenceRadio = 4;\r
+ this.ChangeSentenceGroup();\r
+ }\r
+ }\r
+\r
+ private void sentence_radio5_CheckedChanged(object sender, EventArgs e)\r
+ {\r
+ if (this.sentenceRadio != 5 && this.sentence_radio5.Checked)\r
+ {\r
+ this.sentenceRadio = 5;\r
+ this.ChangeSentenceGroup();\r
+ }\r
+ }\r
+\r
+ public void ChangeSentenceGroup()\r
+ {\r
+ int group = this.sentenceRadio;\r
+ this.sentence_textBox_group.Text = this.SentenceGroupNameTmp[group];\r
+ this.sentence_textBox_group.ReadOnly = (group == 0);\r
+ this.sentence_button_new.Enabled = (group != 0);\r
+ this.sentence_button_edit.Enabled = false;\r
+ this.sentence_button_delete.Enabled = false;\r
+\r
+ this.sentence_textBox_name.Text = "";\r
+ this.sentence_textBox_type.Text = "";\r
+ this.sentence_textBox_shortcut.Text = "";\r
+ this.sentence_textBox_value.Text = "";\r
+ this.sentence_textBox_macroName.Text = "";\r
+ this.sentence_textBox_args.Text = "";\r
+ this.sentence_textBox_summary.Text = "";\r
+ this.sentence_textBox_description.Text = "";\r
+ this.sentence_iconListBox.Items.Clear();\r
+ for (int i = 0; i < SentenceGroupListTmp[group].Count; i++)\r
+ {\r
+ if (!String.IsNullOrEmpty(SentenceGroupListTmp[group][i].Name))\r
+ {\r
+ IconListBoxItem item = new IconListBoxItem();\r
+ item.Name = SentenceGroupListTmp[group][i].Name;\r
+ item.Text = SentenceGroupListTmp[group][i].Name;\r
+ item.IconImage = Program.SentenceIcons[SentenceGroupListTmp[group][i].Type].ToBitmap();\r
+ item.Regex = Program.Ime.GetRomaji(item.Name.Substring(0, item.Name.Length > 30 ? 30 : item.Name.Length));\r
+ this.sentence_iconListBox.Items.Add(item);\r
+ }\r
+ }\r
+ //this.sentence_iconListView.ItemCountChange();\r
+ }\r
+\r
+ private void OpenEditSentenceForm()\r
+ {\r
+ if (this.sentenceRadio == 0 || this.sentence_iconListBox.SelectedIndex < 0)\r
+ return;\r
+\r
+ SentenceInfo info = SentenceGroupListTmp[this.sentenceRadio][this.sentence_iconListBox.SelectedIndex];\r
+ EditSentenceForm form = new EditSentenceForm();\r
+ form.Init();\r
+ form.textBox_srcIndex.Text = this.sentence_iconListBox.SelectedIndex.ToString();\r
+ form.textBox_srcGroup.Text = this.sentenceRadio.ToString();\r
+ form.textBox_name.Text = info.Name;\r
+ form.textBox_shortcut.HotKeycode = info.Shortcut;\r
+ form.comboBox_type.SelectedIndex = info.Type;\r
+\r
+ if (info.Type == 2)\r
+ {\r
+ IMacro macro = Program.MacroDic[info.Id].Macro;\r
+ form.comboBox_macroName.Text = macro.Name();\r
+ form.textBox_args.Text = info.Value;\r
+ }\r
+ else\r
+ {\r
+ form.textBox_value.Text = info.Value;\r
+ }\r
+ form.ShowDialog();\r
+ }\r
+\r
+ private void trackBar_opacity_ValueChanged(object sender, EventArgs e)\r
+ {\r
+ this.textBox_opacity.Text = this.trackBar_opacity.Value.ToString();\r
+ }\r
+\r
+ protected override void WndProc(ref Message m)\r
+ {\r
+ switch (m.Msg)\r
+ {\r
+ case Program.WM_APP_SHOWFORM:\r
+ if (this.TargetForm != null)\r
+ {\r
+ this.TargetForm.ShowDialog();\r
+ this.TargetForm = null;\r
+ }\r
+ break;\r
+ }\r
+\r
+ base.WndProc(ref m);\r
+ }\r
+\r
+ private void command_iconListBox_SelectedIndexChanged(object sender, EventArgs e)\r
+ {\r
+ if (this.command_iconListBox.SelectedIndex < 0)\r
+ {\r
+ this.command_textBox_name.Text = "";\r
+ this.command_textBox_target.Text = "";\r
+ this.command_textBox_path.Text = "";\r
+ this.command_textBox_arguments.Text = "";\r
+ this.command_textBox_comment.Text = "";\r
+ this.command_pictureBox1.Image = null;\r
+ this.command_button_edit.Enabled = false;\r
+ this.command_button_delete.Enabled = false;\r
+ }\r
+ else\r
+ {\r
+ CommandInfo info = this.CommandDicTmp[this.command_iconListBox.Text];\r
+ if (!File.Exists(info.Target) && !Directory.Exists(info.Target))\r
+ {\r
+ this.command_textBox_name.Text = "";\r
+ this.command_textBox_target.Text = "";\r
+ this.command_textBox_path.Text = "";\r
+ this.command_textBox_arguments.Text = "";\r
+ this.command_textBox_comment.Text = "";\r
+ this.command_pictureBox1.Image = null;\r
+ this.command_button_edit.Enabled = true;\r
+ this.command_button_delete.Enabled = true;\r
+ if (MessageBox.Show("\83^\81[\83Q\83b\83g\82ª\91¶\8dÝ\82µ\82Ü\82¹\82ñ\81B\n\8dí\8f\9c\82µ\82Ü\82·\82©\81H", "\93Ç\82Ý\8d\9e\82Ý\83G\83\89\81[", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK)\r
+ {\r
+ command_delete();\r
+ }\r
+\r
+ return;\r
+ }\r
+ this.command_button_delete.Enabled = true;\r
+ this.command_button_edit.Enabled = true;\r
+\r
+ this.command_textBox_name.Text = info.Name;\r
+ this.command_textBox_target.Text = info.Target;\r
+ this.command_textBox_path.Text = info.Path;\r
+ this.command_textBox_arguments.Text = info.Arguments;\r
+ this.command_textBox_comment.Text = info.Comment;\r
+\r
+ Win32.SHFILEINFO shinfo = new Win32.SHFILEINFO();\r
+ Win32.SHGetFileInfo(info.Target, 0, ref shinfo, Marshal.SizeOf(shinfo), Win32.SHGFI_ICON | Win32.SHGFI_LARGEICON);\r
+ Icon icon = System.Drawing.Icon.FromHandle(shinfo.hIcon);\r
+ this.command_pictureBox1.Image = icon == null ? null : icon.ToBitmap();\r
+ }\r
+ }\r
+\r
+ private void command_iconListBox_DoubleClick(object sender, EventArgs e)\r
+ {\r
+ //if (this.command_iconListBox.SelectedIndex >= 0)\r
+ // command_button_edit_Click(null, null);\r
+ }\r
+\r
+ private void command_iconListBox_KeyDown(object sender, KeyEventArgs e)\r
+ {\r
+ if (this.command_iconListBox.SelectedIndex > -1 && e.KeyCode == Keys.Delete)\r
+ {\r
+ command_delete();\r
+ }\r
+ }\r
+\r
+ public void ChangeSentenceGroup(int group)\r
+ {\r
+ switch (group)\r
+ {\r
+ case 0:\r
+ this.sentenceRadio = 0;\r
+ this.sentence_radio0.Checked = true;\r
+ break;\r
+ case 1:\r
+ this.sentenceRadio = 1;\r
+ this.sentence_radio1.Checked = true;\r
+ break;\r
+ case 2:\r
+ this.sentenceRadio = 2;\r
+ this.sentence_radio2.Checked = true;\r
+ break;\r
+ case 3:\r
+ this.sentenceRadio = 3;\r
+ this.sentence_radio3.Checked = true;\r
+ break;\r
+ case 4:\r
+ this.sentenceRadio = 4;\r
+ this.sentence_radio4.Checked = true;\r
+ break;\r
+ case 5:\r
+ this.sentenceRadio = 5;\r
+ this.sentence_radio5.Checked = true;\r
+ break;\r
+ }\r
+ this.ChangeSentenceGroup();\r
+ }\r
+\r
+ private void sentence_textBox_group_TextChanged(object sender, EventArgs e)\r
+ {\r
+ this.SentenceGroupNameTmp[this.sentenceRadio] = this.sentence_textBox_group.Text;\r
+ }\r
+\r
+ private void sentence_button_edit_Click(object sender, EventArgs e)\r
+ {\r
+ OpenEditSentenceForm();\r
+ }\r
+\r
+ private void sentence_button_delete_Click(object sender, EventArgs e)\r
+ {\r
+ sentence_delete();\r
+ }\r
+\r
+ private void sentence_iconListBox_SelectedIndexChanged(object sender, EventArgs e)\r
+ {\r
+ if (this.sentence_iconListBox.SelectedIndex >= 0)\r
+ {\r
+ SentenceInfo info = SentenceGroupListTmp[this.sentenceRadio][this.sentence_iconListBox.SelectedIndex];\r
+ this.sentence_textBox_name.Text = info.Name;\r
+ this.sentence_textBox_shortcut.Text = HotKeyTextBox.GetKeyText(info.Shortcut);\r
+\r
+ if (info.Type == 2)\r
+ {\r
+ this.sentence_label_value.Visible = false;\r
+ this.sentence_textBox_value.Visible = false;\r
+\r
+ this.sentence_label_macroName.Visible = true;\r
+ this.sentence_textBox_macroName.Visible = true;\r
+ this.sentence_label_args.Visible = true;\r
+ this.sentence_textBox_args.Visible = true;\r
+ this.sentence_label_summary.Visible = true;\r
+ this.sentence_textBox_summary.Visible = true;\r
+ this.sentence_label_description.Visible = true;\r
+ this.sentence_textBox_description.Visible = true;\r
+ }\r
+ else\r
+ {\r
+ this.sentence_label_value.Visible = true;\r
+ this.sentence_textBox_value.Visible = true;\r
+\r
+ this.sentence_label_macroName.Visible = false;\r
+ this.sentence_textBox_macroName.Visible = false;\r
+ this.sentence_label_args.Visible = false;\r
+ this.sentence_textBox_args.Visible = false;\r
+ this.sentence_label_summary.Visible = false;\r
+ this.sentence_textBox_summary.Visible = false;\r
+ this.sentence_label_description.Visible = false;\r
+ this.sentence_textBox_description.Visible = false;\r
+ }\r
+ Application.DoEvents();\r
+\r
+ switch (info.Type)\r
+ {\r
+ case 0:\r
+ this.sentence_textBox_type.Text = "\92è\8c^\95¶";\r
+ this.sentence_textBox_value.Text = info.Value;\r
+ break;\r
+ case 1:\r
+ this.sentence_textBox_type.Text = "\83X\83N\83\8a\83v\83g";\r
+ this.sentence_textBox_value.Text = info.Value;\r
+ break;\r
+ case 2:\r
+ if (Program.MacroDic.ContainsKey(info.Id))\r
+ {\r
+ IMacro macro = Program.MacroDic[info.Id].Macro;\r
+ this.sentence_textBox_macroName.Text = macro.Name();\r
+ this.sentence_textBox_summary.Text = macro.Summary();\r
+ this.sentence_textBox_description.Text = macro.Description();\r
+ this.sentence_textBox_args.Text = info.Value;\r
+ }\r
+ else\r
+ {\r
+ this.sentence_textBox_macroName.Text = "";\r
+ this.sentence_textBox_summary.Text = "";\r
+ this.sentence_textBox_description.Text = "";\r
+ this.sentence_textBox_args.Text = "";\r
+ }\r
+ this.sentence_textBox_type.Text = "\83}\83N\83\8d";\r
+ break;\r
+ }\r
+\r
+\r
+ this.sentence_button_edit.Enabled = (this.sentenceRadio != 0);\r
+ this.sentence_button_delete.Enabled = true;\r
+ }\r
+ else\r
+ {\r
+ this.sentence_textBox_name.Text = "";\r
+ this.sentence_textBox_type.Text = "";\r
+ this.sentence_textBox_shortcut.Text = "";\r
+ this.sentence_textBox_value.Text = "";\r
+ this.sentence_textBox_macroName.Text = "";\r
+ this.sentence_textBox_summary.Text = "";\r
+ this.sentence_textBox_description.Text = "";\r
+ this.sentence_textBox_args.Text = "";\r
+ this.sentence_button_edit.Enabled = false;\r
+ this.sentence_button_delete.Enabled = false;\r
+ }\r
+\r
+ }\r
+\r
+ private void sentence_iconListBox_DragEnter(object sender, DragEventArgs e)\r
+ {\r
+ e.Effect = DragDropEffects.Move;\r
+ Win32.ImageList_DragEnter(this.Handle, Cursor.Position.X - this.Left, Cursor.Position.Y - this.Top);\r
+ }\r
+\r
+ private void sentence_iconListBox_DragDrop(object sender, DragEventArgs e)\r
+ {\r
+ Win32.ImageList_DragLeave(this.Handle);\r
+ int srcIndex = (int)e.Data.GetData(typeof(int));\r
+ Point p = this.sentence_iconListBox.PointToClient(Control.MousePosition);\r
+ int destIndex = this.sentence_iconListBox.TopIndex + this.sentence_iconListBox.DividePoint;\r
+ if (destIndex < 0 || srcIndex == destIndex || srcIndex == (destIndex - 1))\r
+ return;\r
+\r
+ object o = this.sentence_iconListBox.Items[srcIndex];\r
+\r
+ this.sentence_iconListBox.Items.RemoveAt(srcIndex);\r
+ if (destIndex > srcIndex)\r
+ destIndex--;\r
+ this.sentence_iconListBox.Items.Insert(destIndex, o);\r
+\r
+ SentenceInfo info = SentenceGroupListTmp[this.sentenceRadio][srcIndex];\r
+ SentenceGroupListTmp[this.sentenceRadio].RemoveAt(srcIndex);\r
+ SentenceGroupListTmp[this.sentenceRadio].Insert(destIndex, info);\r
+ this.sentence_iconListBox.Invalidate();\r
+ this.sentence_iconListBox.SelectedIndex = destIndex;\r
+ }\r
+\r
+ private void sentence_iconListBox_MouseEnter(object sender, EventArgs e)\r
+ {\r
+ this.sentence_iconListBox.Status = 0;\r
+ }\r
+\r
+ private void sentence_iconListBox_MouseDown(object sender, MouseEventArgs e)\r
+ {\r
+ int index = this.sentence_iconListBox.SelectedIndex;\r
+ if (index < 0)\r
+ return;\r
+\r
+ sentence_iconListBox_SelectedIndexChanged(null, null);\r
+ if (e.Clicks > 1 && e.Button == MouseButtons.Left)\r
+ this.sentence_iconListBox.Status = 9;\r
+ else\r
+ this.sentence_iconListBox.Status = 1;\r
+ IconListBox.MousePoint = e.Location;\r
+ }\r
+\r
+ private void sentence_iconListBox_MouseMove(object sender, MouseEventArgs e)\r
+ {\r
+ if (this.sentence_iconListBox.Status == 9)\r
+ {\r
+ if (IconListBox.MousePoint.X != e.Location.X || IconListBox.MousePoint.Y != e.Location.Y)\r
+ {\r
+ this.sentence_iconListBox.BeginDragDrop(e);\r
+ }\r
+ }\r
+ else if (this.sentence_iconListBox.Status == 1 && e.Button == MouseButtons.Left)\r
+ {\r
+ this.sentence_iconListBox.BeginDragDrop(e);\r
+ }\r
+ }\r
+/*\r
+ private void BeginDragDrop(MouseEventArgs e)\r
+ {\r
+ if (this.sentence_iconListBox.SelectedIndex < 0)\r
+ return;\r
+\r
+ int itemIndex = this.sentence_iconListBox.IndexFromPoint(this.mousePoint);\r
+ Rectangle rect = this.sentence_iconListBox.GetItemRectangle(itemIndex);\r
+\r
+ this.imageList = new ImageList();\r
+ this.imageList.ImageSize = this.sentence_iconListBox.SelectedItemImage.Size;\r
+ this.imageList.Images.Add(this.sentence_iconListBox.SelectedItemImage);\r
+ Win32.ImageList_BeginDrag(imageList.Handle, 0, e.X - rect.Left, e.Y - rect.Top);\r
+\r
+ this.sentence_iconListBox.Status = 2;\r
+ sentence_iconListBox.DoDragDrop(this.sentence_iconListBox.SelectedIndex, DragDropEffects.Move);\r
+\r
+ Win32.ImageList_EndDrag();\r
+ }\r
+*/\r
+ private void sentence_iconListBox_MouseUp(object sender, MouseEventArgs e)\r
+ {\r
+ if (this.sentence_iconListBox.Status == 9)\r
+ {\r
+ OpenEditSentenceForm();\r
+ }\r
+ this.sentence_iconListBox.Status = 0;\r
+ }\r
+\r
+ private void sentence_iconListBox_KeyDown(object sender, KeyEventArgs e)\r
+ {\r
+ if (this.sentence_iconListBox.SelectedIndex > -1 && e.KeyCode == Keys.Delete)\r
+ {\r
+ sentence_delete();\r
+ }\r
+\r
+ }\r
+\r
+ private void engine_iconListBox_SelectedIndexChanged(object sender, EventArgs e)\r
+ {\r
+ if (this.engine_iconListBox.SelectedIndex >= 0)\r
+ {\r
+ EngineInfo info = EngineDicTmp[this.engine_iconListBox.Text];\r
+ this.engine_textBox_name.Text = info.Name;\r
+ this.engine_textBox_url.Text = info.Url;\r
+ this.engine_textBox_searchUrl.Text = info.SearchUrl;\r
+ this.engine_textBox_suggestUrl.Text = info.SuggestUrl;\r
+ this.engine_textBox_shortcut.Text = HotKeyTextBox.GetKeyText(info.Shortcut);\r
+ this.engine_textBox_encoding.Text = info.Encoding;\r
+ this.engine_textBox_display.Text = info.Display;\r
+ this.engine_pictureBox.Image = info.IconImage;\r
+ this.engine_button_edit.Enabled = true;\r
+ this.engine_button_delete.Enabled = true;\r
+ }\r
+ else\r
+ {\r
+ this.engine_textBox_name.Text = "";\r
+ this.engine_textBox_url.Text = "";\r
+ this.engine_textBox_searchUrl.Text = "";\r
+ this.engine_textBox_suggestUrl.Text = "";\r
+ this.engine_textBox_shortcut.Text = "";\r
+ this.engine_textBox_encoding.Text = "";\r
+ this.engine_textBox_display.Text = "";\r
+ this.engine_textBox_comment.Text = "";\r
+ this.engine_pictureBox.Image = null;\r
+ this.engine_button_edit.Enabled = false;\r
+ this.engine_button_delete.Enabled = false;\r
+ }\r
+ }\r
+\r
+ private void macro_iconListBox_SelectedIndexChanged(object sender, EventArgs e)\r
+ {\r
+ if (this.macro_iconListBox.SelectedIndex < 0)\r
+ {\r
+ this.macro_textBox_id.Text = "";\r
+ this.macro_textBox_summary.Text = "";\r
+ this.macro_textBox_description.Text = "";\r
+ }\r
+ else\r
+ {\r
+ IconListBoxItem item = (IconListBoxItem)this.macro_iconListBox.SelectedItem;\r
+ MacroInfo macroInfo = this.macroDicTmp[item.Name];\r
+ this.macro_textBox_id.Text = macroInfo.Macro.Id();\r
+ this.macro_textBox_summary.Text = macroInfo.Macro.Summary();\r
+ this.macro_textBox_description.Text = macroInfo.Macro.Description();\r
+ }\r
+ }\r
+\r
+ private void macro_textBox_shortcut_TextChanged(object sender, EventArgs e)\r
+ {\r
+ if (this.macro_iconListBox.SelectedIndex >= 0)\r
+ {\r
+ IconListBoxItem item = (IconListBoxItem)this.macro_iconListBox.SelectedItem;\r
+ MacroInfo macroInfo = this.macroDicTmp[item.Text];\r
+ }\r
+ }\r
+\r
+ private void command_delete()\r
+ {\r
+ if (this.command_iconListBox.Items.Count == 0)\r
+ return;\r
+ int index = this.command_iconListBox.SelectedIndex;\r
+ string key = this.command_iconListBox.Text;\r
+ this.command_iconListBox.Items.Remove(this.command_iconListBox.SelectedItem);\r
+ this.commandListTmp.Remove(key);\r
+ this.commandDicTmp.Remove(key);\r
+ Program.SettingForm.ReadCommandList(true);\r
+ if (this.command_iconListBox.Items.Count > index)\r
+ this.command_iconListBox.SelectedIndex = index;\r
+ else if (this.command_iconListBox.Items.Count > 0)\r
+ this.command_iconListBox.SelectedIndex = this.command_iconListBox.Items.Count - 1;\r
+ else\r
+ {\r
+ this.command_button_edit.Enabled = false;\r
+ this.command_button_delete.Enabled = false;\r
+ }\r
+ this.command_iconListBox.Update();\r
+ }\r
+\r
+ private void sentence_delete()\r
+ {\r
+ if (this.sentence_iconListBox.SelectedIndex < 0)\r
+ return;\r
+ int index = this.sentence_iconListBox.SelectedIndex;\r
+ this.sentenceGroupListTmp[this.sentenceRadio].RemoveAt(index);\r
+ this.RequestSentenceListViewSelect(this.sentenceRadio, index, true);\r
+ this.sentence_iconListBox.Update();\r
+ }\r
+\r
+ private void sentence_iconListBox_QueryContinueDrag(object sender, QueryContinueDragEventArgs e)\r
+ {\r
+ if (e.Action == DragAction.Drop)\r
+ {\r
+ this.sentence_iconListBox.Status = -1;\r
+ Win32.ImageList_DragLeave(this.Handle);\r
+ this.sentence_iconListBox.Invalidate();\r
+ }\r
+ else\r
+ {\r
+ Win32.ImageList_DragMove(Cursor.Position.X - this.Left, Cursor.Position.Y - this.Top);\r
+ }\r
+ }\r
+\r
+ private void command_iconListBox_DragDrop(object sender, DragEventArgs e)\r
+ {\r
+ string[] files = (String[])e.Data.GetData(DataFormats.FileDrop);\r
+ if (files != null && files.Length > 0)\r
+ {\r
+ string file = files[0];\r
+ AddCommandForm form = new AddCommandForm();\r
+ form.SetSelectedFile(file);\r
+ this.TargetForm = form;\r
+ Win32.PostMessage(this.Handle, Program.WM_APP_SHOWFORM, IntPtr.Zero, IntPtr.Zero);\r
+ }\r
+ else\r
+ {\r
+ Win32.ImageList_DragLeave(this.Handle);\r
+ int srcIndex = (int)e.Data.GetData(typeof(int));\r
+ Point p = this.command_iconListBox.PointToClient(Control.MousePosition);\r
+ int destIndex = this.command_iconListBox.TopIndex + this.command_iconListBox.DividePoint;\r
+ if (destIndex < 0 || srcIndex == destIndex || srcIndex == (destIndex - 1))\r
+ return;\r
+\r
+ IconListBoxItem item = (IconListBoxItem)this.command_iconListBox.Items[srcIndex];\r
+\r
+ this.command_iconListBox.Items.RemoveAt(srcIndex);\r
+ this.commandListTmp.RemoveAt(srcIndex);\r
+ if (destIndex > srcIndex)\r
+ destIndex--;\r
+ this.command_iconListBox.Items.Insert(destIndex, item);\r
+ this.commandListTmp.Insert(destIndex, item.Name);\r
+\r
+ this.command_iconListBox.Invalidate();\r
+ this.command_iconListBox.SelectedIndex = destIndex;\r
+ }\r
+ }\r
+\r
+ private void command_iconListBox_DragEnter(object sender, DragEventArgs e)\r
+ {\r
+ e.Effect = DragDropEffects.Move;\r
+ Win32.ImageList_DragEnter(this.Handle, Cursor.Position.X - this.Left, Cursor.Position.Y - this.Top);\r
+ }\r
+\r
+ private void command_iconListBox_MouseDown(object sender, MouseEventArgs e)\r
+ {\r
+ int index = this.command_iconListBox.SelectedIndex;\r
+ if (index < 0)\r
+ return;\r
+\r
+ command_iconListBox_SelectedIndexChanged(null, null);\r
+ if (e.Clicks > 1 && e.Button == MouseButtons.Left)\r
+ this.command_iconListBox.Status = 9;\r
+ else\r
+ this.command_iconListBox.Status = 1;\r
+ IconListBox.MousePoint = e.Location;\r
+ }\r
+\r
+ private void command_iconListBox_MouseEnter(object sender, EventArgs e)\r
+ {\r
+ this.command_iconListBox.Status = 0;\r
+ }\r
+\r
+ private void command_iconListBox_MouseMove(object sender, MouseEventArgs e)\r
+ {\r
+ if (this.command_iconListBox.Status == 9)\r
+ {\r
+ if (IconListBox.MousePoint.X != e.Location.X || IconListBox.MousePoint.Y != e.Location.Y)\r
+ {\r
+ this.command_iconListBox.BeginDragDrop(e);\r
+ }\r
+ }\r
+ else if (this.command_iconListBox.Status == 1 && e.Button == MouseButtons.Left)\r
+ {\r
+ this.command_iconListBox.BeginDragDrop(e);\r
+ }\r
+ }\r
+\r
+ private void command_iconListBox_MouseUp(object sender, MouseEventArgs e)\r
+ {\r
+ if (this.command_iconListBox.Status == 9)\r
+ {\r
+ if (this.command_iconListBox.SelectedIndex >= 0)\r
+ command_button_edit_Click(null, null);\r
+ }\r
+ this.command_iconListBox.Status = 0;\r
+ }\r
+\r
+ private void command_iconListBox_QueryContinueDrag(object sender, QueryContinueDragEventArgs e)\r
+ {\r
+ if (e.Action == DragAction.Drop)\r
+ {\r
+ this.command_iconListBox.Status = -1;\r
+ Win32.ImageList_DragLeave(this.Handle);\r
+ this.command_iconListBox.Invalidate();\r
+ }\r
+ else\r
+ {\r
+ Win32.ImageList_DragMove(Cursor.Position.X - this.Left, Cursor.Position.Y - this.Top);\r
+ }\r
+ }\r
+\r
+ private void engine_iconListBox_QueryContinueDrag(object sender, QueryContinueDragEventArgs e)\r
+ {\r
+ if (e.Action == DragAction.Drop)\r
+ {\r
+ this.engine_iconListBox.Status = -1;\r
+ Win32.ImageList_DragLeave(this.Handle);\r
+ this.engine_iconListBox.Invalidate();\r
+ }\r
+ else\r
+ {\r
+ Win32.ImageList_DragMove(Cursor.Position.X - this.Left, Cursor.Position.Y - this.Top);\r
+ }\r
+ }\r
+\r
+ private void engine_iconListBox_DragDrop(object sender, DragEventArgs e)\r
+ {\r
+ Win32.ImageList_DragLeave(this.Handle);\r
+ int srcIndex = (int)e.Data.GetData(typeof(int));\r
+ Point p = this.engine_iconListBox.PointToClient(Control.MousePosition);\r
+ int destIndex = this.engine_iconListBox.TopIndex + this.engine_iconListBox.DividePoint;\r
+ if (destIndex < 0 || srcIndex == destIndex || srcIndex == (destIndex - 1))\r
+ return;\r
+\r
+ IconListBoxItem item = (IconListBoxItem)this.engine_iconListBox.Items[srcIndex];\r
+\r
+ this.engine_iconListBox.Items.RemoveAt(srcIndex);\r
+ this.engineListTmp.RemoveAt(srcIndex);\r
+ if (destIndex > srcIndex)\r
+ destIndex--;\r
+ this.engine_iconListBox.Items.Insert(destIndex, item);\r
+ this.engineListTmp.Insert(destIndex, item.Name);\r
+\r
+ this.engine_iconListBox.Invalidate();\r
+ this.engine_iconListBox.SelectedIndex = destIndex;\r
+ }\r
+ \r
+ private void engine_iconListBox_DragEnter(object sender, DragEventArgs e)\r
+ {\r
+ e.Effect = DragDropEffects.Move;\r
+ Win32.ImageList_DragEnter(this.Handle, Cursor.Position.X - this.Left, Cursor.Position.Y - this.Top);\r
+ }\r
+ \r
+ private void engine_iconListBox_MouseDown(object sender, MouseEventArgs e)\r
+ {\r
+ int index = this.engine_iconListBox.SelectedIndex;\r
+ if (index < 0)\r
+ return;\r
+\r
+ engine_iconListBox_SelectedIndexChanged(null, null);\r
+ if (e.Clicks > 1 && e.Button == MouseButtons.Left)\r
+ this.engine_iconListBox.Status = 9;\r
+ else\r
+ this.engine_iconListBox.Status = 1;\r
+ IconListBox.MousePoint = e.Location;\r
+ }\r
+\r
+ private void engine_iconListBox_MouseEnter(object sender, EventArgs e)\r
+ {\r
+ this.engine_iconListBox.Status = 0;\r
+ }\r
+\r
+ private void engine_iconListBox_MouseMove(object sender, MouseEventArgs e)\r
+ {\r
+ if (this.engine_iconListBox.Status == 9)\r
+ {\r
+ if (IconListBox.MousePoint.X != e.Location.X || IconListBox.MousePoint.Y != e.Location.Y)\r
+ {\r
+ this.engine_iconListBox.BeginDragDrop(e);\r
+ }\r
+ }\r
+ else if (this.engine_iconListBox.Status == 1 && e.Button == MouseButtons.Left)\r
+ {\r
+ this.engine_iconListBox.BeginDragDrop(e);\r
+ }\r
+ }\r
+\r
+ private void engine_iconListBox_MouseUp(object sender, MouseEventArgs e)\r
+ {\r
+ if (this.engine_iconListBox.Status == 9)\r
+ {\r
+ if (this.engine_iconListBox.SelectedIndex >= 0)\r
+ {\r
+ OpenEditEngineForm();\r
+ }\r
+ }\r
+ this.engine_iconListBox.Status = 0;\r
+ }\r
+\r
+ private void sentence_iconListBox_DragEnter_1(object sender, DragEventArgs e)\r
+ {\r
+ e.Effect = DragDropEffects.Move;\r
+ Win32.ImageList_DragEnter(this.Handle, Cursor.Position.X - this.Left, Cursor.Position.Y - this.Top);\r
+ }\r
+\r
+ private void engine_button_new_Click(object sender, EventArgs e)\r
+ {\r
+ new AddEngineForm().ShowDialog();\r
+ }\r
+\r
+ private void engine_button_delete_Click(object sender, EventArgs e)\r
+ {\r
+ string key = this.engine_iconListBox.Text;\r
+ int index = this.engineListTmp.IndexOf(key);\r
+ int selectedIndex = this.engine_iconListBox.SelectedIndex;\r
+ this.engineListTmp.RemoveAt(index);\r
+ this.engineListTmp.Add("@" + this.engine_iconListBox.Text);\r
+ //this.engineListTmp[index] = "@" + this.engine_iconListBox.Text;\r
+\r
+ EngineInfo info = this.engineDicTmp[key];\r
+ info.Name = "@" + this.engine_iconListBox.Text;\r
+ info.Removed = true;\r
+ this.engineDicTmp.Remove(key);\r
+ this.EngineDicTmp.Add(info.Name, info);\r
+\r
+ Program.SettingForm.ReadEngineList(true);\r
+ if (this.engine_iconListBox.Items.Count > selectedIndex)\r
+ this.engine_iconListBox.SelectedIndex = selectedIndex;\r
+ else if (this.engine_iconListBox.Items.Count > 0)\r
+ this.engine_iconListBox.SelectedIndex = this.engine_iconListBox.Items.Count - 1;\r
+ else\r
+ {\r
+ this.engine_button_edit.Enabled = false;\r
+ this.engine_button_delete.Enabled = false;\r
+ }\r
+ this.engine_iconListBox.Update();\r
+ }\r
+\r
+ private void engine_button_edit_Click(object sender, EventArgs e)\r
+ {\r
+ OpenEditEngineForm();\r
+ }\r
+\r
+ public void OpenEditEngineForm()\r
+ {\r
+ if (this.engine_iconListBox.SelectedIndex < 0)\r
+ return;\r
+\r
+ EngineInfo info = this.EngineDicTmp[this.engine_iconListBox.Text];\r
+ EditEngineForm form = new EditEngineForm(info);\r
+ form.ShowDialog();\r
+ }\r
+ \r
+ }\r
}
\ No newline at end of file
-<?xml version="1.0" encoding="utf-8"?>
-<root>
- <!--
- Microsoft ResX Schema
-
- Version 2.0
-
- The primary goals of this format is to allow a simple XML format
- that is mostly human readable. The generation and parsing of the
- various data types are done through the TypeConverter classes
- associated with the data types.
-
- Example:
-
- ... ado.net/XML headers & schema ...
- <resheader name="resmimetype">text/microsoft-resx</resheader>
- <resheader name="version">2.0</resheader>
- <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
- <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
- <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
- <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
- <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
- <value>[base64 mime encoded serialized .NET Framework object]</value>
- </data>
- <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
- <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
- <comment>This is a comment</comment>
- </data>
-
- There are any number of "resheader" rows that contain simple
- name/value pairs.
-
- Each data row contains a name, and value. The row also contains a
- type or mimetype. Type corresponds to a .NET class that support
- text/value conversion through the TypeConverter architecture.
- Classes that don't support this are serialized and stored with the
- mimetype set.
-
- The mimetype is used for serialized objects, and tells the
- ResXResourceReader how to depersist the object. This is currently not
- extensible. For a given mimetype the value must be set accordingly:
-
- Note - application/x-microsoft.net.object.binary.base64 is the format
- that the ResXResourceWriter will generate, however the reader can
- read any of the formats listed below.
-
- mimetype: application/x-microsoft.net.object.binary.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.soap.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.bytearray.base64
- value : The object must be serialized into a byte array
- : using a System.ComponentModel.TypeConverter
- : and then encoded with base64 encoding.
- -->
- <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
- <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
- <xsd:element name="root" msdata:IsDataSet="true">
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="metadata">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" />
- </xsd:sequence>
- <xsd:attribute name="name" use="required" type="xsd:string" />
- <xsd:attribute name="type" type="xsd:string" />
- <xsd:attribute name="mimetype" type="xsd:string" />
- <xsd:attribute ref="xml:space" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="assembly">
- <xsd:complexType>
- <xsd:attribute name="alias" type="xsd:string" />
- <xsd:attribute name="name" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="data">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
- <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
- <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
- <xsd:attribute ref="xml:space" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="resheader">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" />
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:schema>
- <resheader name="resmimetype">
- <value>text/microsoft-resx</value>
- </resheader>
- <resheader name="version">
- <value>2.0</value>
- </resheader>
- <resheader name="reader">
- <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
- <resheader name="writer">
- <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
- <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
- <data name="macro_iconListBox.SelectedBackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
- <value>
- iVBORw0KGgoAAAANSUhEUgAAAAcAAAAWCAYAAAAM2IbtAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
- YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAQFJREFUKFNVkk1P
- g0AURed3uzUu/RVu1KSNCxfudCOiqUFdqLUtlNLWFqrWjwRmwFxzx/DIW5y8nHt5AwEMAHM2SLHfj7Bz
- MPCTztz0gwQnYYo4L7H5afykMze7h7dYbSukbw5J8T/pzA2PKr5rvOQddOZSDtcOLarMv7qCF9Blk/K8
- soIq158WT6+VQJdNPt3DshboqrxfOLSocr79xd3cCnTZzD4aRFkl0KWcvde4mXXQVXmdOrSoku8znFqB
- LpuUq6QSVDndWARxKdBlk3IxcYIqR0WjSrrf3DuO8Lgs/f3Ox9ZPOnNzGk5wFGT+i3CDk87c8EfqXcb+
- t+BRnHTmf66vFApk/+ZKAAAAAElFTkSuQmCC
-</value>
- </data>
- <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
- <value>
- AAABAAEAICAAAAAAAACoCAAAFgAAACgAAAAgAAAAQAAAAAEACAAAAAAAgAQAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAMwAAAGYAAACZAAAAzAAAAP8AAAAAMwAAMzMAAGYzAACZMwAAzDMAAP8zAAAAZgAAM2YAAGZm
- AACZZgAAzGYAAP9mAAAAmQAAM5kAAGaZAACZmQAAzJkAAP+ZAAAAzAAAM8wAAGbMAACZzAAAzMwAAP/M
- AAAA/wAAM/8AAGb/AACZ/wAAzP8AAP//AAAAADMAMwAzAGYAMwCZADMAzAAzAP8AMwAAMzMAMzMzAGYz
- MwCZMzMAzDMzAP8zMwAAZjMAM2YzAGZmMwCZZjMAzGYzAP9mMwAAmTMAM5kzAGaZMwCZmTMAzJkzAP+Z
- MwAAzDMAM8wzAGbMMwCZzDMAzMwzAP/MMwAA/zMAM/8zAGb/MwCZ/zMAzP8zAP//MwAAAGYAMwBmAGYA
- ZgCZAGYAzABmAP8AZgAAM2YAMzNmAGYzZgCZM2YAzDNmAP8zZgAAZmYAM2ZmAGZmZgCZZmYAzGZmAP9m
- ZgAAmWYAM5lmAGaZZgCZmWYAzJlmAP+ZZgAAzGYAM8xmAGbMZgCZzGYAzMxmAP/MZgAA/2YAM/9mAGb/
- ZgCZ/2YAzP9mAP//ZgAAAJkAMwCZAGYAmQCZAJkAzACZAP8AmQAAM5kAMzOZAGYzmQCZM5kAzDOZAP8z
- mQAAZpkAM2aZAGZmmQCZZpkAzGaZAP9mmQAAmZkAM5mZAGaZmQCZmZkAzJmZAP+ZmQAAzJkAM8yZAGbM
- mQCZzJkAzMyZAP/MmQAA/5kAM/+ZAGb/mQCZ/5kAzP+ZAP//mQAAAMwAMwDMAGYAzACZAMwAzADMAP8A
- zAAAM8wAMzPMAGYzzACZM8wAzDPMAP8zzAAAZswAM2bMAGZmzACZZswAzGbMAP9mzAAAmcwAM5nMAGaZ
- zACZmcwAzJnMAP+ZzAAAzMwAM8zMAGbMzACZzMwAzMzMAP/MzAAA/8wAM//MAGb/zACZ/8wAzP/MAP//
- zAAAAP8AMwD/AGYA/wCZAP8AzAD/AP8A/wAAM/8AMzP/AGYz/wCZM/8AzDP/AP8z/wAAZv8AM2b/AGZm
- /wCZZv8AzGb/AP9m/wAAmf8AM5n/AGaZ/wCZmf8AzJn/AP+Z/wAAzP8AM8z/AGbM/wCZzP8AzMz/AP/M
- /wAA//8AM///AGb//wCZ//8AzP//AP///wAAAAMA//8AAP///wD///8AtbX/AMa9/wClxv8Arc7/ALXO
- /wDOzv8A1s7/AO7O/wDG1v8Azt7/ANbe/wCM5/8Azuf/ANbn/wDe5/8AuOz/AADv/wBC7/8Ae/f/AJz3
- /wDW9/8A3vf/AOf3/wBz//8A7///APf//wDw+/8ApKCgAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP//
- AAD///8ASkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpK
- SkpKSkpKSkpKSkpKSkpKSkpKSkpKSktRSkpKSkpKSkpKSkpKSkpKSkpKSkpKSiYmJiYmJiYmJqGaUSYm
- JiYmJiYmJiYmJkpKSkpKSkomJiYmJiYmJiYmmqF2JiYmJiYmJiYmJiYmJkpKSkpKSiYmJycnJycnJyd2
- oXYnJycnJycnJycnJyYmSkpKSkpKJiYnJycnJycnJ3ahdicnJycnJycnJycnJiZKSkpKSkomJicnJycn
- JycndqF2JycnJycnJycnJycmJkpKSkpKSiYmJycnJycnJydRoXYnJydLJycnJycnJyYmSkpKSkpKJiYn
- JycnJ0snJ0uhdkt2mppRJycnJycnJiZKSkpKSkomJicnJycndksndqGhoaGhoZp2JycnJycmJkpKSkpK
- SiYmJycnJycnmqGhoaGadlEnJyd2JycnJyYmSkpKSkpKJiYnJycnJycndpqhdicnJycnJyd2JycnJiZK
- SkpKSkomJicnJycnJycnS6F2JycnJycnJ3Z2JycmJkpKSkpKSiYmJycnJycnS3Z2oXZ2dksnJycnS6FL
- JyYmSkpKSkpKJiYnJycnS3ZRJ0uhdidRoXYnJycnoXYnJiZKSkpKSkomJicnJ1F2JycnS6F2J1GhoXYn
- JyehdicmJkpKSkpKSiYmJydRUScnJydLoXYnS5qaJycnJ6F2JyYmSkpKSkpKJiYnS1EnJycnJ0uhdicn
- J0snJydLoXYnJiZKSkpKSkomJid2JycnJycnS6GaJycnJycnJ3ahdicmJkpKSkpKSiYmUUsnJycnJyd2
- oaEnJycnJycndqF2JyYmSkpKSkpKJiZ2JycnJycnJ3ahoUsnJycnJyeaoXYnJiZKSkpKSkomJnYnJycn
- JycndqF2dicnJycnUaGhSycmJkpKSkpKSiYmdicnJycnJyeaoXZ2JycnJyd2oZonJyYmSkpKSkpKJiZ2
- JycnJycnS6GhS0tRJycnJ5qhdicnJiZKSkpKSkomJnYnJycnJyd2oZonJ3YnJyd2oaFLJycmJkpKSkpK
- SiYmS3YnJycnS5qhUScnJ3YnUaGhdicnJyYmSkpKSkpKJiYmdnYmJkuaoZomJiYmS6GhoZpLJiYmJiZK
- SkpKSkpKJiYmdqGhoaGaSyYmJiYmUZqaSyYmJiYmSkpKSkpKSkpKSkpKS3V1dUpKSkpKSkpKSkpKSkpK
- SkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpK
- SkpKSkpKSkpKSgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAA
-</value>
- </data>
+<?xml version="1.0" encoding="utf-8"?>\r
+<root>\r
+ <!-- \r
+ Microsoft ResX Schema \r
+ \r
+ Version 2.0\r
+ \r
+ The primary goals of this format is to allow a simple XML format \r
+ that is mostly human readable. The generation and parsing of the \r
+ various data types are done through the TypeConverter classes \r
+ associated with the data types.\r
+ \r
+ Example:\r
+ \r
+ ... ado.net/XML headers & schema ...\r
+ <resheader name="resmimetype">text/microsoft-resx</resheader>\r
+ <resheader name="version">2.0</resheader>\r
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>\r
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>\r
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>\r
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>\r
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">\r
+ <value>[base64 mime encoded serialized .NET Framework object]</value>\r
+ </data>\r
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">\r
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>\r
+ <comment>This is a comment</comment>\r
+ </data>\r
+ \r
+ There are any number of "resheader" rows that contain simple \r
+ name/value pairs.\r
+ \r
+ Each data row contains a name, and value. The row also contains a \r
+ type or mimetype. Type corresponds to a .NET class that support \r
+ text/value conversion through the TypeConverter architecture. \r
+ Classes that don't support this are serialized and stored with the \r
+ mimetype set.\r
+ \r
+ The mimetype is used for serialized objects, and tells the \r
+ ResXResourceReader how to depersist the object. This is currently not \r
+ extensible. For a given mimetype the value must be set accordingly:\r
+ \r
+ Note - application/x-microsoft.net.object.binary.base64 is the format \r
+ that the ResXResourceWriter will generate, however the reader can \r
+ read any of the formats listed below.\r
+ \r
+ mimetype: application/x-microsoft.net.object.binary.base64\r
+ value : The object must be serialized with \r
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter\r
+ : and then encoded with base64 encoding.\r
+ \r
+ mimetype: application/x-microsoft.net.object.soap.base64\r
+ value : The object must be serialized with \r
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter\r
+ : and then encoded with base64 encoding.\r
+\r
+ mimetype: application/x-microsoft.net.object.bytearray.base64\r
+ value : The object must be serialized into a byte array \r
+ : using a System.ComponentModel.TypeConverter\r
+ : and then encoded with base64 encoding.\r
+ -->\r
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">\r
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />\r
+ <xsd:element name="root" msdata:IsDataSet="true">\r
+ <xsd:complexType>\r
+ <xsd:choice maxOccurs="unbounded">\r
+ <xsd:element name="metadata">\r
+ <xsd:complexType>\r
+ <xsd:sequence>\r
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />\r
+ </xsd:sequence>\r
+ <xsd:attribute name="name" use="required" type="xsd:string" />\r
+ <xsd:attribute name="type" type="xsd:string" />\r
+ <xsd:attribute name="mimetype" type="xsd:string" />\r
+ <xsd:attribute ref="xml:space" />\r
+ </xsd:complexType>\r
+ </xsd:element>\r
+ <xsd:element name="assembly">\r
+ <xsd:complexType>\r
+ <xsd:attribute name="alias" type="xsd:string" />\r
+ <xsd:attribute name="name" type="xsd:string" />\r
+ </xsd:complexType>\r
+ </xsd:element>\r
+ <xsd:element name="data">\r
+ <xsd:complexType>\r
+ <xsd:sequence>\r
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />\r
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />\r
+ </xsd:sequence>\r
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />\r
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />\r
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />\r
+ <xsd:attribute ref="xml:space" />\r
+ </xsd:complexType>\r
+ </xsd:element>\r
+ <xsd:element name="resheader">\r
+ <xsd:complexType>\r
+ <xsd:sequence>\r
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />\r
+ </xsd:sequence>\r
+ <xsd:attribute name="name" type="xsd:string" use="required" />\r
+ </xsd:complexType>\r
+ </xsd:element>\r
+ </xsd:choice>\r
+ </xsd:complexType>\r
+ </xsd:element>\r
+ </xsd:schema>\r
+ <resheader name="resmimetype">\r
+ <value>text/microsoft-resx</value>\r
+ </resheader>\r
+ <resheader name="version">\r
+ <value>2.0</value>\r
+ </resheader>\r
+ <resheader name="reader">\r
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+ </resheader>\r
+ <resheader name="writer">\r
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+ </resheader>\r
+ <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />\r
+ <data name="macro_iconListBox.SelectedBackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">\r
+ <value>\r
+ iVBORw0KGgoAAAANSUhEUgAAAAcAAAAWCAYAAAAM2IbtAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8\r
+ YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAQFJREFUKFNVkk1P\r
+ g0AURed3uzUu/RVu1KSNCxfudCOiqUFdqLUtlNLWFqrWjwRmwFxzx/DIW5y8nHt5AwEMAHM2SLHfj7Bz\r
+ MPCTztz0gwQnYYo4L7H5afykMze7h7dYbSukbw5J8T/pzA2PKr5rvOQddOZSDtcOLarMv7qCF9Blk/K8\r
+ soIq158WT6+VQJdNPt3DshboqrxfOLSocr79xd3cCnTZzD4aRFkl0KWcvde4mXXQVXmdOrSoku8znFqB\r
+ LpuUq6QSVDndWARxKdBlk3IxcYIqR0WjSrrf3DuO8Lgs/f3Ox9ZPOnNzGk5wFGT+i3CDk87c8EfqXcb+\r
+ t+BRnHTmf66vFApk/+ZKAAAAAElFTkSuQmCC\r
+</value>\r
+ </data>\r
+ <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">\r
+ <value>\r
+ AAABAAEAICAAAAAAAACoCAAAFgAAACgAAAAgAAAAQAAAAAEACAAAAAAAgAQAAAAAAAAAAAAAAAAAAAAA\r
+ AAAAAAAAMwAAAGYAAACZAAAAzAAAAP8AAAAAMwAAMzMAAGYzAACZMwAAzDMAAP8zAAAAZgAAM2YAAGZm\r
+ AACZZgAAzGYAAP9mAAAAmQAAM5kAAGaZAACZmQAAzJkAAP+ZAAAAzAAAM8wAAGbMAACZzAAAzMwAAP/M\r
+ AAAA/wAAM/8AAGb/AACZ/wAAzP8AAP//AAAAADMAMwAzAGYAMwCZADMAzAAzAP8AMwAAMzMAMzMzAGYz\r
+ MwCZMzMAzDMzAP8zMwAAZjMAM2YzAGZmMwCZZjMAzGYzAP9mMwAAmTMAM5kzAGaZMwCZmTMAzJkzAP+Z\r
+ MwAAzDMAM8wzAGbMMwCZzDMAzMwzAP/MMwAA/zMAM/8zAGb/MwCZ/zMAzP8zAP//MwAAAGYAMwBmAGYA\r
+ ZgCZAGYAzABmAP8AZgAAM2YAMzNmAGYzZgCZM2YAzDNmAP8zZgAAZmYAM2ZmAGZmZgCZZmYAzGZmAP9m\r
+ ZgAAmWYAM5lmAGaZZgCZmWYAzJlmAP+ZZgAAzGYAM8xmAGbMZgCZzGYAzMxmAP/MZgAA/2YAM/9mAGb/\r
+ ZgCZ/2YAzP9mAP//ZgAAAJkAMwCZAGYAmQCZAJkAzACZAP8AmQAAM5kAMzOZAGYzmQCZM5kAzDOZAP8z\r
+ mQAAZpkAM2aZAGZmmQCZZpkAzGaZAP9mmQAAmZkAM5mZAGaZmQCZmZkAzJmZAP+ZmQAAzJkAM8yZAGbM\r
+ mQCZzJkAzMyZAP/MmQAA/5kAM/+ZAGb/mQCZ/5kAzP+ZAP//mQAAAMwAMwDMAGYAzACZAMwAzADMAP8A\r
+ zAAAM8wAMzPMAGYzzACZM8wAzDPMAP8zzAAAZswAM2bMAGZmzACZZswAzGbMAP9mzAAAmcwAM5nMAGaZ\r
+ zACZmcwAzJnMAP+ZzAAAzMwAM8zMAGbMzACZzMwAzMzMAP/MzAAA/8wAM//MAGb/zACZ/8wAzP/MAP//\r
+ zAAAAP8AMwD/AGYA/wCZAP8AzAD/AP8A/wAAM/8AMzP/AGYz/wCZM/8AzDP/AP8z/wAAZv8AM2b/AGZm\r
+ /wCZZv8AzGb/AP9m/wAAmf8AM5n/AGaZ/wCZmf8AzJn/AP+Z/wAAzP8AM8z/AGbM/wCZzP8AzMz/AP/M\r
+ /wAA//8AM///AGb//wCZ//8AzP//AP///wAAAAMA//8AAP///wD///8AtbX/AMa9/wClxv8Arc7/ALXO\r
+ /wDOzv8A1s7/AO7O/wDG1v8Azt7/ANbe/wCM5/8Azuf/ANbn/wDe5/8AuOz/AADv/wBC7/8Ae/f/AJz3\r
+ /wDW9/8A3vf/AOf3/wBz//8A7///APf//wDw+/8ApKCgAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP//\r
+ AAD///8ASkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpK\r
+ SkpKSkpKSkpKSkpKSkpKSkpKSkpKSktRSkpKSkpKSkpKSkpKSkpKSkpKSkpKSiYmJiYmJiYmJqGaUSYm\r
+ JiYmJiYmJiYmJkpKSkpKSkomJiYmJiYmJiYmmqF2JiYmJiYmJiYmJiYmJkpKSkpKSiYmJycnJycnJyd2\r
+ oXYnJycnJycnJycnJyYmSkpKSkpKJiYnJycnJycnJ3ahdicnJycnJycnJycnJiZKSkpKSkomJicnJycn\r
+ JycndqF2JycnJycnJycnJycmJkpKSkpKSiYmJycnJycnJydRoXYnJydLJycnJycnJyYmSkpKSkpKJiYn\r
+ JycnJ0snJ0uhdkt2mppRJycnJycnJiZKSkpKSkomJicnJycndksndqGhoaGhoZp2JycnJycmJkpKSkpK\r
+ SiYmJycnJycnmqGhoaGadlEnJyd2JycnJyYmSkpKSkpKJiYnJycnJycndpqhdicnJycnJyd2JycnJiZK\r
+ SkpKSkomJicnJycnJycnS6F2JycnJycnJ3Z2JycmJkpKSkpKSiYmJycnJycnS3Z2oXZ2dksnJycnS6FL\r
+ JyYmSkpKSkpKJiYnJycnS3ZRJ0uhdidRoXYnJycnoXYnJiZKSkpKSkomJicnJ1F2JycnS6F2J1GhoXYn\r
+ JyehdicmJkpKSkpKSiYmJydRUScnJydLoXYnS5qaJycnJ6F2JyYmSkpKSkpKJiYnS1EnJycnJ0uhdicn\r
+ J0snJydLoXYnJiZKSkpKSkomJid2JycnJycnS6GaJycnJycnJ3ahdicmJkpKSkpKSiYmUUsnJycnJyd2\r
+ oaEnJycnJycndqF2JyYmSkpKSkpKJiZ2JycnJycnJ3ahoUsnJycnJyeaoXYnJiZKSkpKSkomJnYnJycn\r
+ JycndqF2dicnJycnUaGhSycmJkpKSkpKSiYmdicnJycnJyeaoXZ2JycnJyd2oZonJyYmSkpKSkpKJiZ2\r
+ JycnJycnS6GhS0tRJycnJ5qhdicnJiZKSkpKSkomJnYnJycnJyd2oZonJ3YnJyd2oaFLJycmJkpKSkpK\r
+ SiYmS3YnJycnS5qhUScnJ3YnUaGhdicnJyYmSkpKSkpKJiYmdnYmJkuaoZomJiYmS6GhoZpLJiYmJiZK\r
+ SkpKSkpKJiYmdqGhoaGaSyYmJiYmUZqaSyYmJiYmSkpKSkpKSkpKSkpKS3V1dUpKSkpKSkpKSkpKSkpK\r
+ SkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpK\r
+ SkpKSkpKSkpKSgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\r
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\r
+ AAAAAAAAAAAAAAAAAAAAAAAA\r
+</value>\r
+ </data>\r
</root>
\ No newline at end of file
<Url>http://www.google.co.jp/</Url>\r
<SearchUrl>http://www.google.co.jp/search?hl=ja&q=%s</SearchUrl>\r
<SuggestUrl>http://suggestqueries.google.com/complete/search?output=firefox&client=firefox&hl=ja&qu=%s</SuggestUrl>\r
+ <Encoding>UTF-8</Encoding>\r
<Display>Google.co.jpで検索</Display>\r
<Shortcut>4167</Shortcut>\r
</Engine>\r
<Url>http://www.yahoo.co.jp/</Url>\r
<SearchUrl>http://search.yahoo.co.jp/search?p=%s</SearchUrl>\r
<SuggestUrl>http://asprov.search.yahoo.co.jp/AssistSearchService/V2/webassistSearch?p=%s&output=iejson</SuggestUrl>\r
+ <Encoding />\r
<Display>Yahoo!Japanで検索</Display>\r
<Shortcut>4185</Shortcut>\r
</Engine>\r
<Url>http://www.bing.com/</Url>\r
<SearchUrl>http://www.bing.com/search?q=%s&go=&form=QBLH&filt=all&qs=n&sk=&sc=8-4</SearchUrl>\r
<SuggestUrl>http://api.bing.net/osjson.aspx?Query=%s&FORM=OPERAS&Market=ja-JP</SuggestUrl>\r
+ <Encoding />\r
<Display>bing.comで検索</Display>\r
<Shortcut>4162</Shortcut>\r
</Engine>\r
<Url>http://www.amazon.co.jp/</Url>\r
<SearchUrl>http://www.amazon.co.jp/s/url=search-alias%3Daps&field-keywords=%s</SearchUrl>\r
<SuggestUrl>http://completion.amazon.co.jp/search/complete?mkt=6&method=completion&search-alias=aps&q=%s</SuggestUrl>\r
+ <Encoding />\r
<Display>Amazon.co.jpで検索</Display>\r
<Shortcut>4161</Shortcut>\r
</Engine>\r
<Url>http://www.youtube.com/</Url>\r
<SearchUrl>http://www.youtube.com/results?search_query=%s&aq=f</SearchUrl>\r
<SuggestUrl>http://suggestqueries.google.com/complete/search?hl=ja&ds=yt&client=firefox&hjson=t&q=%s</SuggestUrl>\r
+ <Encoding />\r
<Display>Youtubeで検索</Display>\r
<Shortcut>4185</Shortcut>\r
</Engine>\r
<Url>http://ja.wikipedia.org/</Url>\r
<SearchUrl>http://ja.wikipedia.org/wiki/%s</SearchUrl>\r
<SuggestUrl>http://ja.wikipedia.org/w/api.php?action=opensearch&search=%s</SuggestUrl>\r
+ <Encoding />\r
<Display>Wikipediaで検索</Display>\r
<Shortcut>4183</Shortcut>\r
</Engine>\r
<Url>http://kakaku.com/</Url>\r
<SearchUrl>http://kakaku.com/search_results/?query=%s</SearchUrl>\r
<SuggestUrl>http://suggest.kakaku.com/suggest/?query=%s&pdir=kakaku&ie=utf-8&v=sf2</SuggestUrl>\r
+ <Encoding />\r
<Display>価格.comで検索</Display>\r
<Shortcut>4171</Shortcut>\r
</Engine>\r