mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-09 01:52:32 +02:00
08fe746dac
* (Add) Thumbnail image can now saved to clipboard * (Add) Setting to allow choose default file extension at load file dialog * (Add) Double click middle mouse to zoom to fit to image * (Add) Move mutator to move print volume around the plate * (Add) Pattern tool * (Change) Setting window now have tabs to compact the window height * (Fix) Progress for mutators always show layer count instead of selected range
403 lines
20 KiB
C#
403 lines
20 KiB
C#
using UVtools.GUI.Controls;
|
|
|
|
namespace UVtools.GUI.Forms
|
|
{
|
|
partial class FrmMutationResize
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.components = new System.ComponentModel.Container();
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMutationResize));
|
|
this.lbDescription = new System.Windows.Forms.Label();
|
|
this.lbX = new System.Windows.Forms.Label();
|
|
this.lbLayerRange = new System.Windows.Forms.Label();
|
|
this.nmLayerRangeStart = new System.Windows.Forms.NumericUpDown();
|
|
this.nmLayerRangeEnd = new System.Windows.Forms.NumericUpDown();
|
|
this.lbLayerRangeTo = new System.Windows.Forms.Label();
|
|
this.cmLayerRange = new System.Windows.Forms.ContextMenuStrip(this.components);
|
|
this.btnLayerRangeAllLayers = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.btnLayerRangeCurrentLayer = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.btnLayerRangeBottomLayers = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.btnLayerRangeNormalLayers = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.btnLayerRangeSelect = new UVtools.GUI.Controls.SplitButton();
|
|
this.btnCancel = new System.Windows.Forms.Button();
|
|
this.btnMutate = new System.Windows.Forms.Button();
|
|
this.nmX = new System.Windows.Forms.NumericUpDown();
|
|
this.lbY = new System.Windows.Forms.Label();
|
|
this.nmY = new System.Windows.Forms.NumericUpDown();
|
|
this.cbConstrainXY = new System.Windows.Forms.CheckBox();
|
|
this.cbFade = new System.Windows.Forms.CheckBox();
|
|
((System.ComponentModel.ISupportInitialize)(this.nmLayerRangeStart)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.nmLayerRangeEnd)).BeginInit();
|
|
this.cmLayerRange.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.nmX)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.nmY)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// lbDescription
|
|
//
|
|
this.lbDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
| System.Windows.Forms.AnchorStyles.Left)));
|
|
this.lbDescription.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lbDescription.Location = new System.Drawing.Point(13, 14);
|
|
this.lbDescription.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.lbDescription.Name = "lbDescription";
|
|
this.lbDescription.Size = new System.Drawing.Size(584, 128);
|
|
this.lbDescription.TabIndex = 0;
|
|
this.lbDescription.Text = "Description";
|
|
//
|
|
// lbX
|
|
//
|
|
this.lbX.AutoSize = true;
|
|
this.lbX.Location = new System.Drawing.Point(86, 190);
|
|
this.lbX.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.lbX.Name = "lbX";
|
|
this.lbX.Size = new System.Drawing.Size(24, 20);
|
|
this.lbX.TabIndex = 3;
|
|
this.lbX.Text = "X:";
|
|
this.toolTip.SetToolTip(this.lbX, resources.GetString("lbX.ToolTip"));
|
|
//
|
|
// lbLayerRange
|
|
//
|
|
this.lbLayerRange.AutoSize = true;
|
|
this.lbLayerRange.Location = new System.Drawing.Point(13, 150);
|
|
this.lbLayerRange.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.lbLayerRange.Name = "lbLayerRange";
|
|
this.lbLayerRange.Size = new System.Drawing.Size(97, 20);
|
|
this.lbLayerRange.TabIndex = 9;
|
|
this.lbLayerRange.Text = "Layer range:";
|
|
this.toolTip.SetToolTip(this.lbLayerRange, resources.GetString("lbLayerRange.ToolTip"));
|
|
//
|
|
// nmLayerRangeStart
|
|
//
|
|
this.nmLayerRangeStart.Location = new System.Drawing.Point(118, 147);
|
|
this.nmLayerRangeStart.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.nmLayerRangeStart.Maximum = new decimal(new int[] {
|
|
100000,
|
|
0,
|
|
0,
|
|
0});
|
|
this.nmLayerRangeStart.Name = "nmLayerRangeStart";
|
|
this.nmLayerRangeStart.Size = new System.Drawing.Size(120, 26);
|
|
this.nmLayerRangeStart.TabIndex = 0;
|
|
//
|
|
// nmLayerRangeEnd
|
|
//
|
|
this.nmLayerRangeEnd.Location = new System.Drawing.Point(314, 147);
|
|
this.nmLayerRangeEnd.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.nmLayerRangeEnd.Maximum = new decimal(new int[] {
|
|
100000,
|
|
0,
|
|
0,
|
|
0});
|
|
this.nmLayerRangeEnd.Name = "nmLayerRangeEnd";
|
|
this.nmLayerRangeEnd.Size = new System.Drawing.Size(120, 26);
|
|
this.nmLayerRangeEnd.TabIndex = 1;
|
|
//
|
|
// lbLayerRangeTo
|
|
//
|
|
this.lbLayerRangeTo.AutoSize = true;
|
|
this.lbLayerRangeTo.Location = new System.Drawing.Point(275, 150);
|
|
this.lbLayerRangeTo.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.lbLayerRangeTo.Name = "lbLayerRangeTo";
|
|
this.lbLayerRangeTo.Size = new System.Drawing.Size(31, 20);
|
|
this.lbLayerRangeTo.TabIndex = 12;
|
|
this.lbLayerRangeTo.Text = "To:";
|
|
//
|
|
// cmLayerRange
|
|
//
|
|
this.cmLayerRange.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.btnLayerRangeAllLayers,
|
|
this.btnLayerRangeCurrentLayer,
|
|
this.btnLayerRangeBottomLayers,
|
|
this.btnLayerRangeNormalLayers});
|
|
this.cmLayerRange.Name = "cmLayerRange";
|
|
this.cmLayerRange.Size = new System.Drawing.Size(226, 92);
|
|
//
|
|
// btnLayerRangeAllLayers
|
|
//
|
|
this.btnLayerRangeAllLayers.Name = "btnLayerRangeAllLayers";
|
|
this.btnLayerRangeAllLayers.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
|
|
| System.Windows.Forms.Keys.A)));
|
|
this.btnLayerRangeAllLayers.Size = new System.Drawing.Size(225, 22);
|
|
this.btnLayerRangeAllLayers.Text = "&All Layers";
|
|
this.btnLayerRangeAllLayers.Click += new System.EventHandler(this.ItemClicked);
|
|
//
|
|
// btnLayerRangeCurrentLayer
|
|
//
|
|
this.btnLayerRangeCurrentLayer.Name = "btnLayerRangeCurrentLayer";
|
|
this.btnLayerRangeCurrentLayer.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
|
|
| System.Windows.Forms.Keys.C)));
|
|
this.btnLayerRangeCurrentLayer.Size = new System.Drawing.Size(225, 22);
|
|
this.btnLayerRangeCurrentLayer.Text = "&Current Layer";
|
|
this.btnLayerRangeCurrentLayer.Click += new System.EventHandler(this.ItemClicked);
|
|
//
|
|
// btnLayerRangeBottomLayers
|
|
//
|
|
this.btnLayerRangeBottomLayers.Name = "btnLayerRangeBottomLayers";
|
|
this.btnLayerRangeBottomLayers.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
|
|
| System.Windows.Forms.Keys.B)));
|
|
this.btnLayerRangeBottomLayers.Size = new System.Drawing.Size(225, 22);
|
|
this.btnLayerRangeBottomLayers.Text = "&Bottom Layers";
|
|
this.btnLayerRangeBottomLayers.Click += new System.EventHandler(this.ItemClicked);
|
|
//
|
|
// btnLayerRangeNormalLayers
|
|
//
|
|
this.btnLayerRangeNormalLayers.Name = "btnLayerRangeNormalLayers";
|
|
this.btnLayerRangeNormalLayers.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
|
|
| System.Windows.Forms.Keys.N)));
|
|
this.btnLayerRangeNormalLayers.Size = new System.Drawing.Size(225, 22);
|
|
this.btnLayerRangeNormalLayers.Text = "&Normal Layers";
|
|
this.btnLayerRangeNormalLayers.Click += new System.EventHandler(this.ItemClicked);
|
|
//
|
|
// toolTip
|
|
//
|
|
this.toolTip.AutoPopDelay = 32767;
|
|
this.toolTip.InitialDelay = 500;
|
|
this.toolTip.IsBalloon = true;
|
|
this.toolTip.ReshowDelay = 100;
|
|
this.toolTip.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info;
|
|
this.toolTip.ToolTipTitle = "Information";
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.AutoSize = true;
|
|
this.label1.Location = new System.Drawing.Point(246, 190);
|
|
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(23, 20);
|
|
this.label1.TabIndex = 16;
|
|
this.label1.Text = "%";
|
|
this.toolTip.SetToolTip(this.label1, resources.GetString("label1.ToolTip"));
|
|
//
|
|
// label2
|
|
//
|
|
this.label2.AutoSize = true;
|
|
this.label2.Location = new System.Drawing.Point(442, 190);
|
|
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.label2.Name = "label2";
|
|
this.label2.Size = new System.Drawing.Size(23, 20);
|
|
this.label2.TabIndex = 17;
|
|
this.label2.Text = "%";
|
|
this.toolTip.SetToolTip(this.label2, resources.GetString("label2.ToolTip"));
|
|
//
|
|
// btnLayerRangeSelect
|
|
//
|
|
this.btnLayerRangeSelect.Location = new System.Drawing.Point(446, 146);
|
|
this.btnLayerRangeSelect.Menu = this.cmLayerRange;
|
|
this.btnLayerRangeSelect.Name = "btnLayerRangeSelect";
|
|
this.btnLayerRangeSelect.Size = new System.Drawing.Size(138, 26);
|
|
this.btnLayerRangeSelect.TabIndex = 2;
|
|
this.btnLayerRangeSelect.Text = "Select";
|
|
this.btnLayerRangeSelect.UseVisualStyleBackColor = true;
|
|
//
|
|
// btnCancel
|
|
//
|
|
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
|
this.btnCancel.Image = global::UVtools.GUI.Properties.Resources.Cancel_24x24;
|
|
this.btnCancel.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
|
this.btnCancel.Location = new System.Drawing.Point(434, 230);
|
|
this.btnCancel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.btnCancel.Name = "btnCancel";
|
|
this.btnCancel.Size = new System.Drawing.Size(150, 48);
|
|
this.btnCancel.TabIndex = 6;
|
|
this.btnCancel.Text = "&Cancel";
|
|
this.btnCancel.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
this.btnCancel.UseVisualStyleBackColor = true;
|
|
this.btnCancel.Click += new System.EventHandler(this.ItemClicked);
|
|
//
|
|
// btnMutate
|
|
//
|
|
this.btnMutate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
this.btnMutate.Image = global::UVtools.GUI.Properties.Resources.Ok_24x24;
|
|
this.btnMutate.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
|
this.btnMutate.Location = new System.Drawing.Point(276, 230);
|
|
this.btnMutate.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.btnMutate.Name = "btnMutate";
|
|
this.btnMutate.Size = new System.Drawing.Size(150, 48);
|
|
this.btnMutate.TabIndex = 5;
|
|
this.btnMutate.Text = "&Resize";
|
|
this.btnMutate.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
this.btnMutate.UseVisualStyleBackColor = true;
|
|
this.btnMutate.Click += new System.EventHandler(this.ItemClicked);
|
|
//
|
|
// nmX
|
|
//
|
|
this.nmX.DecimalPlaces = 2;
|
|
this.nmX.Location = new System.Drawing.Point(118, 187);
|
|
this.nmX.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.nmX.Maximum = new decimal(new int[] {
|
|
1000,
|
|
0,
|
|
0,
|
|
0});
|
|
this.nmX.Minimum = new decimal(new int[] {
|
|
1,
|
|
0,
|
|
0,
|
|
0});
|
|
this.nmX.Name = "nmX";
|
|
this.nmX.Size = new System.Drawing.Size(120, 26);
|
|
this.nmX.TabIndex = 3;
|
|
this.nmX.Value = new decimal(new int[] {
|
|
100,
|
|
0,
|
|
0,
|
|
0});
|
|
this.nmX.ValueChanged += new System.EventHandler(this.EventValueChanged);
|
|
//
|
|
// lbY
|
|
//
|
|
this.lbY.AutoSize = true;
|
|
this.lbY.Enabled = false;
|
|
this.lbY.Location = new System.Drawing.Point(282, 190);
|
|
this.lbY.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.lbY.Name = "lbY";
|
|
this.lbY.Size = new System.Drawing.Size(24, 20);
|
|
this.lbY.TabIndex = 13;
|
|
this.lbY.Text = "Y:";
|
|
//
|
|
// nmY
|
|
//
|
|
this.nmY.DecimalPlaces = 2;
|
|
this.nmY.Enabled = false;
|
|
this.nmY.Location = new System.Drawing.Point(314, 187);
|
|
this.nmY.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.nmY.Maximum = new decimal(new int[] {
|
|
1000,
|
|
0,
|
|
0,
|
|
0});
|
|
this.nmY.Minimum = new decimal(new int[] {
|
|
1,
|
|
0,
|
|
0,
|
|
0});
|
|
this.nmY.Name = "nmY";
|
|
this.nmY.Size = new System.Drawing.Size(120, 26);
|
|
this.nmY.TabIndex = 14;
|
|
this.nmY.Value = new decimal(new int[] {
|
|
100,
|
|
0,
|
|
0,
|
|
0});
|
|
//
|
|
// cbConstrainXY
|
|
//
|
|
this.cbConstrainXY.AutoSize = true;
|
|
this.cbConstrainXY.Checked = true;
|
|
this.cbConstrainXY.CheckState = System.Windows.Forms.CheckState.Checked;
|
|
this.cbConstrainXY.Location = new System.Drawing.Point(470, 188);
|
|
this.cbConstrainXY.Name = "cbConstrainXY";
|
|
this.cbConstrainXY.Size = new System.Drawing.Size(126, 24);
|
|
this.cbConstrainXY.TabIndex = 15;
|
|
this.cbConstrainXY.Text = "Constrain X/Y";
|
|
this.cbConstrainXY.CheckedChanged += new System.EventHandler(this.EventCheckedChanged);
|
|
//
|
|
// cbFade
|
|
//
|
|
this.cbFade.AutoSize = true;
|
|
this.cbFade.Location = new System.Drawing.Point(90, 230);
|
|
this.cbFade.Name = "cbFade";
|
|
this.cbFade.Size = new System.Drawing.Size(170, 24);
|
|
this.cbFade.TabIndex = 18;
|
|
this.cbFade.Text = "Fade towards 100%";
|
|
this.cbFade.UseVisualStyleBackColor = true;
|
|
//
|
|
// FrmMutationResize
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.CancelButton = this.btnCancel;
|
|
this.ClientSize = new System.Drawing.Size(599, 292);
|
|
this.Controls.Add(this.cbFade);
|
|
this.Controls.Add(this.label2);
|
|
this.Controls.Add(this.label1);
|
|
this.Controls.Add(this.cbConstrainXY);
|
|
this.Controls.Add(this.nmY);
|
|
this.Controls.Add(this.lbY);
|
|
this.Controls.Add(this.btnLayerRangeSelect);
|
|
this.Controls.Add(this.lbLayerRangeTo);
|
|
this.Controls.Add(this.nmLayerRangeEnd);
|
|
this.Controls.Add(this.nmLayerRangeStart);
|
|
this.Controls.Add(this.lbLayerRange);
|
|
this.Controls.Add(this.btnMutate);
|
|
this.Controls.Add(this.btnCancel);
|
|
this.Controls.Add(this.nmX);
|
|
this.Controls.Add(this.lbX);
|
|
this.Controls.Add(this.lbDescription);
|
|
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
|
this.KeyPreview = true;
|
|
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.MaximizeBox = false;
|
|
this.MinimizeBox = false;
|
|
this.Name = "FrmMutationResize";
|
|
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
|
this.Text = "Form1";
|
|
this.TopMost = true;
|
|
((System.ComponentModel.ISupportInitialize)(this.nmLayerRangeStart)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.nmLayerRangeEnd)).EndInit();
|
|
this.cmLayerRange.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)(this.nmX)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.nmY)).EndInit();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.Label lbDescription;
|
|
private System.Windows.Forms.Label lbX;
|
|
private System.Windows.Forms.Button btnCancel;
|
|
private System.Windows.Forms.Button btnMutate;
|
|
private System.Windows.Forms.Label lbLayerRange;
|
|
private System.Windows.Forms.NumericUpDown nmLayerRangeStart;
|
|
private System.Windows.Forms.NumericUpDown nmLayerRangeEnd;
|
|
private System.Windows.Forms.Label lbLayerRangeTo;
|
|
private Controls.SplitButton btnLayerRangeSelect;
|
|
private System.Windows.Forms.ContextMenuStrip cmLayerRange;
|
|
private System.Windows.Forms.ToolStripMenuItem btnLayerRangeAllLayers;
|
|
private System.Windows.Forms.ToolStripMenuItem btnLayerRangeCurrentLayer;
|
|
private System.Windows.Forms.ToolStripMenuItem btnLayerRangeBottomLayers;
|
|
private System.Windows.Forms.ToolStripMenuItem btnLayerRangeNormalLayers;
|
|
private System.Windows.Forms.ToolTip toolTip;
|
|
private System.Windows.Forms.NumericUpDown nmX;
|
|
private System.Windows.Forms.Label label1;
|
|
private System.Windows.Forms.Label lbY;
|
|
private System.Windows.Forms.NumericUpDown nmY;
|
|
private System.Windows.Forms.Label label2;
|
|
private System.Windows.Forms.CheckBox cbConstrainXY;
|
|
private System.Windows.Forms.CheckBox cbFade;
|
|
}
|
|
} |