2019-09-05 00:26:26 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#define ZONE_STAMP L"FancyZones_zone"
|
2019-10-02 23:18:55 +08:00
|
|
|
#include <common/settings_objects.h>
|
2019-09-05 00:26:26 +08:00
|
|
|
|
|
|
|
struct Settings
|
|
|
|
{
|
|
|
|
// The values specified here are the defaults.
|
|
|
|
bool shiftDrag = true;
|
2020-05-07 07:21:32 +08:00
|
|
|
bool mouseSwitch = false;
|
2019-09-05 00:26:26 +08:00
|
|
|
bool displayChange_moveWindows = false;
|
2020-05-20 16:57:17 +08:00
|
|
|
bool virtualDesktopChange_moveWindows = false;
|
2019-09-12 03:11:55 +08:00
|
|
|
bool zoneSetChange_flashZones = false;
|
2019-09-05 00:26:26 +08:00
|
|
|
bool zoneSetChange_moveWindows = false;
|
|
|
|
bool overrideSnapHotkeys = false;
|
2020-05-01 22:17:16 +08:00
|
|
|
bool moveWindowAcrossMonitors = false;
|
2019-09-05 00:26:26 +08:00
|
|
|
bool appLastZone_moveWindows = false;
|
2019-09-28 22:29:29 +08:00
|
|
|
bool use_cursorpos_editor_startupscreen = true;
|
2020-03-13 22:56:23 +08:00
|
|
|
bool showZonesOnAllMonitors = false;
|
2020-03-25 22:38:44 +08:00
|
|
|
bool makeDraggedWindowTransparent = true;
|
|
|
|
std::wstring zoneColor = L"#F5FCFF";
|
|
|
|
std::wstring zoneBorderColor = L"#FFFFFF";
|
|
|
|
std::wstring zoneHightlightColor = L"#008CFF";
|
|
|
|
int zoneHighlightOpacity = 50;
|
2019-11-20 06:46:16 +08:00
|
|
|
PowerToysSettings::HotkeyObject editorHotkey = PowerToysSettings::HotkeyObject::from_settings(true, false, false, false, VK_OEM_3);
|
2019-11-18 17:29:56 +08:00
|
|
|
std::wstring excludedApps = L"";
|
|
|
|
std::vector<std::wstring> excludedAppsArray;
|
2019-09-05 00:26:26 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
interface __declspec(uuid("{BA4E77C4-6F44-4C5D-93D3-CBDE880495C2}")) IFancyZonesSettings : public IUnknown
|
|
|
|
{
|
|
|
|
IFACEMETHOD_(void, SetCallback)(interface IFancyZonesCallback* callback) = 0;
|
2020-02-11 14:57:11 +08:00
|
|
|
IFACEMETHOD_(void, ResetCallback)() = 0;
|
2019-09-05 00:26:26 +08:00
|
|
|
IFACEMETHOD_(bool, GetConfig)(_Out_ PWSTR buffer, _Out_ int *buffer_size) = 0;
|
2020-02-10 21:59:51 +08:00
|
|
|
IFACEMETHOD_(void, SetConfig)(PCWSTR serializedPowerToysSettingsJson) = 0;
|
2019-09-05 00:26:26 +08:00
|
|
|
IFACEMETHOD_(void, CallCustomAction)(PCWSTR action) = 0;
|
2020-03-13 17:55:15 +08:00
|
|
|
IFACEMETHOD_(const Settings*, GetSettings)() const = 0;
|
2019-09-05 00:26:26 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
winrt::com_ptr<IFancyZonesSettings> MakeFancyZonesSettings(HINSTANCE hinstance, PCWSTR config) noexcept;
|