mirror of
https://github.com/greenshot/greenshot
synced 2025-07-30 19:50:11 -07:00
Improved the support for dragging and dropping images from a website, now also parsing HTML img src information, to be able to download that image. For this we need the HtmlAgilityPack.dll (#294)
Removed a lot of dead code, and remove the old OCR code as we don't even know if it still works.
This commit is contained in:
parent
90cab1e8a3
commit
26fe579d31
151 changed files with 1138 additions and 8174 deletions
|
@ -34,25 +34,7 @@ namespace GreenshotPlugin.Core {
|
|||
/// </summary>
|
||||
public IList<WindowDetails> Items { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets all top level windows on the system.
|
||||
/// </summary>
|
||||
public WindowsEnumerator GetWindows() {
|
||||
GetWindows(IntPtr.Zero, null);
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets all child windows of the specified window
|
||||
/// </summary>
|
||||
/// <param name="parent">Window Handle to get children for</param>
|
||||
public WindowsEnumerator GetWindows(WindowDetails parent)
|
||||
{
|
||||
GetWindows(parent?.Handle ?? IntPtr.Zero, null);
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <summary>
|
||||
/// Gets all child windows of the specified window
|
||||
/// </summary>
|
||||
/// <param name="hWndParent">Window Handle to get children for</param>
|
||||
|
@ -69,7 +51,7 @@ namespace GreenshotPlugin.Core {
|
|||
parentText = title.ToString();
|
||||
}
|
||||
|
||||
List<WindowDetails> windows = new List<WindowDetails>();
|
||||
var windows = new List<WindowDetails>();
|
||||
foreach (var window in Items) {
|
||||
if (hasParent) {
|
||||
window.Text = parentText;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue