mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 18:57:28 -07:00
Fixed file handling, fixed wrong order in the title of the editor, changed left-click handling of the context menu. Added a boolean in the ProcessCmdKey of the surface.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2327 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
c5fef12c9b
commit
2a26be0a37
4 changed files with 56 additions and 8 deletions
|
@ -86,24 +86,36 @@ namespace Greenshot.Helpers {
|
|||
public static void CaptureWindow(bool captureMouse) {
|
||||
new CaptureHelper(CaptureMode.ActiveWindow, captureMouse).MakeCapture();
|
||||
}
|
||||
|
||||
public static void CaptureWindow(WindowDetails windowToCapture) {
|
||||
CaptureHelper captureHelper = new CaptureHelper(CaptureMode.ActiveWindow);
|
||||
captureHelper.SelectedCaptureWindow = windowToCapture;
|
||||
captureHelper.MakeCapture();
|
||||
}
|
||||
|
||||
public static void CaptureWindowInteractive(bool captureMouse) {
|
||||
new CaptureHelper(CaptureMode.Window, captureMouse).MakeCapture();
|
||||
}
|
||||
|
||||
public static void CaptureFile(string filename) {
|
||||
new CaptureHelper(CaptureMode.File).MakeCapture(filename);
|
||||
}
|
||||
|
||||
public static void CaptureFile(string filename, IDestination destination) {
|
||||
new CaptureHelper(CaptureMode.File).AddDestination(destination).MakeCapture(filename);
|
||||
}
|
||||
|
||||
public static void ImportCapture(ICapture captureToImport) {
|
||||
CaptureHelper captureHelper = new CaptureHelper(CaptureMode.File);
|
||||
captureHelper.capture = captureToImport;
|
||||
captureHelper.HandleCapture();
|
||||
}
|
||||
|
||||
public CaptureHelper AddDestination(IDestination destination) {
|
||||
capture.CaptureDetails.AddDestination(destination);
|
||||
return this;
|
||||
}
|
||||
|
||||
public CaptureHelper(CaptureMode captureMode) {
|
||||
this.captureMode = captureMode;
|
||||
capture = new Capture();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue