PowerToys/src/common/utils
Andrey Nekrasov 78d65a87cd
[New PowerToy] Add Screen Ruler module for measuring screen contents (#19701)
* [MeasureTool] initial commit

* [chore] clean up needless WindowsTargetPlatformVersion overrides from projects

* [MeasureTool] initial implementation

* Fix build errors

* Update vsconfig for needed Windows 10 SDK versions

* fix spellchecker

* another spellcheck fix

* more spellcheck errors

* Fix measurement being off by 1 on both ends

* UI fixes

* Add feet to crosses

* Remove anti-aliasing, as it's creating artifacts

* Use pixel tolerance from settings

* Tooltip updates

* Restore antialiasing to draw the tooltip

* remove comment for spell check

* Updated icons

* Icon updates

* Improve measurement accuracy and display

* Fix spellchecker

* Add less precise drawing on continuous warning

* Add setting for turning cross feet on

* Swap LMB/RMB for interaction

* Uncheck active tool's RadioButton when it exits

* activation hotkey toggles UI instead of just launching it

* track runner process and exit when it exits

* add proj ref

* toolbar is interactive during measurements

* always open toolbar on the main display

* refactor colors

* refactor edge detection & overlay ui

* refactor overlay ui even more

* simplify state structs

* multimonitor preparation: eliminate global state

* prepare for merge

* spelling

* proper thread termination + minor fixes

* multimonitor: launch tools on all monitors

* multimonitor support: track cursor position

* spell

* fix powertoys!

* ScreenSize -> Box

* add shadow effect for textbox

* spell

* fix debug mode

* dynamic text box size based on text layout metrics

* add mouse wheel to adjust pixel tolerance + per channel detection algorithm setting

* spelling

* fix per channel distance calculations

* update installer deps + spelling

* tool activation telemetry

* update assets and try to fix build

* use × instead of x

* allow multiple measurements with bounds tool with shift-click

* move #define DEBUG_OVERLAY in an appropriate space

* spell-checked

* update issue template + refactor text box drawing

* implement custom renderer and make × semiopaque

* spelling

* pass dpiScale to x renderer

* add sse2neon license

* update OOBE

* move license to NOTICE

* appropriate module preview image

* localization for AutomationPeer

* increase default pixel tolerance from 5 to 30

* add PowerToys.MeasureToolUI.exe to bugreport

* explicitly set texture dims

* clarify continuous capture description

* fix a real spelling error!

* cleanup

* clean up x2

* debug texture

* fix texture access

* fix saveasbitmap

* improve sum of all channel diffs method score calc

* optimize

* ContinuousCapture is enabled by default to avoid confusion

* build fix

* draw captured screen in a non continuous mode

* cast a spell...

* merge fix

* disable stroboscopic effect

* split global/perScreen measure state and minor improvements

* spelling

* fix comment

* primary monitor debug also active for the bounds tool

* dpi from rt for custom renderer

* add comment

* fix off by 1

* make backround convertion success for non continuous mode non-essential

* fix spelling

* overlay window covers taskbar

* fix CI

* revert taskbar covering

* fix CI

* fix ci again

* fix 2

* fix ci

* CI fix

* fix arm ci

* cleanup cursor convertion between coordinate spaces

* fix spelling

* Fix signing

* Fix MeasureToolUI version

* Fix core version

* fix race condition in system internals which happens during concurrent d3d/d2d resource creation

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: Niels Laute <niels.laute@live.nl>
2022-08-27 02:17:20 +03:00
..
appMutex.h [runner] removed outdated MSIX code (#11450) 2021-06-04 00:20:11 +03:00
color.h [FindMyMouse]Add additional settings (#14590) 2021-11-23 16:52:17 +00:00
com_object_factory.h common: refactor common library pt2 (#8588) 2020-12-15 15:16:09 +03:00
elevation.h [Installer]Upgrade to Windows App SDK 1.1.0 (#18603) 2022-06-04 23:30:34 +01:00
EventLocker.h [KBM] Migrate Engine and Editor into separate processes (#10774) 2021-04-26 21:01:38 +02:00
EventWaiter.h [KBM] Migrate Engine and Editor into separate processes (#10774) 2021-04-26 21:01:38 +02:00
excluded_apps.h [FancyZones] Child windows support (#16507) 2022-02-23 17:25:28 +03:00
exec.h common: refactor common library pt2 (#8588) 2020-12-15 15:16:09 +03:00
game_mode.h [FindMyMouse]Do not activate on game mode (#13990) 2021-10-25 19:39:48 +01:00
HDropIterator.h [PowerRename] Fluent UX (#13678) 2021-10-25 14:40:19 +01:00
HttpClient.h Dev/yuyoyuppe/autoupdate polishing (#11693) 2021-06-14 12:55:59 +03:00
json.h common: refactor common library pt2 (#8588) 2020-12-15 15:16:09 +03:00
logger_helper.h [KBM] Migrate Engine and Editor into separate processes (#10774) 2021-04-26 21:01:38 +02:00
modulesRegistry.h [Installer]Don't enable pdf preview by default (#17274) 2022-03-25 21:01:09 +00:00
MsiUtils.h Dev/yuyoyuppe/autoupdate polishing (#11693) 2021-06-14 12:55:59 +03:00
os-detect.h [File Explorer Add-ons] remove old settings support (#10857) 2021-04-21 12:16:01 +02:00
package.h [PowerRename][ImageResizer] Tier1 Win11 Context menu (#19000) 2022-06-30 22:10:14 +02:00
process_path.h [FancyZones] Open window in a zone fix (#18193) 2022-05-13 14:06:11 +01:00
processApi.h build: Treat warnings as errors in the remaining projects (#8689) 2020-12-21 18:51:48 +03:00
ProcessWaiter.h [KBM] Migrate Engine and Editor into separate processes (#10774) 2021-04-26 21:01:38 +02:00
registry.h [SvgThumbnail]Register as a picture kind (#17080) 2022-03-25 10:05:37 +00:00
resources.h common: refactor common library pt2 (#8588) 2020-12-15 15:16:09 +03:00
serialized.h [New PowerToy] Add Screen Ruler module for measuring screen contents (#19701) 2022-08-27 02:17:20 +03:00
string_utils.h [Updating] Add versioning to UpdateState.json (#12744) 2021-08-12 14:53:51 +03:00
timeutil.h Report tool improvements (#8709) 2020-12-22 17:15:46 +03:00
UnhandledExceptionHandler.h [ARM64] UnhandledExceptionHandler ARM64 support (#17587) 2022-04-08 10:19:42 +01:00
winapi_error.h [New PowerToy] Add Screen Ruler module for measuring screen contents (#19701) 2022-08-27 02:17:20 +03:00
window.h [New PowerToy] Add Screen Ruler module for measuring screen contents (#19701) 2022-08-27 02:17:20 +03:00