Merged Greenshot Image editor drop shadow settings form & torn edge settings form

This commit is contained in:
Jaex 2014-09-20 20:24:31 +03:00
parent 099a64360e
commit 3f6ce41fc7
10 changed files with 761 additions and 955 deletions

View file

@ -1,6 +1,6 @@
/*
* Greenshot - a free and open source screenshot tool
* Copyright (C) 2007-2013 Thomas Braun, Jens Klingen, Robin Krom
* Copyright (C) 2007-2014 Thomas Braun, Jens Klingen, Robin Krom
*
* For more information see: http://getgreenshot.org/
* The Greenshot project is hosted on Sourceforge: http://sourceforge.net/projects/greenshot/
@ -43,190 +43,191 @@ protected override void Dispose(bool disposing) {
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent() {
this.thickness = new System.Windows.Forms.NumericUpDown();
this.offsetX = new System.Windows.Forms.NumericUpDown();
this.label3 = new System.Windows.Forms.Label();
this.offsetY = new System.Windows.Forms.NumericUpDown();
this.trackBar1 = new System.Windows.Forms.TrackBar();
this.buttonOK = new GreenshotPlugin.Controls.GreenshotButton();
this.buttonCancel = new GreenshotPlugin.Controls.GreenshotButton();
this.labelDarkness = new GreenshotPlugin.Controls.GreenshotLabel();
this.labelOffset = new GreenshotPlugin.Controls.GreenshotLabel();
this.labelThickness = new GreenshotPlugin.Controls.GreenshotLabel();
((System.ComponentModel.ISupportInitialize)(this.thickness)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.offsetX)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.offsetY)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
this.SuspendLayout();
//
// thickness
//
this.thickness.Location = new System.Drawing.Point(173, 7);
this.thickness.Maximum = new decimal(new int[] {
this.thickness = new System.Windows.Forms.NumericUpDown();
this.offsetX = new System.Windows.Forms.NumericUpDown();
this.label3 = new System.Windows.Forms.Label();
this.offsetY = new System.Windows.Forms.NumericUpDown();
this.trackBar1 = new System.Windows.Forms.TrackBar();
this.buttonOK = new GreenshotPlugin.Controls.GreenshotButton();
this.buttonCancel = new GreenshotPlugin.Controls.GreenshotButton();
this.labelDarkness = new GreenshotPlugin.Controls.GreenshotLabel();
this.labelOffset = new GreenshotPlugin.Controls.GreenshotLabel();
this.labelThickness = new GreenshotPlugin.Controls.GreenshotLabel();
((System.ComponentModel.ISupportInitialize)(this.thickness)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.offsetX)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.offsetY)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
this.SuspendLayout();
//
// thickness
//
this.thickness.Location = new System.Drawing.Point(173, 7);
this.thickness.Maximum = new decimal(new int[] {
20,
0,
0,
0});
this.thickness.Minimum = new decimal(new int[] {
this.thickness.Minimum = new decimal(new int[] {
1,
0,
0,
0});
this.thickness.Name = "thickness";
this.thickness.Size = new System.Drawing.Size(45, 20);
this.thickness.TabIndex = 0;
this.thickness.Value = new decimal(new int[] {
this.thickness.Name = "thickness";
this.thickness.Size = new System.Drawing.Size(45, 20);
this.thickness.TabIndex = 1;
this.thickness.Value = new decimal(new int[] {
9,
0,
0,
0});
//
// offsetX
//
this.offsetX.Location = new System.Drawing.Point(102, 33);
this.offsetX.Maximum = new decimal(new int[] {
//
// offsetX
//
this.offsetX.Location = new System.Drawing.Point(102, 33);
this.offsetX.Maximum = new decimal(new int[] {
20,
0,
0,
0});
this.offsetX.Minimum = new decimal(new int[] {
this.offsetX.Minimum = new decimal(new int[] {
20,
0,
0,
-2147483648});
this.offsetX.Name = "offsetX";
this.offsetX.Size = new System.Drawing.Size(45, 20);
this.offsetX.TabIndex = 4;
this.offsetX.Value = new decimal(new int[] {
this.offsetX.Name = "offsetX";
this.offsetX.Size = new System.Drawing.Size(45, 20);
this.offsetX.TabIndex = 2;
this.offsetX.Value = new decimal(new int[] {
1,
0,
0,
-2147483648});
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(153, 35);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(14, 13);
this.label3.TabIndex = 5;
this.label3.Text = "X";
//
// offsetY
//
this.offsetY.Location = new System.Drawing.Point(173, 33);
this.offsetY.Maximum = new decimal(new int[] {
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(153, 35);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(14, 13);
this.label3.TabIndex = 5;
this.label3.Text = "X";
//
// offsetY
//
this.offsetY.Location = new System.Drawing.Point(173, 33);
this.offsetY.Maximum = new decimal(new int[] {
20,
0,
0,
0});
this.offsetY.Minimum = new decimal(new int[] {
this.offsetY.Minimum = new decimal(new int[] {
20,
0,
0,
-2147483648});
this.offsetY.Name = "offsetY";
this.offsetY.Size = new System.Drawing.Size(45, 20);
this.offsetY.TabIndex = 6;
this.offsetY.Value = new decimal(new int[] {
this.offsetY.Name = "offsetY";
this.offsetY.Size = new System.Drawing.Size(45, 20);
this.offsetY.TabIndex = 3;
this.offsetY.Value = new decimal(new int[] {
1,
0,
0,
-2147483648});
//
// trackBar1
//
this.trackBar1.Location = new System.Drawing.Point(102, 59);
this.trackBar1.Maximum = 40;
this.trackBar1.Minimum = 1;
this.trackBar1.Name = "trackBar1";
this.trackBar1.Size = new System.Drawing.Size(116, 45);
this.trackBar1.TabIndex = 7;
this.trackBar1.Value = 40;
//
// buttonOK
//
this.buttonOK.LanguageKey = "OK";
this.buttonOK.Location = new System.Drawing.Point(62, 110);
this.buttonOK.Name = "buttonOK";
this.buttonOK.Size = new System.Drawing.Size(75, 23);
this.buttonOK.TabIndex = 11;
this.buttonOK.Text = "Ok";
this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
//
// buttonCancel
//
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.LanguageKey = "CANCEL";
this.buttonCancel.Location = new System.Drawing.Point(143, 110);
this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.Size = new System.Drawing.Size(75, 23);
this.buttonCancel.TabIndex = 12;
this.buttonCancel.Text = "Cancel";
this.buttonCancel.UseVisualStyleBackColor = true;
//
// labelDarkness
//
this.labelDarkness.AutoSize = true;
this.labelDarkness.LanguageKey = "editor_dropshadow_darkness";
this.labelDarkness.Location = new System.Drawing.Point(12, 73);
this.labelDarkness.Name = "labelDarkness";
this.labelDarkness.Size = new System.Drawing.Size(92, 13);
this.labelDarkness.TabIndex = 13;
this.labelDarkness.Text = "Shadow darkness";
//
// labelOffset
//
this.labelOffset.AutoSize = true;
this.labelOffset.LanguageKey = "editor_dropshadow_offset";
this.labelOffset.Location = new System.Drawing.Point(12, 35);
this.labelOffset.Name = "labelOffset";
this.labelOffset.Size = new System.Drawing.Size(75, 13);
this.labelOffset.TabIndex = 14;
this.labelOffset.Text = "Shadow offset";
//
// labelThickness
//
this.labelThickness.AutoSize = true;
this.labelThickness.LanguageKey = "editor_dropshadow_thickness";
this.labelThickness.Location = new System.Drawing.Point(12, 9);
this.labelThickness.Name = "labelThickness";
this.labelThickness.Size = new System.Drawing.Size(94, 13);
this.labelThickness.TabIndex = 15;
this.labelThickness.Text = "Shadow thickness";
//
// DropShadowSettingsForm
//
this.AcceptButton = this.buttonOK;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.buttonCancel;
this.ClientSize = new System.Drawing.Size(230, 154);
this.ControlBox = false;
this.Controls.Add(this.labelThickness);
this.Controls.Add(this.labelOffset);
this.Controls.Add(this.labelDarkness);
this.Controls.Add(this.buttonCancel);
this.Controls.Add(this.buttonOK);
this.Controls.Add(this.trackBar1);
this.Controls.Add(this.offsetY);
this.Controls.Add(this.label3);
this.Controls.Add(this.offsetX);
this.Controls.Add(this.thickness);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.LanguageKey = "editor_dropshadow_settings";
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "DropShadowSettingsForm";
this.ShowIcon = false;
this.Text = "Dropshadow settings";
((System.ComponentModel.ISupportInitialize)(this.thickness)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.offsetX)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.offsetY)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
//
// trackBar1
//
this.trackBar1.Location = new System.Drawing.Point(102, 59);
this.trackBar1.Maximum = 40;
this.trackBar1.Minimum = 1;
this.trackBar1.Name = "trackBar1";
this.trackBar1.Size = new System.Drawing.Size(116, 45);
this.trackBar1.TabIndex = 4;
this.trackBar1.Value = 40;
//
// buttonOK
//
this.buttonOK.LanguageKey = "OK";
this.buttonOK.Location = new System.Drawing.Point(62, 110);
this.buttonOK.Name = "buttonOK";
this.buttonOK.Size = new System.Drawing.Size(75, 23);
this.buttonOK.TabIndex = 11;
this.buttonOK.Text = "OK";
this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
//
// buttonCancel
//
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.LanguageKey = "CANCEL";
this.buttonCancel.Location = new System.Drawing.Point(143, 110);
this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.Size = new System.Drawing.Size(75, 23);
this.buttonCancel.TabIndex = 12;
this.buttonCancel.Text = "Cancel";
this.buttonCancel.UseVisualStyleBackColor = true;
//
// labelDarkness
//
this.labelDarkness.AutoSize = true;
this.labelDarkness.LanguageKey = "editor_dropshadow_darkness";
this.labelDarkness.Location = new System.Drawing.Point(12, 73);
this.labelDarkness.Name = "labelDarkness";
this.labelDarkness.Size = new System.Drawing.Size(92, 13);
this.labelDarkness.TabIndex = 13;
this.labelDarkness.Text = "Shadow darkness";
//
// labelOffset
//
this.labelOffset.AutoSize = true;
this.labelOffset.LanguageKey = "editor_dropshadow_offset";
this.labelOffset.Location = new System.Drawing.Point(12, 35);
this.labelOffset.Name = "labelOffset";
this.labelOffset.Size = new System.Drawing.Size(75, 13);
this.labelOffset.TabIndex = 14;
this.labelOffset.Text = "Shadow offset";
//
// labelThickness
//
this.labelThickness.AutoSize = true;
this.labelThickness.LanguageKey = "editor_dropshadow_thickness";
this.labelThickness.Location = new System.Drawing.Point(12, 9);
this.labelThickness.Name = "labelThickness";
this.labelThickness.Size = new System.Drawing.Size(94, 13);
this.labelThickness.TabIndex = 15;
this.labelThickness.Text = "Shadow thickness";
//
// DropShadowSettingsForm
//
this.AcceptButton = this.buttonOK;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.buttonCancel;
this.ClientSize = new System.Drawing.Size(230, 144);
this.ControlBox = false;
this.Controls.Add(this.labelThickness);
this.Controls.Add(this.labelOffset);
this.Controls.Add(this.labelDarkness);
this.Controls.Add(this.buttonCancel);
this.Controls.Add(this.buttonOK);
this.Controls.Add(this.trackBar1);
this.Controls.Add(this.offsetY);
this.Controls.Add(this.label3);
this.Controls.Add(this.offsetX);
this.Controls.Add(this.thickness);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.LanguageKey = "editor_dropshadow_settings";
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "DropShadowSettingsForm";
this.ShowIcon = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Drop shadow settings";
((System.ComponentModel.ISupportInitialize)(this.thickness)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.offsetX)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.offsetY)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}

View file

@ -1,35 +1,36 @@
/*
* Greenshot - a free and open source screenshot tool
* Copyright (C) 2007-2013 Thomas Braun, Jens Klingen, Robin Krom
*
* Copyright (C) 2007-2014 Thomas Braun, Jens Klingen, Robin Krom
*
* For more information see: http://getgreenshot.org/
* The Greenshot project is hosted on Sourceforge: http://sourceforge.net/projects/greenshot/
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 1 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using Greenshot.Core;
using GreenshotPlugin.Core;
using System;
using System.Drawing;
using System.Windows.Forms;
using Greenshot.Core;
using GreenshotPlugin.Core;
namespace Greenshot.Forms
{
public partial class DropShadowSettingsForm : BaseForm
{
private DropShadowEffect effect;
public DropShadowSettingsForm(DropShadowEffect effect)
{
this.effect = effect;
@ -48,4 +49,4 @@ private void buttonOK_Click(object sender, EventArgs e)
DialogResult = DialogResult.OK;
}
}
}
}

View file

@ -50,7 +50,7 @@ private void InitializeComponent() {
this.toolStripContainer1 = new System.Windows.Forms.ToolStripContainer();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.panel1 = new GreenshotPlugin.Controls.NonJumpingPanel();
this.toolStrip2 = new Greenshot.Controls.ToolStripEx();
this.tsTools = new Greenshot.Controls.ToolStripEx();
this.btnCursor = new GreenshotPlugin.Controls.GreenshotToolStripButton();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.btnRect = new GreenshotPlugin.Controls.GreenshotToolStripButton();
@ -75,7 +75,7 @@ private void InitializeComponent() {
this.rotateCwToolstripButton = new GreenshotPlugin.Controls.GreenshotToolStripButton();
this.rotateCcwToolstripButton = new GreenshotPlugin.Controls.GreenshotToolStripButton();
this.btnResize = new System.Windows.Forms.ToolStripButton();
this.propertiesToolStrip = new Greenshot.Controls.ToolStripEx();
this.tsProperties = new Greenshot.Controls.ToolStripEx();
this.btnSaveClose = new System.Windows.Forms.ToolStripButton();
this.btnClose = new System.Windows.Forms.ToolStripButton();
this.btnCancelTasks = new System.Windows.Forms.ToolStripButton();
@ -164,8 +164,8 @@ private void InitializeComponent() {
this.toolStripContainer1.TopToolStripPanel.SuspendLayout();
this.toolStripContainer1.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.toolStrip2.SuspendLayout();
this.propertiesToolStrip.SuspendLayout();
this.tsTools.SuspendLayout();
this.tsProperties.SuspendLayout();
this.SuspendLayout();
//
// toolStripContainer1
@ -180,7 +180,7 @@ private void InitializeComponent() {
//
// toolStripContainer1.LeftToolStripPanel
//
this.toolStripContainer1.LeftToolStripPanel.Controls.Add(this.toolStrip2);
this.toolStripContainer1.LeftToolStripPanel.Controls.Add(this.tsTools);
this.toolStripContainer1.Location = new System.Drawing.Point(0, 0);
this.toolStripContainer1.Name = "toolStripContainer1";
this.toolStripContainer1.Size = new System.Drawing.Size(785, 485);
@ -189,7 +189,7 @@ private void InitializeComponent() {
//
// toolStripContainer1.TopToolStripPanel
//
this.toolStripContainer1.TopToolStripPanel.Controls.Add(this.propertiesToolStrip);
this.toolStripContainer1.TopToolStripPanel.Controls.Add(this.tsProperties);
//
// tableLayoutPanel1
//
@ -217,12 +217,12 @@ private void InitializeComponent() {
this.panel1.Size = new System.Drawing.Size(750, 452);
this.panel1.TabIndex = 2;
//
// toolStrip2
// tsTools
//
this.toolStrip2.ClickThrough = true;
this.toolStrip2.Dock = System.Windows.Forms.DockStyle.None;
this.toolStrip2.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
this.toolStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.tsTools.ClickThrough = true;
this.tsTools.Dock = System.Windows.Forms.DockStyle.None;
this.tsTools.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
this.tsTools.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.btnCursor,
this.toolStripSeparator1,
this.btnRect,
@ -242,12 +242,12 @@ private void InitializeComponent() {
this.rotateCwToolstripButton,
this.rotateCcwToolstripButton,
this.btnResize});
this.toolStrip2.Location = new System.Drawing.Point(0, 0);
this.toolStrip2.Name = "toolStrip2";
this.toolStrip2.Padding = new System.Windows.Forms.Padding(3, 3, 3, 0);
this.toolStrip2.Size = new System.Drawing.Size(29, 455);
this.toolStrip2.Stretch = true;
this.toolStrip2.TabIndex = 0;
this.tsTools.Location = new System.Drawing.Point(0, 0);
this.tsTools.Name = "tsTools";
this.tsTools.Padding = new System.Windows.Forms.Padding(3, 3, 3, 0);
this.tsTools.Size = new System.Drawing.Size(29, 455);
this.tsTools.Stretch = true;
this.tsTools.TabIndex = 0;
//
// btnCursor
//
@ -491,12 +491,12 @@ private void InitializeComponent() {
this.btnResize.Text = "Resize";
this.btnResize.Click += new System.EventHandler(this.btnResize_Click);
//
// propertiesToolStrip
// tsProperties
//
this.propertiesToolStrip.ClickThrough = true;
this.propertiesToolStrip.Dock = System.Windows.Forms.DockStyle.None;
this.propertiesToolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
this.propertiesToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.tsProperties.ClickThrough = true;
this.tsProperties.Dock = System.Windows.Forms.DockStyle.None;
this.tsProperties.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
this.tsProperties.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.btnSaveClose,
this.btnClose,
this.btnCancelTasks,
@ -544,13 +544,13 @@ private void InitializeComponent() {
this.shadowButton,
this.btnConfirm,
this.btnCancel});
this.propertiesToolStrip.Location = new System.Drawing.Point(0, 0);
this.propertiesToolStrip.MinimumSize = new System.Drawing.Size(0, 27);
this.propertiesToolStrip.Name = "propertiesToolStrip";
this.propertiesToolStrip.Padding = new System.Windows.Forms.Padding(3, 3, 3, 0);
this.propertiesToolStrip.Size = new System.Drawing.Size(785, 30);
this.propertiesToolStrip.Stretch = true;
this.propertiesToolStrip.TabIndex = 0;
this.tsProperties.Location = new System.Drawing.Point(0, 0);
this.tsProperties.MinimumSize = new System.Drawing.Size(0, 27);
this.tsProperties.Name = "tsProperties";
this.tsProperties.Padding = new System.Windows.Forms.Padding(3, 3, 3, 0);
this.tsProperties.Size = new System.Drawing.Size(785, 30);
this.tsProperties.Stretch = true;
this.tsProperties.TabIndex = 0;
//
// btnSaveClose
//
@ -1513,10 +1513,10 @@ private void InitializeComponent() {
this.toolStripContainer1.ResumeLayout(false);
this.toolStripContainer1.PerformLayout();
this.tableLayoutPanel1.ResumeLayout(false);
this.toolStrip2.ResumeLayout(false);
this.toolStrip2.PerformLayout();
this.propertiesToolStrip.ResumeLayout(false);
this.propertiesToolStrip.PerformLayout();
this.tsTools.ResumeLayout(false);
this.tsTools.PerformLayout();
this.tsProperties.ResumeLayout(false);
this.tsProperties.PerformLayout();
this.ResumeLayout(false);
}
@ -1584,7 +1584,7 @@ private void InitializeComponent() {
private GreenshotPlugin.Controls.GreenshotToolStripMenuItem upOneLevelToolStripMenuItem;
private GreenshotPlugin.Controls.GreenshotToolStripMenuItem arrangeToolStripMenuItem;
private GreenshotPlugin.Controls.GreenshotToolStripButton btnCursor;
private Greenshot.Controls.ToolStripEx toolStrip2;
private Greenshot.Controls.ToolStripEx tsTools;
private GreenshotPlugin.Controls.GreenshotToolStripButton btnArrow;
private GreenshotPlugin.Controls.GreenshotToolStripButton btnText;
private GreenshotPlugin.Controls.GreenshotToolStripButton btnLine;
@ -1610,7 +1610,7 @@ private void InitializeComponent() {
private GreenshotPlugin.Controls.GreenshotToolStripButton btnEllipse;
private GreenshotPlugin.Controls.GreenshotToolStripButton btnRect;
private System.Windows.Forms.ToolStripContainer toolStripContainer1;
private Greenshot.Controls.ToolStripEx propertiesToolStrip;
private Greenshot.Controls.ToolStripEx tsProperties;
private GreenshotPlugin.Controls.NonJumpingPanel panel1;
private Greenshot.Controls.ToolStripColorButton btnFillColor;
private Greenshot.Controls.ToolStripColorButton btnLineColor;

View file

@ -24,6 +24,7 @@
using Greenshot.Drawing;
using Greenshot.Drawing.Fields;
using Greenshot.Drawing.Fields.Binding;
using Greenshot.Forms;
using Greenshot.Helpers;
using Greenshot.IniFile;
using Greenshot.Plugin;
@ -846,7 +847,7 @@ private void bindFieldControls()
/// </summary>
private void refreshFieldControls()
{
propertiesToolStrip.SuspendLayout();
tsProperties.SuspendLayout();
if (surface.HasSelectedElements || surface.DrawingMode != DrawingModes.None)
{
@ -878,7 +879,7 @@ private void refreshFieldControls()
hideToolstripItems();
}
propertiesToolStrip.ResumeLayout();
tsProperties.ResumeLayout();
}
private void hideToolstripItems()
@ -911,7 +912,7 @@ private void refreshEditorControls()
{
ToolStripItemEndisabler.Disable(tsddbMenu);
//ToolStripItemEndisabler.Disable(propertiesToolStrip);
ToolStripItemEndisabler.Disable(toolStrip2);
ToolStripItemEndisabler.Disable(tsTools);
ToolStripItemEndisabler.Enable(closeToolStripMenuItem);
controlsDisabledDueToConfirmable = true;
}
@ -921,7 +922,7 @@ private void refreshEditorControls()
// re-enable disabled controls, confirmable element has either been confirmed or cancelled
ToolStripItemEndisabler.Enable(tsddbMenu);
//ToolStripItemEndisabler.Enable(propertiesToolStrip);
ToolStripItemEndisabler.Enable(toolStrip2);
ToolStripItemEndisabler.Enable(tsTools);
controlsDisabledDueToConfirmable = false;
}
@ -1088,11 +1089,13 @@ private void AddBorderToolStripMenuItemClick(object sender, EventArgs e)
private void AddDropshadowToolStripMenuItemClick(object sender, EventArgs e)
{
DropShadowEffect dropShadowEffect = new DropShadowEffect();
//DialogResult result = new DropShadowSettingsForm(dropShadowEffect).ShowDialog(this);
//if (result == DialogResult.OK) {
surface.ApplyBitmapEffect(dropShadowEffect);
updateUndoRedoSurfaceDependencies();
//}
// TODO: Use the dropshadow settings form to make it possible to change the default values
DialogResult result = new DropShadowSettingsForm(dropShadowEffect).ShowDialog(this);
if (result == DialogResult.OK)
{
surface.ApplyBitmapEffect(dropShadowEffect);
updateUndoRedoSurfaceDependencies();
}
}
/// <summary>
@ -1118,11 +1121,13 @@ private void ResizeToolStripMenuItemClick(object sender, EventArgs e)
private void TornEdgesToolStripMenuItemClick(object sender, EventArgs e)
{
TornEdgeEffect tornEdgeEffect = new TornEdgeEffect();
//DialogResult result = new TornEdgeSettingsForm(tornEdgeEffect).ShowDialog(this);
//if (result == DialogResult.OK) {
surface.ApplyBitmapEffect(tornEdgeEffect);
updateUndoRedoSurfaceDependencies();
//}
// TODO: Use the dropshadow settings form to make it possible to change the default values
DialogResult result = new TornEdgeSettingsForm(tornEdgeEffect).ShowDialog(this);
if (result == DialogResult.OK)
{
surface.ApplyBitmapEffect(tornEdgeEffect);
updateUndoRedoSurfaceDependencies();
}
}
private void GrayscaleToolStripMenuItemClick(object sender, EventArgs e)

View file

@ -117,10 +117,174 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="toolStrip2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<metadata name="tsTools.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>173, 17</value>
</metadata>
<metadata name="tsProperties.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="btnSave.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFnSURBVDhPpY1NSwJRGIUV/C+zc6MwoAtBd9ImYf6B
jqKioLgQRAlc9UcUrMgB6WMg0hBz48qdCzeBBEIJZoLg6Z4Lyi1kkrrwzL287znPuAD8C/lxu91ngguj
VjOPgVl2VMFVvV4XT2D7CzzMsiOee8F1tVrFZrvFerNxhBlm2VEFVqVSwYcIvK9WjjDDLDuqoFMul/G2
XmO2WDjCDLPsqILbUqmEV/GH6XzuCDPMsqMK7EKhgOF4jJfl0hFmmGVHFTzkcjkkEomjYJYdVdDNZDLw
+/3w+XwH4W5HsVikoKsK+slkErquYzB4Rq/39A3OuDMMA4FAAPl8noK+KhjG43EEg0HY9iM0TZNY1o2E
M+4oCIfDyGazFAxVwcg0TYRCIbTb9/ImzWZbsptREI1GkU6nKRjtBeKcCCZer/ez1bpDJBKRNBodyW5G
QSwWQyqVYmmiCnhOBTOPx3N+CO5+cLkX/B24vgCZXIPOR4ZOhQAAAABJRU5ErkJggg==
</value>
</data>
<data name="btnSaveAs.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAFlSURBVDhPjZCxasJgFIUVn8BXSKZmEozFwSxZhC516d6l
NZCACkbIIFJw6puIVShILdSCWLSQPXTuoGMRiq2D9faeEEpifksOfCD/ufdGvpQo6XT6hrm76HSuj4Ee
c8FKNFwMu90u7YnoZ7+PgXf0mAtWouHivt1u0/duR5/bbQy8o8dcsBINFyPHceiDh1frdQy8o8dcsBIN
F4+2bZPrebTabGLgHT3mhMJOSqW3q1aLLhsNH1mWSVVVqlarf9TrdRyYJBaWzWYpn8/7hwqFAjWbTRyY
JhamaRotFq9ULBb937VaDQfmiYWp6imNx8/+crlcJtM0ccBNLCyXU2kweCJd16lSqZBhGMS+PRyYQEhY
0CGBsPdMJnPLS8sQfRyYWpbly4GkMDFhonAxx1cgB5JmsxcfoTBRuHBxAIOQJEkSDYcjsbAjOWM8RVG+
IAl/vdd7EAv7J+fMEpLC4C1EnzlIKvULraTQUmJxMIIAAAAASUVORK5CYII=
</value>
</data>
<data name="btnClipboardCopy.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFmSURBVDhPjZA/S4JRFIfPZGtfoCkIhIYihAiitnAV
+wItNjlEUNDQEBQWgRSCNhQZKojfw+WA0ZT2IhFWJorlX/x7uj9TMW5cGh44nPvc5325JCIDAus0Ztdp
t7ndbpfCM8SF3aQzujcZCCkYHC/SfXjf+5bJWAIwYzc6h6sFLteI04EtSWw7JJl8kFTqUbLZ3ADM2OEM
Dlwt4F8dLCUcvhOf70yCwSuJRGISjyfk+uZW/P4LiUZjUGTo/g6crxD31dDt9+XJsv4EZ3Dgju6NA6fL
xB0ltLpdI3DgaoETB3Gr15N6u20EDlwtcLRE3Oh05KvZNAIHrhY4XCCuqi+UajUjcOBqgYN54s9WS/KV
ihE4cLXAnp24pH4xVy4bgQNXC+zMERcaDXkuFo3AgasFvLPE7/W6WIWCEThwtYBnhvhVPVI6nzcCB64W
2Jwm/lAP9FKtGoEDVws4pyi0YSP+D3B/7gl9AyX59rP4A1D4AAAAAElFTkSuQmCC
</value>
</data>
<data name="btnUploadImage.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vgAADr4B6kKxwAAAAr1JREFUOE+dkt9LU2Ecxs+qq268sD8hGJEJ4sgox4wlhngRTTJJJEJt4k0huaXp
wi1NrTTDH8NKTZDcUNtSK44/UpcePG6oW6lrcyud4XSjiajo5Ol916AL7cbn8IGX836e9/3COcy+AIJj
FT/ERyuWqgWVnvcUuqbv6F7Y+l8gOFI8JT9ZPcfXmb1rzbafu5ZF3267fWMtus7O0z3qhOUDkm2UCFWj
lqZBzw6/CVSNLOPD4ibousezthOlGbNQJ2zvj+Daq4arjRP+7C4ncg0LyHu3gHyDE/d6XHgxs4kbZI86
Yf2AJD4eytbbgrHPeFxotOJ8rRk3u/3I/bgBkXoU8RouSJ2w/S8ymUyUmpp6+/hFpV1S83nvTCWP2OfT
EFVbEK0agqxzB+eqbJA08nvUoS7thMopKSkn5HK5IhAIIEPTCWmFCZIGOxKbvuPyS4J2Hok1VmT2biG9
zYUr99sxPe1GVpZcQbtMcnLyqdra2hafz4c3fRxi8zuR1rqIzA4vbukJOi/Sm5zQWLZwVtGNJ80sJicd
0GgqW2iXSUpKStDpdIP0ALvdjoKX/RAVs8hoceOu4XeI69o5xKtZ5Dw1gmW50AH19a8HaZeRSqVpHMc5
VlZWMDMzQwQWD+o6cOmhAVHKPpxW9CKhuAt3KlrR3PwWRuMQOG4Oev0nB+0yYrE4b3l5GcFgENvbW1hf
D2B11QuPZwlutwtOp5OwQHATFgm/CKswmb6Cdpm4uLh8v9+P+fk52GxWWCxmcsM4RkaGMTAwEJqIZfsJ
g4RhgonAwWx2gHaZmJiYAo/HA4PBgPLyMqjVpVCpSlBUVAilUgmFglJIKCGUEsqQQx6TyQraZYRCYZHR
aHT9HdWB2dlv5DNNgecnMDY2RkQT4QthnDBBMIcm0GrbXLTLREZGSiMiIh4dBtoN/UyHD8P8AQS4BWf/
e825AAAAAElFTkSuQmCC
</value>
</data>
<data name="obfuscateModeButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAFQSURBVDhPldO9K8VRHMfxX1JKSYmFATGgPA4IkTwkT3kK
GTxkwaRIyaCYKEUom8FiMEoZjAbZsSillCj8B97v2y9dbpfrU6/uub9+93vO+Z5zg1+SjvJQng/+m1z0
oA8VSELCSUELNrCHUWQg4WRjBue4wgpKkFBcahXWcYNnHKEXqfgzmWjFJq7xgkvMw778mWK0YxGHuMUT
DmBf7E/cpKERbfAE7MMZ3nARfrc/cVMAZ1EhLLaLRzxgG/VIRkxskD+cxCzswwj2YTM/4GqmkIWY2KAu
jGMAdbDIAk7xCvuxhlJ8i7O7tH6MoQEWUDeiT+QYg7BfX3H24VC1D6Lii27lBO+w0DKKEOlFPlz6Krxx
HfDaeqHk2Bk90nvchWNXWoZIgWZMYwI1+FnA7c1hCztYgluLFKiEBWyefxpfzoHLk+NaDMF3PAU/O4Mg
aPoECJo7ibSN0AIAAAAASUVORK5CYII=
</value>
</data>
<data name="highlightModeButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEmSURBVDhPY6AKcE337IdhtzTP42B2hqsYuph7qrsRkC4D
i6V71EG1MzB4pvh+TJ5a+s052fM+WDLV8xxQUwBIY/yU+N9ZU0r+g8TBckmeL2EGQrVTAcBNT/eMg3sB
ij0yPfSQxVzSPbyAdDuIDdXOwAByMkwBshNBzndLc9MA8UHiYHkkNlQ7Kvj/H4hwYKgSTAA1ORxIt5+7
zvB/+kqG/7uOMfzP64CwQfjzVwZ4QELVB0C1I7wAct7BMwz/Q0sgmmEYxAcZCJIHqYN4zfM4VDsqwOZ0
GIYqwQQwZ4HYwARSDeODMMipyHyoWLhLppcmWDMIwL0AjEYwDQ1lEAY5F52NNxbIAjAbwDjVyxyZb19v
z4LNGyAM1Y6ZkNDZuOSh2ikBDAwAoo4O0ccqQ68AAAAASUVORK5CYII=
</value>
</data>
<data name="btnFillColor.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
pgAADqYBh9ypbwAAAipJREFUOE+lkV1oklEYgF//EEUICb0K68LMSPY1zP6otG0qUzNLJaiLMSxt1aib
YT+bfRhKBruJsZIYDK8Eu5IRQTIyQbuQ7WI3EycOXILLDIKu3845s9FIqNaBh8N38Tzfy3nB7/f34pjL
5bqt0+nO6vV6kEgkQI9MJoPg0w5cj7fh2lSD0UsGn88XcjqdoFKpnmg0mqBIJOL+KeD1egM2my0YDoex
0+kgcW8STH8b4KjcbreRBkqlEjabmygQCOJyufzcnwJMbrVaWCgUWCCTyWA2+waXluqoVqvjI5G1r4HY
50SvAJObzSZWKhVMJpNYLpcxkZjGubnXOD+fxWr1Cw5emsxceVBHf7h21TtRBXC73QwqNxoNJtOxU6kU
kigJzDJ5YaGIGxvf0Wq13rWPLSOhQgCga6LQ167X60zO5XJs7J9/pvL6+jcmezyeo0b/O+yytRoK2TVH
HipULJZ+k2u1DloslnGTyXTmlGMKDgykscuOAAiFQiMhnE6/3ZZXVzdRq9Xe4Tiu32g0wp7+FxTca3rF
EwAwmIQP7gkY3HeYBmjotFQqjSwuLuPKyidUKBSPlErlCYPBAAePj4Hk0DSFV/TNwHYAb7wEDMzCe8c9
GCIhsVhsJjzrYnbsPwIfh24BXuAhPxCF6MkY5M2PAa33dwZwdAZw5Dnk7eMQ5YYh2meH/PkQ4OUY4MUo
C6AzAjg8CWh/uBXgeR7p2e0Nv37s5v7PCRB/ABi88DSEo3kSAAAAAElFTkSuQmCC
</value>
</data>
<data name="btnLineColor.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
pgAADqYBh9ypbwAAAZFJREFUOE/FkksoRFEch3//yWYWtpZWHgs7ZEXcoknTcOfmlUc2HkMThYnGmCbl
GZEVoqSGZppmYWTlkciGQpmsKIqwkC01/s6d28XU9SgLv/o6q+9bnHOgrrWMEghME7ZXNOx2e5wbIpWU
U3FGhKMTny721n6IBoH8K6LwMdGIYUCV/R4YBmRZzpAkqfPV5eJri+U+DBQLoBLfcLMmGwV0ORaLcSgU
igaBfb9wdN5Fo8CWnwrX5mn9/EDhzWDOk9lsHvWIO1gSns6XAV1+vuvns135YbgTe2mpSVBMpp8DRrKv
HZDyTD8HvpK9jsTASVoBuKQPmO/RWHCJYh9SF93JA48XLbyxnHv3WdYDgcwicKkHbHFrgSmnxkwHaMpJ
g/x4xF1VtNQmk7u/id7lnXoJbPOBrd7EwJiD4oinnLiNrrBToVVHOZWqf6O7jrDTWAxWhsDlg8YBX45N
vQp1LMSgELMmlXREKizg6nFw5ej3AW6ZAzfPwpdtRaTGCm6cATdMg2snfxc4vHzhv/DfgRd+AzRaw4xq
9udTAAAAAElFTkSuQmCC
</value>
</data>
<data name="fontBoldButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACLSURBVDhPYxgFGECbkZFxDQ48HSgvBlGGHzgBFa8HYSBb
ByLEEAHlR0C4+IEeUPEWEAaxIUIMUVB+FISLH+gDFe/EhkFyECX4gQFQ8X4QBrI9QHwgjoeKLQeyuYAY
LzACKjwKwiA2RAirGE7gB1R4BoSBbBOIEIqYCkQIO7AC4od4cAEQjwIUwMAAAJuDIw+ncDiSAAAAAElF
TkSuQmCC
</value>
</data>
<data name="fontItalicButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABiSURBVDhPYxgFeIE2IyPjGmQMEoNIEQ90gBrXA3EPlE8y
0ANq3gKkdSFc0kEa0IANUDbpAKh5K5DKhPBIB0ZAA44CaUMIl0QA1LwEiM8AmSYQEeKBFRA/RMMgsVGA
FTAwAACbwQ6ZI05BagAAAABJRU5ErkJggg==
</value>
</data>
<data name="textHorizontalAlignmentButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAB9SURBVDhP3c3NCkBQEIbhcy7d2tZdIL/5SZIkyYadpUvx
0rFRZzklXz2baWY+9Z1orR34CBAiQowEGXIUqOCaM4Hw3dZaozFrAuH71ZriaS1xt6JFhx4DRnMmEL5b
WzGZNYHw3dqKGQs2Vncc95FIaPFerSvjpzW4dn4VpU4WFiyJ9iLgrQAAAABJRU5ErkJggg==
</value>
</data>
<data name="textVerticalAlignmentButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADNSURBVDhPYxgQkNr+9j+USR6IqXtMmQEBRdcxDWBkZGwE
4tVAvBaI1wHxBiDeBMRbgXg7EPdAlTI4pZwg3wWm4bv+m4btfACioUIQALRhPRBvBOLNQAyydQcQ7wbi
fVAlYKDvv9lBy2fDfxANFaISQLcViA8C8REgPgHEZ4D4CkidsvN6ByWXtf9BNFgjqUDVfet/VdetD0A0
VAgCgDb0AzHI1qNADLYVKHwViJeDFSABbd+DlKUD49DzlBlgHXuXMgMck19SZgAVAQMDAO0WQgS52sQ0
AAAAAElFTkSuQmCC
</value>
</data>
<data name="arrowHeadsDropDownButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADPSURBVDhPYxgFCGA/+5mH7ZznM6FcnACkBqQWyoUAiyn3
PSwm3zsDwlAhnACmDqQHLKDXdsFDr/3SmZ4bf/+DaGKw6c7vELVAvQzKlYfPTLjz/3/j2T//O678+d98
/uf/ulPf/1ce/fK/fP/7/8W7Xv3P2f7if9K2l/9Dtr3977rj03/xtV//q+/+8x+kl0Eia4eHWNZWsAtA
NDEY5AIQDdIL9gZf/EoPnpjlZ0AYLIAHwNSB9ECFIIA9cLYHW+AcgrEAUgNSC+WOAsoBAwMAilGdHcfQ
X3MAAAAASUVORK5CYII=
</value>
</data>
<data name="shadowButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEKSURBVDhPY6A6qJ6883/L3GP/oVzSQMu84/9v3LgBxg0z
D5JuSGx+z38YiC/sJ92AzvmH4C5onLSGNAOQbYeBhKIJKIYsPfrjf3r17P9ekQX/a6bsRrUAmwEgMZAc
SHFUTsf/0NSG/x5huf/zW5b/X3L4G3EGgDT7xpT8t3GP+m/hHApmV03agem9ku71/2PyuqFagYFY0P0/
o3rOf5+oov+m9gH/Tez8/9t4RINdAtWCCVIrZ0C1//8fld3+P66wD6wRhB18Ev4nl03FrRkEkL0BYoM0
gpydVjnzf1HHavyaQQDZAJBmt+DM/1n1CwhrhAFkA+y94/+XdK0jXjMIgAxAxlDhQQ0YGABy8wHwEVQ1
1QAAAABJRU5ErkJggg==
</value>
</data>
<data name="btnCursor.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
@ -312,63 +476,6 @@
IrMWYLXbkVg9CnnLFAq6l6Ae2kLr7Dn61p8xcfDG7tTjipiY3DU4vE+02Gzfhu7U48oncUW77HtK07Xr
8Yod/BRp6vCGvyeklJ4huezCGBaWFuQdQ7wJDRSJJCmY+uR5Z0GQVdyBIq+4Ff9Z30A9n8NX/4ogfABH
/2l//yD6wAAAAABJRU5ErkJggg==
</value>
</data>
<metadata name="propertiesToolStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="btnSave.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFnSURBVDhPpY1NSwJRGIUV/C+zc6MwoAtBd9ImYf6B
jqKioLgQRAlc9UcUrMgB6WMg0hBz48qdCzeBBEIJZoLg6Z4Lyi1kkrrwzL287znPuAD8C/lxu91ngguj
VjOPgVl2VMFVvV4XT2D7CzzMsiOee8F1tVrFZrvFerNxhBlm2VEFVqVSwYcIvK9WjjDDLDuqoFMul/G2
XmO2WDjCDLPsqILbUqmEV/GH6XzuCDPMsqMK7EKhgOF4jJfl0hFmmGVHFTzkcjkkEomjYJYdVdDNZDLw
+/3w+XwH4W5HsVikoKsK+slkErquYzB4Rq/39A3OuDMMA4FAAPl8noK+KhjG43EEg0HY9iM0TZNY1o2E
M+4oCIfDyGazFAxVwcg0TYRCIbTb9/ImzWZbsptREI1GkU6nKRjtBeKcCCZer/ez1bpDJBKRNBodyW5G
QSwWQyqVYmmiCnhOBTOPx3N+CO5+cLkX/B24vgCZXIPOR4ZOhQAAAABJRU5ErkJggg==
</value>
</data>
<data name="btnSaveAs.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAFlSURBVDhPjZCxasJgFIUVn8BXSKZmEozFwSxZhC516d6l
NZCACkbIIFJw6puIVShILdSCWLSQPXTuoGMRiq2D9faeEEpifksOfCD/ufdGvpQo6XT6hrm76HSuj4Ee
c8FKNFwMu90u7YnoZ7+PgXf0mAtWouHivt1u0/duR5/bbQy8o8dcsBINFyPHceiDh1frdQy8o8dcsBIN
F4+2bZPrebTabGLgHT3mhMJOSqW3q1aLLhsNH1mWSVVVqlarf9TrdRyYJBaWzWYpn8/7hwqFAjWbTRyY
JhamaRotFq9ULBb937VaDQfmiYWp6imNx8/+crlcJtM0ccBNLCyXU2kweCJd16lSqZBhGMS+PRyYQEhY
0CGBsPdMJnPLS8sQfRyYWpbly4GkMDFhonAxx1cgB5JmsxcfoTBRuHBxAIOQJEkSDYcjsbAjOWM8RVG+
IAl/vdd7EAv7J+fMEpLC4C1EnzlIKvULraTQUmJxMIIAAAAASUVORK5CYII=
</value>
</data>
<data name="btnClipboardCopy.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFmSURBVDhPjZA/S4JRFIfPZGtfoCkIhIYihAiitnAV
+wItNjlEUNDQEBQWgRSCNhQZKojfw+WA0ZT2IhFWJorlX/x7uj9TMW5cGh44nPvc5325JCIDAus0Ztdp
t7ndbpfCM8SF3aQzujcZCCkYHC/SfXjf+5bJWAIwYzc6h6sFLteI04EtSWw7JJl8kFTqUbLZ3ADM2OEM
Dlwt4F8dLCUcvhOf70yCwSuJRGISjyfk+uZW/P4LiUZjUGTo/g6crxD31dDt9+XJsv4EZ3Dgju6NA6fL
xB0ltLpdI3DgaoETB3Gr15N6u20EDlwtcLRE3Oh05KvZNAIHrhY4XCCuqi+UajUjcOBqgYN54s9WS/KV
ihE4cLXAnp24pH4xVy4bgQNXC+zMERcaDXkuFo3AgasFvLPE7/W6WIWCEThwtYBnhvhVPVI6nzcCB64W
2Jwm/lAP9FKtGoEDVws4pyi0YSP+D3B/7gl9AyX59rP4A1D4AAAAAElFTkSuQmCC
</value>
</data>
<data name="btnUploadImage.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vgAADr4B6kKxwAAAAr1JREFUOE+dkt9LU2Ecxs+qq268sD8hGJEJ4sgox4wlhngRTTJJJEJt4k0huaXp
wi1NrTTDH8NKTZDcUNtSK44/UpcePG6oW6lrcyud4XSjiajo5Ol916AL7cbn8IGX836e9/3COcy+AIJj
FT/ERyuWqgWVnvcUuqbv6F7Y+l8gOFI8JT9ZPcfXmb1rzbafu5ZF3267fWMtus7O0z3qhOUDkm2UCFWj
lqZBzw6/CVSNLOPD4ibousezthOlGbNQJ2zvj+Daq4arjRP+7C4ncg0LyHu3gHyDE/d6XHgxs4kbZI86
Yf2AJD4eytbbgrHPeFxotOJ8rRk3u/3I/bgBkXoU8RouSJ2w/S8ymUyUmpp6+/hFpV1S83nvTCWP2OfT
EFVbEK0agqxzB+eqbJA08nvUoS7thMopKSkn5HK5IhAIIEPTCWmFCZIGOxKbvuPyS4J2Hok1VmT2biG9
zYUr99sxPe1GVpZcQbtMcnLyqdra2hafz4c3fRxi8zuR1rqIzA4vbukJOi/Sm5zQWLZwVtGNJ80sJicd
0GgqW2iXSUpKStDpdIP0ALvdjoKX/RAVs8hoceOu4XeI69o5xKtZ5Dw1gmW50AH19a8HaZeRSqVpHMc5
VlZWMDMzQwQWD+o6cOmhAVHKPpxW9CKhuAt3KlrR3PwWRuMQOG4Oev0nB+0yYrE4b3l5GcFgENvbW1hf
D2B11QuPZwlutwtOp5OwQHATFgm/CKswmb6Cdpm4uLh8v9+P+fk52GxWWCxmcsM4RkaGMTAwEJqIZfsJ
g4RhgonAwWx2gHaZmJiYAo/HA4PBgPLyMqjVpVCpSlBUVAilUgmFglJIKCGUEsqQQx6TyQraZYRCYZHR
aHT9HdWB2dlv5DNNgecnMDY2RkQT4QthnDBBMIcm0GrbXLTLREZGSiMiIh4dBtoN/UyHD8P8AQS4BWf/
e825AAAAAElFTkSuQmCC
</value>
</data>
<data name="pixelizeToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@ -389,18 +496,6 @@
jGMAdbDIAk7xCvuxhlJ8i7O7tH6MoQEWUDeiT+QYg7BfX3H24VC1D6Lii27lBO+w0DKKEOlFPlz6Krxx
HfDaeqHk2Bk90nvchWNXWoZIgWZMYwI1+FnA7c1hCztYgluLFKiEBWyefxpfzoHLk+NaDMF3PAU/O4Mg
aPoECJo7ibSN0AIAAAAASUVORK5CYII=
</value>
</data>
<data name="obfuscateModeButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAFQSURBVDhPldO9K8VRHMfxX1JKSYmFATGgPA4IkTwkT3kK
GTxkwaRIyaCYKEUom8FiMEoZjAbZsSillCj8B97v2y9dbpfrU6/uub9+93vO+Z5zg1+SjvJQng/+m1z0
oA8VSELCSUELNrCHUWQg4WRjBue4wgpKkFBcahXWcYNnHKEXqfgzmWjFJq7xgkvMw778mWK0YxGHuMUT
DmBf7E/cpKERbfAE7MMZ3nARfrc/cVMAZ1EhLLaLRzxgG/VIRkxskD+cxCzswwj2YTM/4GqmkIWY2KAu
jGMAdbDIAk7xCvuxhlJ8i7O7tH6MoQEWUDeiT+QYg7BfX3H24VC1D6Lii27lBO+w0DKKEOlFPlz6Krxx
HfDaeqHk2Bk90nvchWNXWoZIgWZMYwI1+FnA7c1hCztYgluLFKiEBWyefxpfzoHLk+NaDMF3PAU/O4Mg
aPoECJo7ibSN0AIAAAAASUVORK5CYII=
</value>
</data>
<data name="textHighlightMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@ -455,62 +550,6 @@
a2ZhYdEC4jAgrgTidigN4ovx8fExoBgAtN0iMDC47ciRM/8VFZV6gIpUgZgBF0YxAGi7d0JCyoSLF+/+
19MzmAZUYIyuAR2jGAAMtJJbt179t7d3nsfKyuqCTQM6RjFAT09PS0REpAWoOQabYmwYxQDy8X8GAK3T
s5KfBBx1AAAAAElFTkSuQmCC
</value>
</data>
<data name="highlightModeButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEmSURBVDhPY6AKcE337IdhtzTP42B2hqsYuph7qrsRkC4D
i6V71EG1MzB4pvh+TJ5a+s052fM+WDLV8xxQUwBIY/yU+N9ZU0r+g8TBckmeL2EGQrVTAcBNT/eMg3sB
ij0yPfSQxVzSPbyAdDuIDdXOwAByMkwBshNBzndLc9MA8UHiYHkkNlQ7Kvj/H4hwYKgSTAA1ORxIt5+7
zvB/+kqG/7uOMfzP64CwQfjzVwZ4QELVB0C1I7wAct7BMwz/Q0sgmmEYxAcZCJIHqYN4zfM4VDsqwOZ0
GIYqwQQwZ4HYwARSDeODMMipyHyoWLhLppcmWDMIwL0AjEYwDQ1lEAY5F52NNxbIAjAbwDjVyxyZb19v
z4LNGyAM1Y6ZkNDZuOSh2ikBDAwAoo4O0ccqQ68AAAAASUVORK5CYII=
</value>
</data>
<data name="btnFillColor.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
pgAADqYBh9ypbwAAAipJREFUOE+lkV1oklEYgF//EEUICb0K68LMSPY1zP6otG0qUzNLJaiLMSxt1aib
YT+bfRhKBruJsZIYDK8Eu5IRQTIyQbuQ7WI3EycOXILLDIKu3845s9FIqNaBh8N38Tzfy3nB7/f34pjL
5bqt0+nO6vV6kEgkQI9MJoPg0w5cj7fh2lSD0UsGn88XcjqdoFKpnmg0mqBIJOL+KeD1egM2my0YDoex
0+kgcW8STH8b4KjcbreRBkqlEjabmygQCOJyufzcnwJMbrVaWCgUWCCTyWA2+waXluqoVqvjI5G1r4HY
50SvAJObzSZWKhVMJpNYLpcxkZjGubnXOD+fxWr1Cw5emsxceVBHf7h21TtRBXC73QwqNxoNJtOxU6kU
kigJzDJ5YaGIGxvf0Wq13rWPLSOhQgCga6LQ167X60zO5XJs7J9/pvL6+jcmezyeo0b/O+yytRoK2TVH
HipULJZ+k2u1DloslnGTyXTmlGMKDgykscuOAAiFQiMhnE6/3ZZXVzdRq9Xe4Tiu32g0wp7+FxTca3rF
EwAwmIQP7gkY3HeYBmjotFQqjSwuLuPKyidUKBSPlErlCYPBAAePj4Hk0DSFV/TNwHYAb7wEDMzCe8c9
GCIhsVhsJjzrYnbsPwIfh24BXuAhPxCF6MkY5M2PAa33dwZwdAZw5Dnk7eMQ5YYh2meH/PkQ4OUY4MUo
C6AzAjg8CWh/uBXgeR7p2e0Nv37s5v7PCRB/ABi88DSEo3kSAAAAAElFTkSuQmCC
</value>
</data>
<data name="btnLineColor.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
pgAADqYBh9ypbwAAAZFJREFUOE/FkksoRFEch3//yWYWtpZWHgs7ZEXcoknTcOfmlUc2HkMThYnGmCbl
GZEVoqSGZppmYWTlkciGQpmsKIqwkC01/s6d28XU9SgLv/o6q+9bnHOgrrWMEghME7ZXNOx2e5wbIpWU
U3FGhKMTny721n6IBoH8K6LwMdGIYUCV/R4YBmRZzpAkqfPV5eJri+U+DBQLoBLfcLMmGwV0ORaLcSgU
igaBfb9wdN5Fo8CWnwrX5mn9/EDhzWDOk9lsHvWIO1gSns6XAV1+vuvns135YbgTe2mpSVBMpp8DRrKv
HZDyTD8HvpK9jsTASVoBuKQPmO/RWHCJYh9SF93JA48XLbyxnHv3WdYDgcwicKkHbHFrgSmnxkwHaMpJ
g/x4xF1VtNQmk7u/id7lnXoJbPOBrd7EwJiD4oinnLiNrrBToVVHOZWqf6O7jrDTWAxWhsDlg8YBX45N
vQp1LMSgELMmlXREKizg6nFw5ej3AW6ZAzfPwpdtRaTGCm6cATdMg2snfxc4vHzhv/DfgRd+AzRaw4xq
9udTAAAAAElFTkSuQmCC
</value>
</data>
<data name="fontBoldButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACLSURBVDhPYxgFGECbkZFxDQ48HSgvBlGGHzgBFa8HYSBb
ByLEEAHlR0C4+IEeUPEWEAaxIUIMUVB+FISLH+gDFe/EhkFyECX4gQFQ8X4QBrI9QHwgjoeKLQeyuYAY
LzACKjwKwiA2RAirGE7gB1R4BoSBbBOIEIqYCkQIO7AC4od4cAEQjwIUwMAAAJuDIw+ncDiSAAAAAElF
TkSuQmCC
</value>
</data>
<data name="fontItalicButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABiSURBVDhPYxgFeIE2IyPjGmQMEoNIEQ90gBrXA3EPlE8y
0ANq3gKkdSFc0kEa0IANUDbpAKh5K5DKhPBIB0ZAA44CaUMIl0QA1LwEiM8AmSYQEeKBFRA/RMMgsVGA
FTAwAACbwQ6ZI05BagAAAABJRU5ErkJggg==
</value>
</data>
<data name="alignLeftToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@ -537,14 +576,6 @@
naWdjXs43lEjzNf4D1NPTafT+3UsxvgXeZji+RNCaKGLHjL0McAQI4wxQYG2CiTxBD5XZ5hjgaUn0EgF
yrfmqFaneFvFCmtsVCCJJ1BbxRY7HDyBRiog34pqdY+TmZ1xUYGvXj9PoINy9cj9xyquuCGvBX4lD1PI
Q79od4kqoHXeiUE/AAAAAElFTkSuQmCC
</value>
</data>
<data name="textHorizontalAlignmentButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAB9SURBVDhP3c3NCkBQEIbhcy7d2tZdIL/5SZIkyYadpUvx
0rFRZzklXz2baWY+9Z1orR34CBAiQowEGXIUqOCaM4Hw3dZaozFrAuH71ZriaS1xt6JFhx4DRnMmEL5b
WzGZNYHw3dqKGQs2Vncc95FIaPFerSvjpzW4dn4VpU4WFiyJ9iLgrQAAAABJRU5ErkJggg==
</value>
</data>
<data name="alignTopToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@ -577,37 +608,6 @@
SZlmwUoBOyw7mTop0yy4g3t4AF7twDN0wS2wQ2cSTDdImWbBSgE7IrtHHVKmWWBe7cMAHBjCZGMzJvun
I4lmHWWaBb/i7KVvJH7+pjBjmgU14NUXcK/izyvcur8xifxUkoX5Yar0rsxvBX/lufTDc7k+lQXC0LFO
f5ismwAAAABJRU5ErkJggg==
</value>
</data>
<data name="textVerticalAlignmentButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADNSURBVDhPYxgQkNr+9j+USR6IqXtMmQEBRdcxDWBkZGwE
4tVAvBaI1wHxBiDeBMRbgXg7EPdAlTI4pZwg3wWm4bv+m4btfACioUIQALRhPRBvBOLNQAyydQcQ7wbi
fVAlYKDvv9lBy2fDfxANFaISQLcViA8C8REgPgHEZ4D4CkidsvN6ByWXtf9BNFgjqUDVfet/VdetD0A0
VAgCgDb0AzHI1qNADLYVKHwViJeDFSABbd+DlKUD49DzlBlgHXuXMgMck19SZgAVAQMDAO0WQgS52sQ0
AAAAAElFTkSuQmCC
</value>
</data>
<data name="arrowHeadsDropDownButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADPSURBVDhPYxgFCGA/+5mH7ZznM6FcnACkBqQWyoUAiyn3
PSwm3zsDwlAhnACmDqQHLKDXdsFDr/3SmZ4bf/+DaGKw6c7vELVAvQzKlYfPTLjz/3/j2T//O678+d98
/uf/ulPf/1ce/fK/fP/7/8W7Xv3P2f7if9K2l/9Dtr3977rj03/xtV//q+/+8x+kl0Eia4eHWNZWsAtA
NDEY5AIQDdIL9gZf/EoPnpjlZ0AYLIAHwNSB9ECFIIA9cLYHW+AcgrEAUgNSC+WOAsoBAwMAilGdHcfQ
X3MAAAAASUVORK5CYII=
</value>
</data>
<data name="shadowButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEKSURBVDhPY6A6qJ6883/L3GP/oVzSQMu84/9v3LgBxg0z
D5JuSGx+z38YiC/sJ92AzvmH4C5onLSGNAOQbYeBhKIJKIYsPfrjf3r17P9ekQX/a6bsRrUAmwEgMZAc
SHFUTsf/0NSG/x5huf/zW5b/X3L4G3EGgDT7xpT8t3GP+m/hHApmV03agem9ku71/2PyuqFagYFY0P0/
o3rOf5+oov+m9gH/Tez8/9t4RINdAtWCCVIrZ0C1//8fld3+P66wD6wRhB18Ev4nl03FrRkEkL0BYoM0
gpydVjnzf1HHavyaQQDZAJBmt+DM/1n1CwhrhAFkA+y94/+XdK0jXjMIgAxAxlDhQQ0YGABy8wHwEVQ1
1QAAAABJRU5ErkJggg==
</value>
</data>
<data name="closeToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">

View file

@ -1,286 +0,0 @@
/*
* Greenshot - a free and open source screenshot tool
* Copyright (C) 2007-2013 Thomas Braun, Jens Klingen, Robin Krom
*
* For more information see: http://getgreenshot.org/
* The Greenshot project is hosted on Sourceforge: http://sourceforge.net/projects/greenshot/
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
namespace Greenshot.Forms
{
/// <summary>
/// Description of ToolStripMenuSelectList.
/// </summary>
public class ToolStripMenuSelectList : ToolStripMenuItem
{
private bool multiCheckAllowed = false;
private bool updateInProgress = false;
/// <summary>
/// Occurs when one of the list's child element's Checked state changes.
/// </summary>
public new event EventHandler CheckedChanged;
public Object Identifier;
public ToolStripMenuSelectList(Object identifier, bool allowMultiCheck)
{
Identifier = identifier;
CheckOnClick = false;
multiCheckAllowed = allowMultiCheck;
}
public ToolStripMenuSelectList()
: this(null, false)
{
}
public ToolStripMenuSelectList(Object identifier)
: this(identifier, false)
{
}
/// <summary>
/// gets or sets the currently checked item
/// </summary>
public Object CheckedItem
{
get
{
IEnumerator items = DropDownItems.GetEnumerator();
while (items.MoveNext())
{
ToolStripMenuItem tsmi = (ToolStripMenuItem)items.Current;
if (tsmi.Checked)
{
return tsmi;
}
}
return null;
}
set
{
IEnumerator items = DropDownItems.GetEnumerator();
while (items.MoveNext())
{
ToolStripMenuItem tsmi = (ToolStripMenuItem)items.Current;
if (!multiCheckAllowed && !tsmi.Equals(value))
{
tsmi.Checked = false;
}
else if (tsmi.Equals(value))
{
tsmi.Checked = true;
}
}
}
}
/// <summary>
/// gets or sets the currently checked items
/// </summary>
public ToolStripMenuSelectListItem[] CheckedItems
{
get
{
List<ToolStripMenuSelectListItem> sel = new List<ToolStripMenuSelectListItem>();
IEnumerator items = DropDownItems.GetEnumerator();
while (items.MoveNext())
{
ToolStripMenuSelectListItem tsmi = (ToolStripMenuSelectListItem)items.Current;
if (tsmi.Checked)
{
sel.Add(tsmi);
}
}
return sel.ToArray();
}
set
{
if (!multiCheckAllowed)
{
throw new ArgumentException("Writing to checkedItems is only allowed in multi-check mode. Either set allowMultiCheck to true or use set SelectedItem instead of SelectedItems.");
}
IEnumerator items = DropDownItems.GetEnumerator();
IEnumerator sel = value.GetEnumerator();
while (items.MoveNext())
{
ToolStripMenuItem tsmi = (ToolStripMenuItem)items.Current;
while (sel.MoveNext())
{
if (tsmi.Equals(sel.Current))
{
tsmi.Checked = true;
}
else
{
tsmi.Checked = false;
}
if (!multiCheckAllowed && !tsmi.Equals(sel.Current))
{
tsmi.Checked = false;
}
else if (tsmi.Equals(value))
{
tsmi.Checked = true;
}
}
}
}
}
private void ItemCheckStateChanged(object sender, EventArgs e)
{
if (updateInProgress)
{
return;
}
ToolStripMenuSelectListItem tsmi = (ToolStripMenuSelectListItem)sender;
updateInProgress = true;
if (tsmi.Checked && !multiCheckAllowed)
{
UncheckAll();
tsmi.Checked = true;
}
updateInProgress = false;
if (CheckedChanged != null)
{
CheckedChanged(this, new ItemCheckedChangedEventArgs(tsmi));
}
}
/// <summary>
/// adds an item to the select list
/// </summary>
/// <param name="label">the label to be displayed</param>
/// <param name="image">the icon to be displayed</param>
/// <param name="data">the data to be returned when an item is queried</param>
/// <param name="isChecked">whether the item is initially checked</param>
public void AddItem(string label, Image image, Object data, bool isChecked)
{
ToolStripMenuSelectListItem newItem = new ToolStripMenuSelectListItem();
newItem.Text = label;
newItem.Image = image;
newItem.CheckOnClick = true;
newItem.CheckStateChanged += ItemCheckStateChanged;
newItem.Data = data;
if (isChecked)
{
if (!multiCheckAllowed)
{
updateInProgress = true;
UncheckAll();
updateInProgress = false;
}
newItem.Checked = isChecked;
}
DropDownItems.Add(newItem);
}
/// <summary>
/// adds an item to the select list
/// </summary>
/// <param name="label">the label to be displayed</param>
/// <param name="image">the icon to be displayed</param>
public void AddItem(string label, Image image)
{
AddItem(label, image, null, false);
}
/// <summary>
/// adds an item to the select list
/// </summary>
/// <param name="label">the label to be displayed</param>
/// <param name="data">the data to be returned when an item is queried</param>
public void AddItem(string label, Object data)
{
AddItem(label, null, data, false);
}
/// <summary>
/// adds an item to the select list
/// </summary>
/// <param name="label">the label to be displayed</param>
public void AddItem(string label)
{
AddItem(label, null, null, false);
}
// <summary>
/// adds an item to the select list
/// </summary>
/// <param name="label">the label to be displayed</param>
/// <param name="image">the icon to be displayed</param>
/// <param name="selected">whether the item is initially selected</param>
/// <param name="isChecked">whether the item is initially checked</param>
public void AddItem(string label, Image image, bool isChecked)
{
AddItem(label, image, null, isChecked);
}
/// <summary>
/// adds an item to the select list
/// </summary>
/// <param name="label">the label to be displayed</param>
/// <param name="data">the data to be returned when an item is queried</param>
/// <param name="isChecked">whether the item is initially checked</param>
public void AddItem(string label, Object data, bool isChecked)
{
AddItem(label, null, data, isChecked);
}
/// <summary>
/// adds an item to the select list
/// </summary>
/// <param name="label">the label to be displayed</param>
/// <param name="isChecked">whether the item is initially checked</param>
public void AddItem(string label, bool isChecked)
{
AddItem(label, null, null, isChecked);
}
/// <summary>
/// unchecks all items of the list
/// </summary>
public void UncheckAll()
{
IEnumerator items = DropDownItems.GetEnumerator();
while (items.MoveNext())
{
((ToolStripMenuItem)items.Current).Checked = false;
}
}
}
public class ItemCheckedChangedEventArgs : EventArgs
{
public ToolStripMenuSelectListItem Item;
public ItemCheckedChangedEventArgs(ToolStripMenuSelectListItem item)
{
Item = item;
}
}
public class ToolStripMenuSelectListItem : ToolStripMenuItem
{
public Object Data;
}
}

View file

@ -1,6 +1,6 @@
/*
* Greenshot - a free and open source screenshot tool
* Copyright (C) 2007-2013 Thomas Braun, Jens Klingen, Robin Krom
* Copyright (C) 2007-2014 Thomas Braun, Jens Klingen, Robin Krom
*
* For more information see: http://getgreenshot.org/
* The Greenshot project is hosted on Sourceforge: http://sourceforge.net/projects/greenshot/
@ -18,7 +18,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
namespace Greenshot.Forms {
partial class TornEdgeSettingsForm {
/// <summary>
@ -44,304 +43,372 @@ protected override void Dispose(bool disposing) {
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent() {
this.thickness = new System.Windows.Forms.NumericUpDown();
this.offsetX = new System.Windows.Forms.NumericUpDown();
this.label3 = new System.Windows.Forms.Label();
this.offsetY = new System.Windows.Forms.NumericUpDown();
this.trackBar1 = new System.Windows.Forms.TrackBar();
this.buttonOK = new GreenshotPlugin.Controls.GreenshotButton();
this.buttonCancel = new GreenshotPlugin.Controls.GreenshotButton();
this.labelDarkness = new GreenshotPlugin.Controls.GreenshotLabel();
this.labelOffset = new GreenshotPlugin.Controls.GreenshotLabel();
this.labelThickness = new GreenshotPlugin.Controls.GreenshotLabel();
this.toothsize = new System.Windows.Forms.NumericUpDown();
this.label_toothsize = new GreenshotPlugin.Controls.GreenshotLabel();
this.label_horizontaltoothrange = new GreenshotPlugin.Controls.GreenshotLabel();
this.horizontaltoothrange = new System.Windows.Forms.NumericUpDown();
this.labelVerticaltoothrange = new GreenshotPlugin.Controls.GreenshotLabel();
this.verticaltoothrange = new System.Windows.Forms.NumericUpDown();
((System.ComponentModel.ISupportInitialize)(this.thickness)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.offsetX)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.offsetY)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.toothsize)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.horizontaltoothrange)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.verticaltoothrange)).BeginInit();
this.SuspendLayout();
//
// thickness
//
this.thickness.Location = new System.Drawing.Point(173, 7);
this.thickness.Maximum = new decimal(new int[] {
this.thickness = new System.Windows.Forms.NumericUpDown();
this.offsetX = new System.Windows.Forms.NumericUpDown();
this.label3 = new System.Windows.Forms.Label();
this.offsetY = new System.Windows.Forms.NumericUpDown();
this.shadowDarkness = new System.Windows.Forms.TrackBar();
this.buttonOK = new GreenshotPlugin.Controls.GreenshotButton();
this.buttonCancel = new GreenshotPlugin.Controls.GreenshotButton();
this.labelDarkness = new GreenshotPlugin.Controls.GreenshotLabel();
this.labelOffset = new GreenshotPlugin.Controls.GreenshotLabel();
this.labelThickness = new GreenshotPlugin.Controls.GreenshotLabel();
this.toothsize = new System.Windows.Forms.NumericUpDown();
this.label_toothsize = new GreenshotPlugin.Controls.GreenshotLabel();
this.label_horizontaltoothrange = new GreenshotPlugin.Controls.GreenshotLabel();
this.horizontaltoothrange = new System.Windows.Forms.NumericUpDown();
this.labelVerticaltoothrange = new GreenshotPlugin.Controls.GreenshotLabel();
this.verticaltoothrange = new System.Windows.Forms.NumericUpDown();
this.top = new GreenshotPlugin.Controls.GreenshotCheckBox();
this.right = new GreenshotPlugin.Controls.GreenshotCheckBox();
this.bottom = new GreenshotPlugin.Controls.GreenshotCheckBox();
this.left = new GreenshotPlugin.Controls.GreenshotCheckBox();
this.shadowCheckbox = new GreenshotPlugin.Controls.GreenshotCheckBox();
((System.ComponentModel.ISupportInitialize)(this.thickness)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.offsetX)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.offsetY)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.shadowDarkness)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.toothsize)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.horizontaltoothrange)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.verticaltoothrange)).BeginInit();
this.SuspendLayout();
//
// thickness
//
this.thickness.Location = new System.Drawing.Point(173, 35);
this.thickness.Maximum = new decimal(new int[] {
20,
0,
0,
0});
this.thickness.Minimum = new decimal(new int[] {
this.thickness.Minimum = new decimal(new int[] {
1,
0,
0,
0});
this.thickness.Name = "thickness";
this.thickness.Size = new System.Drawing.Size(45, 20);
this.thickness.TabIndex = 0;
this.thickness.Value = new decimal(new int[] {
this.thickness.Name = "thickness";
this.thickness.Size = new System.Drawing.Size(45, 20);
this.thickness.TabIndex = 2;
this.thickness.Value = new decimal(new int[] {
9,
0,
0,
0});
//
// offsetX
//
this.offsetX.Location = new System.Drawing.Point(102, 33);
this.offsetX.Maximum = new decimal(new int[] {
//
// offsetX
//
this.offsetX.Location = new System.Drawing.Point(102, 61);
this.offsetX.Maximum = new decimal(new int[] {
20,
0,
0,
0});
this.offsetX.Minimum = new decimal(new int[] {
this.offsetX.Minimum = new decimal(new int[] {
20,
0,
0,
-2147483648});
this.offsetX.Name = "offsetX";
this.offsetX.Size = new System.Drawing.Size(45, 20);
this.offsetX.TabIndex = 4;
this.offsetX.Value = new decimal(new int[] {
this.offsetX.Name = "offsetX";
this.offsetX.Size = new System.Drawing.Size(45, 20);
this.offsetX.TabIndex = 3;
this.offsetX.Value = new decimal(new int[] {
1,
0,
0,
-2147483648});
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(153, 35);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(14, 13);
this.label3.TabIndex = 5;
this.label3.Text = "X";
//
// offsetY
//
this.offsetY.Location = new System.Drawing.Point(173, 33);
this.offsetY.Maximum = new decimal(new int[] {
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(153, 63);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(14, 13);
this.label3.TabIndex = 5;
this.label3.Text = "X";
//
// offsetY
//
this.offsetY.Location = new System.Drawing.Point(173, 61);
this.offsetY.Maximum = new decimal(new int[] {
20,
0,
0,
0});
this.offsetY.Minimum = new decimal(new int[] {
this.offsetY.Minimum = new decimal(new int[] {
20,
0,
0,
-2147483648});
this.offsetY.Name = "offsetY";
this.offsetY.Size = new System.Drawing.Size(45, 20);
this.offsetY.TabIndex = 6;
this.offsetY.Value = new decimal(new int[] {
this.offsetY.Name = "offsetY";
this.offsetY.Size = new System.Drawing.Size(45, 20);
this.offsetY.TabIndex = 4;
this.offsetY.Value = new decimal(new int[] {
1,
0,
0,
-2147483648});
//
// trackBar1
//
this.trackBar1.Location = new System.Drawing.Point(102, 59);
this.trackBar1.Maximum = 40;
this.trackBar1.Minimum = 1;
this.trackBar1.Name = "trackBar1";
this.trackBar1.Size = new System.Drawing.Size(116, 45);
this.trackBar1.TabIndex = 7;
this.trackBar1.Value = 40;
//
// buttonOK
//
this.buttonOK.LanguageKey = "OK";
this.buttonOK.Location = new System.Drawing.Point(62, 206);
this.buttonOK.Name = "buttonOK";
this.buttonOK.Size = new System.Drawing.Size(75, 23);
this.buttonOK.TabIndex = 11;
this.buttonOK.Text = "Ok";
this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
//
// buttonCancel
//
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.LanguageKey = "CANCEL";
this.buttonCancel.Location = new System.Drawing.Point(143, 206);
this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.Size = new System.Drawing.Size(75, 23);
this.buttonCancel.TabIndex = 12;
this.buttonCancel.Text = "Cancel";
this.buttonCancel.UseVisualStyleBackColor = true;
//
// labelDarkness
//
this.labelDarkness.AutoSize = true;
this.labelDarkness.LanguageKey = "editor_dropshadow_darkness";
this.labelDarkness.Location = new System.Drawing.Point(12, 69);
this.labelDarkness.Name = "labelDarkness";
this.labelDarkness.Size = new System.Drawing.Size(92, 13);
this.labelDarkness.TabIndex = 13;
this.labelDarkness.Text = "Shadow darkness";
//
// labelOffset
//
this.labelOffset.AutoSize = true;
this.labelOffset.LanguageKey = "editor_dropshadow_offset";
this.labelOffset.Location = new System.Drawing.Point(12, 35);
this.labelOffset.Name = "labelOffset";
this.labelOffset.Size = new System.Drawing.Size(75, 13);
this.labelOffset.TabIndex = 14;
this.labelOffset.Text = "Shadow offset";
//
// labelThickness
//
this.labelThickness.AutoSize = true;
this.labelThickness.LanguageKey = "editor_dropshadow_thickness";
this.labelThickness.Location = new System.Drawing.Point(12, 9);
this.labelThickness.Name = "labelThickness";
this.labelThickness.Size = new System.Drawing.Size(94, 13);
this.labelThickness.TabIndex = 15;
this.labelThickness.Text = "Shadow thickness";
//
// toothsize
//
this.toothsize.Location = new System.Drawing.Point(173, 110);
this.toothsize.Maximum = new decimal(new int[] {
//
// shadowDarkness
//
this.shadowDarkness.Location = new System.Drawing.Point(102, 87);
this.shadowDarkness.Maximum = 40;
this.shadowDarkness.Minimum = 1;
this.shadowDarkness.Name = "shadowDarkness";
this.shadowDarkness.Size = new System.Drawing.Size(116, 45);
this.shadowDarkness.TabIndex = 5;
this.shadowDarkness.Value = 40;
//
// buttonOK
//
this.buttonOK.LanguageKey = "OK";
this.buttonOK.Location = new System.Drawing.Point(62, 320);
this.buttonOK.Name = "buttonOK";
this.buttonOK.Size = new System.Drawing.Size(75, 23);
this.buttonOK.TabIndex = 20;
this.buttonOK.Text = "OK";
this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
//
// buttonCancel
//
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.LanguageKey = "CANCEL";
this.buttonCancel.Location = new System.Drawing.Point(143, 320);
this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.Size = new System.Drawing.Size(75, 23);
this.buttonCancel.TabIndex = 21;
this.buttonCancel.Text = "Cancel";
this.buttonCancel.UseVisualStyleBackColor = true;
//
// labelDarkness
//
this.labelDarkness.AutoSize = true;
this.labelDarkness.LanguageKey = "editor_dropshadow_darkness";
this.labelDarkness.Location = new System.Drawing.Point(12, 97);
this.labelDarkness.Name = "labelDarkness";
this.labelDarkness.Size = new System.Drawing.Size(92, 13);
this.labelDarkness.TabIndex = 13;
this.labelDarkness.Text = "Shadow darkness";
//
// labelOffset
//
this.labelOffset.AutoSize = true;
this.labelOffset.LanguageKey = "editor_dropshadow_offset";
this.labelOffset.Location = new System.Drawing.Point(12, 63);
this.labelOffset.Name = "labelOffset";
this.labelOffset.Size = new System.Drawing.Size(75, 13);
this.labelOffset.TabIndex = 14;
this.labelOffset.Tag = "";
this.labelOffset.Text = "Shadow offset";
//
// labelThickness
//
this.labelThickness.AutoSize = true;
this.labelThickness.LanguageKey = "editor_dropshadow_thickness";
this.labelThickness.Location = new System.Drawing.Point(12, 37);
this.labelThickness.Name = "labelThickness";
this.labelThickness.Size = new System.Drawing.Size(94, 13);
this.labelThickness.TabIndex = 15;
this.labelThickness.Text = "Shadow thickness";
//
// toothsize
//
this.toothsize.Location = new System.Drawing.Point(173, 138);
this.toothsize.Maximum = new decimal(new int[] {
40,
0,
0,
0});
this.toothsize.Minimum = new decimal(new int[] {
this.toothsize.Minimum = new decimal(new int[] {
2,
0,
0,
0});
this.toothsize.Name = "toothsize";
this.toothsize.Size = new System.Drawing.Size(45, 20);
this.toothsize.TabIndex = 16;
this.toothsize.Value = new decimal(new int[] {
this.toothsize.Name = "toothsize";
this.toothsize.Size = new System.Drawing.Size(45, 20);
this.toothsize.TabIndex = 6;
this.toothsize.Value = new decimal(new int[] {
12,
0,
0,
0});
//
// label_toothsize
//
this.label_toothsize.AutoSize = true;
this.label_toothsize.LanguageKey = "editor_tornedge_toothsize";
this.label_toothsize.Location = new System.Drawing.Point(12, 112);
this.label_toothsize.Name = "label_toothsize";
this.label_toothsize.Size = new System.Drawing.Size(56, 13);
this.label_toothsize.TabIndex = 17;
this.label_toothsize.Text = "Tooth size";
//
// label_horizontaltoothrange
//
this.label_horizontaltoothrange.AutoSize = true;
this.label_horizontaltoothrange.LanguageKey = "editor_tornedge_horizontaltoothrange";
this.label_horizontaltoothrange.Location = new System.Drawing.Point(12, 138);
this.label_horizontaltoothrange.Name = "label_horizontaltoothrange";
this.label_horizontaltoothrange.Size = new System.Drawing.Size(111, 13);
this.label_horizontaltoothrange.TabIndex = 19;
this.label_horizontaltoothrange.Text = "Horizontal tooth range";
//
// horizontaltoothrange
//
this.horizontaltoothrange.Location = new System.Drawing.Point(173, 136);
this.horizontaltoothrange.Maximum = new decimal(new int[] {
//
// label_toothsize
//
this.label_toothsize.AutoSize = true;
this.label_toothsize.LanguageKey = "editor_tornedge_toothsize";
this.label_toothsize.Location = new System.Drawing.Point(12, 140);
this.label_toothsize.Name = "label_toothsize";
this.label_toothsize.Size = new System.Drawing.Size(56, 13);
this.label_toothsize.TabIndex = 17;
this.label_toothsize.Text = "Tooth size";
//
// label_horizontaltoothrange
//
this.label_horizontaltoothrange.AutoSize = true;
this.label_horizontaltoothrange.LanguageKey = "editor_tornedge_horizontaltoothrange";
this.label_horizontaltoothrange.Location = new System.Drawing.Point(12, 166);
this.label_horizontaltoothrange.Name = "label_horizontaltoothrange";
this.label_horizontaltoothrange.Size = new System.Drawing.Size(111, 13);
this.label_horizontaltoothrange.TabIndex = 19;
this.label_horizontaltoothrange.Text = "Horizontal tooth range";
//
// horizontaltoothrange
//
this.horizontaltoothrange.Location = new System.Drawing.Point(173, 164);
this.horizontaltoothrange.Maximum = new decimal(new int[] {
40,
0,
0,
0});
this.horizontaltoothrange.Minimum = new decimal(new int[] {
this.horizontaltoothrange.Minimum = new decimal(new int[] {
2,
0,
0,
0});
this.horizontaltoothrange.Name = "horizontaltoothrange";
this.horizontaltoothrange.Size = new System.Drawing.Size(45, 20);
this.horizontaltoothrange.TabIndex = 18;
this.horizontaltoothrange.Value = new decimal(new int[] {
this.horizontaltoothrange.Name = "horizontaltoothrange";
this.horizontaltoothrange.Size = new System.Drawing.Size(45, 20);
this.horizontaltoothrange.TabIndex = 7;
this.horizontaltoothrange.Value = new decimal(new int[] {
20,
0,
0,
0});
//
// labelVerticaltoothrange
//
this.labelVerticaltoothrange.AutoSize = true;
this.labelVerticaltoothrange.LanguageKey = "editor_tornedge_verticaltoothrange";
this.labelVerticaltoothrange.Location = new System.Drawing.Point(12, 164);
this.labelVerticaltoothrange.Name = "labelVerticaltoothrange";
this.labelVerticaltoothrange.Size = new System.Drawing.Size(99, 13);
this.labelVerticaltoothrange.TabIndex = 21;
this.labelVerticaltoothrange.Text = "Vertical tooth range";
//
// verticaltoothrange
//
this.verticaltoothrange.Location = new System.Drawing.Point(173, 162);
this.verticaltoothrange.Maximum = new decimal(new int[] {
//
// labelVerticaltoothrange
//
this.labelVerticaltoothrange.AutoSize = true;
this.labelVerticaltoothrange.LanguageKey = "editor_tornedge_verticaltoothrange";
this.labelVerticaltoothrange.Location = new System.Drawing.Point(12, 192);
this.labelVerticaltoothrange.Name = "labelVerticaltoothrange";
this.labelVerticaltoothrange.Size = new System.Drawing.Size(99, 13);
this.labelVerticaltoothrange.TabIndex = 21;
this.labelVerticaltoothrange.Text = "Vertical tooth range";
//
// verticaltoothrange
//
this.verticaltoothrange.Location = new System.Drawing.Point(173, 190);
this.verticaltoothrange.Maximum = new decimal(new int[] {
40,
0,
0,
0});
this.verticaltoothrange.Minimum = new decimal(new int[] {
this.verticaltoothrange.Minimum = new decimal(new int[] {
2,
0,
0,
0});
this.verticaltoothrange.Name = "verticaltoothrange";
this.verticaltoothrange.Size = new System.Drawing.Size(45, 20);
this.verticaltoothrange.TabIndex = 20;
this.verticaltoothrange.Value = new decimal(new int[] {
this.verticaltoothrange.Name = "verticaltoothrange";
this.verticaltoothrange.Size = new System.Drawing.Size(45, 20);
this.verticaltoothrange.TabIndex = 8;
this.verticaltoothrange.Value = new decimal(new int[] {
20,
0,
0,
0});
//
// TornEdgeSettingsForm
//
this.AcceptButton = this.buttonOK;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.buttonCancel;
this.ClientSize = new System.Drawing.Size(230, 241);
this.ControlBox = false;
this.Controls.Add(this.labelVerticaltoothrange);
this.Controls.Add(this.verticaltoothrange);
this.Controls.Add(this.label_horizontaltoothrange);
this.Controls.Add(this.horizontaltoothrange);
this.Controls.Add(this.label_toothsize);
this.Controls.Add(this.toothsize);
this.Controls.Add(this.labelThickness);
this.Controls.Add(this.labelOffset);
this.Controls.Add(this.labelDarkness);
this.Controls.Add(this.buttonCancel);
this.Controls.Add(this.buttonOK);
this.Controls.Add(this.trackBar1);
this.Controls.Add(this.offsetY);
this.Controls.Add(this.label3);
this.Controls.Add(this.offsetX);
this.Controls.Add(this.thickness);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.LanguageKey = "editor_tornedge_settings";
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "TornEdgeSettingsForm";
this.ShowIcon = false;
this.Text = "Torn edges settings";
((System.ComponentModel.ISupportInitialize)(this.thickness)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.offsetX)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.offsetY)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.toothsize)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.horizontaltoothrange)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.verticaltoothrange)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
//
// top
//
this.top.AutoSize = true;
this.top.LanguageKey = "editor_tornedge_top";
this.top.Location = new System.Drawing.Point(15, 222);
this.top.Name = "top";
this.top.Size = new System.Drawing.Size(88, 17);
this.top.TabIndex = 9;
this.top.Text = "Tear top side";
this.top.UseVisualStyleBackColor = true;
//
// right
//
this.right.AutoSize = true;
this.right.LanguageKey = "editor_tornedge_right";
this.right.Location = new System.Drawing.Point(15, 245);
this.right.Name = "right";
this.right.Size = new System.Drawing.Size(93, 17);
this.right.TabIndex = 10;
this.right.Text = "Tear right side";
this.right.UseVisualStyleBackColor = true;
//
// bottom
//
this.bottom.AutoSize = true;
this.bottom.LanguageKey = "editor_tornedge_bottom";
this.bottom.Location = new System.Drawing.Point(15, 268);
this.bottom.Name = "bottom";
this.bottom.Size = new System.Drawing.Size(105, 17);
this.bottom.TabIndex = 11;
this.bottom.Text = "Tear bottom side";
this.bottom.UseVisualStyleBackColor = true;
//
// left
//
this.left.AutoSize = true;
this.left.LanguageKey = "editor_tornedge_left";
this.left.Location = new System.Drawing.Point(15, 291);
this.left.Name = "left";
this.left.Size = new System.Drawing.Size(87, 17);
this.left.TabIndex = 12;
this.left.Text = "Tear left side";
this.left.UseVisualStyleBackColor = true;
//
// shadowCheckbox
//
this.shadowCheckbox.AutoSize = true;
this.shadowCheckbox.LanguageKey = "editor_tornedge_shadow";
this.shadowCheckbox.Location = new System.Drawing.Point(12, 12);
this.shadowCheckbox.Name = "shadowCheckbox";
this.shadowCheckbox.Size = new System.Drawing.Size(110, 17);
this.shadowCheckbox.TabIndex = 1;
this.shadowCheckbox.Text = "Generate shadow";
this.shadowCheckbox.UseVisualStyleBackColor = true;
this.shadowCheckbox.CheckedChanged += new System.EventHandler(this.shadowCheckbox_CheckedChanged);
//
// TornEdgeSettingsForm
//
this.AcceptButton = this.buttonOK;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.buttonCancel;
this.ClientSize = new System.Drawing.Size(230, 353);
this.ControlBox = false;
this.Controls.Add(this.shadowCheckbox);
this.Controls.Add(this.left);
this.Controls.Add(this.bottom);
this.Controls.Add(this.right);
this.Controls.Add(this.top);
this.Controls.Add(this.labelVerticaltoothrange);
this.Controls.Add(this.verticaltoothrange);
this.Controls.Add(this.label_horizontaltoothrange);
this.Controls.Add(this.horizontaltoothrange);
this.Controls.Add(this.label_toothsize);
this.Controls.Add(this.toothsize);
this.Controls.Add(this.labelThickness);
this.Controls.Add(this.labelOffset);
this.Controls.Add(this.labelDarkness);
this.Controls.Add(this.buttonCancel);
this.Controls.Add(this.buttonOK);
this.Controls.Add(this.shadowDarkness);
this.Controls.Add(this.offsetY);
this.Controls.Add(this.label3);
this.Controls.Add(this.offsetX);
this.Controls.Add(this.thickness);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.LanguageKey = "editor_tornedge_settings";
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "TornEdgeSettingsForm";
this.ShowIcon = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Torn edges settings";
((System.ComponentModel.ISupportInitialize)(this.thickness)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.offsetX)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.offsetY)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.shadowDarkness)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.toothsize)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.horizontaltoothrange)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.verticaltoothrange)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
@ -351,7 +418,7 @@ private void InitializeComponent() {
private System.Windows.Forms.NumericUpDown offsetX;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.NumericUpDown offsetY;
private System.Windows.Forms.TrackBar trackBar1;
private System.Windows.Forms.TrackBar shadowDarkness;
private GreenshotPlugin.Controls.GreenshotButton buttonOK;
private GreenshotPlugin.Controls.GreenshotButton buttonCancel;
private GreenshotPlugin.Controls.GreenshotLabel labelDarkness;
@ -363,5 +430,10 @@ private void InitializeComponent() {
private System.Windows.Forms.NumericUpDown horizontaltoothrange;
private GreenshotPlugin.Controls.GreenshotLabel labelVerticaltoothrange;
private System.Windows.Forms.NumericUpDown verticaltoothrange;
private GreenshotPlugin.Controls.GreenshotCheckBox top;
private GreenshotPlugin.Controls.GreenshotCheckBox right;
private GreenshotPlugin.Controls.GreenshotCheckBox bottom;
private GreenshotPlugin.Controls.GreenshotCheckBox left;
private GreenshotPlugin.Controls.GreenshotCheckBox shadowCheckbox;
}
}

View file

@ -1,57 +1,73 @@
/*
* Greenshot - a free and open source screenshot tool
* Copyright (C) 2007-2013 Thomas Braun, Jens Klingen, Robin Krom
*
* Copyright (C) 2007-2014 Thomas Braun, Jens Klingen, Robin Krom
*
* For more information see: http://getgreenshot.org/
* The Greenshot project is hosted on Sourceforge: http://sourceforge.net/projects/greenshot/
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 1 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using Greenshot.Core;
using GreenshotPlugin.Core;
using System;
using System.Drawing;
using System.Windows.Forms;
using Greenshot.Core;
using GreenshotPlugin.Core;
namespace Greenshot.Forms
{
public partial class TornEdgeSettingsForm : BaseForm
{
private TornEdgeEffect effect;
public TornEdgeSettingsForm(TornEdgeEffect effect)
{
this.effect = effect;
InitializeComponent();
this.Icon = GreenshotResources.getGreenshotIcon();
trackBar1.Value = (int)(effect.Darkness * 40);
shadowCheckbox.Checked = effect.GenerateShadow;
shadowDarkness.Value = (int)(effect.Darkness * 40);
offsetX.Value = effect.ShadowOffset.X;
offsetY.Value = effect.ShadowOffset.Y;
toothsize.Value = effect.ToothHeight;
verticaltoothrange.Value = effect.VerticalToothRange;
horizontaltoothrange.Value = effect.HorizontalToothRange;
top.Checked = effect.Edges[0];
right.Checked = effect.Edges[1];
bottom.Checked = effect.Edges[2];
left.Checked = effect.Edges[3];
}
private void buttonOK_Click(object sender, EventArgs e)
{
effect.Darkness = (float)trackBar1.Value / (float)40;
effect.Darkness = (float)shadowDarkness.Value / (float)40;
effect.ShadowOffset = new Point((int)offsetX.Value, (int)offsetY.Value);
effect.ShadowSize = (int)thickness.Value;
effect.ToothHeight = (int)toothsize.Value;
effect.VerticalToothRange = (int)verticaltoothrange.Value;
effect.HorizontalToothRange = (int)horizontaltoothrange.Value;
effect.Edges = new bool[] { top.Checked, right.Checked, bottom.Checked, left.Checked };
effect.GenerateShadow = shadowCheckbox.Checked;
DialogResult = DialogResult.OK;
}
private void shadowCheckbox_CheckedChanged(object sender, EventArgs e)
{
thickness.Enabled = shadowCheckbox.Checked;
offsetX.Enabled = shadowCheckbox.Checked;
offsetY.Enabled = shadowCheckbox.Checked;
shadowDarkness.Enabled = shadowCheckbox.Checked;
}
}
}
}

View file

@ -246,12 +246,12 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="Forms\DropShadowSettingsForm.cs">
<Compile Include="Forms\DropShadowSettingsForm.cs">
<SubType>Form</SubType>
</None>
<None Include="Forms\DropShadowSettingsForm.Designer.cs">
</Compile>
<Compile Include="Forms\DropShadowSettingsForm.Designer.cs">
<DependentUpon>DropShadowSettingsForm.cs</DependentUpon>
</None>
</Compile>
<Compile Include="Forms\ImageEditorForm.cs">
<SubType>Form</SubType>
</Compile>
@ -264,14 +264,11 @@
<Compile Include="Forms\ResizeSettingsForm.Designer.cs">
<DependentUpon>ResizeSettingsForm.cs</DependentUpon>
</Compile>
<None Include="Forms\TornEdgeSettingsForm.cs">
<Compile Include="Forms\TornEdgeSettingsForm.cs">
<SubType>Form</SubType>
</None>
<None Include="Forms\TornEdgeSettingsForm.Designer.cs">
</Compile>
<Compile Include="Forms\TornEdgeSettingsForm.Designer.cs">
<DependentUpon>TornEdgeSettingsForm.cs</DependentUpon>
</None>
<Compile Include="Forms\ToolStripMenuSelectList.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Forms\MovableShowColorForm.cs">
<SubType>Form</SubType>

View file

@ -57,16 +57,16 @@ private void InitializeComponent()
this.tsddbWorkflows = new System.Windows.Forms.ToolStripDropDownButton();
this.tsddbTools = new System.Windows.Forms.ToolStripDropDownButton();
this.tsmiScreenColorPicker = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiRuler = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiFTPClient = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiHashCheck = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiIndexFolder = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiImageEditor = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiImageEffects = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiMonitorTest = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiHashCheck = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiDNSChanger = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiQRCode = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiIndexFolder = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiRuler = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiFTPClient = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiTweetMessage = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiMonitorTest = new System.Windows.Forms.ToolStripMenuItem();
this.tssMain1 = new System.Windows.Forms.ToolStripSeparator();
this.tsddbAfterCaptureTasks = new System.Windows.Forms.ToolStripDropDownButton();
this.tsddbAfterUploadTasks = new System.Windows.Forms.ToolStripDropDownButton();
@ -522,38 +522,6 @@ private void InitializeComponent()
this.tsmiScreenColorPicker.Text = "Screen color picker...";
this.tsmiScreenColorPicker.Click += new System.EventHandler(this.tsmiCursorHelper_Click);
//
// tsmiRuler
//
this.tsmiRuler.Image = global::ShareX.Properties.Resources.ruler_triangle;
this.tsmiRuler.Name = "tsmiRuler";
this.tsmiRuler.Size = new System.Drawing.Size(183, 22);
this.tsmiRuler.Text = "Ruler...";
this.tsmiRuler.Click += new System.EventHandler(this.tsmiRuler_Click);
//
// tsmiFTPClient
//
this.tsmiFTPClient.Image = global::ShareX.Properties.Resources.application_network;
this.tsmiFTPClient.Name = "tsmiFTPClient";
this.tsmiFTPClient.Size = new System.Drawing.Size(183, 22);
this.tsmiFTPClient.Text = "FTP client...";
this.tsmiFTPClient.Click += new System.EventHandler(this.tsmiFTPClient_Click);
//
// tsmiHashCheck
//
this.tsmiHashCheck.Image = global::ShareX.Properties.Resources.application_task;
this.tsmiHashCheck.Name = "tsmiHashCheck";
this.tsmiHashCheck.Size = new System.Drawing.Size(183, 22);
this.tsmiHashCheck.Text = "Hash check...";
this.tsmiHashCheck.Click += new System.EventHandler(this.tsmiHashCheck_Click);
//
// tsmiIndexFolder
//
this.tsmiIndexFolder.Image = global::ShareX.Properties.Resources.folder_tree;
this.tsmiIndexFolder.Name = "tsmiIndexFolder";
this.tsmiIndexFolder.Size = new System.Drawing.Size(183, 22);
this.tsmiIndexFolder.Text = "Index folder...";
this.tsmiIndexFolder.Click += new System.EventHandler(this.tsmiIndexFolder_Click);
//
// tsmiImageEditor
//
this.tsmiImageEditor.Image = global::ShareX.Properties.Resources.image_pencil;
@ -570,13 +538,13 @@ private void InitializeComponent()
this.tsmiImageEffects.Text = "Image effects...";
this.tsmiImageEffects.Click += new System.EventHandler(this.tsmiImageEffects_Click);
//
// tsmiMonitorTest
// tsmiHashCheck
//
this.tsmiMonitorTest.Image = global::ShareX.Properties.Resources.monitor;
this.tsmiMonitorTest.Name = "tsmiMonitorTest";
this.tsmiMonitorTest.Size = new System.Drawing.Size(183, 22);
this.tsmiMonitorTest.Text = "Monitor test...";
this.tsmiMonitorTest.Click += new System.EventHandler(this.tsmiMonitorTest_Click);
this.tsmiHashCheck.Image = global::ShareX.Properties.Resources.application_task;
this.tsmiHashCheck.Name = "tsmiHashCheck";
this.tsmiHashCheck.Size = new System.Drawing.Size(183, 22);
this.tsmiHashCheck.Text = "Hash check...";
this.tsmiHashCheck.Click += new System.EventHandler(this.tsmiHashCheck_Click);
//
// tsmiDNSChanger
//
@ -594,6 +562,30 @@ private void InitializeComponent()
this.tsmiQRCode.Text = "QR code...";
this.tsmiQRCode.Click += new System.EventHandler(this.tsmiQRCode_Click);
//
// tsmiIndexFolder
//
this.tsmiIndexFolder.Image = global::ShareX.Properties.Resources.folder_tree;
this.tsmiIndexFolder.Name = "tsmiIndexFolder";
this.tsmiIndexFolder.Size = new System.Drawing.Size(183, 22);
this.tsmiIndexFolder.Text = "Index folder...";
this.tsmiIndexFolder.Click += new System.EventHandler(this.tsmiIndexFolder_Click);
//
// tsmiRuler
//
this.tsmiRuler.Image = global::ShareX.Properties.Resources.ruler_triangle;
this.tsmiRuler.Name = "tsmiRuler";
this.tsmiRuler.Size = new System.Drawing.Size(183, 22);
this.tsmiRuler.Text = "Ruler...";
this.tsmiRuler.Click += new System.EventHandler(this.tsmiRuler_Click);
//
// tsmiFTPClient
//
this.tsmiFTPClient.Image = global::ShareX.Properties.Resources.application_network;
this.tsmiFTPClient.Name = "tsmiFTPClient";
this.tsmiFTPClient.Size = new System.Drawing.Size(183, 22);
this.tsmiFTPClient.Text = "FTP client...";
this.tsmiFTPClient.Click += new System.EventHandler(this.tsmiFTPClient_Click);
//
// tsmiTweetMessage
//
this.tsmiTweetMessage.Image = global::ShareX.Properties.Resources.Twitter;
@ -602,6 +594,14 @@ private void InitializeComponent()
this.tsmiTweetMessage.Text = "Tweet message...";
this.tsmiTweetMessage.Click += new System.EventHandler(this.tsmiTweetMessage_Click);
//
// tsmiMonitorTest
//
this.tsmiMonitorTest.Image = global::ShareX.Properties.Resources.monitor;
this.tsmiMonitorTest.Name = "tsmiMonitorTest";
this.tsmiMonitorTest.Size = new System.Drawing.Size(183, 22);
this.tsmiMonitorTest.Text = "Monitor test...";
this.tsmiMonitorTest.Click += new System.EventHandler(this.tsmiMonitorTest_Click);
//
// tssMain1
//
this.tssMain1.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
@ -1666,16 +1666,16 @@ private void InitializeComponent()
//
this.tsmiTrayTools.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.tsmiTrayScreenColorPicker,
this.tsmiTrayRuler,
this.tsmiTrayFTPClient,
this.tsmiTrayHashCheck,
this.tsmiTrayIndexFolder,
this.tsmiTrayImageEditor,
this.tsmiTrayImageEffects,
this.tsmiTrayMonitorTest,
this.tsmiTrayHashCheck,
this.tsmiTrayDNSChanger,
this.tsmiTrayQRCode,
this.tsmiTrayTweetMessage});
this.tsmiTrayIndexFolder,
this.tsmiTrayRuler,
this.tsmiTrayFTPClient,
this.tsmiTrayTweetMessage,
this.tsmiTrayMonitorTest});
this.tsmiTrayTools.Image = global::ShareX.Properties.Resources.toolbox;
this.tsmiTrayTools.Name = "tsmiTrayTools";
this.tsmiTrayTools.Size = new System.Drawing.Size(188, 22);