2019-09-05 00:26:26 +08:00
|
|
|
#pragma once
|
|
|
|
|
2020-05-26 22:01:12 +08:00
|
|
|
#define MULTI_ZONE_STAMP L"FancyZones_zones"
|
2020-07-01 21:36:05 +08:00
|
|
|
#define RESTORE_SIZE_STAMP L"FancyZones_RestoreSize"
|
|
|
|
#define RESTORE_ORIGIN_STAMP L"FancyZones_RestoreOrigin"
|
2020-08-07 16:06:25 +08:00
|
|
|
#define MULTI_MONITOR_MODE_DEVICE L"FancyZonesMultiMonitorDevice"
|
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;
|
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;
|
2020-07-08 16:37:42 +08:00
|
|
|
bool openWindowOnActiveMonitor = false;
|
2020-07-01 21:36:05 +08:00
|
|
|
bool restoreSize = 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-08-07 16:06:25 +08:00
|
|
|
bool spanZonesAcrossMonitors = false;
|
2020-03-25 22:38:44 +08:00
|
|
|
bool makeDraggedWindowTransparent = true;
|
|
|
|
std::wstring zoneColor = L"#F5FCFF";
|
|
|
|
std::wstring zoneBorderColor = L"#FFFFFF";
|
2020-05-27 22:55:46 +08:00
|
|
|
std::wstring zoneHighlightColor = L"#008CFF";
|
2020-03-25 22:38:44 +08:00
|
|
|
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;
|