Check spelling 0 0 21 (#22335)

This commit is contained in:
Josh Soref
2022-11-29 14:41:22 -05:00
committed by GitHub
parent ca8faf00c2
commit 150e7d40dd
37 changed files with 862 additions and 514 deletions

View File

@@ -87,7 +87,7 @@ public:
// Return the configured status for the gpo policy for the module
virtual powertoys_gpo::gpo_rule_configured_t gpo_policy_enabled_configuration() override
{
return powertoys_gpo::getConfiguredMouseHightlighterEnabledValue();
return powertoys_gpo::getConfiguredMouseHighlighterEnabledValue();
}
// Return JSON with the configuration options.

View File

@@ -435,7 +435,7 @@ void FancyZones::WindowCreated(HWND window) noexcept
{
// window is recreated after switching virtual desktop
// avoid moving already opened windows after switching vd
bool isMoved = FancyZonesWindowProperties::RetreiveMovedOnOpeningProperty(window);
bool isMoved = FancyZonesWindowProperties::RetrieveMovedOnOpeningProperty(window);
if (!isMoved)
{
FancyZonesWindowProperties::StampMovedOnOpeningProperty(window);

View File

@@ -467,7 +467,7 @@ bool AppliedLayouts::ApplyDefaultLayout(const FancyZonesDataTypes::WorkAreaId& d
return false;
}
MonitorConfiguraionType type = MonitorConfiguraionType::Horizontal;
MonitorConfigurationType type = MonitorConfigurationType::Horizontal;
MONITORINFOEX monitorInfo;
monitorInfo.cbSize = sizeof(monitorInfo);
if (GetMonitorInfo(deviceId.monitorId.monitor, &monitorInfo))
@@ -476,7 +476,7 @@ bool AppliedLayouts::ApplyDefaultLayout(const FancyZonesDataTypes::WorkAreaId& d
LONG height = monitorInfo.rcMonitor.bottom - monitorInfo.rcMonitor.top;
if (height > width)
{
type = MonitorConfiguraionType::Vertical;
type = MonitorConfigurationType::Vertical;
}
}

View File

@@ -9,23 +9,23 @@
namespace DefaultLayoutsJsonUtils
{
MonitorConfiguraionType TypeFromString(const std::wstring& data)
MonitorConfigurationType TypeFromString(const std::wstring& data)
{
if (data == L"vertical")
{
return MonitorConfiguraionType::Vertical;
return MonitorConfigurationType::Vertical;
}
return MonitorConfiguraionType::Horizontal;
return MonitorConfigurationType::Horizontal;
}
std::wstring TypeToString(MonitorConfiguraionType type)
std::wstring TypeToString(MonitorConfigurationType type)
{
switch (type)
{
case MonitorConfiguraionType::Horizontal:
case MonitorConfigurationType::Horizontal:
return L"horizontal";
case MonitorConfiguraionType::Vertical:
case MonitorConfigurationType::Vertical:
return L"vertical";
default:
return L"horizontal";
@@ -80,7 +80,7 @@ namespace DefaultLayoutsJsonUtils
struct DefaultLayoutJSON
{
MonitorConfiguraionType monitorConfigurationType{ MonitorConfiguraionType::Horizontal };
MonitorConfigurationType monitorConfigurationType{ MonitorConfigurationType::Horizontal };
LayoutData layout{};
static std::optional<DefaultLayoutJSON> FromJson(const json::JsonObject& json)
@@ -117,7 +117,7 @@ namespace DefaultLayoutsJsonUtils
{
if (auto obj = DefaultLayoutJSON::FromJson(layouts.GetObjectAt(i)); obj.has_value())
{
map[static_cast<MonitorConfiguraionType>(obj->monitorConfigurationType)] = std::move(obj->layout);
map[static_cast<MonitorConfigurationType>(obj->monitorConfigurationType)] = std::move(obj->layout);
}
}
@@ -163,7 +163,7 @@ void DefaultLayouts::LoadData()
}
}
LayoutData DefaultLayouts::GetDefaultLayout(MonitorConfiguraionType type) const noexcept
LayoutData DefaultLayouts::GetDefaultLayout(MonitorConfigurationType type) const noexcept
{
auto iter = m_layouts.find(type);
if (iter != m_layouts.end())

View File

@@ -22,7 +22,7 @@ namespace NonLocalizable
}
}
enum class MonitorConfiguraionType
enum class MonitorConfigurationType
{
Horizontal = 0,
Vertical
@@ -31,7 +31,7 @@ enum class MonitorConfiguraionType
class DefaultLayouts
{
public:
using TDefaultLayoutsContainer = std::map<MonitorConfiguraionType, LayoutData>;
using TDefaultLayoutsContainer = std::map<MonitorConfigurationType, LayoutData>;
static DefaultLayouts& instance();
@@ -46,7 +46,7 @@ public:
void LoadData();
LayoutData GetDefaultLayout(MonitorConfiguraionType type = MonitorConfiguraionType::Horizontal) const noexcept;
LayoutData GetDefaultLayout(MonitorConfigurationType type = MonitorConfigurationType::Horizontal) const noexcept;
private:
DefaultLayouts();

View File

@@ -88,7 +88,7 @@ void FancyZonesWindowProperties::StampMovedOnOpeningProperty(HWND window)
::SetPropW(window, ZonedWindowProperties::PropertyMovedOnOpening, (HANDLE)1);
}
bool FancyZonesWindowProperties::RetreiveMovedOnOpeningProperty(HWND window)
bool FancyZonesWindowProperties::RetrieveMovedOnOpeningProperty(HWND window)
{
HANDLE handle = ::GetProp(window, ZonedWindowProperties::PropertyMovedOnOpening);
return handle != nullptr;

View File

@@ -23,7 +23,7 @@ namespace FancyZonesWindowProperties
ZoneIndexSet RetrieveZoneIndexProperty(HWND window);
void StampMovedOnOpeningProperty(HWND window);
bool RetreiveMovedOnOpeningProperty(HWND window);
bool RetrieveMovedOnOpeningProperty(HWND window);
std::optional<size_t> GetTabSortKeyWithinZone(HWND window);
void SetTabSortKeyWithinZone(HWND window, std::optional<size_t> tabSortKeyWithinZone);

View File

@@ -19,8 +19,8 @@ public:
static void EditorLaunched(int value) noexcept;
static void Error(const DWORD errorCode, std::wstring errorMessage, std::wstring methodName) noexcept;
static void QuickLayoutSwitched(bool shortcutUsed) noexcept;
static void SnapNewWindowIntoZone(Layout* activeaLayout, LayoutAssignedWindows* layoutWindows) noexcept;
static void KeyboardSnapWindowToZone(Layout* activeaLayout, LayoutAssignedWindows* layoutWindows) noexcept;
static void SnapNewWindowIntoZone(Layout* activeLayout, LayoutAssignedWindows* layoutWindows) noexcept;
static void KeyboardSnapWindowToZone(Layout* activeLayout, LayoutAssignedWindows* layoutWindows) noexcept;
};
static void SettingsTelemetry(const Settings& settings) noexcept;

View File

@@ -63,7 +63,7 @@ namespace FancyZonesUnitTests
.uuid = FancyZonesUtils::GuidFromString(L"{ACE817FD-2C51-4E13-903A-84CAB86FD17C}").value(),
.type = FancyZonesDataTypes::ZoneSetLayoutType::Custom
};
Assert::IsTrue(horizontal == DefaultLayouts::instance().GetDefaultLayout(MonitorConfiguraionType::Horizontal));
Assert::IsTrue(horizontal == DefaultLayouts::instance().GetDefaultLayout(MonitorConfigurationType::Horizontal));
LayoutData vertical{
.uuid = GUID_NULL,
@@ -73,7 +73,7 @@ namespace FancyZonesUnitTests
.zoneCount = 4,
.sensitivityRadius = 30
};
Assert::IsTrue(vertical == DefaultLayouts::instance().GetDefaultLayout(MonitorConfiguraionType::Vertical));
Assert::IsTrue(vertical == DefaultLayouts::instance().GetDefaultLayout(MonitorConfigurationType::Vertical));
}
TEST_METHOD (DefaultLayoutsParseEmpty)
@@ -96,8 +96,8 @@ namespace FancyZonesUnitTests
.sensitivityRadius = DefaultValues::SensitivityRadius
};
Assert::IsTrue(priorityGrid == DefaultLayouts::instance().GetDefaultLayout(MonitorConfiguraionType::Horizontal));
Assert::IsTrue(priorityGrid == DefaultLayouts::instance().GetDefaultLayout(MonitorConfiguraionType::Vertical));
Assert::IsTrue(priorityGrid == DefaultLayouts::instance().GetDefaultLayout(MonitorConfigurationType::Horizontal));
Assert::IsTrue(priorityGrid == DefaultLayouts::instance().GetDefaultLayout(MonitorConfigurationType::Vertical));
}
TEST_METHOD (DefaultLayoutsNoFile)
@@ -114,8 +114,8 @@ namespace FancyZonesUnitTests
.sensitivityRadius = DefaultValues::SensitivityRadius
};
Assert::IsTrue(priorityGrid == DefaultLayouts::instance().GetDefaultLayout(MonitorConfiguraionType::Horizontal));
Assert::IsTrue(priorityGrid == DefaultLayouts::instance().GetDefaultLayout(MonitorConfiguraionType::Vertical));
Assert::IsTrue(priorityGrid == DefaultLayouts::instance().GetDefaultLayout(MonitorConfigurationType::Horizontal));
Assert::IsTrue(priorityGrid == DefaultLayouts::instance().GetDefaultLayout(MonitorConfigurationType::Vertical));
}
};
}

