mirror of
https://github.com/ShareX/ShareX.git
synced 2024-08-19 04:02:07 +12:00
Greenshot updated from 1.2 branch at commit e9ab99c5acc99785cc5045b4b5493c9b6504d016 This solves #1341 and #1079 for allowing support high DPI monitors. Additionally, the following were implemented: - #748 - Objects can be saved to file and loaded from file via menu - #676 - Keyboard shortcuts added for 'Save and close' (Alt+S), 'Close' (Alt+W), and 'Close and cancel tasks' (Alt+C) - #1189 - Editor opens sized to image. Can be disabled via Greenshot ini with `MatchSizeToCapture=False`
107 lines
4.8 KiB
C#
107 lines
4.8 KiB
C#
/*
|
|
* Greenshot - a free and open source screenshot tool
|
|
* Copyright (C) 2007-2015 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/>.
|
|
*/
|
|
namespace GreenshotPlugin.Controls
|
|
{
|
|
partial class PleaseWaitForm
|
|
{
|
|
/// <summary>
|
|
/// Designer variable used to keep track of non-visual components.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Disposes resources used by the form.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing)
|
|
{
|
|
if (components != null)
|
|
{
|
|
components.Dispose();
|
|
}
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is required for Windows Forms designer support.
|
|
/// Do not change the method contents inside the source code editor. The Forms designer might
|
|
/// not be able to load this method if it was changed manually.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.label_pleasewait = new System.Windows.Forms.Label();
|
|
this.cancelButton = new System.Windows.Forms.Button();
|
|
this.SuspendLayout();
|
|
//
|
|
// label_pleasewait
|
|
//
|
|
this.label_pleasewait.AutoSize = true;
|
|
this.label_pleasewait.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.label_pleasewait.Location = new System.Drawing.Point(0, 0);
|
|
this.label_pleasewait.Name = "label_pleasewait";
|
|
this.label_pleasewait.Padding = new System.Windows.Forms.Padding(10);
|
|
this.label_pleasewait.Size = new System.Drawing.Size(90, 33);
|
|
this.label_pleasewait.TabIndex = 0;
|
|
this.label_pleasewait.Text = "Please wait...";
|
|
this.label_pleasewait.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
this.label_pleasewait.UseWaitCursor = true;
|
|
//
|
|
// cancelButton
|
|
//
|
|
this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
|
this.cancelButton.Location = new System.Drawing.Point(38, 41);
|
|
this.cancelButton.Name = "cancelButton";
|
|
this.cancelButton.Size = new System.Drawing.Size(94, 23);
|
|
this.cancelButton.TabIndex = 1;
|
|
this.cancelButton.Text = "Cancel";
|
|
this.cancelButton.UseVisualStyleBackColor = true;
|
|
this.cancelButton.UseWaitCursor = true;
|
|
this.cancelButton.Click += new System.EventHandler(this.CancelButtonClick);
|
|
//
|
|
// PleaseWaitForm
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.AutoSize = true;
|
|
this.CancelButton = this.cancelButton;
|
|
this.ClientSize = new System.Drawing.Size(169, 76);
|
|
this.Controls.Add(this.cancelButton);
|
|
this.Controls.Add(this.label_pleasewait);
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
|
this.MaximizeBox = false;
|
|
this.MinimizeBox = false;
|
|
this.Name = "PleaseWaitForm";
|
|
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
|
this.Text = "Greenshot";
|
|
this.UseWaitCursor = true;
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
}
|
|
private System.Windows.Forms.Button cancelButton;
|
|
private System.Windows.Forms.Label label_pleasewait;
|
|
}
|
|
}
|