UI: explain dangerous operations, screen modes and host filtering

Four items from a user-side review of the master. The common thread: the UI
now says what it is about to do instead of leaving the user to guess.

Confirm boxes. Logout, restart, shutdown, delete host and uninstall client
all asked "are you sure" without naming the action or the hosts, so a
multi-selection could not be checked. DescribeTargetHosts() lists
"note (or computer name) (ip)" capped at five lines, and the default button
is No. The preview is dropped before the modal box and targets are
re-resolved after it, since the list can reshuffle in between.

Screen modes. High Speed / Ultra Speed became High Quality (DXGI +
differential: lossless, bandwidth hungry) and Smooth (GDI + H264: lossy,
cheap). TranslateMenu looks menus up by displayed text, so the .rc entries,
the FeatureLimitsDlg item names and the language pack keys changed together.

Host filter. The Ctrl+F bar was find-next; it now filters as you type over
IP, location, note, OS and version, and Esc clears the filter. The status
line reads "filtered: N / M total" while active. Commands still resolve by
clientID and m_FilteredIndices still maps row to m_HostList index, so no
command path changes. SearchBarDlg drops from 446 to 312 lines.

Quality changes. The adaptive level now shows its reason for twenty seconds
("Good (high latency)") instead of silently changing. The full-screen info
bar was a fixed 170px, so that reason was clipped; the width is now measured
from the text with the same font that paints it, 170 becoming the floor and
16px quantisation so changing digits do not jitter the window. Cosmetic
only: no threshold, hysteresis, cooldown or lock-out logic is touched.

Verified: debug server build, 0 errors; new strings present in .res and in
the exe. UI not exercised - the debug master would fight the running release
master for the listening port in Bin/settings.ini.
This commit is contained in:
yuanyuanxiang committed 2026-11-07 15:34:45 +01:00
1 parent a190c21217
commit 6b87a31c6f
12 files changed
+364 -220

No files matched your search

+2 -2
View File
@@ -267,8 +267,8 @@
#define HIDE_CTX_GRAY_DESKTOP 0 // 黑白屏幕
#define HIDE_CTX_VIEW_WND 0 // 浏览窗口
#define HIDE_CTX_SCREENPREVIEW_LOOP 0 // 播放快照
#define HIDE_CTX_REMOTE_DESKTOP 0 // 高速屏幕
#define HIDE_CTX_H264_DESKTOP 0 // 极速屏幕
#define HIDE_CTX_REMOTE_DESKTOP 0 // 高清屏幕(DXGI + 差分)
#define HIDE_CTX_H264_DESKTOP 0 // 流畅屏幕(GDI + H264)
#define HIDE_CTX_PRIVATE_SCREEN 0 // 隐私屏幕
// --- 授权管理 ---