mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
[PowerRename] Fluent UX (#13678)
* PowerRename new UI * Add scrollviewer * Don't deploy PowerRenameUI_new * Visual updates * Visual updates * Updates * Update Resources.resw * Added docs button * Update MainWindow.xaml * Wire Docs button * RegEx -> regular expressions * Update Show only renamed list on search/replace text changed * Update Show only renamed list on search/replace text changed - proper fix Set searchTerm to NULL when cleared - fix Show only renamed files on clear searchTerm * Files/folders input error handling * Fix renaming with keeping UI window opened After renaming folder, all of it's children need path update. Without path update, further renaming of children items would fail. * Update only children, not all items with greater depth * Fix dictionary false positives * Remove .NET dep * Rename PowerRenameUI_new to PowerRenameUILib Rename executable PowerRenameUIHost to PowerRename Co-authored-by: Laute <Niels.Laute@philips.com>
This commit is contained in:
29
src/modules/powerrename/PowerRenameUILib/PatternSnippet.h
Normal file
29
src/modules/powerrename/PowerRenameUILib/PatternSnippet.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
#include "PatternSnippet.g.h"
|
||||
|
||||
namespace winrt::PowerRenameUILib::implementation
|
||||
{
|
||||
struct PatternSnippet : PatternSnippetT<PatternSnippet>
|
||||
{
|
||||
PatternSnippet() = delete;
|
||||
|
||||
PatternSnippet(hstring const& code, hstring const& description);
|
||||
hstring Code();
|
||||
void Code(hstring const& value);
|
||||
hstring Description();
|
||||
void Description(hstring const& value);
|
||||
winrt::event_token PropertyChanged(winrt::Windows::UI::Xaml::Data::PropertyChangedEventHandler const& handler);
|
||||
void PropertyChanged(winrt::event_token const& token) noexcept;
|
||||
|
||||
private:
|
||||
winrt::hstring m_code;
|
||||
winrt::hstring m_description;
|
||||
winrt::event<Windows::UI::Xaml::Data::PropertyChangedEventHandler> m_propertyChanged;
|
||||
};
|
||||
}
|
||||
namespace winrt::PowerRenameUILib::factory_implementation
|
||||
{
|
||||
struct PatternSnippet : PatternSnippetT<PatternSnippet, implementation::PatternSnippet>
|
||||
{
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user