From 28d965b9abfc3f08a247b58340bb6bb27a8ba2f1 Mon Sep 17 00:00:00 2001
From: jlspcdd1227dd <12046126+jlspcdd1227dd@user.noreply.gitee.com>
Date: Fri, 24 Mar 2023 08:41:30 +0000
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BF=BB=E8=AF=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: jlspcdd1227dd <12046126+jlspcdd1227dd@user.noreply.gitee.com>
---
.../openKylin_SDK_Guide_V2.0.md | 128 +++++++++---------
1 file changed, 64 insertions(+), 64 deletions(-)
diff --git a/en/Community-Developer-Guides/openKylin_SDK_Guide_V2.0.md b/en/Community-Developer-Guides/openKylin_SDK_Guide_V2.0.md
index a400faf1..add640b4 100644
--- a/en/Community-Developer-Guides/openKylin_SDK_Guide_V2.0.md
+++ b/en/Community-Developer-Guides/openKylin_SDK_Guide_V2.0.md
@@ -1260,53 +1260,53 @@ Set print parameters
| | | Parameter Description | Return value description |
| | | number_up:Print several pages on one paper
media: paper type
number_up_layout: cups attribute, such as lrtb
sides: single-sided one-sided, double-sided (long side flip): two_sided_long_dege
double-sided (short flip side):
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: 打印机名
filepath:Print the absolute path of the file | int id of the print job |
+| | | printername: printer name
filepath:Print 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
Success: 0
Failed:-1 |
+| | | printername:printer name | int
Success: 0
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 |
+| | | printername,printer 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,解析出来的文件名 | |
+| | | url,download link | |
+| | | filename,parsed 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 |
+| | | printername,printer 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,要保存的文件路径,用户自定义 | |
+| | | url,network file | download status code |
+| | | filepath,The file path to save, user-defined | |
@@ -1422,23 +1422,23 @@ Title switching, the title color responds to the window activation status, and t
|------|--------------------------------------------------------|
-> VerticalType:上下结构
+> VerticalType:upper and lower structure
>
-> HorizontalType:左右结构
+> HorizontalType:left and right structure
>
-> MixedType:过渡结构
+> MixedType:transitional 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

| 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

@@ -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
>

>
@@ -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
>

>
-> 枚举类型
+> 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); | 设置最大化按钮图标状态(最大化/恢复) |