diff options
author | saturneric <[email protected]> | 2024-05-03 16:38:41 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-05-03 16:38:41 +0000 |
commit | 773b06ecc25f340406a7467072c02bd6284dcf08 (patch) | |
tree | 3a7b6277d09bfd729d01938e6f03900f2aaa1aa9 /src/ui/dialog/Wizard.cpp | |
parent | feat: upgrade project to v2.1.3 (diff) | |
parent | Merge pull request #145 from jermanuts/jermanuts-wizard-links-update (diff) | |
download | GpgFrontend-773b06ecc25f340406a7467072c02bd6284dcf08.tar.gz GpgFrontend-773b06ecc25f340406a7467072c02bd6284dcf08.zip |
Merge remote-tracking branch 'origin/main' into develop
Diffstat (limited to 'src/ui/dialog/Wizard.cpp')
-rw-r--r-- | src/ui/dialog/Wizard.cpp | 51 |
1 files changed, 20 insertions, 31 deletions
diff --git a/src/ui/dialog/Wizard.cpp b/src/ui/dialog/Wizard.cpp index ad97d2e5..e65366dd 100644 --- a/src/ui/dialog/Wizard.cpp +++ b/src/ui/dialog/Wizard.cpp @@ -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); @@ -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); @@ -122,13 +120,9 @@ 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); @@ -136,16 +130,12 @@ ChoosePage::ChoosePage(QWidget* parent) : QWizardPage(parent) { 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); @@ -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(); @@ -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") + @@ -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_); |