mirror of
https://github.com/greenshot/greenshot
synced 2025-07-15 01:23:47 -07:00
optimized ExternalCommandPlugin UI
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1745 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
7c0cb25948
commit
5780560fbe
7 changed files with 839 additions and 136 deletions
111
GreenshotExternalCommandPlugin/SettingsForm.Designer.cs
generated
111
GreenshotExternalCommandPlugin/SettingsForm.Designer.cs
generated
|
@ -46,31 +46,20 @@ namespace ExternalCommand {
|
|||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.textBox_commandline = new System.Windows.Forms.TextBox();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SettingsForm));
|
||||
this.buttonCancel = new System.Windows.Forms.Button();
|
||||
this.buttonOk = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.textBox_arguments = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.listView1 = new System.Windows.Forms.ListView();
|
||||
this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.textBox_name = new System.Windows.Forms.TextBox();
|
||||
this.button3 = new System.Windows.Forms.Button();
|
||||
this.button4 = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// textBox_commandline
|
||||
//
|
||||
this.textBox_commandline.Location = new System.Drawing.Point(156, 245);
|
||||
this.textBox_commandline.Name = "textBox_commandline";
|
||||
this.textBox_commandline.Size = new System.Drawing.Size(225, 20);
|
||||
this.textBox_commandline.TabIndex = 2;
|
||||
//
|
||||
// buttonCancel
|
||||
//
|
||||
this.buttonCancel.Location = new System.Drawing.Point(339, 302);
|
||||
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.buttonCancel.Location = new System.Drawing.Point(275, 144);
|
||||
this.buttonCancel.Name = "buttonCancel";
|
||||
this.buttonCancel.Size = new System.Drawing.Size(75, 23);
|
||||
this.buttonCancel.TabIndex = 7;
|
||||
|
@ -80,7 +69,7 @@ namespace ExternalCommand {
|
|||
//
|
||||
// buttonOk
|
||||
//
|
||||
this.buttonOk.Location = new System.Drawing.Point(258, 302);
|
||||
this.buttonOk.Location = new System.Drawing.Point(275, 173);
|
||||
this.buttonOk.Name = "buttonOk";
|
||||
this.buttonOk.Size = new System.Drawing.Size(75, 23);
|
||||
this.buttonOk.TabIndex = 6;
|
||||
|
@ -88,29 +77,6 @@ namespace ExternalCommand {
|
|||
this.buttonOk.UseVisualStyleBackColor = true;
|
||||
this.buttonOk.Click += new System.EventHandler(this.ButtonOkClick);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Location = new System.Drawing.Point(94, 248);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(56, 17);
|
||||
this.label1.TabIndex = 3;
|
||||
this.label1.Text = "Command";
|
||||
//
|
||||
// textBox_arguments
|
||||
//
|
||||
this.textBox_arguments.Location = new System.Drawing.Point(156, 271);
|
||||
this.textBox_arguments.Name = "textBox_arguments";
|
||||
this.textBox_arguments.Size = new System.Drawing.Size(257, 20);
|
||||
this.textBox_arguments.TabIndex = 3;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.Location = new System.Drawing.Point(94, 274);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(56, 17);
|
||||
this.label2.TabIndex = 5;
|
||||
this.label2.Text = "Arguments";
|
||||
//
|
||||
// listView1
|
||||
//
|
||||
this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
||||
|
@ -119,31 +85,32 @@ namespace ExternalCommand {
|
|||
this.listView1.Location = new System.Drawing.Point(13, 13);
|
||||
this.listView1.MultiSelect = false;
|
||||
this.listView1.Name = "listView1";
|
||||
this.listView1.Size = new System.Drawing.Size(400, 183);
|
||||
this.listView1.Size = new System.Drawing.Size(255, 183);
|
||||
this.listView1.Sorting = System.Windows.Forms.SortOrder.Ascending;
|
||||
this.listView1.TabIndex = 0;
|
||||
this.listView1.UseCompatibleStateImageBehavior = false;
|
||||
this.listView1.View = System.Windows.Forms.View.Details;
|
||||
this.listView1.SelectedIndexChanged += new System.EventHandler(this.ListView1ItemSelectionChanged);
|
||||
this.listView1.DoubleClick += new System.EventHandler(this.ListView1DoubleClick);
|
||||
//
|
||||
// columnHeader1
|
||||
//
|
||||
this.columnHeader1.Text = "Name";
|
||||
this.columnHeader1.Width = 395;
|
||||
this.columnHeader1.Width = 226;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(13, 202);
|
||||
this.button1.Location = new System.Drawing.Point(275, 13);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(75, 23);
|
||||
this.button1.TabIndex = 4;
|
||||
this.button1.Text = "Add";
|
||||
this.button1.Text = "New";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.ButtonAddClick);
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Location = new System.Drawing.Point(12, 231);
|
||||
this.button2.Location = new System.Drawing.Point(274, 71);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(75, 23);
|
||||
this.button2.TabIndex = 5;
|
||||
|
@ -151,66 +118,42 @@ namespace ExternalCommand {
|
|||
this.button2.UseVisualStyleBackColor = true;
|
||||
this.button2.Click += new System.EventHandler(this.ButtonDeleteClick);
|
||||
//
|
||||
// label3
|
||||
// button4
|
||||
//
|
||||
this.label3.Location = new System.Drawing.Point(94, 222);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(56, 17);
|
||||
this.label3.TabIndex = 10;
|
||||
this.label3.Text = "Name";
|
||||
//
|
||||
// textBox_name
|
||||
//
|
||||
this.textBox_name.Location = new System.Drawing.Point(156, 219);
|
||||
this.textBox_name.Name = "textBox_name";
|
||||
this.textBox_name.Size = new System.Drawing.Size(257, 20);
|
||||
this.textBox_name.TabIndex = 1;
|
||||
//
|
||||
// button3
|
||||
//
|
||||
this.button3.Location = new System.Drawing.Point(387, 245);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new System.Drawing.Size(26, 23);
|
||||
this.button3.TabIndex = 11;
|
||||
this.button3.Text = "...";
|
||||
this.button3.UseVisualStyleBackColor = true;
|
||||
this.button3.Click += new System.EventHandler(this.Button3Click);
|
||||
this.button4.Enabled = false;
|
||||
this.button4.Location = new System.Drawing.Point(275, 42);
|
||||
this.button4.Name = "button4";
|
||||
this.button4.Size = new System.Drawing.Size(75, 23);
|
||||
this.button4.TabIndex = 13;
|
||||
this.button4.Text = "Edit";
|
||||
this.button4.UseVisualStyleBackColor = true;
|
||||
this.button4.Click += new System.EventHandler(this.Button4Click);
|
||||
//
|
||||
// SettingsForm
|
||||
//
|
||||
this.AcceptButton = this.buttonOk;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(426, 336);
|
||||
this.Icon = GreenshotPlugin.Core.GreenshotResources.getGreenshotIcon();
|
||||
this.Controls.Add(this.button3);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.textBox_name);
|
||||
this.CancelButton = this.buttonCancel;
|
||||
this.ClientSize = new System.Drawing.Size(365, 208);
|
||||
this.Controls.Add(this.button4);
|
||||
this.Controls.Add(this.button2);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.listView1);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.textBox_arguments);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.buttonOk);
|
||||
this.Controls.Add(this.buttonCancel);
|
||||
this.Controls.Add(this.textBox_commandline);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "SettingsForm";
|
||||
this.Text = "Command Editor";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
private System.Windows.Forms.Button button3;
|
||||
private System.Windows.Forms.TextBox textBox_name;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Button button4;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.ColumnHeader columnHeader1;
|
||||
private System.Windows.Forms.ListView listView1;
|
||||
private System.Windows.Forms.TextBox textBox_arguments;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.TextBox textBox_commandline;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Button buttonOk;
|
||||
private System.Windows.Forms.Button buttonCancel;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue