PowerToys/src/common
stefansjfw 53f830bb38
Migrate FancyZones data persisting from Registry to JSON file (#1194)
* Migrate FancyZones data persisting from Registry to JSON file

* Address PR comment: Remove redundant check

* Addres PR comment: Remove unused Dpi and add CmdArgs enum

* Address PR comment: Make methods const and inline

* Address PR comments: Expose GenerateUniqueId function and use const ref instead of passing wstring by value

* Address PR comment: Use lamdba as callback

* Address PR comment: Move GenerateUniqueId to ZoneWindowUtils namespace

* Address PR comment: Use regular comparison instead of std::wstring::compare

* Address PR comment: Use std::wstring_view for tmp file paths

* Address PR comment: Use scoped lock when accessing member data

* Address PR comment: Remove typedefs to increase code readability

* Address PR comment: removed nullptr checks with corresponding tests

* Address PR comment: Move ZoneSet object instead of copying

* Address PR comment: Make FancyZonesData instance const where possible

* Remove unnecessary gutter variable during calculating zone coordinates

* Remove uneeded subclass

* Avoid unnecessary copying and reserve space for vector if possible

* Save FancyZones data after exiting editor

* App zone history (#18)

* added window and zone set ids to app zone history

* Rename JSON file

* Remove AppZoneHistory migration

* Move parsing of ZoneWindow independent temp files outside of it

* Unit tests update (#19)

* check device existence in map
* updated ZoneSet tests
* updated JsonHelpers tests

* Use single zone count information

* Remove uneeded tests

* Remove one more test

* Remove uneeded line

* Address PR comments - Missing whitespace

* Update zoneset data for new virtual desktops (#21)

* update active zone set with actual data

* Introduce Blank zone set (used to indicate that no layout applied yet). Move parsing completely outside of ZoneWindow.

* Fix unit tests to match modifications in implementation

* Fix applying layouts on startup (second monitor)

Co-authored-by: vldmr11080 <57061786+vldmr11080@users.noreply.github.com>
Co-authored-by: Seraphima <zykovas91@gmail.com>
2020-02-10 14:59:51 +01:00
..
notifications MSIX: implement initial version of notifications library (#1178) 2020-02-04 19:41:00 +03:00
notifications_winrt MSIX: implement initial version of notifications library (#1178) 2020-02-04 19:41:00 +03:00
Telemetry FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
UnitTests-CommonLib Settings unit tests (#921) 2019-12-12 18:24:00 +01:00
animation.cpp Fix cppcheck reported issues (#333) 2019-09-11 12:38:20 +02:00
animation.h Fix cppcheck reported issues (#333) 2019-09-11 12:38:20 +02:00
async_message_queue.h FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
common.cpp ShortcutGuide, FancyZones: split window filtering (#1225) 2020-02-07 15:53:57 +01:00
common.h ShortcutGuide, FancyZones: split window filtering (#1225) 2020-02-07 15:53:57 +01:00
common.vcxproj Common: remove hwnd_data_cache (#1223) 2020-02-06 18:04:10 +01:00
common.vcxproj.filters Common: remove hwnd_data_cache (#1223) 2020-02-06 18:04:10 +01:00
d2d_svg.cpp FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
d2d_svg.h FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
d2d_text.cpp FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
d2d_text.h FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
d2d_window.cpp FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
d2d_window.h FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
dpi_aware.cpp fancyzones: restrict dpi unaware windows horizontally to the current display to avoid unwanted resize 2019-12-17 15:37:10 +03:00
dpi_aware.h fancyzones: restrict dpi unaware windows horizontally to the current display to avoid unwanted resize 2019-12-17 15:37:10 +03:00
icon_helpers.cpp Shifted three functions to common (#1101) 2020-01-15 23:06:22 -08:00
icon_helpers.h Shifted three functions to common (#1101) 2020-01-15 23:06:22 -08:00
json.cpp Use WinRT JSON parser instead of custom cpprestsdk solution (#822) 2019-12-06 11:40:23 +03:00
json.h Use WinRT JSON parser instead of custom cpprestsdk solution (#822) 2019-12-06 11:40:23 +03:00
monitors.cpp PCH: remove headers which are actually could be changed (#950) 2019-12-17 11:21:46 +03:00
monitors.h FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
notifications.cpp MSIX: implement initial version of notifications library (#1178) 2020-02-04 19:41:00 +03:00
notifications.h MSIX: implement initial version of notifications library (#1178) 2020-02-04 19:41:00 +03:00
on_thread_executor.cpp initialize all OnThreadExecutor fields and clarify intent further (#701) 2019-11-12 18:29:54 +03:00
on_thread_executor.h initialize all OnThreadExecutor fields and clarify intent further (#701) 2019-11-12 18:29:54 +03:00
pch.cpp FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
pch.h PCH: remove headers which are actually could be changed (#950) 2019-12-17 11:21:46 +03:00
settings_helpers.cpp Use WinRT JSON parser instead of custom cpprestsdk solution (#822) 2019-12-06 11:40:23 +03:00
settings_helpers.h Migrate FancyZones data persisting from Registry to JSON file (#1194) 2020-02-10 14:59:51 +01:00
settings_objects.cpp Use WinRT JSON parser instead of custom cpprestsdk solution (#822) 2019-12-06 11:40:23 +03:00
settings_objects.h Use WinRT JSON parser instead of custom cpprestsdk solution (#822) 2019-12-06 11:40:23 +03:00
start_visible.cpp FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
start_visible.h FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
tasklist_positions.cpp Fix cppcheck reported issues (#333) 2019-09-11 12:38:20 +02:00
tasklist_positions.h FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
two_way_pipe_message_ipc.h FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
version.h Now working on 0.14.2 (#871) 2019-12-05 19:09:32 +01:00
window_helpers.cpp Shifted three functions to common (#1101) 2020-01-15 23:06:22 -08:00
window_helpers.h Shifted three functions to common (#1101) 2020-01-15 23:06:22 -08:00
windows_colors.cpp Add darkmode support for the settings window (#494) 2019-10-16 10:21:44 +02:00
windows_colors.h Add darkmode support for the settings window (#494) 2019-10-16 10:21:44 +02:00
winstore.cpp Runner: fix startup task state setting for MSIX (#1181) 2020-01-31 20:35:21 +03:00
winstore.h Runner: fix startup task state setting for MSIX (#1181) 2020-01-31 20:35:21 +03:00