diff options
Diffstat (limited to '')
-rw-r--r-- | README.md | 79 | ||||
-rw-r--r-- | README_CN.md | 186 | ||||
-rw-r--r-- | src/ui/settings/SettingsGeneral.cpp | 5 | ||||
-rw-r--r-- | ui/KeyDeatils.ui | 48 |
4 files changed, 90 insertions, 228 deletions
@@ -9,31 +9,29 @@  [](https://app.fossa.com/projects/git%2Bgithub.com%2Fsaturneric%2FGpgFrontend?ref=badge_small) -GpgFrontend is a Powerful, Easy-to-Use, Compact, Cross-Platform, and -Installation-Free [OpenPGP](https://www.openpgp.org/) +GpgFrontend is a Free, Open Source, Powerful, Easy-to-Use, Compact, Cross-Platform [OpenPGP](https://www.openpgp.org/) Crypto Tool. By using GpgFrontend, you can quickly encrypt and decrypt text or files. Or at the same time as the above operations, you can add your own signature to let others know that this document or this paragraph of text was issued by you. Please **take the initiative to protect privacy in your own hands**, instead of relying on servers and algorithms -provided by large companies. +provided by large companies. Please use this tool to transmit or store information that you regard as very precious. You +can also use it to securely guarantee the authenticity of your information. -**Notice:** GpgFrontend does not provide an embedded [gnupg](https://gnupg.org/) binary library and needs to be -installed by the user. **This is to ensure safety and avoid code or binary files involved in encryption and decryption -being implanted in the backdoor during the delivery process.** +GpgFrontned [supports languages](#languages-support) that are widely used in most countries and regions around the +world, including English, Chinese, French, Russian, German, Spanish, Portuguese, Arabic, etc. + +**Notice:** GpgFrontend does not provide an embedded [gnupg](https://gnupg.org/) (gpg) binary and needs to be installed +by the user. **This is to ensure safety and avoid code or binary files involved in encryption and decryption being +implanted in the backdoor during the delivery process.** If you find this tool useful and promising, welcome to encourage me through STAR this project. Thanks! [>> Quick Start <<](#quick-start) | -[>> Code & Binary Security <<](https://gpgfrontend.pub/#/about/code-binary-verify) | -[>> 简中README <<](https://github.com/saturneric/GpgFrontend/blob/main/README_CN.md) +[>> Code & Binary Security <<](https://gpgfrontend.pub/#/about/code-binary-verify) <div align="center"> -<img width="640" src="https://github.com/saturneric/Blob/blob/master/screenshots/main_mac.jpg?raw=true" alt="macOS Screenshot"/> -</div> -<div align="center"> -<img width="320" src="https://github.com/saturneric/Blob/blob/master/screenshots/key_info.PNG?raw=true" alt="Windows Screenshot"/> -<img width="320" src="https://github.com/saturneric/Blob/blob/master/screenshots/keygen_ubuntu.png?raw=true" alt="Ubuntu Screenshot"/> +<img src="https://github.com/saturneric/Blob/blob/master/screenshots/main-ubuntu.png?raw=true" alt="Ubuntu Main Screenshot"/> </div> #### Workflows Status: @@ -44,7 +42,6 @@ If you find this tool useful and promising, welcome to encourage me through STAR ## Table of Contents -- [Features](#features) - [Usage](#usage) - [Quick Start](#quick-start) - [How to Run it](#how-to-run-it) @@ -60,13 +57,6 @@ If you find this tool useful and promising, welcome to encourage me through STAR - [Maintainers](#maintainers) - [Licenses](#LICENSES) -## Features - -- Can run on **Windows, Linux and macOS**. -- Open source, free, no need to install. -- Just double-click, and then you can use it freely. -- Supports multiple [languages](#languages-support). - ## Usage ### Quick Start @@ -75,13 +65,13 @@ If you find this tool useful and promising, welcome to encourage me through STAR Encryption can be done in just a few clicks. - + ### Fast Text Decryption I want to see what you wrote right away. - + ### Fast File Encryption & Sign @@ -95,7 +85,7 @@ Read the animated pictures in the [Document](https://gpgfrontend.pub/#/quick-sta ### How to Run it -#### Windows +#### Windows (No Setup) 0. If you haven't installed gnupg, please [Download](https://gnupg.org/ftp/gcrypt/binary/gnupg-w32-2.3.1_20210420.exe) `gnupg-w32-******.exe` and @@ -104,9 +94,17 @@ Read the animated pictures in the [Document](https://gpgfrontend.pub/#/quick-sta 2. Unzip `gpgfrontend-windows-latest-*******.zip` 3. Go into the directory and double click `GpgFrontend.exe`. +#### Windows (Setup) + +0. Double click `GpgFrontend-...-Setup.exe`. +1. Use GpgFrontend. + #### macOS 0. If command `gpg` is not available, please use homebrew to install it first. + ```shell + $ sudo brew install gpg + ``` 1. [Download GpgFrontend](https://github.com/saturneric/GpgFrontend/releases) macOS edition from the latest release 2. Double-Click GpgFrontend.dmg to load it 3. Double click and run it @@ -132,11 +130,11 @@ Read the animated pictures in the [Document](https://gpgfrontend.pub/#/quick-sta ```shell $ chmod u+x ./GpgFrontend-***.AppImage ``` -3. Just double-click `GpgFrontend-***.AppImage` to run it. +3. Just double-click `GpgFrontend-***.AppImage` to run it. (If you installed AppImage Launcher, it's better.) ## Document -for more usage information, please read [document](https://gpgfrontend.pub/#/overview). +For more usage information, please read [document](https://gpgfrontend.pub/#/overview). ## Purpose @@ -162,17 +160,14 @@ The supported languages are listed here. Some languages use machine translation to join translation and verification work, please refer to the [translate the interface](https://gpgfrontend.pub/#/translate-interface). -Notice: The verification may not be complete and rigorous. +### Supported Languages -| Language | English | 简体中文 | français | Французский | Español | -| ---- | ---- | ---- | ---- | ---- | ---- | -| Support | Support | 支持 | Etre prêt | ожидать | apoyar | -| Verification | Origin | 不完全 | Jamais |Никогда | Nunca | +'zh_CN', 'es_ES', 'zh_TW', 'zh_HK', 'fr_FR', 'de_DE', 'pl_PL', 'ru_RU', 'ja_JP', 'it_IT', +'ko_KR', 'pt_BR', 'ar_SA', 'ar_IQ', 'hi_IN', 'af_ZA', 'sq_AL', 'be_BY', 'bg_BG', 'ca_ES', +'hr_HR', 'cs_CZ', 'da_DK', 'nl_NL', 'et_EE', 'fa_IR', 'fi_FI', 'fr_CA', 'he_IL', 'id_ID', +'lt_LT', 'De_AT', 'De_CH', 'El_GR', 'Es_MX', 'Iw_IL', 'UK_UA' -| Language | 日本語 | 繁體中文 | عربى | português | -| ---- | ---- | ---- | ---- | ---- | -| Support | 未だに | 尚未 | ليس بعد | Ainda não | -| Verification | | | | | +Notice: The verification may not be complete and rigorous. ## Contract @@ -201,19 +196,21 @@ GpgFrontend itself is licensed under the [GPLv3](COPYING). There are some libraries and binary included in the zip-file which (may) have different licenses, for more information check their homepages. You can also obtain the sources from there. -gnupg: https://gnupg.org/ +gnupg: https://gnupg.org + +gpgme: https://gnupg.org/software/gpgme/index.html -gpg4usb: https://www.gpg4usb.org/ +gpg4usb: https://www.gpg4usb.org -QT 5.15.2(opensource): https://www.qt.io/ +QT 5.15.2(opensource): https://www.qt.io -MSYS2: https://www.msys2.org/ +MSYS2: https://www.msys2.org mingw-w64: http://mingw-w64.org/doku.php -AppImage: https://appimage.org/ +AppImage: https://appimage.org -rapidjson: https://github.com/Tencent/rapidjson +JSON for Modern C++: https://github.com/nlohmann/json Application Bundles: [Link](https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html#//apple_ref/doc/uid/10000123i-CH101-SW1) diff --git a/README_CN.md b/README_CN.md deleted file mode 100644 index e86a62e3..00000000 --- a/README_CN.md +++ /dev/null @@ -1,186 +0,0 @@ -<img width="100" height="100" align="right" src="https://github.com/saturneric/Blob/blob/master/logos/icon.png?raw=true" alt="ICON"/> - -# GpgFrontend - - - - -[](https://www.codacy.com/gh/saturneric/GpgFrontend/dashboard?utm_source=github.com&utm_medium=referral&utm_content=saturneric/GpgFrontend&utm_campaign=Badge_Grade) - -[](https://app.fossa.com/projects/git%2Bgithub.com%2Fsaturneric%2FGpgFrontend?ref=badge_small) - -GpgFrontend 是一个易于使用、小巧、跨平台和免安装的 [OpenPGP](https://www.openpgp.org/) 加密解密签名工具。 - -通过使用 GpgFrontend,你可以快速加密和解密文本或文件。或者在进行上述操作的同时加上自己的签名,让别人知道这个文件或者这段文字是出自你之手。 请将隐私保护的主动权掌握在自己手上,而不是依赖大公司提供的服务器和算法。 - -注意:GpgFrontend 不提供嵌入式 gnupg 二进制库,需要用户自行安装。这是为了确保安全,避免涉及加密解密的代码或二进制文件在传递过程中被植入后门。 - -如果你觉得这款工具有用或者有希望,`欢迎通过STAR这个项目来鼓励我`。 - -[>> 快速开始](#quick-start) - -[>> 代码与二进制文件安全](https://gpgfrontend.pub/#/about/code-binary-verify) - -<div align="center"> -<img width="640" src="https://github.com/saturneric/Blob/blob/master/screenshots/main_mac.jpg?raw=true" alt="macOS Screenshot"/> -</div> -<div align="center"> -<img width="320" src="https://github.com/saturneric/Blob/blob/master/screenshots/key_info.PNG?raw=true" alt="Windows Screenshot"/> -<img width="320" src="https://github.com/saturneric/Blob/blob/master/screenshots/keygen_ubuntu.png?raw=true" alt="Ubuntu Screenshot"/> -</div> - -#### Workflows 状态: - -[](https://github.com/saturneric/GpgFrontend/actions/workflows/cmake.yml) - ---- - -## 内容目录 - -- [软件特性](#软件特性) -- [使用方法](#使用方法) - - [快速开始](#快速开始) - - [如何安装](#如何安装) - - [Windows](#windows) - - [macOS](#macos) - - [Debian/Ubuntu/CentOS](#debianubuntucentos) -- [文档](#文档) -- [开发宗旨](#开发宗旨) -- [构建方法](#构建方法) -- [联系](#联系) - - [做出贡献或者报告问题](#做出贡献或者报告问题) - - [关于维护者](#关于维护者) -- [许可证](#许可证) - -## 软件特性 - -- 可以在 Windows、Linux 和 macOS 上运行。 -- 开源,免费,无需安装。 -- 只需双击即可自由使用。 -- 支持多种语言。 - - 有兴趣的可以帮我 [翻译一下界面](https://gpgfrontend.pub/#/translate-interface) 。 - -## 使用方法 - -### 快速开始 - -### 快速加密 - -只需单击几下即可完成加密。 - - - -### 快速解密 - -我想马上看看对方写了什么。 - - - -### 快速文件加密与签名 - -对于文件,我该怎么做? - - - -### 还有那些有用的操作 - -阅读 [文档](https://gpgfrontend.pub/#/quick-start) 中的动图,了解更多精彩操作。 - -### 如何安装 - -#### Windows - -0. 如果你还没有安装gnupg,请 [下载](https://gnupg.org/ftp/gcrypt/binary/gnupg-w32-2.3.1_20210420.exe) gnupg-w32-**\*\***.exe 并双击安装 -1. [下载 GpgFrontend](https://github.com/saturneric/GpgFrontend/releases) Windows Edition from release -2. 解压 gpgfrontend-windows-latest-**\*\*\***.zip -3. 进入目录,双击运行 GpgFrontend.exe - -#### macOS - -0. 如果命令 `gpg` 不可用,请先用 Homebrew 安装它. -1. [下载 GpgFrontend](https://github.com/saturneric/GpgFrontend/releases) macOS edition from release -2. 双击并加载 GpgFrontend-***.dmg -3. 双击并运行 - (由于 macOS 的安全策略,在真正能运行前请遵照系统说明). -4. 如果你满意的话,可以将本软件复制到 Application 文件夹. - -#### Debian/Ubuntu/CentOS - -1. 安装 gnupg (如果你已经安装了请跳过) - - For Debian/Ubuntu - ```shell - $ sudo apt update - $ sudo apt install gpg - ``` - - For CentOS - ```shell - $ sudo yum install gnupg - ``` -2. [下载 GpgFrontend](https://github.com/saturneric/GpgFrontend/releases) Linux edition from the latest release -3. 赋予 `GpgFrontend-***.AppImage` 执行权限 - ```shell - $ chmod u+x ./GpgFrontend-***.AppImage - ``` -4. 双击运行 `GpgFrontend-***.AppImage`. - -## 文档 - -如果你想获取更多信息,请阅读 [文档](https://gpgfrontend.pub/#/overview). - -## 开发宗旨 - -GpgFrontend 项目继承自一个相对成熟但未维护的 [gpg4usb](https://www.gpg4usb.org/) 项目。 它继承了 gpg4usb 稳定、易用、小巧、免安装的特点。 - -GpgFrontend 未来会增加更多功能,提高 GPG 在端到端传输中的易用性并缩短密文长度。同时,新功能的加入不影响旧的基础功能。 我个人的力量总是有限的。 GpgFrontend 欢迎志愿者加入。你可以使用 GitHub -平台提交问题或提交 pull request。 - -GpgFrontend 项目作为开源项目,也坚持使用开源代码和库。 - -## 构建方法 - -构建软件的教程将很快发布。你可以先查看本项目的 GitHub Action 文件。 - -## 联系 - -如果你想与我私下联系,你可以发送电子邮件到 [[email protected]](mailto:[email protected])。 - -### 做出贡献或者报告问题 - -欢迎!你可以通过 [提出 issue](https://github.com/saturneric/GpgFrontend/issues/new) 或提交 PR 来做出贡献。 - -### 关于维护者 - -该项目的维护者是 [@Saturneric](https://github.com/saturneric). - -## LOGO - - - -## 许可证 - -GpgFrontend 在 [GPLv3](COPYING) 许可证下。 - -[](https://app.fossa.com/projects/git%2Bgithub.com%2Fsaturneric%2FGpgFrontend?ref=badge_large) - -### 依赖 - -项目使用到了一些库和二进制文件,它们(可能)具有不同的许可证,请查看它们的主页获取更多信息。您也可以从那里获取相关信息。 - -gnupg: https://gnupg.org/ - -gpg4usb: https://www.gpg4usb.org/ - -QT 5.15.2(opensource): https://www.qt.io/ - -MSYS2: https://www.msys2.org/ - -mingw-w64: http://mingw-w64.org/doku.php - -AppImage: https://appimage.org/ - -rapidjson: https://github.com/Tencent/rapidjson - -Application -Bundles: [Link](!https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html#//apple_ref/doc/uid/10000123i-CH101-SW1) - -本软件图标使用来自 [阿里巴巴矢量图标库](!https://www.iconfont.cn/) 的素材。免费库中的图标未注册为商标。不涉及版权问题。 diff --git a/src/ui/settings/SettingsGeneral.cpp b/src/ui/settings/SettingsGeneral.cpp index 4f9bfbae..978a7b5f 100644 --- a/src/ui/settings/SettingsGeneral.cpp +++ b/src/ui/settings/SettingsGeneral.cpp @@ -81,12 +81,15 @@ GeneralTab::GeneralTab(QWidget* parent) : QWidget(parent) { *****************************************/ auto* langBox = new QGroupBox(_("Language")); auto* langBoxLayout = new QVBoxLayout(); - langSelectBox = new QComboBox; + langSelectBox = new QComboBox(); + langSelectBox->setMaxVisibleItems(8); + langSelectBox->view()->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded); lang = SettingsDialog::listLanguages(); for (const auto& l : lang) { langSelectBox->addItem(l); } + langSelectBox->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLength); langBoxLayout->addWidget(langSelectBox); langBoxLayout->addWidget(new QLabel( diff --git a/ui/KeyDeatils.ui b/ui/KeyDeatils.ui new file mode 100644 index 00000000..c9a7421d --- /dev/null +++ b/ui/KeyDeatils.ui @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>KeyDeatilsDialog</class> + <widget class="QDialog" name="KeyDeatilsDialog"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>423</width> + <height>616</height> + </rect> + </property> + <property name="windowTitle"> + <string>Dialog</string> + </property> + <layout class="QGridLayout" name="gridLayout"> + <item row="0" column="0"> + <layout class="QVBoxLayout" name="verticalLayout"> + <item> + <widget class="QTabWidget" name="tabWidget"> + <property name="tabPosition"> + <enum>QTabWidget::North</enum> + </property> + <property name="currentIndex"> + <number>0</number> + </property> + <property name="documentMode"> + <bool>true</bool> + </property> + <widget class="QWidget" name="tab"> + <attribute name="title"> + <string>Tab 1</string> + </attribute> + </widget> + <widget class="QWidget" name="tab_2"> + <attribute name="title"> + <string>Tab 2</string> + </attribute> + </widget> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + <resources/> + <connections/> +</ui> |