Skip to content

Commit

Permalink
DialogNewSkin: Allow for renaming newly created folders and files.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianferguson committed Dec 17, 2016
1 parent 081e9da commit 03c3305
Show file tree
Hide file tree
Showing 28 changed files with 387 additions and 208 deletions.
8 changes: 8 additions & 0 deletions Common/PathUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ void AppendBacklashIfMissing(std::wstring& path)
}
}

void RemoveTrailingBackslash(std::wstring& path)
{
if (!path.empty() && IsSeparator(path[path.length() - 1]))
{
path.pop_back();
}
}

std::wstring GetFolderFromFilePath(const std::wstring& filePath)
{
std::wstring::size_type pos = filePath.find_last_of(L"\\/");
Expand Down
2 changes: 2 additions & 0 deletions Common/PathUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ bool IsAbsolute(const std::wstring& path);

void AppendBacklashIfMissing(std::wstring& path);

void RemoveTrailingBackslash(std::wstring& path);

std::wstring GetFolderFromFilePath(const std::wstring& filePath);

std::wstring GetVolume(const std::wstring& path);
Expand Down
Binary file modified Language/Bulgarian.h
Binary file not shown.
Binary file modified Language/ChineseSimplified.h
Binary file not shown.
Binary file modified Language/ChineseTraditional.h
Binary file not shown.
Binary file modified Language/Danish.h
Binary file not shown.
Binary file modified Language/English.h
Binary file not shown.
Binary file modified Language/French.h
Binary file not shown.
Binary file modified Language/German.h
Binary file not shown.
Binary file modified Language/Hungarian.h
Binary file not shown.
Binary file modified Language/Italian.h
Binary file not shown.
Binary file modified Language/Japanese.h
Binary file not shown.
Binary file modified Language/Korean.h
Binary file not shown.
Binary file modified Language/Polish.h
Binary file not shown.
Binary file modified Language/PortugueseBrazil.h
Binary file not shown.
Binary file modified Language/PortuguesePortugal.h
Binary file not shown.
4 changes: 4 additions & 0 deletions Language/Resource.rc
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,8 @@ STRINGTABLE
ID_STR_TEMPLATEFOLDERFAIL, STR_TEMPLATEFOLDERFAIL
ID_STR_TEMPLATEFILEFAIL, STR_TEMPLATEFILEFAIL
ID_STR_TEMPLATEDELETE, STR_TEMPLATEDELETE
ID_STR_EDITFOLDERNAME, STR_EDITFOLDERNAME
ID_STR_EDITFILENAME, STR_EDITFILENAME
ID_STR_RENAMEFOLDERFAIL, STR_RENAMEFOLDERFAIL
ID_STR_RENAMEFILEFAIL, STR_RENAMEFILEFAIL
}
Binary file modified Language/Romanian.h
Binary file not shown.
Binary file modified Language/Russian.h
Binary file not shown.
Binary file modified Language/SerbianCyrillic.h
Binary file not shown.
Binary file modified Language/SerbianLatin.h
Binary file not shown.
Binary file modified Language/Slovak.h
Binary file not shown.
Binary file modified Language/Turkish.h
Binary file not shown.
Binary file modified Language/Ukrainian.h
Binary file not shown.
Binary file modified Language/Vietnamese.h
Binary file not shown.
Loading

0 comments on commit 03c3305

Please sign in to comment.