5cfbd72fa8
* 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>
40 lines
1.2 KiB
C++
40 lines
1.2 KiB
C++
#pragma once
|
|
#include "UIUpdates.g.h"
|
|
|
|
namespace winrt::PowerRenameUILib::implementation
|
|
{
|
|
struct UIUpdates : UIUpdatesT<UIUpdates>
|
|
{
|
|
UIUpdates();
|
|
|
|
bool ShowAll();
|
|
void ShowAll(bool value);
|
|
int32_t ChangedExplorerItemId();
|
|
void ChangedExplorerItemId(int32_t value);
|
|
bool Checked();
|
|
void Checked(bool value);
|
|
winrt::event_token PropertyChanged(winrt::Windows::UI::Xaml::Data::PropertyChangedEventHandler const& handler);
|
|
void PropertyChanged(winrt::event_token const& token) noexcept;
|
|
void ToggleAll();
|
|
bool CloseUIWindow();
|
|
void CloseUIWindow(bool closeUIWindow);
|
|
bool ButtonRenameEnabled();
|
|
void ButtonRenameEnabled(bool value);
|
|
void Rename();
|
|
|
|
private:
|
|
bool m_showAll;
|
|
int32_t m_changedItemId;
|
|
bool m_checked;
|
|
bool m_closeUIWindow;
|
|
bool m_buttonRenameEnabled;
|
|
winrt::event<Windows::UI::Xaml::Data::PropertyChangedEventHandler> m_propertyChanged;
|
|
};
|
|
}
|
|
namespace winrt::PowerRenameUILib::factory_implementation
|
|
{
|
|
struct UIUpdates : UIUpdatesT<UIUpdates, implementation::UIUpdates>
|
|
{
|
|
};
|
|
}
|