[PT Run] VirtualDesktopHelper & WindowWalker improvements (#16325)

* Import vdh from poc

* last changes

* push changes

* small change

* add error handling to vdh

* last changes

* make spellchecker happy

* last changes

* last changes

* spell check

* fix settings defaults

* Improve WindowWalkerSettings class

* add comment

* New settings and improvements

* new features

* subtitle and tool tip

* spell fixes

* small fixes

* fixes

* Explorer info

* spell fixes

* fixes and CloseWindow feature

* last changes

* first part of implementing KillProcess

* killProcess Part 2 & Fixes

* text fix and installer

* update access modifiers

* some fixes

* update dev docs

* fix dev docs

* dev doc change

* dev docs: add missed infos

* dev docs: add link

* Update src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Components/WindowWalkerSettings.cs

* fix build

* resolve feedback

* fix settings

* add tests
This commit is contained in:
Heiko
2022-03-07 12:45:29 +01:00
committed by GitHub
parent 27611593bd
commit e8363a3be1
33 changed files with 1764 additions and 103 deletions

View File

@@ -10,12 +10,12 @@ namespace Microsoft.Plugin.WindowWalker.Components
/// <summary>
/// Contains search result windows with each window including the reason why the result was included
/// </summary>
public class SearchResult
internal class SearchResult
{
/// <summary>
/// Gets the actual window reference for the search result
/// </summary>
public Window Result
internal Window Result
{
get;
private set;
@@ -24,7 +24,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
/// <summary>
/// Gets the list of indexes of the matching characters for the search in the title window
/// </summary>
public List<int> SearchMatchesInTitle
internal List<int> SearchMatchesInTitle
{
get;
private set;
@@ -34,7 +34,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
/// Gets the list of indexes of the matching characters for the search in the
/// name of the process
/// </summary>
public List<int> SearchMatchesInProcessName
internal List<int> SearchMatchesInProcessName
{
get;
private set;
@@ -43,7 +43,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
/// <summary>
/// Gets the type of match (shortcut, fuzzy or nothing)
/// </summary>
public SearchType SearchResultMatchType
internal SearchType SearchResultMatchType
{
get;
private set;
@@ -52,7 +52,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
/// <summary>
/// Gets a score indicating how well this matches what we are looking for
/// </summary>
public int Score
internal int Score
{
get;
private set;
@@ -61,7 +61,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
/// <summary>
/// Gets the source of where the best score was found
/// </summary>
public TextType BestScoreSource
internal TextType BestScoreSource
{
get;
private set;
@@ -71,7 +71,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
/// Initializes a new instance of the <see cref="SearchResult"/> class.
/// Constructor
/// </summary>
public SearchResult(Window window, List<int> matchesInTitle, List<int> matchesInProcessName, SearchType matchType)
internal SearchResult(Window window, List<int> matchesInTitle, List<int> matchesInProcessName, SearchType matchType)
{
Result = window;
SearchMatchesInTitle = matchesInTitle;
@@ -104,7 +104,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
/// <summary>
/// The type of text that a string represents
/// </summary>
public enum TextType
internal enum TextType
{
ProcessName,
WindowTitle,
@@ -113,7 +113,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
/// <summary>
/// The type of search
/// </summary>
public enum SearchType
internal enum SearchType
{
/// <summary>
/// the search string is empty, which means all open windows are