mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 19:27:56 +01:00
* Introduce Command Not Found module * rewrite module to depend on WinGet PowerShell module * address Dongbo's feedback * try and implement settings UI * fix SUI build; try and store PowerShell object * add and use object pool * apply Dongbo's feedback * add warm up; implement IPooledObjectPolicy * Add module interface * WIP trying to import module from settings * Add EnableModule.ps1 * spellcheck * spellcheck again * Installer. Add DisableModule.ps1 * Fix styling * Give the user some output from installing * Prettify the Settings controls * Add button to check PowerShell 7's version * Fix Settings Assets paths * Fix PowerShell 7 output * Make module enable and disable scripts give better information * Fix spellcheck * Fix image files and placeholders * Don't remove CmdNotFound on upgrade and don't fail on uninstall of CmdNotFound * Consistent install module scripts location on debug and installed * installer: Avoid messageboxes and hide powershell on uninstalling CmdNotFound * Fix psd1 file resolution when installed * Fix spellcheck * Add telemetry events * Fix gpo files * If GPO is set, enable/disable module on PT start depending on gpo value * Cleanup module interface * Cleanup settings code * If GPO is set, disable Settings page logic * Adding icons * Update settings UI and strings * Add telemetry for suggestions and feedbacks * Fix sln file * Fix build * minor fixes * Updating icon * Remove global.json * Remove unused PowerShell dependency * Don't use preview version of Automation and fix NOTICE * Fix signing * Fix NOTICE.md * Fix version checking for getfilesiginforedist.dll * Fix spellchecker * Fix README.md * Fix false positives section in expect.txt * Add logs to module interface --------- Co-authored-by: Stefan Markovic <stefan@janeasystems.com> Co-authored-by: Jaime Bernardo <jaime@janeasystems.com> Co-authored-by: Niels Laute <niels.laute@live.nl>
59 lines
3.3 KiB
C++
59 lines
3.3 KiB
C++
#pragma once
|
|
#include "GPOWrapper.g.h"
|
|
#include <common/utils/gpo.h>
|
|
|
|
namespace winrt::PowerToys::GPOWrapper::implementation
|
|
{
|
|
struct GPOWrapper : GPOWrapperT<GPOWrapper>
|
|
{
|
|
GPOWrapper() = default;
|
|
static GpoRuleConfigured GetConfiguredAlwaysOnTopEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredAwakeEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredCmdNotFoundEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredColorPickerEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredCropAndLockEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredFancyZonesEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredFileLocksmithEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredSvgPreviewEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredMarkdownPreviewEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredMonacoPreviewEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredMouseWithoutBordersEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredPdfPreviewEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredGcodePreviewEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredSvgThumbnailsEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredPdfThumbnailsEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredGcodeThumbnailsEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredStlThumbnailsEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredHostsFileEditorEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredImageResizerEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredKeyboardManagerEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredFindMyMouseEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredMouseHighlighterEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredMouseJumpEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredMousePointerCrosshairsEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredPowerRenameEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredPowerLauncherEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredQuickAccentEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredRegistryPreviewEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredScreenRulerEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredShortcutGuideEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredTextExtractorEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredPastePlainEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredVideoConferenceMuteEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredPeekEnabledValue();
|
|
static GpoRuleConfigured GetDisableAutomaticUpdateDownloadValue();
|
|
static GpoRuleConfigured GetAllowExperimentationValue();
|
|
static GpoRuleConfigured GetRunPluginEnabledValue(winrt::hstring const& pluginID);
|
|
static GpoRuleConfigured GetConfiguredEnvironmentVariablesEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredQoiPreviewEnabledValue();
|
|
static GpoRuleConfigured GetConfiguredQoiThumbnailsEnabledValue();
|
|
};
|
|
}
|
|
|
|
namespace winrt::PowerToys::GPOWrapper::factory_implementation
|
|
{
|
|
struct GPOWrapper : GPOWrapperT<GPOWrapper, implementation::GPOWrapper>
|
|
{
|
|
};
|
|
}
|