mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
Check spelling 0 0 21 (#22335)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user