Compare commits
1
Commits
bdf85a82cd
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4bc51d2498 |
No files matched your search
@@ -257,6 +257,7 @@ BEGIN_MESSAGE_MAP(CFileManagerDlg, CDialog)
|
|||||||
ON_COMMAND(IDM_LOCAL_OPEN, OnLocalOpen)
|
ON_COMMAND(IDM_LOCAL_OPEN, OnLocalOpen)
|
||||||
ON_COMMAND(IDM_REMOTE_OPEN_SHOW, OnRemoteOpenShow)
|
ON_COMMAND(IDM_REMOTE_OPEN_SHOW, OnRemoteOpenShow)
|
||||||
ON_COMMAND(IDM_REMOTE_OPEN_HIDE, OnRemoteOpenHide)
|
ON_COMMAND(IDM_REMOTE_OPEN_HIDE, OnRemoteOpenHide)
|
||||||
|
ON_COMMAND(IDM_REMOTE_OPEN_PREVIEW, OnRemoteOpenPreview)
|
||||||
ON_NOTIFY(NM_RCLICK, IDC_LIST_LOCAL, OnRclickListLocal)
|
ON_NOTIFY(NM_RCLICK, IDC_LIST_LOCAL, OnRclickListLocal)
|
||||||
ON_NOTIFY(NM_RCLICK, IDC_LIST_REMOTE, OnRclickListRemote)
|
ON_NOTIFY(NM_RCLICK, IDC_LIST_REMOTE, OnRclickListRemote)
|
||||||
ON_MESSAGE(WM_MY_MESSAGE, OnMyMessage)
|
ON_MESSAGE(WM_MY_MESSAGE, OnMyMessage)
|
||||||
@@ -1342,7 +1343,7 @@ void CFileManagerDlg::OpenLocalPath(const CString& path)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CFileManagerDlg::BeginRemotePreview(const CString& fullPath)
|
void CFileManagerDlg::BeginRemotePreview(const CString& fullPath, bool allowLarge)
|
||||||
{
|
{
|
||||||
if (THIS_CFG.GetInt("settings", "PreviewEnabled", 1) == 0)
|
if (THIS_CFG.GetInt("settings", "PreviewEnabled", 1) == 0)
|
||||||
return;
|
return;
|
||||||
@@ -1371,7 +1372,7 @@ void CFileManagerDlg::BeginRemotePreview(const CString& fullPath)
|
|||||||
}
|
}
|
||||||
Mprintf("[Preview] begin full=%s size=%llu mtime=%llu\n",
|
Mprintf("[Preview] begin full=%s size=%llu mtime=%llu\n",
|
||||||
(LPCSTR)fullPath, (unsigned long long)meta.size, (unsigned long long)meta.mtimeMs);
|
(LPCSTR)fullPath, (unsigned long long)meta.size, (unsigned long long)meta.mtimeMs);
|
||||||
if (meta.size > FILE_PREVIEW_MAX_BYTES) {
|
if (meta.size > FILE_PREVIEW_MAX_BYTES && !allowLarge) {
|
||||||
CString msg;
|
CString msg;
|
||||||
msg.FormatL("文件较大,不支持预览:%s(%llu MB,上限 %u MB)",
|
msg.FormatL("文件较大,不支持预览:%s(%llu MB,上限 %u MB)",
|
||||||
fullPath, (unsigned long long)(meta.size / 1024 / 1024),
|
fullPath, (unsigned long long)(meta.size / 1024 / 1024),
|
||||||
@@ -1381,7 +1382,10 @@ void CFileManagerDlg::BeginRemotePreview(const CString& fullPath)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// P2:支持哈希查询的客户端先取当前内容的 SHA-256,命中已有缓存即可不传输。
|
// P2:支持哈希查询的客户端先取当前内容的 SHA-256,命中已有缓存即可不传输。
|
||||||
if (mainCtx->SupportsFileHash()) {
|
// 显式打开的超大文件跳过哈希查询(客户端把 maxBytes 钳到预览上限,会回 TOO_LARGE),
|
||||||
|
// 直接走 P1(size+mtime)传输。
|
||||||
|
if (mainCtx->SupportsFileHash() &&
|
||||||
|
!(allowLarge && meta.size > FILE_PREVIEW_MAX_BYTES)) {
|
||||||
if (!m_pendingHash.fullPath.IsEmpty()) {
|
if (!m_pendingHash.fullPath.IsEmpty()) {
|
||||||
::MessageBox(m_hWnd, _TR("正在预览另一个文件,请稍候"),
|
::MessageBox(m_hWnd, _TR("正在预览另一个文件,请稍候"),
|
||||||
_TR("提示"), MB_OK | MB_ICONINFORMATION);
|
_TR("提示"), MB_OK | MB_ICONINFORMATION);
|
||||||
@@ -1406,11 +1410,12 @@ void CFileManagerDlg::BeginRemotePreview(const CString& fullPath)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ContinueRemotePreview(fullPath, meta.size, meta.mtimeMs, std::string());
|
ContinueRemotePreview(fullPath, meta.size, meta.mtimeMs, std::string(), allowLarge);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CFileManagerDlg::ContinueRemotePreview(const CString& fullPath, uint64_t size,
|
void CFileManagerDlg::ContinueRemotePreview(const CString& fullPath, uint64_t size,
|
||||||
uint64_t mtimeMs, const std::string& sha256)
|
uint64_t mtimeMs, const std::string& sha256,
|
||||||
|
bool allowLarge)
|
||||||
{
|
{
|
||||||
uint64_t clientID = GetClientID();
|
uint64_t clientID = GetClientID();
|
||||||
std::string remotePath((LPCSTR)fullPath);
|
std::string remotePath((LPCSTR)fullPath);
|
||||||
@@ -1421,7 +1426,7 @@ void CFileManagerDlg::ContinueRemotePreview(const CString& fullPath, uint64_t si
|
|||||||
std::string outPath, error, cachedSha;
|
std::string outPath, error, cachedSha;
|
||||||
CFilePreviewMgr::PrepareResult pr = CFilePreviewMgr::Instance().Prepare(
|
CFilePreviewMgr::PrepareResult pr = CFilePreviewMgr::Instance().Prepare(
|
||||||
clientID, clientKey, remotePath, basename, size, mtimeMs,
|
clientID, clientKey, remotePath, basename, size, mtimeMs,
|
||||||
sha256, m_hWnd, outPath, error, &cachedSha);
|
sha256, m_hWnd, outPath, error, &cachedSha, allowLarge);
|
||||||
Mprintf("[Preview] prepare result=%d out=%s err=%s sha=%s\n",
|
Mprintf("[Preview] prepare result=%d out=%s err=%s sha=%s\n",
|
||||||
(int)pr, outPath.c_str(), error.c_str(), sha256.c_str());
|
(int)pr, outPath.c_str(), error.c_str(), sha256.c_str());
|
||||||
|
|
||||||
@@ -3669,10 +3674,65 @@ void CFileManagerDlg::OnRclickListRemote(NMHDR* pNMHDR, LRESULT* pResult)
|
|||||||
pM->EnableMenuItem(IDM_TRANSFER_S, MF_BYCOMMAND | MF_GRAYED); // 远程列表不能上传到远程
|
pM->EnableMenuItem(IDM_TRANSFER_S, MF_BYCOMMAND | MF_GRAYED); // 远程列表不能上传到远程
|
||||||
|
|
||||||
pM->EnableMenuItem(IDM_REFRESH, MF_BYCOMMAND | MF_ENABLED);
|
pM->EnableMenuItem(IDM_REFRESH, MF_BYCOMMAND | MF_ENABLED);
|
||||||
|
|
||||||
|
// "打开":置于"传输"上方。单选可用(文件→本地预览,文件夹→进入子目录),多选/零选禁用。
|
||||||
|
// 运行时插入到位置 0,不改 .rc 与既有位置索引;上面的启用/禁用逻辑已执行完毕,不受影响。
|
||||||
|
pM->InsertMenu(0, MF_BYPOSITION | MF_STRING, IDM_REMOTE_OPEN_PREVIEW, _TR("打开(&O)"));
|
||||||
|
pM->EnableMenuItem(IDM_REMOTE_OPEN_PREVIEW, MF_BYCOMMAND |
|
||||||
|
(pListCtrl->GetSelectedCount() == 1 ? MF_ENABLED : MF_GRAYED));
|
||||||
|
|
||||||
pM->TrackPopupMenu(TPM_LEFTALIGN, p.x, p.y, this);
|
pM->TrackPopupMenu(TPM_LEFTALIGN, p.x, p.y, this);
|
||||||
*pResult = 0;
|
*pResult = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 远程右键"打开":单选文件→本地预览(超阈值二次确认后允许大文件);单选文件夹→进入子目录。
|
||||||
|
void CFileManagerDlg::OnRemoteOpenPreview()
|
||||||
|
{
|
||||||
|
if (m_list_remote.GetSelectedCount() != 1) return;
|
||||||
|
int nItem = m_list_remote.GetSelectionMark();
|
||||||
|
if (nItem < 0) return;
|
||||||
|
|
||||||
|
// 文件夹:与双击一致,进入子目录。
|
||||||
|
if (m_list_remote.GetItemData(nItem) == 1) {
|
||||||
|
GetRemoteFileList();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 显式"打开"受预览开关约束:禁用时给出反馈而非静默无动作(双击预览保持原静默行为)。
|
||||||
|
if (THIS_CFG.GetInt("settings", "PreviewEnabled", 1) == 0) {
|
||||||
|
::MessageBox(m_hWnd, _TR("预览功能已禁用,无法打开文件。可在参数中启用预览后重试。"),
|
||||||
|
_TR("提示"), MB_OK | MB_ICONINFORMATION);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 文件:构造完整路径(搜索结果第 3 列是目录,普通列表用当前远程目录)。
|
||||||
|
CString name = m_list_remote.GetItemText(nItem, 0);
|
||||||
|
CString full;
|
||||||
|
if (m_bRemoteSearchResults) {
|
||||||
|
full = m_list_remote.GetItemText(nItem, 3);
|
||||||
|
if (!full.IsEmpty() && full.Right(1) != "\\") full += "\\";
|
||||||
|
full += name;
|
||||||
|
} else {
|
||||||
|
full = m_Remote_Path + name;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 超阈值:二次确认。确认后即使很大也传回本机并打开。
|
||||||
|
bool allowLarge = false;
|
||||||
|
RemoteMeta meta;
|
||||||
|
if (GetRemoteFileMeta(full, meta) && meta.size > FILE_PREVIEW_MAX_BYTES) {
|
||||||
|
CString msg;
|
||||||
|
msg.FormatL("文件较大:%s(%llu MB,超过 %u MB 预览上限)。\n"
|
||||||
|
"仍要传输到本机并打开吗?大文件传输可能耗时较长。",
|
||||||
|
full, (unsigned long long)(meta.size / 1024 / 1024),
|
||||||
|
(unsigned)(FILE_PREVIEW_MAX_BYTES / 1024 / 1024));
|
||||||
|
if (::MessageBox(m_hWnd, msg, _TR("确认"), MB_YESNO | MB_ICONWARNING) != IDYES)
|
||||||
|
return;
|
||||||
|
allowLarge = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
BeginRemotePreview(full, allowLarge);
|
||||||
|
}
|
||||||
|
|
||||||
bool CFileManagerDlg::MakeSureDirectoryPathExists(LPCTSTR pszDirPath)
|
bool CFileManagerDlg::MakeSureDirectoryPathExists(LPCTSTR pszDirPath)
|
||||||
{
|
{
|
||||||
LPTSTR p, pszDirCopy;
|
LPTSTR p, pszDirCopy;
|
||||||
|
|||||||
@@ -143,9 +143,9 @@ public:
|
|||||||
// E2E 测试钩子:WM_APP+0x123,wParam=行号,lParam!=0 表示远程列表。
|
// E2E 测试钩子:WM_APP+0x123,wParam=行号,lParam!=0 表示远程列表。
|
||||||
afx_msg LRESULT OnPreviewTest(WPARAM wParam, LPARAM lParam);
|
afx_msg LRESULT OnPreviewTest(WPARAM wParam, LPARAM lParam);
|
||||||
#endif
|
#endif
|
||||||
void BeginRemotePreview(const CString& fullPath);
|
void BeginRemotePreview(const CString& fullPath, bool allowLarge = false);
|
||||||
void ContinueRemotePreview(const CString& fullPath, uint64_t size, uint64_t mtimeMs,
|
void ContinueRemotePreview(const CString& fullPath, uint64_t size, uint64_t mtimeMs,
|
||||||
const std::string& sha256);
|
const std::string& sha256, bool allowLarge = false);
|
||||||
void OpenLocalPath(const CString& path);
|
void OpenLocalPath(const CString& path);
|
||||||
bool GetRemoteFileMeta(const CString& fullPath, RemoteMeta& meta);
|
bool GetRemoteFileMeta(const CString& fullPath, RemoteMeta& meta);
|
||||||
std::string GetPreviewClientKey(uint64_t clientID);
|
std::string GetPreviewClientKey(uint64_t clientID);
|
||||||
@@ -270,6 +270,7 @@ protected:
|
|||||||
afx_msg void OnLocalOpen();
|
afx_msg void OnLocalOpen();
|
||||||
afx_msg void OnRemoteOpenShow();
|
afx_msg void OnRemoteOpenShow();
|
||||||
afx_msg void OnRemoteOpenHide();
|
afx_msg void OnRemoteOpenHide();
|
||||||
|
afx_msg void OnRemoteOpenPreview();
|
||||||
afx_msg void OnRclickListLocal(NMHDR* pNMHDR, LRESULT* pResult);
|
afx_msg void OnRclickListLocal(NMHDR* pNMHDR, LRESULT* pResult);
|
||||||
afx_msg void OnRclickListRemote(NMHDR* pNMHDR, LRESULT* pResult);
|
afx_msg void OnRclickListRemote(NMHDR* pNMHDR, LRESULT* pResult);
|
||||||
afx_msg void OnLocalDesktop();
|
afx_msg void OnLocalDesktop();
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ CFilePreviewMgr::PrepareResult CFilePreviewMgr::Prepare(
|
|||||||
const std::string& remotePath, const std::string& basename,
|
const std::string& remotePath, const std::string& basename,
|
||||||
uint64_t size, uint64_t mtimeMs, const std::string& sha256,
|
uint64_t size, uint64_t mtimeMs, const std::string& sha256,
|
||||||
HWND notifyHwnd, std::string& outPath, std::string& error,
|
HWND notifyHwnd, std::string& outPath, std::string& error,
|
||||||
std::string* outSha)
|
std::string* outSha, bool allowLarge)
|
||||||
{
|
{
|
||||||
outPath.clear();
|
outPath.clear();
|
||||||
error.clear();
|
error.clear();
|
||||||
@@ -238,6 +238,7 @@ CFilePreviewMgr::PrepareResult CFilePreviewMgr::Prepare(
|
|||||||
req.clientID = clientID;
|
req.clientID = clientID;
|
||||||
req.size = size;
|
req.size = size;
|
||||||
req.mtimeMs = mtimeMs;
|
req.mtimeMs = mtimeMs;
|
||||||
|
req.allowLarge = allowLarge;
|
||||||
req.clientKey = clientKey;
|
req.clientKey = clientKey;
|
||||||
req.clientDir = clientDir;
|
req.clientDir = clientDir;
|
||||||
req.remotePath = remotePath;
|
req.remotePath = remotePath;
|
||||||
@@ -346,8 +347,11 @@ bool CFilePreviewMgr::ObserveChunk(CONTEXT_OBJECT* ctx, const FileChunkPacketV2*
|
|||||||
FailLocked(*req, AsStd(_TR("预览文件名越界")));
|
FailLocked(*req, AsStd(_TR("预览文件名越界")));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// 显式打开封顶到用户确认时的大小(req->size),普通预览仍用 8MiB 上限;
|
||||||
|
// 避免 allowLarge 去掉闸门后客户端声明任意大小照单落盘。
|
||||||
|
uint64_t sizeCap = req->allowLarge ? req->size : FILE_PREVIEW_MAX_BYTES;
|
||||||
if (pkt->totalFiles != 1 || (pkt->flags & FFV2_DIRECTORY) ||
|
if (pkt->totalFiles != 1 || (pkt->flags & FFV2_DIRECTORY) ||
|
||||||
pkt->fileSize > FILE_PREVIEW_MAX_BYTES) {
|
pkt->fileSize > sizeCap) {
|
||||||
Mprintf("[Preview] observe gate reject total=%u flags=%u size=%llu\n",
|
Mprintf("[Preview] observe gate reject total=%u flags=%u size=%llu\n",
|
||||||
(unsigned)pkt->totalFiles, (unsigned)pkt->flags,
|
(unsigned)pkt->totalFiles, (unsigned)pkt->flags,
|
||||||
(unsigned long long)pkt->fileSize);
|
(unsigned long long)pkt->fileSize);
|
||||||
@@ -413,6 +417,7 @@ void CFilePreviewMgr::OnComplete(CONTEXT_OBJECT* ctx, const FileCompletePacketV2
|
|||||||
job.recvName = req->recvName;
|
job.recvName = req->recvName;
|
||||||
job.size = req->size;
|
job.size = req->size;
|
||||||
job.mtimeMs = req->mtimeMs;
|
job.mtimeMs = req->mtimeMs;
|
||||||
|
job.allowLarge = req->allowLarge;
|
||||||
job.requestedSha = req->sha256;
|
job.requestedSha = req->sha256;
|
||||||
job.packetSha = packetSha;
|
job.packetSha = packetSha;
|
||||||
job.notifyHwnd = req->notifyHwnd;
|
job.notifyHwnd = req->notifyHwnd;
|
||||||
@@ -540,7 +545,7 @@ void CFilePreviewMgr::CheckTimeoutsLocked(std::chrono::steady_clock::time_point
|
|||||||
if (req.state != Request::WaitFirst && req.state != Request::Transferring)
|
if (req.state != Request::WaitFirst && req.state != Request::Transferring)
|
||||||
continue;
|
continue;
|
||||||
bool stalled = now - req.lastDataAt > std::chrono::seconds(kStallSeconds);
|
bool stalled = now - req.lastDataAt > std::chrono::seconds(kStallSeconds);
|
||||||
bool tooLong = now - req.startAt > std::chrono::seconds(kTotalSeconds);
|
bool tooLong = !req.allowLarge && now - req.startAt > std::chrono::seconds(kTotalSeconds);
|
||||||
if (stalled || tooLong) {
|
if (stalled || tooLong) {
|
||||||
FailLocked(req, AsStd(stalled ? _TR("预览传输停滞,已取消")
|
FailLocked(req, AsStd(stalled ? _TR("预览传输停滞,已取消")
|
||||||
: _TR("预览传输超时,已取消")));
|
: _TR("预览传输超时,已取消")));
|
||||||
@@ -621,7 +626,7 @@ void CFilePreviewMgr::FinalizeThread(FinalizeJob job)
|
|||||||
}
|
}
|
||||||
if (!replaced) index.push_back(m);
|
if (!replaced) index.push_back(m);
|
||||||
SaveIndex(job.clientDir, index);
|
SaveIndex(job.clientDir, index);
|
||||||
EnforceCacheLimits(job.clientDir, index);
|
EnforceCacheLimits(job.clientDir, index, job.allowLarge ? localName : std::string());
|
||||||
RemoveTempDir(job.tempDir);
|
RemoveTempDir(job.tempDir);
|
||||||
|
|
||||||
Result* r = new Result();
|
Result* r = new Result();
|
||||||
@@ -844,7 +849,8 @@ bool CFilePreviewMgr::WriteEmptyFile(const std::string& path)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CFilePreviewMgr::EnforceCacheLimits(const std::string& clientDir, std::vector<Meta>& index)
|
void CFilePreviewMgr::EnforceCacheLimits(const std::string& clientDir, std::vector<Meta>& index,
|
||||||
|
const std::string& protectName)
|
||||||
{
|
{
|
||||||
int maxFiles = 200;
|
int maxFiles = 200;
|
||||||
int maxMB = 512;
|
int maxMB = 512;
|
||||||
@@ -882,9 +888,15 @@ void CFilePreviewMgr::EnforceCacheLimits(const std::string& clientDir, std::vect
|
|||||||
});
|
});
|
||||||
bool changed = false;
|
bool changed = false;
|
||||||
while ((int)index.size() > maxFiles || uniqueBytes() > limitBytes) {
|
while ((int)index.size() > maxFiles || uniqueBytes() > limitBytes) {
|
||||||
if (index.empty()) break;
|
// 跳过受保护条目(本次显式打开的文件),淘汰最旧的可淘汰项;
|
||||||
std::string name = index.front().localName;
|
// protectName 为空时等价于原逻辑(始终淘汰队首)。
|
||||||
index.erase(index.begin());
|
int victim = -1;
|
||||||
|
for (int i = 0; i < (int)index.size(); ++i) {
|
||||||
|
if (index[i].localName != protectName) { victim = i; break; }
|
||||||
|
}
|
||||||
|
if (victim < 0) break;
|
||||||
|
std::string name = index[victim].localName;
|
||||||
|
index.erase(index.begin() + victim);
|
||||||
changed = true;
|
changed = true;
|
||||||
bool referenced = false;
|
bool referenced = false;
|
||||||
for (const auto& m : index)
|
for (const auto& m : index)
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ public:
|
|||||||
const std::string& remotePath, const std::string& basename,
|
const std::string& remotePath, const std::string& basename,
|
||||||
uint64_t size, uint64_t mtimeMs, const std::string& sha256,
|
uint64_t size, uint64_t mtimeMs, const std::string& sha256,
|
||||||
HWND notifyHwnd, std::string& outPath, std::string& error,
|
HWND notifyHwnd, std::string& outPath, std::string& error,
|
||||||
std::string* outSha = nullptr);
|
std::string* outSha = nullptr, bool allowLarge = false);
|
||||||
|
|
||||||
// UI 线程:对话框关闭时放弃本窗口的所有预览请求。
|
// UI 线程:对话框关闭时放弃本窗口的所有预览请求。
|
||||||
void CancelForHwnd(HWND hwnd);
|
void CancelForHwnd(HWND hwnd);
|
||||||
@@ -131,6 +131,7 @@ private:
|
|||||||
uint64_t transferID = 0;
|
uint64_t transferID = 0;
|
||||||
uint64_t size = 0;
|
uint64_t size = 0;
|
||||||
uint64_t mtimeMs = 0;
|
uint64_t mtimeMs = 0;
|
||||||
|
bool allowLarge = false; // 显式"打开":放宽大小闸门/总超时,并保护本次缓存不被淘汰
|
||||||
std::string clientKey;
|
std::string clientKey;
|
||||||
std::string clientDir;
|
std::string clientDir;
|
||||||
std::string remotePath;
|
std::string remotePath;
|
||||||
@@ -156,6 +157,7 @@ private:
|
|||||||
std::string recvName;
|
std::string recvName;
|
||||||
uint64_t size = 0;
|
uint64_t size = 0;
|
||||||
uint64_t mtimeMs = 0;
|
uint64_t mtimeMs = 0;
|
||||||
|
bool allowLarge = false;
|
||||||
std::string requestedSha;
|
std::string requestedSha;
|
||||||
std::string packetSha;
|
std::string packetSha;
|
||||||
HWND notifyHwnd = nullptr;
|
HWND notifyHwnd = nullptr;
|
||||||
@@ -192,7 +194,8 @@ private:
|
|||||||
const std::vector<Meta>& index,
|
const std::vector<Meta>& index,
|
||||||
const std::string& remotePath);
|
const std::string& remotePath);
|
||||||
static bool WriteEmptyFile(const std::string& path);
|
static bool WriteEmptyFile(const std::string& path);
|
||||||
static void EnforceCacheLimits(const std::string& clientDir, std::vector<Meta>& index);
|
static void EnforceCacheLimits(const std::string& clientDir, std::vector<Meta>& index,
|
||||||
|
const std::string& protectName = std::string());
|
||||||
static bool MoveOrCopy(const std::string& from, const std::string& to);
|
static bool MoveOrCopy(const std::string& from, const std::string& to);
|
||||||
static void RemoveTempDir(const std::string& tempDir);
|
static void RemoveTempDir(const std::string& tempDir);
|
||||||
|
|
||||||
|
|||||||
@@ -2372,3 +2372,9 @@ MCP
|
|||||||
正在预览 %s ...=Vorschau von %s ...
|
正在预览 %s ...=Vorschau von %s ...
|
||||||
获取远程文件信息失败(错误码 %u)=Dateiinformationen konnten nicht abgerufen werden (Fehler %u)
|
获取远程文件信息失败(错误码 %u)=Dateiinformationen konnten nicht abgerufen werden (Fehler %u)
|
||||||
预览下载失败(错误码 %u)=Vorschau-Download fehlgeschlagen (Fehler %u)
|
预览下载失败(错误码 %u)=Vorschau-Download fehlgeschlagen (Fehler %u)
|
||||||
|
; File manager remote Open (preview) menu + large-file confirmation
|
||||||
|
打开(&O)=&Oeffnen
|
||||||
|
文件较大:%s(%llu MB,超过 %u MB 预览上限)。\n仍要传输到本机并打开吗?大文件传输可能耗时较长。=Grosse Datei: %s (%llu MB, ueberschreitet das %u MB-Vorschaulimit).\nTrotzdem auf diesen Rechner uebertragen und oeffnen? Grosse Uebertragungen koennen laenger dauern.
|
||||||
|
|
||||||
|
; File manager remote Open: preview disabled feedback
|
||||||
|
预览功能已禁用,无法打开文件。可在参数中启用预览后重试。=Die Vorschau ist deaktiviert, die Datei kann nicht geoeffnet werden. Aktivieren Sie die Vorschau in den Einstellungen und versuchen Sie es erneut.
|
||||||
@@ -2383,3 +2383,9 @@ MCP
|
|||||||
正在预览 %s ...=Previewing %s ...
|
正在预览 %s ...=Previewing %s ...
|
||||||
获取远程文件信息失败(错误码 %u)=Failed to get remote file information (error %u)
|
获取远程文件信息失败(错误码 %u)=Failed to get remote file information (error %u)
|
||||||
预览下载失败(错误码 %u)=Preview download failed (error %u)
|
预览下载失败(错误码 %u)=Preview download failed (error %u)
|
||||||
|
; File manager remote Open (preview) menu + large-file confirmation
|
||||||
|
打开(&O)=&Open
|
||||||
|
文件较大:%s(%llu MB,超过 %u MB 预览上限)。\n仍要传输到本机并打开吗?大文件传输可能耗时较长。=Large file: %s (%llu MB, exceeds the %u MB preview limit).\nTransfer it to this machine and open anyway? Large transfers may take a while.
|
||||||
|
|
||||||
|
; File manager remote Open: preview disabled feedback
|
||||||
|
预览功能已禁用,无法打开文件。可在参数中启用预览后重试。=Preview is disabled, so the file cannot be opened. Enable preview in Settings and try again.
|
||||||
@@ -2376,3 +2376,9 @@ MCP
|
|||||||
正在预览 %s ...=正在預覽 %s ...
|
正在预览 %s ...=正在預覽 %s ...
|
||||||
获取远程文件信息失败(错误码 %u)=取得遠端檔案資訊失敗(錯誤碼 %u)
|
获取远程文件信息失败(错误码 %u)=取得遠端檔案資訊失敗(錯誤碼 %u)
|
||||||
预览下载失败(错误码 %u)=預覽下載失敗(錯誤碼 %u)
|
预览下载失败(错误码 %u)=預覽下載失敗(錯誤碼 %u)
|
||||||
|
; File manager remote Open (preview) menu + large-file confirmation
|
||||||
|
打开(&O)=開啟(&O)
|
||||||
|
文件较大:%s(%llu MB,超过 %u MB 预览上限)。\n仍要传输到本机并打开吗?大文件传输可能耗时较长。=檔案較大:%s(%llu MB,超過 %u MB 預覽上限)。\n仍要傳輸到本機並開啟嗎?大檔案傳輸可能耗時較長。
|
||||||
|
|
||||||
|
; File manager remote Open: preview disabled feedback
|
||||||
|
预览功能已禁用,无法打开文件。可在参数中启用预览后重试。=預覽功能已停用,無法開啟檔案。可在參數中啟用預覽後重試。
|
||||||
@@ -452,6 +452,7 @@
|
|||||||
#define IDM_LOCAL_OPEN 2134
|
#define IDM_LOCAL_OPEN 2134
|
||||||
#define IDM_REMOTE_OPEN_SHOW 2135
|
#define IDM_REMOTE_OPEN_SHOW 2135
|
||||||
#define IDM_REMOTE_OPEN_HIDE 2136
|
#define IDM_REMOTE_OPEN_HIDE 2136
|
||||||
|
#define IDM_REMOTE_OPEN_PREVIEW 2137
|
||||||
#define ID_STAUTSTIP 2139
|
#define ID_STAUTSTIP 2139
|
||||||
#define ID_STAUTSSPEED 2140
|
#define ID_STAUTSSPEED 2140
|
||||||
#define ID_STAUTSPORT 2141
|
#define ID_STAUTSPORT 2141
|
||||||
|
|||||||
Reference in new issue
Block a user