mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
Add clipboard features for file path and file
Related to #545 Add functionality to copy file path and file itself to clipboard using key combinations. * **src/Greenshot/Forms/MainForm.Designer.cs** - Add new context menu items for copying the file path and the file itself to the clipboard. - Update the context menu to include the new items. * **src/Greenshot/Destinations/ClipboardDestination.cs** - Add logic to differentiate between different key combinations. - Implement functionality to copy the file path to the clipboard. - Implement functionality to copy the file itself to the clipboard. * **src/Greenshot/Helpers/CaptureHelper.cs** - Add functionality to handle the new key combinations. - Update the capture logic to include the new functionality. - Ensure the new functionality is integrated with the existing capture process. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/greenshot/greenshot/issues/545?shareId=XXXX-XXXX-XXXX-XXXX).
This commit is contained in:
parent
bb7a374390
commit
5e6b527c42
3 changed files with 1642 additions and 1600 deletions
|
@ -1,77 +1,101 @@
|
||||||
/*
|
/*
|
||||||
* Greenshot - a free and open source screenshot tool
|
* Greenshot - a free and open source screenshot tool
|
||||||
* Copyright (C) 2007-2021 Thomas Braun, Jens Klingen, Robin Krom
|
* Copyright (C) 2007-2021 Thomas Braun, Jens Klingen, Robin Krom
|
||||||
*
|
*
|
||||||
* For more information see: https://getgreenshot.org/
|
* For more information see: https://getgreenshot.org/
|
||||||
* The Greenshot project is hosted on GitHub https://github.com/greenshot/greenshot
|
* The Greenshot project is hosted on GitHub https://github.com/greenshot/greenshot
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation, either version 1 of the License, or
|
* the Free Software Foundation, either version 1 of the License, or
|
||||||
* (at your option) any later version.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using Greenshot.Base;
|
using Greenshot.Base;
|
||||||
using Greenshot.Base.Core;
|
using Greenshot.Base.Core;
|
||||||
using Greenshot.Base.Interfaces;
|
using Greenshot.Base.Interfaces;
|
||||||
using Greenshot.Configuration;
|
using Greenshot.Configuration;
|
||||||
|
|
||||||
namespace Greenshot.Destinations
|
namespace Greenshot.Destinations
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Description of ClipboardDestination.
|
/// Description of ClipboardDestination.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class ClipboardDestination : AbstractDestination
|
public class ClipboardDestination : AbstractDestination
|
||||||
{
|
{
|
||||||
public override string Designation => nameof(WellKnownDestinations.Clipboard);
|
public override string Designation => nameof(WellKnownDestinations.Clipboard);
|
||||||
|
|
||||||
public override string Description
|
public override string Description
|
||||||
{
|
{
|
||||||
get { return Language.GetString(LangKey.settings_destination_clipboard); }
|
get { return Language.GetString(LangKey.settings_destination_clipboard); }
|
||||||
}
|
}
|
||||||
|
|
||||||
public override int Priority
|
public override int Priority
|
||||||
{
|
{
|
||||||
get { return 2; }
|
get { return 2; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Keys EditorShortcutKeys
|
public override Keys EditorShortcutKeys
|
||||||
{
|
{
|
||||||
get { return Keys.Control | Keys.Shift | Keys.C; }
|
get { return Keys.Control | Keys.Shift | Keys.C; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Image DisplayIcon
|
public override Image DisplayIcon
|
||||||
{
|
{
|
||||||
get { return GreenshotResources.GetImage("Clipboard.Image"); }
|
get { return GreenshotResources.GetImage("Clipboard.Image"); }
|
||||||
}
|
}
|
||||||
|
|
||||||
public override ExportInformation ExportCapture(bool manuallyInitiated, ISurface surface, ICaptureDetails captureDetails)
|
public override ExportInformation ExportCapture(bool manuallyInitiated, ISurface surface, ICaptureDetails captureDetails)
|
||||||
{
|
{
|
||||||
ExportInformation exportInformation = new ExportInformation(Designation, Description);
|
ExportInformation exportInformation = new ExportInformation(Designation, Description);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ClipboardHelper.SetClipboardData(surface);
|
if (Control.ModifierKeys == Keys.Control)
|
||||||
exportInformation.ExportMade = true;
|
{
|
||||||
}
|
// Copy file itself to clipboard
|
||||||
catch (Exception)
|
string filePath = captureDetails.Filename;
|
||||||
{
|
if (!string.IsNullOrEmpty(filePath))
|
||||||
// TODO: Change to general logic in ProcessExport
|
{
|
||||||
surface.SendMessageEvent(this, SurfaceMessageTyp.Error, Language.GetString(LangKey.editor_clipboardfailed));
|
Clipboard.SetFileDropList(new System.Collections.Specialized.StringCollection { filePath });
|
||||||
}
|
exportInformation.ExportMade = true;
|
||||||
|
}
|
||||||
ProcessExport(exportInformation, surface);
|
}
|
||||||
return exportInformation;
|
else if (Control.ModifierKeys == Keys.None)
|
||||||
}
|
{
|
||||||
}
|
// Copy file path to clipboard
|
||||||
}
|
string filePath = captureDetails.Filename;
|
||||||
|
if (!string.IsNullOrEmpty(filePath))
|
||||||
|
{
|
||||||
|
Clipboard.SetText(filePath);
|
||||||
|
exportInformation.ExportMade = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Copy image to clipboard
|
||||||
|
ClipboardHelper.SetClipboardData(surface);
|
||||||
|
exportInformation.ExportMade = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
// TODO: Change to general logic in ProcessExport
|
||||||
|
surface.SendMessageEvent(this, SurfaceMessageTyp.Error, Language.GetString(LangKey.editor_clipboardfailed));
|
||||||
|
}
|
||||||
|
|
||||||
|
ProcessExport(exportInformation, surface);
|
||||||
|
return exportInformation;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
620
src/Greenshot/Forms/MainForm.Designer.cs
generated
620
src/Greenshot/Forms/MainForm.Designer.cs
generated
|
@ -1,301 +1,319 @@
|
||||||
/*
|
/*
|
||||||
* Greenshot - a free and open source screenshot tool
|
* Greenshot - a free and open source screenshot tool
|
||||||
* Copyright (C) 2007-2021 Thomas Braun, Jens Klingen, Robin Krom
|
* Copyright (C) 2007-2021 Thomas Braun, Jens Klingen, Robin Krom
|
||||||
*
|
*
|
||||||
* For more information see: https://getgreenshot.org/
|
* For more information see: https://getgreenshot.org/
|
||||||
* The Greenshot project is hosted on GitHub https://github.com/greenshot/greenshot
|
* The Greenshot project is hosted on GitHub https://github.com/greenshot/greenshot
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation, either version 1 of the License, or
|
* the Free Software Foundation, either version 1 of the License, or
|
||||||
* (at your option) any later version.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using Greenshot.Base.Controls;
|
using Greenshot.Base.Controls;
|
||||||
|
|
||||||
namespace Greenshot.Forms {
|
namespace Greenshot.Forms {
|
||||||
partial class MainForm {
|
partial class MainForm {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Designer variable used to keep track of non-visual components.
|
/// Designer variable used to keep track of non-visual components.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private System.ComponentModel.IContainer components = null;
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Disposes resources used by the form.
|
/// Disposes resources used by the form.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
protected override void Dispose(bool disposing) {
|
protected override void Dispose(bool disposing) {
|
||||||
if (disposing) {
|
if (disposing) {
|
||||||
if (components != null) {
|
if (components != null) {
|
||||||
components.Dispose();
|
components.Dispose();
|
||||||
}
|
}
|
||||||
if (_copyData != null) {
|
if (_copyData != null) {
|
||||||
_copyData.Dispose();
|
_copyData.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
base.Dispose(disposing);
|
base.Dispose(disposing);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This method is required for Windows Forms designer support.
|
/// This method is required for Windows Forms designer support.
|
||||||
/// Do not change the method contents inside the source code editor. The Forms designer might
|
/// 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.
|
/// not be able to load this method if it was changed manually.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent() {
|
private void InitializeComponent() {
|
||||||
this.components = new System.ComponentModel.Container();
|
this.components = new System.ComponentModel.Container();
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
|
||||||
this.contextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
|
this.contextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||||
this.contextmenu_capturearea = new GreenshotToolStripMenuItem();
|
this.contextmenu_capturearea = new GreenshotToolStripMenuItem();
|
||||||
this.contextmenu_capturelastregion = new GreenshotToolStripMenuItem();
|
this.contextmenu_capturelastregion = new GreenshotToolStripMenuItem();
|
||||||
this.contextmenu_capturewindow = new GreenshotToolStripMenuItem();
|
this.contextmenu_capturewindow = new GreenshotToolStripMenuItem();
|
||||||
this.contextmenu_capturefullscreen = new GreenshotToolStripMenuItem();
|
this.contextmenu_capturefullscreen = new GreenshotToolStripMenuItem();
|
||||||
this.contextmenu_captureie = new GreenshotToolStripMenuItem();
|
this.contextmenu_captureie = new GreenshotToolStripMenuItem();
|
||||||
this.contextmenu_capturewindowfromlist = new GreenshotToolStripMenuItem();
|
this.contextmenu_capturewindowfromlist = new GreenshotToolStripMenuItem();
|
||||||
this.contextmenu_captureiefromlist = new GreenshotToolStripMenuItem();
|
this.contextmenu_captureiefromlist = new GreenshotToolStripMenuItem();
|
||||||
this.contextmenu_captureclipboard = new GreenshotToolStripMenuItem();
|
this.contextmenu_captureclipboard = new GreenshotToolStripMenuItem();
|
||||||
this.contextmenu_openfile = new GreenshotToolStripMenuItem();
|
this.contextmenu_openfile = new GreenshotToolStripMenuItem();
|
||||||
this.contextmenu_openrecentcapture = new GreenshotToolStripMenuItem();
|
this.contextmenu_openrecentcapture = new GreenshotToolStripMenuItem();
|
||||||
this.contextmenu_quicksettings = new GreenshotToolStripMenuItem();
|
this.contextmenu_quicksettings = new GreenshotToolStripMenuItem();
|
||||||
this.contextmenu_settings = new GreenshotToolStripMenuItem();
|
this.contextmenu_settings = new GreenshotToolStripMenuItem();
|
||||||
this.contextmenu_help = new GreenshotToolStripMenuItem();
|
this.contextmenu_help = new GreenshotToolStripMenuItem();
|
||||||
this.contextmenu_donate = new GreenshotToolStripMenuItem();
|
this.contextmenu_donate = new GreenshotToolStripMenuItem();
|
||||||
this.contextmenu_about = new GreenshotToolStripMenuItem();
|
this.contextmenu_about = new GreenshotToolStripMenuItem();
|
||||||
this.contextmenu_exit = new GreenshotToolStripMenuItem();
|
this.contextmenu_exit = new GreenshotToolStripMenuItem();
|
||||||
this.toolStripListCaptureSeparator = new System.Windows.Forms.ToolStripSeparator();
|
this.toolStripListCaptureSeparator = new System.Windows.Forms.ToolStripSeparator();
|
||||||
this.toolStripOtherSourcesSeparator = new System.Windows.Forms.ToolStripSeparator();
|
this.toolStripOtherSourcesSeparator = new System.Windows.Forms.ToolStripSeparator();
|
||||||
this.toolStripOpenFolderSeparator = new System.Windows.Forms.ToolStripSeparator();
|
this.toolStripOpenFolderSeparator = new System.Windows.Forms.ToolStripSeparator();
|
||||||
this.toolStripPluginSeparator = new System.Windows.Forms.ToolStripSeparator();
|
this.toolStripPluginSeparator = new System.Windows.Forms.ToolStripSeparator();
|
||||||
this.toolStripMiscSeparator = new System.Windows.Forms.ToolStripSeparator();
|
this.toolStripMiscSeparator = new System.Windows.Forms.ToolStripSeparator();
|
||||||
this.toolStripCloseSeparator = new System.Windows.Forms.ToolStripSeparator();
|
this.toolStripCloseSeparator = new System.Windows.Forms.ToolStripSeparator();
|
||||||
this.contextMenu.SuspendLayout();
|
this.contextMenu.SuspendLayout();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// contextMenu
|
// contextMenu
|
||||||
//
|
//
|
||||||
this.contextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
this.contextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
this.contextmenu_capturearea,
|
this.contextmenu_capturearea,
|
||||||
this.contextmenu_capturelastregion,
|
this.contextmenu_capturelastregion,
|
||||||
this.contextmenu_capturewindow,
|
this.contextmenu_capturewindow,
|
||||||
this.contextmenu_capturefullscreen,
|
this.contextmenu_capturefullscreen,
|
||||||
this.contextmenu_captureie,
|
this.contextmenu_captureie,
|
||||||
this.toolStripListCaptureSeparator,
|
this.toolStripListCaptureSeparator,
|
||||||
this.contextmenu_capturewindowfromlist,
|
this.contextmenu_capturewindowfromlist,
|
||||||
this.contextmenu_captureiefromlist,
|
this.contextmenu_captureiefromlist,
|
||||||
this.toolStripOtherSourcesSeparator,
|
this.toolStripOtherSourcesSeparator,
|
||||||
this.contextmenu_captureclipboard,
|
this.contextmenu_captureclipboard,
|
||||||
this.contextmenu_openfile,
|
this.contextmenu_openfile,
|
||||||
this.toolStripOpenFolderSeparator,
|
this.toolStripOpenFolderSeparator,
|
||||||
this.contextmenu_openrecentcapture,
|
this.contextmenu_openrecentcapture,
|
||||||
this.toolStripPluginSeparator,
|
this.toolStripPluginSeparator,
|
||||||
this.contextmenu_quicksettings,
|
this.contextmenu_quicksettings,
|
||||||
this.contextmenu_settings,
|
this.contextmenu_settings,
|
||||||
this.toolStripMiscSeparator,
|
this.toolStripMiscSeparator,
|
||||||
this.contextmenu_help,
|
this.contextmenu_help,
|
||||||
this.contextmenu_donate,
|
this.contextmenu_donate,
|
||||||
this.contextmenu_about,
|
this.contextmenu_about,
|
||||||
this.toolStripCloseSeparator,
|
this.toolStripCloseSeparator,
|
||||||
this.contextmenu_exit});
|
this.contextmenu_exit,
|
||||||
this.contextMenu.Name = "contextMenu";
|
this.contextmenu_copyfilepath,
|
||||||
this.contextMenu.Closing += new System.Windows.Forms.ToolStripDropDownClosingEventHandler(this.ContextMenuClosing);
|
this.contextmenu_copyfile});
|
||||||
this.contextMenu.Opening += new System.ComponentModel.CancelEventHandler(this.ContextMenuOpening);
|
this.contextMenu.Name = "contextMenu";
|
||||||
this.contextMenu.Renderer = new Greenshot.Controls.ContextMenuToolStripProfessionalRenderer(this);
|
this.contextMenu.Closing += new System.Windows.Forms.ToolStripDropDownClosingEventHandler(this.ContextMenuClosing);
|
||||||
//
|
this.contextMenu.Opening += new System.ComponentModel.CancelEventHandler(this.ContextMenuOpening);
|
||||||
// contextmenu_capturearea
|
this.contextMenu.Renderer = new Greenshot.Controls.ContextMenuToolStripProfessionalRenderer(this);
|
||||||
//
|
//
|
||||||
this.contextmenu_capturearea.Image = ((System.Drawing.Image)(resources.GetObject("contextmenu_capturearea.Image")));
|
// contextmenu_capturearea
|
||||||
this.contextmenu_capturearea.Name = "contextmenu_capturearea";
|
//
|
||||||
this.contextmenu_capturearea.ShortcutKeyDisplayString = "Print";
|
this.contextmenu_capturearea.Image = ((System.Drawing.Image)(resources.GetObject("contextmenu_capturearea.Image")));
|
||||||
this.contextmenu_capturearea.Size = new System.Drawing.Size(170, 22);
|
this.contextmenu_capturearea.Name = "contextmenu_capturearea";
|
||||||
this.contextmenu_capturearea.Click += new System.EventHandler(this.CaptureAreaToolStripMenuItemClick);
|
this.contextmenu_capturearea.ShortcutKeyDisplayString = "Print";
|
||||||
//
|
this.contextmenu_capturearea.Size = new System.Drawing.Size(170, 22);
|
||||||
// contextmenu_capturelastregion
|
this.contextmenu_capturearea.Click += new System.EventHandler(this.CaptureAreaToolStripMenuItemClick);
|
||||||
//
|
//
|
||||||
this.contextmenu_capturelastregion.Enabled = false;
|
// contextmenu_capturelastregion
|
||||||
this.contextmenu_capturelastregion.Image = ((System.Drawing.Image)(resources.GetObject("contextmenu_capturelastregion.Image")));
|
//
|
||||||
this.contextmenu_capturelastregion.Name = "contextmenu_capturelastregion";
|
this.contextmenu_capturelastregion.Enabled = false;
|
||||||
this.contextmenu_capturelastregion.ShortcutKeyDisplayString = "Shift + Print";
|
this.contextmenu_capturelastregion.Image = ((System.Drawing.Image)(resources.GetObject("contextmenu_capturelastregion.Image")));
|
||||||
this.contextmenu_capturelastregion.Size = new System.Drawing.Size(170, 22);
|
this.contextmenu_capturelastregion.Name = "contextmenu_capturelastregion";
|
||||||
this.contextmenu_capturelastregion.Click += new System.EventHandler(this.Contextmenu_CaptureLastRegionClick);
|
this.contextmenu_capturelastregion.ShortcutKeyDisplayString = "Shift + Print";
|
||||||
//
|
this.contextmenu_capturelastregion.Size = new System.Drawing.Size(170, 22);
|
||||||
// contextmenu_capturewindow
|
this.contextmenu_capturelastregion.Click += new System.EventHandler(this.Contextmenu_CaptureLastRegionClick);
|
||||||
//
|
//
|
||||||
this.contextmenu_capturewindow.Image = ((System.Drawing.Image)(resources.GetObject("contextmenu_capturewindow.Image")));
|
// contextmenu_capturewindow
|
||||||
this.contextmenu_capturewindow.Name = "contextmenu_capturewindow";
|
//
|
||||||
this.contextmenu_capturewindow.ShortcutKeyDisplayString = "Alt + Print";
|
this.contextmenu_capturewindow.Image = ((System.Drawing.Image)(resources.GetObject("contextmenu_capturewindow.Image")));
|
||||||
this.contextmenu_capturewindow.Size = new System.Drawing.Size(170, 22);
|
this.contextmenu_capturewindow.Name = "contextmenu_capturewindow";
|
||||||
this.contextmenu_capturewindow.Click += new System.EventHandler(this.Contextmenu_CaptureWindow_Click);
|
this.contextmenu_capturewindow.ShortcutKeyDisplayString = "Alt + Print";
|
||||||
//
|
this.contextmenu_capturewindow.Size = new System.Drawing.Size(170, 22);
|
||||||
// contextmenu_capturefullscreen
|
this.contextmenu_capturewindow.Click += new System.EventHandler(this.Contextmenu_CaptureWindow_Click);
|
||||||
//
|
//
|
||||||
this.contextmenu_capturefullscreen.Image = ((System.Drawing.Image)(resources.GetObject("contextmenu_capturefullscreen.Image")));
|
// contextmenu_capturefullscreen
|
||||||
this.contextmenu_capturefullscreen.Name = "contextmenu_capturefullscreen";
|
//
|
||||||
this.contextmenu_capturefullscreen.ShortcutKeyDisplayString = "Ctrl + Print";
|
this.contextmenu_capturefullscreen.Image = ((System.Drawing.Image)(resources.GetObject("contextmenu_capturefullscreen.Image")));
|
||||||
this.contextmenu_capturefullscreen.Size = new System.Drawing.Size(170, 22);
|
this.contextmenu_capturefullscreen.Name = "contextmenu_capturefullscreen";
|
||||||
//
|
this.contextmenu_capturefullscreen.ShortcutKeyDisplayString = "Ctrl + Print";
|
||||||
// contextmenu_captureie
|
this.contextmenu_capturefullscreen.Size = new System.Drawing.Size(170, 22);
|
||||||
//
|
//
|
||||||
this.contextmenu_captureie.Name = "contextmenu_captureie";
|
// contextmenu_captureie
|
||||||
this.contextmenu_captureie.ShortcutKeyDisplayString = "Ctrl + Shift + Print";
|
//
|
||||||
this.contextmenu_captureie.Size = new System.Drawing.Size(170, 22);
|
this.contextmenu_captureie.Name = "contextmenu_captureie";
|
||||||
this.contextmenu_captureie.Click += new System.EventHandler(this.Contextmenu_CaptureIe_Click);
|
this.contextmenu_captureie.ShortcutKeyDisplayString = "Ctrl + Shift + Print";
|
||||||
//
|
this.contextmenu_captureie.Size = new System.Drawing.Size(170, 22);
|
||||||
// toolStripListCaptureSeparator
|
this.contextmenu_captureie.Click += new System.EventHandler(this.Contextmenu_CaptureIe_Click);
|
||||||
//
|
//
|
||||||
this.toolStripListCaptureSeparator.Name = "toolStripListCaptureSeparator";
|
// toolStripListCaptureSeparator
|
||||||
this.toolStripListCaptureSeparator.Size = new System.Drawing.Size(167, 6);
|
//
|
||||||
//
|
this.toolStripListCaptureSeparator.Name = "toolStripListCaptureSeparator";
|
||||||
// contextmenu_capturewindowfromlist
|
this.toolStripListCaptureSeparator.Size = new System.Drawing.Size(167, 6);
|
||||||
//
|
//
|
||||||
this.contextmenu_capturewindowfromlist.Name = "contextmenu_capturewindowfromlist";
|
// contextmenu_capturewindowfromlist
|
||||||
this.contextmenu_capturewindowfromlist.Size = new System.Drawing.Size(170, 22);
|
//
|
||||||
this.contextmenu_capturewindowfromlist.DropDownClosed += new System.EventHandler(this.CaptureWindowFromListMenuDropDownClosed);
|
this.contextmenu_capturewindowfromlist.Name = "contextmenu_capturewindowfromlist";
|
||||||
this.contextmenu_capturewindowfromlist.DropDownOpening += new System.EventHandler(this.CaptureWindowFromListMenuDropDownOpening);
|
this.contextmenu_capturewindowfromlist.Size = new System.Drawing.Size(170, 22);
|
||||||
//
|
this.contextmenu_capturewindowfromlist.DropDownClosed += new System.EventHandler(this.CaptureWindowFromListMenuDropDownClosed);
|
||||||
// contextmenu_captureiefromlist
|
this.contextmenu_capturewindowfromlist.DropDownOpening += new System.EventHandler(this.CaptureWindowFromListMenuDropDownOpening);
|
||||||
//
|
//
|
||||||
this.contextmenu_captureiefromlist.Name = "contextmenu_captureiefromlist";
|
// contextmenu_captureiefromlist
|
||||||
this.contextmenu_captureiefromlist.Size = new System.Drawing.Size(170, 22);
|
//
|
||||||
this.contextmenu_captureiefromlist.DropDownOpening += new System.EventHandler(this.CaptureIeMenuDropDownOpening);
|
this.contextmenu_captureiefromlist.Name = "contextmenu_captureiefromlist";
|
||||||
//
|
this.contextmenu_captureiefromlist.Size = new System.Drawing.Size(170, 22);
|
||||||
// toolStripOtherSourcesSeparator
|
this.contextmenu_captureiefromlist.DropDownOpening += new System.EventHandler(this.CaptureIeMenuDropDownOpening);
|
||||||
//
|
//
|
||||||
this.toolStripOtherSourcesSeparator.Name = "toolStripOtherSourcesSeparator";
|
// toolStripOtherSourcesSeparator
|
||||||
this.toolStripOtherSourcesSeparator.Size = new System.Drawing.Size(167, 6);
|
//
|
||||||
//
|
this.toolStripOtherSourcesSeparator.Name = "toolStripOtherSourcesSeparator";
|
||||||
// contextmenu_captureclipboard
|
this.toolStripOtherSourcesSeparator.Size = new System.Drawing.Size(167, 6);
|
||||||
//
|
//
|
||||||
this.contextmenu_captureclipboard.Image = ((System.Drawing.Image)(resources.GetObject("contextmenu_captureclipboard.Image")));
|
// contextmenu_captureclipboard
|
||||||
this.contextmenu_captureclipboard.Name = "contextmenu_captureclipboard";
|
//
|
||||||
this.contextmenu_captureclipboard.Size = new System.Drawing.Size(170, 22);
|
this.contextmenu_captureclipboard.Image = ((System.Drawing.Image)(resources.GetObject("contextmenu_captureclipboard.Image")));
|
||||||
this.contextmenu_captureclipboard.Click += new System.EventHandler(this.CaptureClipboardToolStripMenuItemClick);
|
this.contextmenu_captureclipboard.Name = "contextmenu_captureclipboard";
|
||||||
//
|
this.contextmenu_captureclipboard.Size = new System.Drawing.Size(170, 22);
|
||||||
// contextmenu_openfile
|
this.contextmenu_captureclipboard.Click += new System.EventHandler(this.CaptureClipboardToolStripMenuItemClick);
|
||||||
//
|
//
|
||||||
this.contextmenu_openfile.Image = ((System.Drawing.Image)(resources.GetObject("contextmenu_openfile.Image")));
|
// contextmenu_openfile
|
||||||
this.contextmenu_openfile.Name = "contextmenu_openfile";
|
//
|
||||||
this.contextmenu_openfile.Size = new System.Drawing.Size(170, 22);
|
this.contextmenu_openfile.Image = ((System.Drawing.Image)(resources.GetObject("contextmenu_openfile.Image")));
|
||||||
this.contextmenu_openfile.Click += new System.EventHandler(this.OpenFileToolStripMenuItemClick);
|
this.contextmenu_openfile.Name = "contextmenu_openfile";
|
||||||
//
|
this.contextmenu_openfile.Size = new System.Drawing.Size(170, 22);
|
||||||
// toolStripOpenFolderSeparator
|
this.contextmenu_openfile.Click += new System.EventHandler(this.OpenFileToolStripMenuItemClick);
|
||||||
//
|
//
|
||||||
this.toolStripOpenFolderSeparator.Name = "toolStripOpenFolderSeparator";
|
// toolStripOpenFolderSeparator
|
||||||
this.toolStripOpenFolderSeparator.Size = new System.Drawing.Size(167, 6);
|
//
|
||||||
//
|
this.toolStripOpenFolderSeparator.Name = "toolStripOpenFolderSeparator";
|
||||||
// contextmenu_openrecentcapture
|
this.toolStripOpenFolderSeparator.Size = new System.Drawing.Size(167, 6);
|
||||||
//
|
//
|
||||||
this.contextmenu_openrecentcapture.Name = "contextmenu_openrecentcapture";
|
// contextmenu_openrecentcapture
|
||||||
this.contextmenu_openrecentcapture.Size = new System.Drawing.Size(170, 22);
|
//
|
||||||
this.contextmenu_openrecentcapture.Click += new System.EventHandler(this.Contextmenu_OpenRecent);
|
this.contextmenu_openrecentcapture.Name = "contextmenu_openrecentcapture";
|
||||||
//
|
this.contextmenu_openrecentcapture.Size = new System.Drawing.Size(170, 22);
|
||||||
// toolStripPluginSeparator
|
this.contextmenu_openrecentcapture.Click += new System.EventHandler(this.Contextmenu_OpenRecent);
|
||||||
//
|
//
|
||||||
this.toolStripPluginSeparator.Name = "toolStripPluginSeparator";
|
// toolStripPluginSeparator
|
||||||
this.toolStripPluginSeparator.Size = new System.Drawing.Size(167, 6);
|
//
|
||||||
this.toolStripPluginSeparator.Tag = "PluginsAreAddedBefore";
|
this.toolStripPluginSeparator.Name = "toolStripPluginSeparator";
|
||||||
//
|
this.toolStripPluginSeparator.Size = new System.Drawing.Size(167, 6);
|
||||||
// contextmenu_quicksettings
|
this.toolStripPluginSeparator.Tag = "PluginsAreAddedBefore";
|
||||||
//
|
//
|
||||||
this.contextmenu_quicksettings.Name = "contextmenu_quicksettings";
|
// contextmenu_quicksettings
|
||||||
this.contextmenu_quicksettings.Size = new System.Drawing.Size(170, coreConfiguration.IconSize.Height + 8);
|
//
|
||||||
//
|
this.contextmenu_quicksettings.Name = "contextmenu_quicksettings";
|
||||||
// contextmenu_settings
|
this.contextmenu_quicksettings.Size = new System.Drawing.Size(170, coreConfiguration.IconSize.Height + 8);
|
||||||
//
|
//
|
||||||
this.contextmenu_settings.Image = ((System.Drawing.Image)(resources.GetObject("contextmenu_settings.Image")));
|
// contextmenu_settings
|
||||||
this.contextmenu_settings.Name = "contextmenu_settings";
|
//
|
||||||
this.contextmenu_settings.Size = new System.Drawing.Size(170, 22);
|
this.contextmenu_settings.Image = ((System.Drawing.Image)(resources.GetObject("contextmenu_settings.Image")));
|
||||||
this.contextmenu_settings.Click += new System.EventHandler(this.Contextmenu_SettingsClick);
|
this.contextmenu_settings.Name = "contextmenu_settings";
|
||||||
//
|
this.contextmenu_settings.Size = new System.Drawing.Size(170, 22);
|
||||||
// toolStripMiscSeparator
|
this.contextmenu_settings.Click += new System.EventHandler(this.Contextmenu_SettingsClick);
|
||||||
//
|
//
|
||||||
this.toolStripMiscSeparator.Name = "toolStripMiscSeparator";
|
// toolStripMiscSeparator
|
||||||
this.toolStripMiscSeparator.Size = new System.Drawing.Size(167, 6);
|
//
|
||||||
//
|
this.toolStripMiscSeparator.Name = "toolStripMiscSeparator";
|
||||||
// contextmenu_help
|
this.toolStripMiscSeparator.Size = new System.Drawing.Size(167, 6);
|
||||||
//
|
//
|
||||||
this.contextmenu_help.Image = ((System.Drawing.Image)(resources.GetObject("contextmenu_help.Image")));
|
// contextmenu_help
|
||||||
this.contextmenu_help.Name = "contextmenu_help";
|
//
|
||||||
this.contextmenu_help.Size = new System.Drawing.Size(170, 22);
|
this.contextmenu_help.Image = ((System.Drawing.Image)(resources.GetObject("contextmenu_help.Image")));
|
||||||
this.contextmenu_help.Click += new System.EventHandler(this.Contextmenu_HelpClick);
|
this.contextmenu_help.Name = "contextmenu_help";
|
||||||
//
|
this.contextmenu_help.Size = new System.Drawing.Size(170, 22);
|
||||||
// contextmenu_donate
|
this.contextmenu_help.Click += new System.EventHandler(this.Contextmenu_HelpClick);
|
||||||
//
|
//
|
||||||
this.contextmenu_donate.Image = ((System.Drawing.Image)(resources.GetObject("contextmenu_donate.Image")));
|
// contextmenu_donate
|
||||||
this.contextmenu_donate.Name = "contextmenu_donate";
|
//
|
||||||
this.contextmenu_donate.Size = new System.Drawing.Size(170, 22);
|
this.contextmenu_donate.Image = ((System.Drawing.Image)(resources.GetObject("contextmenu_donate.Image")));
|
||||||
this.contextmenu_donate.Click += new System.EventHandler(this.Contextmenu_DonateClick);
|
this.contextmenu_donate.Name = "contextmenu_donate";
|
||||||
//
|
this.contextmenu_donate.Size = new System.Drawing.Size(170, 22);
|
||||||
// contextmenu_about
|
this.contextmenu_donate.Click += new System.EventHandler(this.Contextmenu_DonateClick);
|
||||||
//
|
//
|
||||||
this.contextmenu_about.Name = "contextmenu_about";
|
// contextmenu_about
|
||||||
this.contextmenu_about.Size = new System.Drawing.Size(170, 22);
|
//
|
||||||
this.contextmenu_about.Click += new System.EventHandler(this.Contextmenu_AboutClick);
|
this.contextmenu_about.Name = "contextmenu_about";
|
||||||
//
|
this.contextmenu_about.Size = new System.Drawing.Size(170, 22);
|
||||||
// toolStripCloseSeparator
|
this.contextmenu_about.Click += new System.EventHandler(this.Contextmenu_AboutClick);
|
||||||
//
|
//
|
||||||
this.toolStripCloseSeparator.Name = "toolStripCloseSeparator";
|
// toolStripCloseSeparator
|
||||||
this.toolStripCloseSeparator.Size = new System.Drawing.Size(167, 6);
|
//
|
||||||
//
|
this.toolStripCloseSeparator.Name = "toolStripCloseSeparator";
|
||||||
// contextmenu_exit
|
this.toolStripCloseSeparator.Size = new System.Drawing.Size(167, 6);
|
||||||
//
|
//
|
||||||
this.contextmenu_exit.Image = ((System.Drawing.Image)(resources.GetObject("contextmenu_exit.Image")));
|
// contextmenu_exit
|
||||||
this.contextmenu_exit.Name = "contextmenu_exit";
|
//
|
||||||
this.contextmenu_exit.Size = new System.Drawing.Size(170, 22);
|
this.contextmenu_exit.Image = ((System.Drawing.Image)(resources.GetObject("contextmenu_exit.Image")));
|
||||||
this.contextmenu_exit.Click += new System.EventHandler(this.Contextmenu_ExitClick);
|
this.contextmenu_exit.Name = "contextmenu_exit";
|
||||||
//
|
this.contextmenu_exit.Size = new System.Drawing.Size(170, 22);
|
||||||
// notifyIcon
|
this.contextmenu_exit.Click += new System.EventHandler(this.Contextmenu_ExitClick);
|
||||||
//
|
//
|
||||||
this.notifyIcon = new System.Windows.Forms.NotifyIcon(this.components);
|
// contextmenu_copyfilepath
|
||||||
this.notifyIcon.ContextMenuStrip = this.contextMenu;
|
//
|
||||||
this.notifyIcon.Text = "Greenshot";
|
this.contextmenu_copyfilepath.Image = ((System.Drawing.Image)(resources.GetObject("contextmenu_copyfilepath.Image")));
|
||||||
this.notifyIcon.MouseUp += new System.Windows.Forms.MouseEventHandler(this.NotifyIconClickTest);
|
this.contextmenu_copyfilepath.Name = "contextmenu_copyfilepath";
|
||||||
//
|
this.contextmenu_copyfilepath.Size = new System.Drawing.Size(170, 22);
|
||||||
// MainForm
|
this.contextmenu_copyfilepath.Click += new System.EventHandler(this.Contextmenu_CopyFilePathClick);
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
|
// contextmenu_copyfile
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
//
|
||||||
this.ClientSize = new System.Drawing.Size(0, 0);
|
this.contextmenu_copyfile.Image = ((System.Drawing.Image)(resources.GetObject("contextmenu_copyfile.Image")));
|
||||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
this.contextmenu_copyfile.Name = "contextmenu_copyfile";
|
||||||
this.LanguageKey = "application_title";
|
this.contextmenu_copyfile.Size = new System.Drawing.Size(170, 22);
|
||||||
this.Name = "MainForm";
|
this.contextmenu_copyfile.Click += new System.EventHandler(this.Contextmenu_CopyFileClick);
|
||||||
this.ShowIcon = false;
|
//
|
||||||
this.ShowInTaskbar = false;
|
// notifyIcon
|
||||||
this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
|
//
|
||||||
this.Activated += new System.EventHandler(this.MainFormActivated);
|
this.notifyIcon = new System.Windows.Forms.NotifyIcon(this.components);
|
||||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainFormFormClosing);
|
this.notifyIcon.ContextMenuStrip = this.contextMenu;
|
||||||
this.contextMenu.ResumeLayout(false);
|
this.notifyIcon.Text = "Greenshot";
|
||||||
this.ResumeLayout(false);
|
this.notifyIcon.MouseUp += new System.Windows.Forms.MouseEventHandler(this.NotifyIconClickTest);
|
||||||
}
|
//
|
||||||
private GreenshotToolStripMenuItem contextmenu_captureiefromlist;
|
// MainForm
|
||||||
private System.Windows.Forms.ToolStripSeparator toolStripOtherSourcesSeparator;
|
//
|
||||||
private GreenshotToolStripMenuItem contextmenu_capturewindowfromlist;
|
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
|
||||||
private System.Windows.Forms.ToolStripSeparator toolStripListCaptureSeparator;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
||||||
private GreenshotToolStripMenuItem contextmenu_openrecentcapture;
|
this.ClientSize = new System.Drawing.Size(0, 0);
|
||||||
private GreenshotToolStripMenuItem contextmenu_captureie;
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||||
private GreenshotToolStripMenuItem contextmenu_donate;
|
this.LanguageKey = "application_title";
|
||||||
private GreenshotToolStripMenuItem contextmenu_openfile;
|
this.Name = "MainForm";
|
||||||
private System.Windows.Forms.ToolStripSeparator toolStripPluginSeparator;
|
this.ShowIcon = false;
|
||||||
private GreenshotToolStripMenuItem contextmenu_captureclipboard;
|
this.ShowInTaskbar = false;
|
||||||
private GreenshotToolStripMenuItem contextmenu_quicksettings;
|
this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
|
||||||
private System.Windows.Forms.ToolStripSeparator toolStripMiscSeparator;
|
this.Activated += new System.EventHandler(this.MainFormActivated);
|
||||||
private GreenshotToolStripMenuItem contextmenu_help;
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainFormFormClosing);
|
||||||
private GreenshotToolStripMenuItem contextmenu_capturewindow;
|
this.contextMenu.ResumeLayout(false);
|
||||||
private System.Windows.Forms.ToolStripSeparator toolStripOpenFolderSeparator;
|
this.ResumeLayout(false);
|
||||||
private GreenshotToolStripMenuItem contextmenu_about;
|
}
|
||||||
private GreenshotToolStripMenuItem contextmenu_capturefullscreen;
|
private GreenshotToolStripMenuItem contextmenu_captureiefromlist;
|
||||||
private GreenshotToolStripMenuItem contextmenu_capturelastregion;
|
private System.Windows.Forms.ToolStripSeparator toolStripOtherSourcesSeparator;
|
||||||
private GreenshotToolStripMenuItem contextmenu_capturearea;
|
private GreenshotToolStripMenuItem contextmenu_capturewindowfromlist;
|
||||||
private System.Windows.Forms.NotifyIcon notifyIcon;
|
private System.Windows.Forms.ToolStripSeparator toolStripListCaptureSeparator;
|
||||||
private System.Windows.Forms.ToolStripSeparator toolStripCloseSeparator;
|
private GreenshotToolStripMenuItem contextmenu_openrecentcapture;
|
||||||
private GreenshotToolStripMenuItem contextmenu_exit;
|
private GreenshotToolStripMenuItem contextmenu_captureie;
|
||||||
private System.Windows.Forms.ContextMenuStrip contextMenu;
|
private GreenshotToolStripMenuItem contextmenu_donate;
|
||||||
private GreenshotToolStripMenuItem contextmenu_settings;
|
private GreenshotToolStripMenuItem contextmenu_openfile;
|
||||||
}
|
private System.Windows.Forms.ToolStripSeparator toolStripPluginSeparator;
|
||||||
}
|
private GreenshotToolStripMenuItem contextmenu_captureclipboard;
|
||||||
|
private GreenshotToolStripMenuItem contextmenu_quicksettings;
|
||||||
|
private System.Windows.Forms.ToolStripSeparator toolStripMiscSeparator;
|
||||||
|
private GreenshotToolStripMenuItem contextmenu_help;
|
||||||
|
private GreenshotToolStripMenuItem contextmenu_capturewindow;
|
||||||
|
private System.Windows.Forms.ToolStripSeparator toolStripOpenFolderSeparator;
|
||||||
|
private GreenshotToolStripMenuItem contextmenu_about;
|
||||||
|
private GreenshotToolStripMenuItem contextmenu_capturefullscreen;
|
||||||
|
private GreenshotToolStripMenuItem contextmenu_capturelastregion;
|
||||||
|
private GreenshotToolStripMenuItem contextmenu_capturearea;
|
||||||
|
private System.Windows.Forms.NotifyIcon notifyIcon;
|
||||||
|
private System.Windows.Forms.ToolStripSeparator toolStripCloseSeparator;
|
||||||
|
private GreenshotToolStripMenuItem contextmenu_exit;
|
||||||
|
private System.Windows.Forms.ContextMenuStrip contextMenu;
|
||||||
|
private GreenshotToolStripMenuItem contextmenu_settings;
|
||||||
|
private GreenshotToolStripMenuItem contextmenu_copyfilepath;
|
||||||
|
private GreenshotToolStripMenuItem contextmenu_copyfile;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue