更新翻译

Signed-off-by: jlspcdd1227dd <12046126+jlspcdd1227dd@user.noreply.gitee.com>
This commit is contained in:
jlspcdd1227dd 2023-03-27 08:48:30 +00:00 committed by Gitee
parent 99c42404c0
commit 38702b71e9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 61 additions and 61 deletions

View File

@ -2366,31 +2366,31 @@ target_link_libraries(demo Qt5::Widgets ${KYSDKWAYLANDHELPER_PKG_LIBRARIES})
| statement | describe |
|-----------------------------------------------------------------|-------------------------------------------------|
| static WindowManager* self(); | 获取单例对象 |
| static WindowInfo getwindowInfo(const WindowId& windowId); | 获取窗口信息 |
| static WindowId currentActiveWindow(); | 获取当前活动窗口 |
| static void keepWindowAbove(const WindowId& windowId); | 置顶窗口 |
| static QString getWindowTitle(const WindowId& windowId); | 获取窗口标题 |
| static QIcon getWindowIcon(const WindowId& windowId); | 获取窗口图标 |
| static QString getWindowGroup(const WindowId& windowId); | 获取窗口所在组的组名 |
| static void closeWindow(const WindowId& windowId); | 关闭窗口 |
| static void activateWindow(const WindowId& windowId); | 激活窗口 |
| static void maximizeWindow(const WindowId& windowId); | 最大化窗口 |
| static void minimizeWindow(const WindowId& windowId); | 最小化窗口 |
| static quint32 getPid(const WindowId& windowId); | 获取窗口进程pid |
| static void showDesktop(); | 显示当前桌面 |
| static void hideDesktop(); | 取消显示当前桌面 |
| static QString currentDesktop(); | 获取当前桌面的名称 |
| static QList<WindowId> windows(); | 获取当前窗口列表 |
| static NET::WindowType getWindowType(const WindowId& windowId); | 获取窗口类型仅适用于X环境下wayland下统一返回normal |
| static void | setGeometry(QWindow *window,const QRect &rect); | 设置窗口位置 |
| static void setSkipTaskBar(QWindow *window,bool skip); | 设置是否跳过任务栏自2.0.0.0启用) |
| static void setSkipSwitcher(QWindow *window,bool skip); | 设置是否跳过窗口选择自2.0.0.0启用) |
| static bool skipTaskBar(const WindowId& windowId); | 判断窗体是否跳过任务栏自2.0.0.0启用) |
| static bool skipSwitcher(const WindowId& windowId); | 判断窗体是否跳过窗口选择自2.0.0.0启用) |
| static bool isShowingDesktop(); | 判断桌面是否处于显示状态自2.0.0.0启用) |
| static void setOnAllDesktops(const WindowId &windowId); | 设置窗口在所有桌面中显示自2.0.0.0启用) |
| static bool isOnAllDesktops(const WindowId &windowId); | 判断窗口是否在所有桌面中显示自2.0.0.0启用) |
| static WindowManager* self(); | Get the singleton object |
| static WindowInfo getwindowInfo(const WindowId& windowId); | Get window information |
| static WindowId currentActiveWindow(); | Get the current active window |
| static void keepWindowAbove(const WindowId& windowId); | top window |
| static QString getWindowTitle(const WindowId& windowId); | Get window title |
| static QIcon getWindowIcon(const WindowId& windowId); | Get window icon |
| static QString getWindowGroup(const WindowId& windowId); | Get the group name of the group where the window is located |
| static void closeWindow(const WindowId& windowId); | close the window |
| static void activateWindow(const WindowId& windowId); | activate window |
| static void maximizeWindow(const WindowId& windowId); | maximize window |
| static void minimizeWindow(const WindowId& windowId); | minimize window |
| static quint32 getPid(const WindowId& windowId); | Get the window process pid |
| static void showDesktop(); | show current desktop |
| static void hideDesktop(); | undisplay current desktop |
| static QString currentDesktop(); | Get the name of the current desktop |
| static QList<WindowId> windows(); | Get current window list |
| static NET::WindowType getWindowType(const WindowId& windowId); | Get the window type, only applicable in X environment, return normal in wayland |
| static void | setGeometry(QWindow *window,const QRect &rect); | set window position |
| static void setSkipTaskBar(QWindow *window,bool skip); | Set whether to skip the taskbar (enabled since 2.0.0.0) |
| static void setSkipSwitcher(QWindow *window,bool skip); | Set whether to skip window selection (enabled since 2.0.0.0) |
| static bool skipTaskBar(const WindowId& windowId); | Determine whether the form skips the taskbar (enabled since 2.0.0.0) |
| static bool skipSwitcher(const WindowId& windowId); | Determine whether the form skips window selection (enabled since 2.0.0.0) |
| static bool isShowingDesktop(); | Determine whether the desktop is displayed (enabled since 2.0.0.0) |
| static void setOnAllDesktops(const WindowId &windowId); | Settings window is shown in all desktops (enabled since 2.0.0.0) |
| static bool isOnAllDesktops(const WindowId &windowId); | Determine whether the window is displayed on all desktops (enabled since 2.0.0.0) |
@ -2429,108 +2429,108 @@ target_link_libraries(demo Qt5::Widgets ${KYSDKWAYLANDHELPER_PKG_LIBRARIES})
| submodule | Programming language | statement | describe |
|------|------|--------------------------------------------------------------------------------------------------|--------------------|
| 日志模块 | C++ | static void logOutput(QtMsgType type , const QMessageLogContext &context , const QString &msg); | 用于Qt注册日志函数不应单独调用. |
| log module | C++ | static void logOutput(QtMsgType type , const QMessageLogContext &context , const QString &msg); | Used by Qt to register logging functions and should not be called alone. |
| | | Parameter Description | Return value description |
| | | type:日志类型 context:调用打印日志接口文件信息 msg:日志信息 | 无 |
| | | type:Log type context: call print log interface file information msg: log information | 无 |
### 4.3.2 系统相关模块
### 4.3.2 System related modules
| submodule | Programming language | statement | describe |
|------|------|---------------------------------------------|------------|
| 窗管模块 | C++ | static bool setWindowMotifHint(int winId); | 添加窗管协议 . |
| window tube module | C++ | static bool setWindowMotifHint(int winId); | Add window protocol . |
| | | Parameter Description | Return value description |
| | | winId : 窗口 id | 成功 : true |
| | | | 失败 : false |
| | | winId : window id | success : true |
| | | | fail : false |
| submodule | Programming language | statement | describe |
|------|------|------------------------------------------|------------|
| 窗管模块 | C++ | static bool setScalingProperties(void); | 设置窗口缩放属性 |
| window tube module | C++ | static bool setScalingProperties(void); | Set window scaling properties |
| | | Parameter Description | Return value description |
| | | 无 | 成功 : true |
| | | | 失败 : false |
| | | 无 | success : true |
| | | | fail : false |
| submodule | Programming language | statement | describe |
|-----------|------|-----------------------------------------------------------------|---------------|
| session模块 | C++ | quint32 setInhibitLockScreen(AppName appName , QString reason); | 禁止系统锁屏 . |
| session module | C++ | quint32 setInhibitLockScreen(AppName appName , QString reason); | Prohibit system lock screen . |
| | | Parameter Description | Return value description |
| | | appName : 应用名 | 成功 : 非 0 的正整数 |
| | | reason : 禁止锁屏的原因 | 失败 : 0 |
| | | appName : application name | success : a positive integer other than 0 |
| | | reason : Reasons why the lock screen is prohibited | fail : 0 |
| submodule | Programming language | statement | describe |
|-----------|------|----------------------------------------|------------|
| session模块 | C++ | bool unInhibitLockScreen(quint32 flag) | 取消禁止系统锁屏 . |
| session module | C++ | bool unInhibitLockScreen(quint32 flag) | Unblock system lock screen . |
| | | Parameter Description | Return value description |
| | | flag : 禁止锁屏标识 | 成功 : true |
| | | | 失败 : false |
| | | flag : Prohibition of lock screen logo | success : true |
| | | | fail : false |
### 4.3.3 d-bus 模块------即将废弃
### 4.3.3 d-bus Module ------ will be obsolete soon
| submodule | Programming language | statement | describe |
|-----------|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------|
| d-bus模块 | C++ | static QList<QVariant> callMethod(QString serviceName, QString objectPath, QString interfaceName, QString methodName, QList<QVariant> args = QList<QVariant>()); | 函数调用 |
| d-bus module | C++ | static QList<QVariant> callMethod(QString serviceName, QString objectPath, QString interfaceName, QString methodName, QList<QVariant> args = QList<QVariant>()); | 函数调用 |
| | | Parameter Description | Return value description |
| | | serviceName : 服务名 | 函数返回值 |
| | | objectPath : 对象路径 | |
| | | interfaceName : 接口名 | |
| | | methodName : 函数名 | |
| | | args : 参数列表 | |
| | | serviceName : Service Name | 函数返回值 |
| | | objectPath : object path | |
| | | interfaceName : interface name | |
| | | methodName : Function name | |
| | | args : parameter list | |
### 4.3.4 系统信息模块
### 4.3.4 System Information Module
| submodule | Programming language | statement | describe |
|--------|------|-------------------------------------------------|-------------------------------|
| 系统信息模块 | C++ | QString getLsbReleaseInformation(QString key); | 根据 lsb-release 文件的 key 值 获取信息 |
| System Information Module | C++ | QString getLsbReleaseInformation(QString key); | Obtain information according to the key value of the lsb-release file |
| | | Parameter Description | Return value description |
| | | key : 键值 | 获取到的信息 , 为空时可能确实为空也可能失败 |
| | | key : key value | The obtained information, if it is empty, it may be indeed empty or it may fail |
| submodule | Programming language | statement | describe |
|--------|------|------------------------------------------------|------------------------------|
| 系统信息模块 | C++ | QString getOsReleaseInformation(QString key); | 根据 os-release 文件的 key 值 获取信息 |
| System Information Module | C++ | QString getOsReleaseInformation(QString key); | Get information according to the key value of the os-release file |
| | | Parameter Description | Return value description |
| | | key : 键值 | 获取到的信息 , 为空时可能确实为空也可能失败 |
| | | key : key value | The obtained information, if it is empty, it may be indeed empty or it may fail |
| submodule | Programming language | statement | describe |
|--------|------|-----------------------------------|--------------------------|
| 系统信息模块 | C++ | QString getProjectCodeName(void) | 获取 PROJECT_CODENAME 字段的值 |
| System Information Module | C++ | QString getProjectCodeName(void) | Get the value of the PROJECT_CODENAME field |
| | | Parameter Description | Return value description |
| | | 无 | 空 : 失败 |
| | | | 非空 : 获取到的值 |
| | | 无 | empty : failed |
| | | | non-empty: the obtained value |
| submodule | Programming language | statement | describe |
|--------|------|--------------------------------|------------|
| 系统信息模块 | C++ | QString getCpuModelName(void) | 获取 CPU 型号 |
| System Information Module | C++ | QString getCpuModelName(void) | Get CPU model |
| | | Parameter Description | Return value description |
| | | 无 | 空 : 失败 |
| | | | 非空 : 获取到的值 |
| | | 无 | empty : failed |
| | | | non-empty: the obtained value |
| submodule | Programming language | statement | describe |
|--------|------|-------------------------------|------------|
| 系统信息模块 | C++ | QString getHdPlatform(void); | 获取硬件平台信息 |
| System Information Module | C++ | QString getHdPlatform(void); | Obtain hardware platform information |
| | | Parameter Description | Return value description |
| | | 无 | 空 : 失败 |
| | | | 非空 : 获取到的值 |
| | | 无 | empty : failed |
| | | | non-empty: the obtained value |