更新翻译

Signed-off-by: jlspcdd1227dd <12046126+jlspcdd1227dd@user.noreply.gitee.com>
This commit is contained in:
jlspcdd1227dd 2023-03-24 08:41:30 +00:00 committed by Gitee
parent c9aaf62439
commit 28d965b9ab
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 64 additions and 64 deletions

View File

@ -1260,53 +1260,53 @@ Set print parameters
| | | Parameter Description | Return value description |
| | | number_upPrint several pages on one paper<br>media: paper type<br>number_up_layout: cups attribute, such as lrtb<br>sides: single-sided one-sided, double-sided (long side flip): two_sided_long_dege<br>double-sided (short flip side)<br> two_sided_short_dege | 无 |
打印文件
print documents
| submodule | Programming language | statement | describe |
|------------|----------|-----------------------------------------------------------------------------------|------------------|
| printer management | C | extern int kdk_printer_print_local_file(const char *printername, char *filepath); | print documents |
| | | Parameter Description | Return value description |
| | | printername: 打印机名 <br> filepathPrint the absolute path of the file | int id of the print job |
| | | printername: printer name <br> filepathPrint the absolute path of the file | int id of the print job |
取消打印作业
cancel print job
| submodule | Programming language | statement | describe |
|-----------------|-------|-----------------------------------------------|--------|
| printer management | C | extern int kdk_printer_cancel_all_jobs(const char *printername); | cancel print job |
| | | Parameter Description | Return value description | |
| | | printername打印机名 | int <br> Success: 0 <br> Failed:-1 |
| | | printernameprinter name | int <br> Success: 0 <br> Failed:-1 |
获取打印机状态
Get printer status
| submodule | Programming language | statement | describe |
|------------|----------|-------------------------------------------------------------|----------------|
| printer management | C | extern int kdk_printer_get_status(const char *printername); | Get printer status |
| | | Parameter Description | Return value description |
| | | printername打印机名 | printer status code |
| | | printernameprinter name | printer status code |
从url中解析下载的文件名
Parse the downloaded filename from the url
| submodule | Programming language | statement | describe |
|------------|----------|------------------------------------------------------------------------|-----------------------|
| printer management | C | extern void kdk_printer_get_filename(const char *url, char *filename); | Parse downloaded filename from url |
| | | Parameter Description | Return value description |
| | | url下载链接 | |
| | | filename解析出来的文件名 | |
| | | urldownload link | |
| | | filenameparsed filename | |
获取当前打印任务状态
Get current print job status
| submodule | Programming language | statement | describe |
|------------|----------|----------------------------------------------------------------------------|----------------------|
| printer management | C | extern int kdk_printer_get_job_status(const char *printername, int jobid); | Get current print job status |
| | | Parameter Description | Return value description |
| | | printername打印机名 | print task status code |
| | | printernameprinter name | print task status code |
下载网络文件到本地
Download network files to local
| submodule | Programming language | statement | describe |
|------------|----------|-------------------------------------------------------------------------------------------|--------------------|
| printer management | C | extern int kdk_printer_print_download_remote_file(const char *url, const char *filepath); | Download network files to local |
| | | Parameter Description | Return value description |
| | | url网络文件 | download status code |
| | | filepath要保存的文件路径,用户自定义 | |
| | | urlnetwork file | download status code |
| | | filepathThe file path to save, user-defined | |
@ -1422,23 +1422,23 @@ Title switching, the title color responds to the window activation status, and t
|------|--------------------------------------------------------|
> VerticalType上下结构
> VerticalTypeupper and lower structure
>
> HorizontalType左右结构
> HorizontalTypeleft and right structure
>
> MixedType过渡结构
> MixedTypetransitional structure
| statement | describe | | |
|------------------------------------------------|--------------------------------------------------|---|---|
| QWidget* sideBar(); | 获取左边栏widget,通过setlayout添加自定义内容。 | | |
| QWidget* baseBar(); | 获取主内容区widget,通过setlayout添加自定义内容。 | | |
| void setIcon(const QIcon& icon); | 通过icon添加窗体图标 | | |
| void setIcon(const QString& iconName); | 设置窗体图标iconName 需要直接指定系统目录中的图标名称,如"kylin-music"。 | | |
| void setWidgetName(const QString& widgetName); | 设置窗体名称。 | | |
| KWindowButtonBar* windowButtonBar(); | 获取窗口三联组合控件,以控制是否显示最大化、最小化按钮和下拉菜单按钮。 | | |
| KIconBar* iconBar(); | 获取窗口标题、图标组合控件,以控制相关样式。 | | |
| void setLayoutType(LayoutType type); | 设置布局结构类型。 | | |
| QWidget* sideBar(); | Get the left column widget, and add custom content through setlayout. | | |
| QWidget* baseBar(); | Get the widget in the main content area, and add custom content through setlayout. | | |
| void setIcon(const QIcon& icon); | Add form icon via icon | | |
| void setIcon(const QString& iconName); | Set the window icon, iconName needs to directly specify the icon name in the system directory, such as "kylin-music". | | |
| void setWidgetName(const QString& widgetName); | Set the form name. | | |
| KWindowButtonBar* windowButtonBar(); | Gets the window triplet control to control whether to display the maximize, minimize, and drop-down menu buttons. | | |
| KIconBar* iconBar(); | Get window title, icon combination controls to control related styles. | | |
| void setLayoutType(LayoutType type); | Sets the layout structure type. | | |
@ -1460,17 +1460,17 @@ body, you can specify the size, display direction and display position of the bu
| statement | describe |
|-----------------------------------------------------------------------------------|----------------------|
| void setTailSize(const QSize& size); | 设置气泡尾部尺寸 |
| QSize tailSize(); | 获取气泡尾部尺寸 |
| void setTailPosition(TailDirection dirType, TailLocation locType=MiddleLocation); | 设置气泡尾部显示位置 |
| TailDirection tailDirection(); | 获取气泡尾部显示方向(左、上、右、下) |
| TailLocation tailLocation(); | 获取气泡尾部显示位置(居左、居中、居右) |
| void setBorderRadius(int bottomLeft,int topLeft,int topRight,int bottomRight); | 设置窗体圆角半径 |
| void setBorderRadius(int radius); | 设置窗体圆角半径 |
| void setEnableBlur(bool flag); | 设置是否启用毛玻璃效果 |
| bool enableBlur(); | 获取是否已启用毛玻璃效果 |
| void setOpacity(qreal opacity); | 设置透明度 |
| qreal opacity(); | 获取透明度 |
| void setTailSize(const QSize& size); | Sets the bubble tail size |
| QSize tailSize(); | Get the bubble tail size |
| void setTailPosition(TailDirection dirType, TailLocation locType=MiddleLocation); | Set the display position of the bubble tail |
| TailDirection tailDirection(); | Get the display direction of the bubble tail (left, up, right, down) |
| TailLocation tailLocation(); | Get the display position of the bubble tail (left, center, right) |
| void setBorderRadius(int bottomLeft,int topLeft,int topRight,int bottomRight); | Set the form corner radius |
| void setBorderRadius(int radius); | Set the form corner radius |
| void setEnableBlur(bool flag); | Set whether to enable the frosted glass effect |
| bool enableBlur(); | Get whether the frosted glass effect is enabled |
| void setOpacity(qreal opacity); | set transparency |
| qreal opacity(); | get transparency |
### **4.1.2** Dialog Module
@ -1484,14 +1484,14 @@ Title switching, the window button style conforms to the design style of ukui3.1
| statement | describe |
|----------------------------------------------|-----------------------------------------------------------------------|
| void setWindowIcon(const QIcon &icon); | 设置对话框图标 |
| void setWindowIcon(const QString& iconName); | 直接根据图标名称设置窗口图标,例如:dialog->setWindowIcon("kylin-music"); |
| void setWindowTitle(const QString &); | 设置对话框标题名称 |
| QPushButton* maximumButton(); | 获取最大化按钮 |
| QPushButton* minimumButton(); | 获取最小化按钮 |
| QPushButton* closeButton(); | 获取关闭按钮 |
| KMenuButton* menuButton(); | 获取下拉菜单按钮,默认是隐藏的,不显示。 |
| QWidget* mainWidget(); | 获取主内容区通过setLayout()添加内容。例如:dialog->mainWidget()->setLayout(hLayout); |
| void setWindowIcon(const QIcon &icon); | Settings dialog icon |
| void setWindowIcon(const QString& iconName); | Set the window icon directly according to the icon name, for example:dialog->setWindowIcon("kylin-music"); |
| void setWindowTitle(const QString &); | Set the dialog title name |
| QPushButton* maximumButton(); | Get the maximize button |
| QPushButton* minimumButton(); | Get the minimize button |
| QPushButton* closeButton(); | get the close button |
| KMenuButton* menuButton(); | Get the drop-down menu button, which is hidden by default and not displayed。 |
| QWidget* mainWidget(); | Get the main content area and add content through setLayout(). For example:dialog->mainWidget()->setLayout(hLayout); |
@ -1508,18 +1508,18 @@ ID, team mailbox and specific application description, note that the default app
![输入图片说明](assets/openKylin%20SDK%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97V2.0/image7.png)
| statement | describe |
|------------------------------------------------|---------------------------|
| void setAppIcon(const QIcon& icon); | 设置应用程序图标 |
| void setAppName(const QString& appName); | 设置应用程序名称 |
| QString appName(); | 获取应用程序名称 |
| void setAppVersion(const QString& appVersion); | 设置应用程序版本号 |
| QString appVersion(); | 获取应用程序版本号 |
| void setBodyText(const QString& bodyText); | 设置应用程序具体的说明内容 |
| QString bodyText(); | 获取应用程序具体的说明内容 |
| void setAppSupport(const QString& appSupport); | 设置服务与支持邮箱,有默认缺省 |
| QString appSupport(); | 获取服务与支持邮箱 |
| void setBodyTextVisiable(bool flag); | 设置是否显示说明内容 |
| void setAppPrivacyLabelVisible(bool flag); | 设置隐私按钮是否可见自1.2.0.10版本启用) |
| bool AppPrivacyLabelIsVisible(); | 返回隐私按钮是否可见自1.2.0.10版本启用) |
| void setAppIcon(const QIcon& icon); | set application icon |
| void setAppName(const QString& appName); | set application name |
| QString appName(); | get application name |
| void setAppVersion(const QString& appVersion); | Set the application version number |
| QString appVersion(); | Get application version number |
| void setBodyText(const QString& bodyText); | Set application-specific description content |
| QString bodyText(); | Get application-specific description content |
| void setAppSupport(const QString& appSupport); | Set service and support mailboxes, with default defaults |
| QString appSupport(); | Get Service and Support Email |
| void setBodyTextVisiable(bool flag); | Set whether to display the description content |
| void setAppPrivacyLabelVisible(bool flag); | Set whether the privacy button is visible (enabled since version 1.2.0.10) |
| bool AppPrivacyLabelIsVisible(); | Returns whether the privacy button is visible (enabled since version 1.2.0.10) |
@ -1547,7 +1547,7 @@ ID, team mailbox and specific application description, note that the default app
>
> Qt::InputMethodHints inputMethodHints)
>
> 多行文本输入框,同 QInputDialog
> Multi-line text input box, same as QInputDialog
![输入图片说明](assets/openKylin%20SDK%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97V2.0/image9.png)
@ -1556,7 +1556,7 @@ ID, team mailbox and specific application description, note that the default app
int KInputDialog::getInt(QWidget *parent,const QString &label, int value,
int min, int max, int step, bool *ok, Qt::WindowFlags flags)
```
> 整型数字输入对话框,同 QInputDialog
> Integer number input dialog, same as QInputDialog
>
![输入图片说明](assets/openKylin%20SDK%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97V2.0/image10.png)
>
@ -1568,11 +1568,11 @@ double value, double minValue, double maxValue,
int decimals, bool *ok, Qt::WindowFlags flags)
```
> 浮点型数字输入对话框,同 QInputDialog
> Floating-point number input dialog, same as QInputDialog
>
![输入图片说明](assets/openKylin%20SDK%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97V2.0/image11.png)
>
> 枚举类型
> enumerated type
| enum | InputDialogOption { NoButtons, UseListViewForComboBoxItems, UsePlainTextEditForTextInput } |
|-------|--------------------------------------------------------------------------------------------|
@ -2021,11 +2021,11 @@ m_pBtn1->setPalette(palette);
| statement | describe |
|-------------------------------------------------------|---------------------|
| QPushButton* minimumButton(); | 获取最小化按钮 |
| QPushButton* maximumButton(); | 获取最大化按钮 |
| QPushButton* closeButton(); | 获取关闭按钮 |
| QPushButton* minimumButton(); | Get the minimize button |
| QPushButton* maximumButton(); | Get the maximize button |
| QPushButton* closeButton(); | get the close button |
| KMenuButton* menuButton(); | 获取菜单按钮 |
| MaximumButtonState maximumButtonState(); | 获取最大化按钮的状态(最大化/恢复) |
| MaximumButtonState maximumButtonState(); | Get the maximize button的状态(最大化/恢复) |
| void setMaximumButtonState(MaximumButtonState state); | 设置最大化按钮图标状态(最大化/恢复) |