forked from microsoft/PowerToys
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PowerRename] Fluent UX (microsoft#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 <[email protected]>
- Loading branch information
1 parent
ce942b0
commit 5cfbd72
Showing
128 changed files
with
5,756 additions
and
8,193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<GeneratedFilesDir>$(IntDir)Generated Files\</GeneratedFilesDir> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#pragma once | ||
#include <shellapi.h> | ||
|
||
class HDropIterator | ||
{ | ||
public: | ||
HDropIterator(IDataObject* pDataObject) | ||
{ | ||
_current = 0; | ||
|
||
FORMATETC formatetc = { | ||
CF_HDROP, | ||
NULL, | ||
DVASPECT_CONTENT, | ||
-1, | ||
TYMED_HGLOBAL | ||
}; | ||
|
||
pDataObject->GetData(&formatetc, &m_medium); | ||
|
||
_listCount = DragQueryFile((HDROP)m_medium.hGlobal, 0xFFFFFFFF, NULL, 0); | ||
} | ||
|
||
~HDropIterator() | ||
{ | ||
ReleaseStgMedium(&m_medium); | ||
} | ||
|
||
void First() | ||
{ | ||
_current = 0; | ||
} | ||
|
||
void Next() | ||
{ | ||
_current++; | ||
} | ||
|
||
bool IsDone() const | ||
{ | ||
return _current >= _listCount; | ||
} | ||
|
||
LPTSTR CurrentItem() const | ||
{ | ||
UINT cch = DragQueryFile((HDROP)m_medium.hGlobal, _current, NULL, 0) + 1; | ||
LPTSTR pszPath = (LPTSTR)malloc(sizeof(TCHAR) * cch); | ||
|
||
DragQueryFile((HDROP)m_medium.hGlobal, _current, pszPath, cch); | ||
|
||
return pszPath; | ||
} | ||
|
||
private: | ||
UINT _listCount; | ||
STGMEDIUM m_medium; | ||
UINT _current; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.