View File

@@ -119,7 +119,7 @@ public:
virtual bool is_enabled_by_default() const { return true; }
/* Provides the GPO configuration value for the module. This should be overriden by the module interface to get the proper gpo policy setting. */
/* Provides the GPO configuration value for the module. This should be overridden by the module interface to get the proper gpo policy setting. */
virtual powertoys_gpo::gpo_rule_configured_t gpo_policy_enabled_configuration()
{
return powertoys_gpo::gpo_rule_configured_not_configured;

View File

@@ -192,9 +192,9 @@ void SingleKeyRemapControl::AddNewControlKeyRemapRow(StackPanel& parent, std::ve
deleteRemapKeys.SetValue(Automation::AutomationProperties::NameProperty(), box_value(GET_RESOURCE_STRING(IDS_DELETE_REMAPPING_BUTTON)));
// Add tooltip for delete button which would appear on hover
ToolTip deleteRemapKeystoolTip;
deleteRemapKeystoolTip.Content(box_value(GET_RESOURCE_STRING(IDS_DELETE_REMAPPING_BUTTON)));
ToolTipService::SetToolTip(deleteRemapKeys, deleteRemapKeystoolTip);
ToolTip deleteRemapKeysToolTip;
deleteRemapKeysToolTip.Content(box_value(GET_RESOURCE_STRING(IDS_DELETE_REMAPPING_BUTTON)));
ToolTipService::SetToolTip(deleteRemapKeys, deleteRemapKeysToolTip);
row.Children().Append(deleteRemapKeys);
try
{

View File

@@ -108,7 +108,7 @@ namespace winrt::PowerToys::PowerAccentKeyboardService::implementation
{
std::lock_guard<std::mutex> lock(m_mutex_excluded_apps);
m_settings.excludedApps = std::move(excludedApps);
m_prevForegrndAppExcl = { NULL, false };
m_prevForegroundAppExcl = { NULL, false };
}
}
@@ -118,25 +118,25 @@ namespace winrt::PowerToys::PowerAccentKeyboardService::implementation
if (m_settings.excludedApps.empty())
{
m_prevForegrndAppExcl = { NULL, false };
m_prevForegroundAppExcl = { NULL, false };
return false;
}
if (HWND foregroundApp{ GetForegroundWindow() })
{
if (m_prevForegrndAppExcl.first == foregroundApp)
if (m_prevForegroundAppExcl.first == foregroundApp)
{
return m_prevForegrndAppExcl.second;
return m_prevForegroundAppExcl.second;
}
auto processPath = get_process_path(foregroundApp);
CharUpperBuffW(processPath.data(), (DWORD)processPath.length());
m_prevForegrndAppExcl = { foregroundApp,
m_prevForegroundAppExcl = { foregroundApp,
find_app_name_in_path(processPath, m_settings.excludedApps) };
return m_prevForegrndAppExcl.second;
return m_prevForegroundAppExcl.second;
}
m_prevForegrndAppExcl = { NULL, false };
m_prevForegroundAppExcl = { NULL, false };
return false;
}

View File

@@ -60,7 +60,7 @@ namespace winrt::PowerToys::PowerAccentKeyboardService::implementation
bool m_rightShiftPressed;
std::mutex m_mutex_excluded_apps;
std::pair<HWND, bool> m_prevForegrndAppExcl{ NULL, false };
std::pair<HWND, bool> m_prevForegroundAppExcl{ NULL, false };
static inline const std::vector<LetterKey> letters = { LetterKey::VK_0,
LetterKey::VK_1,

View File

@@ -38,7 +38,7 @@
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
</PropertyGroup>
<PropertyGroup>
<!-- Disable missing comment warning. WinRT/C++ libraries added won't have comments on thier reflections. -->
<!-- Disable missing comment warning. WinRT/C++ libraries added won't have comments on their reflections. -->
<NoWarn>$(NoWarn);1591</NoWarn>
</PropertyGroup>

View File

@@ -25,7 +25,7 @@
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
</PropertyGroup>
<PropertyGroup>
<!-- Disable missing comment warning. WinRT/C++ libraries added won't have comments on thier reflections. -->
<!-- Disable missing comment warning. WinRT/C++ libraries added won't have comments on their reflections. -->
<NoWarn>$(NoWarn);1591</NoWarn>
</PropertyGroup>

View File

@@ -44,7 +44,7 @@
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
</PropertyGroup>
<PropertyGroup>
<!-- Disable missing comment warning. WinRT/C++ libraries added won't have comments on thier reflections. -->
<!-- Disable missing comment warning. WinRT/C++ libraries added won't have comments on their reflections. -->
<NoWarn>$(NoWarn);1591</NoWarn>
</PropertyGroup>

View File

@@ -33,7 +33,7 @@
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
</PropertyGroup>
<PropertyGroup>
<!-- Disable missing comment warning. WinRT/C++ libraries added won't have comments on thier reflections. -->
<!-- Disable missing comment warning. WinRT/C++ libraries added won't have comments on their reflections. -->
<NoWarn>$(NoWarn);1591</NoWarn>
</PropertyGroup>

View File

@@ -38,7 +38,7 @@
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
</PropertyGroup>
<PropertyGroup>
<!-- Disable missing comment warning. WinRT/C++ libraries added won't have comments on thier reflections. -->
<!-- Disable missing comment warning. WinRT/C++ libraries added won't have comments on their reflections. -->
<NoWarn>$(NoWarn);1591</NoWarn>
</PropertyGroup>

View File

@@ -24,7 +24,7 @@
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
</PropertyGroup>
<PropertyGroup>
<!-- Disable missing comment warning. WinRT/C++ libraries added won't have comments on thier reflections. -->
<!-- Disable missing comment warning. WinRT/C++ libraries added won't have comments on their reflections. -->
<NoWarn>$(NoWarn);1591</NoWarn>
</PropertyGroup>

View File

@@ -25,7 +25,7 @@
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
</PropertyGroup>
<PropertyGroup>
<!-- Disable missing comment warning. WinRT/C++ libraries added won't have comments on thier reflections. -->
<!-- Disable missing comment warning. WinRT/C++ libraries added won't have comments on their reflections. -->
<NoWarn>$(NoWarn);1591</NoWarn>
</PropertyGroup>

View File

@@ -39,7 +39,7 @@
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
</PropertyGroup>
<PropertyGroup>
<!-- Disable missing comment warning. WinRT/C++ libraries added won't have comments on thier reflections. -->
<!-- Disable missing comment warning. WinRT/C++ libraries added won't have comments on their reflections. -->
<NoWarn>$(NoWarn);1591</NoWarn>
</PropertyGroup>

View File

@@ -27,7 +27,7 @@
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
</PropertyGroup>
<PropertyGroup>
<!-- Disable missing comment warning. WinRT/C++ libraries added won't have comments on thier reflections. -->
<!-- Disable missing comment warning. WinRT/C++ libraries added won't have comments on their reflections. -->
<NoWarn>$(NoWarn);1591</NoWarn>
</PropertyGroup>