[New Utility]Crop And Lock (#27832)

* [CropAndLock]Original POC code dump

* Project rename and delete solution

* Remove unused architectures

* Update cppwinrt to be in line with the solution

* Add to PowerToys solution and fix build errors

* Initial module interface empty project

* Module skeleton based on AlwaysOnTop

* Add loggers to module interface

* Add crop and lock to the runner

* Enable starts and disable kills the process

* Events reacting to hotkeys

* Main application reacting to events

* Initialize unhandled exception handling

* Singleton in line with other projects

* Also exit when PowerToys exit is detected

* Create Settings page

* React to shortcut changes in Settings

* Disable Crop and Lock through an Event

* Disable running Crop and Lock standalone

* Remove Crop and Lock tray icon

* Module Interface dll version

* Fix main app resource file to include version

* Make pch conditional on CI build

* Add to signing

* Remove settings screen opened by removed tray icon

* Fix spellcheck

* Yet another fix for spellcheck

* Fix disabling utility

* Fix solution build configurations

* Fix C++ analyzer errors

* Try to fix pre-compiled header CI errors

* Fix crash while exiting with an active reparent window

* Fix missing reference when building in release CI

* Add OOBE page

* GPO: Add admx and adml file changes

* GPO: react to changes in GPO

* Add quick access flyout menu entry

* Use Crop And Lock icon

* Use actual images for Settings and OOBE

* Module and app telemetry

* Add entry to README.md

* Add to process lists

* Additional logging

* Attribution in Settings page

* Add attribution to Community.md

* Fix spellcheck

* Fix typo in strings

* Fix crash when window handle is no longer valid

* Update COMMUNITY.md

* Fix supportedOS in manifest

* Don't show msgbox if detecting second instance

* Remove unused hotkey

* Tweak attribution

* Fix attribution spellcheck
This commit is contained in:
Jaime Bernardo
2023-08-10 10:46:33 +01:00
committed by GitHub
parent d2c5b365fa
commit 7ecfc58caa
73 changed files with 3006 additions and 13 deletions

View File

@@ -2719,6 +2719,59 @@ Right-click to remove the key combination, thereby deactivating the shortcut.</v
<value>On</value>
<comment>The state of a ToggleSwitch when it's on</comment>
</data>
<data name="CropAndLock.ModuleDescription" xml:space="preserve">
<value>Crop And Lock allows you to crop a current application into a smaller window or just create a thumbnail. Focus the target window and press the shortcut to start cropping.</value>
<comment>"Crop And Lock" is the name of the utility</comment>
</data>
<data name="CropAndLock.ModuleTitle" xml:space="preserve">
<value>Crop And Lock </value>
<comment>"Crop And Lock" is the name of the utility</comment>
</data>
<data name="CropAndLock_Activation_GroupSettings.Header" xml:space="preserve">
<value>Activation</value>
</data>
<data name="CropAndLock_EnableToggleControl_HeaderText.Header" xml:space="preserve">
<value>Enable Crop And Lock</value>
<comment>"Crop And Lock" is the name of the utility</comment>
</data>
<data name="Shell_CropAndLock.Content" xml:space="preserve">
<value>Crop And Lock</value>
<comment>"Crop And Lock" is the name of the utility</comment>
</data>
<data name="LearnMore_CropAndLock.Text" xml:space="preserve">
<value>Learn more about Crop And Lock</value>
<comment>"Crop And Lock" is the name of the utility</comment>
</data>
<data name="CropAndLock_ReparentActivation_Shortcut.Header" xml:space="preserve">
<value>Reparent shortcut</value>
</data>
<data name="CropAndLock_ReparentActivation_Shortcut.Description" xml:space="preserve">
<value>Shortcut to crop an application's window into a cropped window. This is experimental and can cause issues with some applications, since the cropped window will contain the original application window.</value>
</data>
<data name="CropAndLock_ThumbnailActivation_Shortcut.Header" xml:space="preserve">
<value>Thumbnail shortcut</value>
</data>
<data name="CropAndLock_ThumbnailActivation_Shortcut.Description" xml:space="preserve">
<value>Shortcut to crop and create a thumbnail of another window. The application isn't controllable through the thumbnail but it'll have less compatibility issues. </value>
</data>
<data name="CropAndLock.SecondaryLinksHeader" xml:space="preserve">
<value>Attribution</value>
<comment>giving credit to the projects this utility was based on</comment>
</data>
<data name="Oobe_CropAndLock.Title" xml:space="preserve">
<value>Crop And Lock</value>
<comment>"Crop And Lock" is the name of the utility</comment>
</data>
<data name="Oobe_CropAndLock.Description" xml:space="preserve">
<value>Crop And Lock allows you to crop a current application into a smaller window or just create a thumbnail. Focus the target window and press the shortcut to start cropping.</value>
<comment>"Crop And Lock" is the name of the utility</comment>
</data>
<data name="Oobe_CropAndLock_HowToUse_Thumbnail.Text" xml:space="preserve">
<value>to crop and create a thumbnail of another window. The application isn't controllable through the thumbnail but it'll have less compatibility issues.</value>
</data>
<data name="Oobe_CropAndLock_HowToUse_Reparent.Text" xml:space="preserve">
<value>to crop an application's window into a cropped window. This is experimental and can cause issues with some applications, since the cropped window will contain the original application window.</value>
</data>
<data name="AlwaysOnTop.ModuleDescription" xml:space="preserve">
<value>Always On Top is a quick and easy way to pin windows on top.</value>
<comment>"Always On Top" is the name of the utility</comment>