From a2f4f2b703425f68e3c721a58d153da0572887a1 Mon Sep 17 00:00:00 2001 From: nils Date: Thu, 19 Jan 2012 00:13:55 +0000 Subject: simplified gnupg import page in wizard and some minor beautifying git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@758 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- wizard.cpp | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'wizard.cpp') diff --git a/wizard.cpp b/wizard.cpp index de428de..3ef5808 100644 --- a/wizard.cpp +++ b/wizard.cpp @@ -164,7 +164,7 @@ bool ImportFromGpg4usbPage::importKeysFromGpg4usb() // Return, if no keyrings are found in subdir of chosen dir if (!(pubRing.exists() or secRing.exists())) { - QMessageBox::critical(0, tr("Import Error"), tr("Couldn't locate any keyring file in choosen directory")); + QMessageBox::critical(0, tr("Import Error"), tr("Couldn't locate any keyring file in %1").arg(dir+"/keydb")); return false; } @@ -197,25 +197,21 @@ ImportFromGnupgPage::ImportFromGnupgPage(GpgME::GpgContext *ctx, KeyMgmt *keyMgm //setPixmap(QWizard::WatermarkPixmap, QPixmap(":/logo-flipped.png")); mCtx=ctx; mKeyMgmt=keyMgmt; - setTitle(tr("Keyring Import")); + setTitle(tr("Key import from Gnupg")); setSubTitle("bla"); - QGroupBox *gnupgBox = new QGroupBox(tr("Import from GnuPG"), this); - QGridLayout *gnupgLayout = new QGridLayout(); - gnupgLabel = new QLabel(tr("Should I try to import keys from a locally installed GnuPG?")); - gnupgLayout->addWidget(gnupgLabel,1,1); + QGridLayout *layout = new QGridLayout(); + gnupgLabel = new QLabel(tr("Should I try to import keys from a locally installed GnuPG?
The location is read " + "from registry in Windows and assumed to be the .gnupg folder in the your home directory in Linux")); + gnupgLabel->setWordWrap(true); + layout->addWidget(gnupgLabel,1,1); QWidget *importFromGnupgButtonBox = new QWidget(this); QHBoxLayout *importFromGnupgButtonBoxLayout = new QHBoxLayout(importFromGnupgButtonBox); importFromGnupgButton = new QPushButton(tr("Import keys from GnuPG")); connect(importFromGnupgButton, SIGNAL(clicked()), this, SLOT(importKeysFromGnupg())); importFromGnupgButtonBox->setLayout(importFromGnupgButtonBoxLayout); - gnupgLayout->addWidget(importFromGnupgButton,2,1); - - gnupgBox->setLayout(gnupgLayout); - - layout = new QVBoxLayout(); - layout->addWidget(gnupgBox); + layout->addWidget(importFromGnupgButton,2,1); this->setLayout(layout); } @@ -293,8 +289,8 @@ KeyGenPage::KeyGenPage(GpgME::GpgContext *ctx, QWidget *parent) "Other users can use the public key to encrypt texts for you
" "and verify texts signed by you.
" "You can use the private key to decrypt and sign texts.
" - "For more information have a look in the online tutorial:")); - QLabel *linkLabel = new QLabel(""+tr("Online tutorial")+""); + "For more information have a look in the offline tutorial (which then is shown in the main window:")); + QLabel *linkLabel = new QLabel(""+tr("Offline tutorial")+""); //linkLabel->setOpenExternalLinks(true); connect(linkLabel, SIGNAL(linkActivated(const QString&)), parentWidget()->parentWidget(), SLOT(openHelp(const QString&))); -- cgit v1.2.3