// slint_ui.slint import { VerticalBox, Button } from "std-widgets.slint"; export component MainWindow inherits Window { title: "Windows 系统工具箱"; width: 400px; height: 500px; VerticalBox { spacing: 16px; Text { text: "常用系统工具"; font-size: 24px; horizontal-alignment: center; } Button { text: "PowerShell"; clicked => { root.launch_powershell(); } } Button { text: "Windows 安全中心"; clicked => { root.launch_security_center(); } } Button { text: "Math Input Panel"; clicked => { root.launch_math_input_panel(); } } Button { text: "步骤记录器"; clicked => { root.launch_psr(); } } Button { text: "记事本"; clicked => { root.launch_notepad(); } } Button { text: "远程桌面连接"; clicked => { root.launch_mstsc(); } } Button { text: "字符映射表"; clicked => { root.launch_charmap(); } } Button { text: "任务管理器"; clicked => { root.launch_taskmgr(); } } Button { text: "CMD"; clicked => { root.launch_cmd(); } } } callback launch_powershell(); callback launch_security_center(); callback launch_math_input_panel(); callback launch_psr(); callback launch_notepad(); callback launch_mstsc(); callback launch_charmap(); callback launch_taskmgr(); callback launch_cmd(); }