mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
* Add randomizer cheat sheet texts to UI tooltip * Add randomizer icon (shuffle) + hint to main window * Add randomizer logic + helpers, regex parsing * Fix: remove unnecessary throw * Fix: remove todo comment * Fix: iffing logic * Fix: add offset to randomizer onchange * Update: guid generating to single function, handle bracket removing there * Update: toggle off enum feat when random values are selected * Update: main window UI tooltip texts to be more descriptive * Update: remove unnecessary sstream include * Fix: return empty string if chars has no value to avoid memory access violation * Add unit tests * Add PowerRename random string generating keywords * Update: generating value names to be in line with POSIX conventions * Allow to used with Enumerate at the same time * Fix spellcheck * Fix tests to take into account we no longer eat up empty expressions with randomizer --------- Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
29 lines
1.4 KiB
C++
29 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include "PowerRenameInterfaces.h"
|
|
|
|
#include <string>
|
|
|
|
HRESULT GetTrimmedFileName(_Out_ PWSTR result, UINT cchMax, _In_ PCWSTR source);
|
|
HRESULT GetTransformedFileName(_Out_ PWSTR result, UINT cchMax, _In_ PCWSTR source, DWORD flags, bool isFolder);
|
|
HRESULT GetDatedFileName(_Out_ PWSTR result, UINT cchMax, _In_ PCWSTR source, SYSTEMTIME fileTime);
|
|
bool isFileTimeUsed(_In_ PCWSTR source);
|
|
bool ShellItemArrayContainsRenamableItem(_In_ IShellItemArray* shellItemArray);
|
|
bool DataObjectContainsRenamableItem(_In_ IUnknown* dataSource);
|
|
HRESULT GetShellItemArrayFromDataObject(_In_ IUnknown* dataSource, _COM_Outptr_ IShellItemArray** items);
|
|
BOOL GetEnumeratedFileName(
|
|
__out_ecount(cchMax) PWSTR pszUniqueName,
|
|
UINT cchMax,
|
|
__in PCWSTR pszTemplate,
|
|
__in_opt PCWSTR pszDir,
|
|
unsigned long ulMinLong,
|
|
__inout unsigned long* pulNumUsed);
|
|
HWND CreateMsgWindow(_In_ HINSTANCE hInst, _In_ WNDPROC pfnWndProc, _In_ void* p);
|
|
|
|
std::wstring GetRegString(const std::wstring& valueName, const std::wstring& subPath);
|
|
unsigned int GetRegNumber(const std::wstring& valueName, unsigned int defaultValue);
|
|
void SetRegNumber(const std::wstring& valueName, unsigned int value);
|
|
bool GetRegBoolean(const std::wstring& valueName, bool defaultValue);
|
|
void SetRegBoolean(const std::wstring& valueName, bool value);
|
|
bool LastModifiedTime(const std::wstring& filePath, FILETIME* lpFileTime);
|
|
std::wstring CreateGuidStringWithoutBrackets(); |