Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
saturneric committed May 3, 2024
2 parents 4001446 + feb6483 commit 773b06e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 34 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ GpgFrontend is **PERMANENTLY FREE** of charge. However, you can support us by
- [Developer Document](#developer-document)
- [Language Support](#language-support)
- [Supported Languages](#supported-languages)
- [Contract](#contract)
- [Contact](#contact)
- [Contributing \& Bugs Report](#contributing--bugs-report)
- [Project Maintainer](#project-maintainer)
- [Project's Logo](#projects-logo)
Expand Down Expand Up @@ -69,9 +69,9 @@ GpgFrontend currently supports an array of languages including:

Contributors: [SHOW](TRANSLATORS)

## Contract
## Contact

Please refer to [HERE](https://www.gpgfrontend.bktus.com/#/contract) for my contact details.
Please refer to [HERE](https://www.gpgfrontend.bktus.com/contact) for my contact details.

### Contributing & Bugs Report

Expand Down
51 changes: 20 additions & 31 deletions src/ui/dialog/Wizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,14 @@ IntroPage::IntroPage(QWidget* parent) : QWizardPage(parent) {
setSubTitle(tr("... with GpgFrontend"));

auto* top_label = new QLabel(
tr("Welcome to use GpgFrontend for decrypting and signing text or "
"file!") +
tr("Welcome to GpgFrontend for decrypting and signing text or files!") +
" <br><br><a href='https://gpgfrontend.bktus.com'>GpgFrontend</a> " +
tr("is a Powerful, Easy-to-Use, Compact, Cross-Platform, and "
"Installation-Free OpenPGP Crypto Tool.") +
tr("For brief information have a look at the") +
" <a href='https://gpgfrontend.bktus.com/index.html#/overview'>" +
"Installation-Free OpenPGP Crypto Tool. ") +
tr("To get started, be sure to check out the") +
" <a href='https://gpgfrontend.bktus.com/overview/glance'>" +
tr("Overview") + "</a> (" +
tr("by clicking the link, the page will open in the web browser") +
tr("by clicking the link, the page will open in your web browser") +
"). <br>");
top_label->setTextFormat(Qt::RichText);
top_label->setTextInteractionFlags(Qt::TextBrowserInteraction);
Expand Down Expand Up @@ -111,8 +110,7 @@ ChoosePage::ChoosePage(QWidget* parent) : QWizardPage(parent) {
auto* keygen_label = new QLabel(
tr("If you have never used GpgFrontend before and also don't own a gpg "
"key yet you may possibly want to read how to") +
" <a href=\"https://gpgfrontend.bktus.com/index.html#/basic/"
"generate-key\">" +
" <a href=\"https://gpgfrontend.bktus.com/guides/generate-key\">" +
tr("Generate Key") + "</a><hr>");
keygen_label->setTextFormat(Qt::RichText);
keygen_label->setTextInteractionFlags(Qt::TextBrowserInteraction);
Expand All @@ -122,30 +120,22 @@ ChoosePage::ChoosePage(QWidget* parent) : QWizardPage(parent) {
auto* encr_decy_text_label = new QLabel(
tr("If you want to learn how to encrypt, decrypt, sign and verify text, "
"you can read ") +
"<a "
"href=\"https://gpgfrontend.bktus.com/index.html#/basic/"
"encrypt-decrypt-text\">" +
"<a href=\"https://gpgfrontend.bktus.com/guides/encrypt-decrypt-text\">" +
tr("Encrypt & Decrypt Text") + "</a> " + tr("or") +
" <a "
"href=\"https://gpgfrontend.bktus.com/index.html#/basic/"
"sign-verify-text\">" +
" <a href=\"https://gpgfrontend.bktus.com/guides/sign-verify-text\">" +
tr("Sign & Verify Text") + "</a><hr>");

encr_decy_text_label->setTextFormat(Qt::RichText);
encr_decy_text_label->setTextInteractionFlags(Qt::TextBrowserInteraction);
encr_decy_text_label->setOpenExternalLinks(true);
encr_decy_text_label->setWordWrap(true);

auto* sign_verify_text_label =
new QLabel(tr("If you want to operate file, you can read ") +
"<a "
"href=\"https://gpgfrontend.bktus.com/index.html#/basic/"
"encrypt-decrypt-file\">" +
tr("Encrypt & Sign File") + "</a> " + tr("or") +
" <a "
"href=\"https://gpgfrontend.bktus.com/index.html#/basic/"
"sign-verify-file\">" +
tr("Sign & Verify File") + "</a><hr>");
auto* sign_verify_text_label = new QLabel(
tr("If you want to operate file, you can read ") +
"<a href=\"https://gpgfrontend.bktus.com/guides/encrypt-decrypt-file\">" +
tr("Encrypt & Sign File") + "</a> " + tr("or") +
" <a href=\"https://gpgfrontend.bktus.com/guides/sign-verify-file\">" +
tr("Sign & Verify File") + "</a><hr>");
sign_verify_text_label->setTextFormat(Qt::RichText);
sign_verify_text_label->setTextInteractionFlags(Qt::TextBrowserInteraction);
sign_verify_text_label->setOpenExternalLinks(true);
Expand All @@ -162,9 +152,9 @@ ChoosePage::ChoosePage(QWidget* parent) : QWizardPage(parent) {
int ChoosePage::nextId() const { return next_page_; }

void ChoosePage::slot_jump_page(const QString& page) {
QMetaObject qmo = Wizard::staticMetaObject;
int index = qmo.indexOfEnumerator("WizardPages");
QMetaEnum m = qmo.enumerator(index);
QMetaObject const qmo = Wizard::staticMetaObject;
int const index = qmo.indexOfEnumerator("WizardPages");
QMetaEnum const m = qmo.enumerator(index);

next_page_ = m.keyToValue(page.toUtf8().data());
wizard()->next();
Expand Down Expand Up @@ -216,9 +206,7 @@ ConclusionPage::ConclusionPage(QWidget* parent) : QWizardPage(parent) {

auto* bottom_label = new QLabel(
tr("You are ready to use GpgFrontend now.<br><br>") +
"<a "
"href=\"https://gpgfrontend.bktus.com/basic/understand-interface"
"overview\">" +
"<a href=\"https://gpgfrontend.bktus.com/guides/understand-interface\">" +
tr("The Online Document") + "</a>" +
tr(" will get you started with GpgFrontend. Anytime you encounter "
"problems, please try to find help from the documentation") +
Expand All @@ -232,7 +220,8 @@ ConclusionPage::ConclusionPage(QWidget* parent) : QWizardPage(parent) {
open_help_check_box_ = new QCheckBox(tr("Open offline help."));
open_help_check_box_->setChecked(true);

dont_show_wizard_checkbox_ = new QCheckBox(tr("Dont show the wizard again."));
dont_show_wizard_checkbox_ =
new QCheckBox(tr("Don't show the wizard again."));
dont_show_wizard_checkbox_->setChecked(true);

registerField("showWizard", dont_show_wizard_checkbox_);
Expand Down

0 comments on commit 773b06e

Please sign in to comment.