[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

@@ -19,7 +19,7 @@ namespace Microsoft.Plugin.WindowWalker.Properties {
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class Resources {
@@ -60,6 +60,96 @@ namespace Microsoft.Plugin.WindowWalker.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to Close window.
/// </summary>
public static string wox_plugin_windowwalker_Close {
get {
return ResourceManager.GetString("wox_plugin_windowwalker_Close", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Desktop.
/// </summary>
public static string wox_plugin_windowwalker_Desktop {
get {
return ResourceManager.GetString("wox_plugin_windowwalker_Desktop", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Folder windows doesn&apos;t run in separate processes. (Klick to open Explorer properties.).
/// </summary>
public static string wox_plugin_windowwalker_ExplorerInfoSubTitle {
get {
return ResourceManager.GetString("wox_plugin_windowwalker_ExplorerInfoSubTitle", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Info: Killing the Explorer process isn&apos;t possible..
/// </summary>
public static string wox_plugin_windowwalker_ExplorerInfoTitle {
get {
return ResourceManager.GetString("wox_plugin_windowwalker_ExplorerInfoTitle", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Kill process.
/// </summary>
public static string wox_plugin_windowwalker_Kill {
get {
return ResourceManager.GetString("wox_plugin_windowwalker_Kill", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Your are going to kill the following process:.
/// </summary>
public static string wox_plugin_windowwalker_KillMessage {
get {
return ResourceManager.GetString("wox_plugin_windowwalker_KillMessage", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Continue?.
/// </summary>
public static string wox_plugin_windowwalker_KillMessageQuestion {
get {
return ResourceManager.GetString("wox_plugin_windowwalker_KillMessageQuestion", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Kill process confirmation.
/// </summary>
public static string wox_plugin_windowwalker_KillMessageTitle {
get {
return ResourceManager.GetString("wox_plugin_windowwalker_KillMessageTitle", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Because this is an app process, all instances of the app will be killed. Continue?.
/// </summary>
public static string wox_plugin_windowwalker_KillMessageUwp {
get {
return ResourceManager.GetString("wox_plugin_windowwalker_KillMessageUwp", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to No..
/// </summary>
public static string wox_plugin_windowwalker_Number {
get {
return ResourceManager.GetString("wox_plugin_windowwalker_Number", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Switches between open windows..
/// </summary>
@@ -78,12 +168,102 @@ namespace Microsoft.Plugin.WindowWalker.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to Process name.
/// </summary>
public static string wox_plugin_windowwalker_Process {
get {
return ResourceManager.GetString("wox_plugin_windowwalker_Process", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Process id.
/// </summary>
public static string wox_plugin_windowwalker_ProcessId {
get {
return ResourceManager.GetString("wox_plugin_windowwalker_ProcessId", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Running.
/// </summary>
public static string wox_plugin_windowwalker_running {
public static string wox_plugin_windowwalker_Running {
get {
return ResourceManager.GetString("wox_plugin_windowwalker_running", resourceCulture);
return ResourceManager.GetString("wox_plugin_windowwalker_Running", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Request confirmation when killing a process.
/// </summary>
public static string wox_plugin_windowwalker_SettingConfirmKillProcess {
get {
return ResourceManager.GetString("wox_plugin_windowwalker_SettingConfirmKillProcess", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Hide Explorer process information.
/// </summary>
public static string wox_plugin_windowwalker_SettingExplorerSettingInfo {
get {
return ResourceManager.GetString("wox_plugin_windowwalker_SettingExplorerSettingInfo", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Hide &quot;kill process&quot; button if additional permissions required.
/// </summary>
public static string wox_plugin_windowwalker_SettingHideKillProcess {
get {
return ResourceManager.GetString("wox_plugin_windowwalker_SettingHideKillProcess", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Kill process and its child processes.
/// </summary>
public static string wox_plugin_windowwalker_SettingKillProcessTree {
get {
return ResourceManager.GetString("wox_plugin_windowwalker_SettingKillProcessTree", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Stay open after closing windows and killing processes (Not working with kill process confirmation).
/// </summary>
public static string wox_plugin_windowwalker_SettingOpenAfterKillAndClose {
get {
return ResourceManager.GetString("wox_plugin_windowwalker_SettingOpenAfterKillAndClose", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Show only results from visible desktop.
/// </summary>
public static string wox_plugin_windowwalker_SettingResultsVisibleDesktop {
get {
return ResourceManager.GetString("wox_plugin_windowwalker_SettingResultsVisibleDesktop", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Show desktop name in subtitle (If two or more desktops exist).
/// </summary>
public static string wox_plugin_windowwalker_SettingSubtitleDesktopName {
get {
return ResourceManager.GetString("wox_plugin_windowwalker_SettingSubtitleDesktopName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Show process id in subtitle.
/// </summary>
public static string wox_plugin_windowwalker_SettingSubtitlePid {
get {
return ResourceManager.GetString("wox_plugin_windowwalker_SettingSubtitlePid", resourceCulture);
}
}
}

View File

@@ -123,7 +123,71 @@
<data name="wox_plugin_windowwalker_plugin_description" xml:space="preserve">
<value>Switches between open windows.</value>
</data>
<data name="wox_plugin_windowwalker_running" xml:space="preserve">
<data name="wox_plugin_windowwalker_Running" xml:space="preserve">
<value>Running</value>
</data>
<data name="wox_plugin_windowwalker_SettingConfirmKillProcess" xml:space="preserve">
<value>Request confirmation when killing a process</value>
</data>
<data name="wox_plugin_windowwalker_SettingExplorerSettingInfo" xml:space="preserve">
<value>Hide Explorer process information</value>
<comment>Explorer is here the program File Explorer</comment>
</data>
<data name="wox_plugin_windowwalker_SettingHideKillProcess" xml:space="preserve">
<value>Hide "kill process" button if additional permissions required</value>
</data>
<data name="wox_plugin_windowwalker_SettingResultsVisibleDesktop" xml:space="preserve">
<value>Show only results from visible desktop</value>
</data>
<data name="wox_plugin_windowwalker_SettingSubtitleDesktopName" xml:space="preserve">
<value>Show desktop name in subtitle (If two or more desktops exist)</value>
</data>
<data name="wox_plugin_windowwalker_SettingSubtitlePid" xml:space="preserve">
<value>Show process id in subtitle</value>
</data>
<data name="wox_plugin_windowwalker_SettingOpenAfterKillAndClose" xml:space="preserve">
<value>Stay open after closing windows and killing processes (Not working with kill process confirmation)</value>
</data>
<data name="wox_plugin_windowwalker_Desktop" xml:space="preserve">
<value>Desktop</value>
</data>
<data name="wox_plugin_windowwalker_Number" xml:space="preserve">
<value>No.</value>
<comment>Short version of "Number"</comment>
</data>
<data name="wox_plugin_windowwalker_Process" xml:space="preserve">
<value>Process name</value>
</data>
<data name="wox_plugin_windowwalker_ProcessId" xml:space="preserve">
<value>Process id</value>
</data>
<data name="wox_plugin_windowwalker_ExplorerInfoSubTitle" xml:space="preserve">
<value>Folder windows doesn't run in separate processes. (Klick to open Explorer properties.)</value>
<comment>Explorer is here the program File Explorer</comment>
</data>
<data name="wox_plugin_windowwalker_ExplorerInfoTitle" xml:space="preserve">
<value>Info: Killing the Explorer process isn't possible.</value>
<comment>Explorer is here the program File Explorer</comment>
</data>
<data name="wox_plugin_windowwalker_Close" xml:space="preserve">
<value>Close window</value>
</data>
<data name="wox_plugin_windowwalker_Kill" xml:space="preserve">
<value>Kill process</value>
</data>
<data name="wox_plugin_windowwalker_KillMessage" xml:space="preserve">
<value>Your are going to kill the following process:</value>
</data>
<data name="wox_plugin_windowwalker_KillMessageQuestion" xml:space="preserve">
<value>Continue?</value>
</data>
<data name="wox_plugin_windowwalker_KillMessageTitle" xml:space="preserve">
<value>Kill process confirmation</value>
</data>
<data name="wox_plugin_windowwalker_KillMessageUwp" xml:space="preserve">
<value>Because this is an app process, all instances of the app will be killed. Continue?</value>
</data>
<data name="wox_plugin_windowwalker_SettingKillProcessTree" xml:space="preserve">
<value>Kill process and its child processes</value>
</data>
</root>