mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
Changed IDestination, added a manuallyInitiated so the destination can change its behavior depending on the flag. An example use-case would be the word exporter: if the flag is false, which it would be if the word destination is set as THE destination, it would add to the current document if one is available otherwise create a new. This makes it possible to have a kind of session behavior.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1749 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
c092712561
commit
eb616472c4
24 changed files with 68 additions and 47 deletions
|
@ -92,9 +92,10 @@ namespace Greenshot.Plugin {
|
|||
/// <summary>
|
||||
/// If a capture is made, and the destination is enabled, this method is called.
|
||||
/// </summary>
|
||||
/// <param name="manuallyInitiated">true if the user selected this destination from a GUI, false if it was called as part of a process</param>
|
||||
/// <param name="surface"></param>
|
||||
/// <param name="captureDetails"></param>
|
||||
/// <returns>true if the destination has "exported" the capture</returns>
|
||||
bool ExportCapture(ISurface surface, ICaptureDetails captureDetails);
|
||||
bool ExportCapture(bool manuallyInitiated, ISurface surface, ICaptureDetails captureDetails);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue