mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
* Added localization code to pipeline and created one LocProject json for Settings * Fixed typo * Reordered nuget source * Moved nuget install to restore step * Added FZ.rc file to LocProj * Added FZ resx file and modified rc file * Fixed file names * Changed to check folder for LocProject files * Updated folder * Changed directory * Changed to src directory * Changed language set and name format, removed rc file localization * Added all projects with resx/resw files * Added newline to end of file * Removed nuget source as it is not used * Updated comments * Updated keyboard manager to use resx file * Tweaked resources.resx and added it to project files * Added comments and added in string table to resx script * Remove change from bad merge * Fix syntax error in convert stringtable * Changed file type to None * Migrated color picker's resources * Migrated resources for Microsoft.Launcher * Migrated resources for fancy zones * Revert fancyzones changes * Migrated resources for ImageResizer and modified script to add language specific code * Added try catch and checks for modification to avoid unnecessary file creation * Changed tab insertion to 4 spaces to avoid mixed file types in rc file * Migrated resources for power preview project * Added LocProject.json file for 5 projects * added resgen exception check * Moved non-localizable strings out of resx for powerpreview
39 lines
1.5 KiB
C++
39 lines
1.5 KiB
C++
#pragma once
|
|
#include <pch.h>
|
|
#include <string>
|
|
#include "Generated Files/resource.h"
|
|
#include <settings_objects.h>
|
|
#include "registry_wrapper_interface.h"
|
|
|
|
namespace PowerPreviewSettings
|
|
{
|
|
// PowerToy Windows Explorer File Preview Settings.
|
|
class FileExplorerPreviewSettings
|
|
{
|
|
private:
|
|
bool m_toggleSettingEnabled;
|
|
std::wstring m_toggleSettingName;
|
|
std::wstring m_toggleSettingDescription;
|
|
std::wstring m_registryValueData;
|
|
RegistryWrapperIface * m_registryWrapper;
|
|
LPCWSTR m_clsid;
|
|
|
|
public:
|
|
FileExplorerPreviewSettings(bool toggleSettingEnabled, const std::wstring& toggleSettingName, const std::wstring& toggleSettingDescription, LPCWSTR clsid, const std::wstring& registryValueData, RegistryWrapperIface* registryWrapper);
|
|
~ FileExplorerPreviewSettings();
|
|
|
|
virtual bool GetToggleSettingState() const;
|
|
virtual void UpdateToggleSettingState(bool state);
|
|
virtual std::wstring GetToggleSettingName() const;
|
|
virtual std::wstring GetToggleSettingDescription() const;
|
|
virtual LPCWSTR GetCLSID() const;
|
|
virtual std::wstring GetRegistryValueData() const;
|
|
virtual void LoadState(PowerToysSettings::PowerToyValues& settings);
|
|
virtual void UpdateState(PowerToysSettings::PowerToyValues& settings, bool enabled);
|
|
virtual LONG EnablePreview();
|
|
virtual LONG DisablePreview();
|
|
virtual LONG EnableThumbnailProvider();
|
|
virtual LONG DisableThumbnailProvider();
|
|
};
|
|
}
|