mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-22 08:02:24 +08:00
90ecd5e10f
* Migrate PowerRename to Unpackaged WinUI3 * [ARM64] PowerRename (#18002) * Migrate PowerRename to Unpackaged WinUI3 * Removed Project Config and update PlatformToolset to v143 * Updated solution config * Migrate PowerRename to Unpackaged WinUI3 * Fixed configs changed from ARM64 build * Left one project out of fix Co-authored-by: Stefan Markovic <stefan@janeasystems.com> Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com> * Minor fixes * Remove PowerRenameUILib from signing list - doesn't exist anymore * Remove PowerRenameUILib from move_uwp_resources.ps1 * Bring back old dir name to see if localization is preserved Remove move_uwp_resources.ps1 - not needed anymore * Remove UWP localization docs part * Fix minor UI quirk Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>
53 lines
1.6 KiB
C++
53 lines
1.6 KiB
C++
#pragma once
|
|
#include "ExplorerItem.g.h"
|
|
|
|
namespace winrt::PowerRenameUI::implementation
|
|
{
|
|
struct ExplorerItem : ExplorerItemT<ExplorerItem>
|
|
{
|
|
enum class ExplorerItemType
|
|
{
|
|
Folder = 0,
|
|
File = 1
|
|
};
|
|
|
|
ExplorerItem() = default;
|
|
|
|
ExplorerItem(int32_t id, hstring const& original, hstring const& renamed, int32_t type, uint32_t depth, bool checked);
|
|
int32_t Id();
|
|
hstring IdStr();
|
|
hstring Original();
|
|
void Original(hstring const& value);
|
|
hstring Renamed();
|
|
void Renamed(hstring const& value);
|
|
double Indentation();
|
|
hstring ImagePath();
|
|
int32_t Type();
|
|
void Type(int32_t value);
|
|
bool Checked();
|
|
void Checked(bool value);
|
|
Microsoft::UI::Xaml::Visibility Highlight();
|
|
Windows::Foundation::Collections::IObservableVector<PowerRenameUI::ExplorerItem> Children();
|
|
winrt::event_token PropertyChanged(Microsoft::UI::Xaml::Data::PropertyChangedEventHandler const& handler);
|
|
void PropertyChanged(winrt::event_token const& token) noexcept;
|
|
|
|
private:
|
|
int32_t m_id;
|
|
hstring m_idStr;
|
|
winrt::hstring m_original;
|
|
winrt::hstring m_renamed;
|
|
uint32_t m_depth;
|
|
hstring m_imagePath;
|
|
int32_t m_type;
|
|
bool m_checked;
|
|
Microsoft::UI::Xaml::Visibility m_highlight;
|
|
winrt::event<Microsoft::UI::Xaml::Data::PropertyChangedEventHandler> m_propertyChanged;
|
|
};
|
|
}
|
|
namespace winrt::PowerRenameUI::factory_implementation
|
|
{
|
|
struct ExplorerItem : ExplorerItemT<ExplorerItem, implementation::ExplorerItem>
|
|
{
|
|
};
|
|
}
|