LCOV - code coverage report
Current view: top level - src - ui_keygendialog.h (source / functions) Coverage Total Hit
Test: .lcov.total Lines: 0.0 % 139 0
Test Date: 2026-03-23 21:55:57 Functions: 0.0 % 2 0

            Line data    Source code
       1              : /********************************************************************************
       2              : ** Form generated from reading UI file 'keygendialog.ui'
       3              : **
       4              : ** Created by: Qt User Interface Compiler version 6.10.2
       5              : **
       6              : ** WARNING! All changes made in this file will be lost when recompiling UI file!
       7              : ********************************************************************************/
       8              : 
       9              : #ifndef UI_KEYGENDIALOG_H
      10              : #define UI_KEYGENDIALOG_H
      11              : 
      12              : #include <QtCore/QVariant>
      13              : #include <QtGui/QIcon>
      14              : #include <QtWidgets/QAbstractButton>
      15              : #include <QtWidgets/QApplication>
      16              : #include <QtWidgets/QCheckBox>
      17              : #include <QtWidgets/QDialog>
      18              : #include <QtWidgets/QDialogButtonBox>
      19              : #include <QtWidgets/QFormLayout>
      20              : #include <QtWidgets/QFrame>
      21              : #include <QtWidgets/QLabel>
      22              : #include <QtWidgets/QLineEdit>
      23              : #include <QtWidgets/QPlainTextEdit>
      24              : #include <QtWidgets/QVBoxLayout>
      25              : #include <QtWidgets/QWidget>
      26              : 
      27              : QT_BEGIN_NAMESPACE
      28              : 
      29              : class Ui_KeygenDialog
      30              : {
      31              : public:
      32              :     QVBoxLayout *verticalLayout_2;
      33              :     QLabel *label;
      34              :     QFrame *frame;
      35              :     QVBoxLayout *verticalLayout;
      36              :     QWidget *widget;
      37              :     QFormLayout *formLayout;
      38              :     QLabel *labelEmail;
      39              :     QLineEdit *email;
      40              :     QLabel *labelName;
      41              :     QLineEdit *name;
      42              :     QLabel *labelPassphrase;
      43              :     QLineEdit *passphrase1;
      44              :     QLineEdit *passphrase2;
      45              :     QLabel *labelPassphraseInfo;
      46              :     QLabel *label_2;
      47              :     QFrame *line;
      48              :     QCheckBox *checkBox;
      49              :     QPlainTextEdit *plainTextEdit;
      50              :     QLabel *labelExpertInfo;
      51              :     QDialogButtonBox *buttonBox;
      52              : 
      53            0 :     void setupUi(QDialog *KeygenDialog)
      54              :     {
      55            0 :         if (KeygenDialog->objectName().isEmpty())
      56            0 :             KeygenDialog->setObjectName("KeygenDialog");
      57            0 :         KeygenDialog->resize(606, 497);
      58            0 :         QIcon icon;
      59            0 :         icon.addFile(QString::fromUtf8(":/artwork/icon.png"), QSize(), QIcon::Mode::Normal, QIcon::State::Off);
      60            0 :         KeygenDialog->setWindowIcon(icon);
      61            0 :         verticalLayout_2 = new QVBoxLayout(KeygenDialog);
      62            0 :         verticalLayout_2->setObjectName("verticalLayout_2");
      63            0 :         verticalLayout_2->setContentsMargins(6, 6, 6, 6);
      64            0 :         label = new QLabel(KeygenDialog);
      65            0 :         label->setObjectName("label");
      66            0 :         QSizePolicy sizePolicy(QSizePolicy::Policy::Preferred, QSizePolicy::Policy::Maximum);
      67              :         sizePolicy.setHorizontalStretch(0);
      68              :         sizePolicy.setVerticalStretch(0);
      69            0 :         sizePolicy.setHeightForWidth(label->sizePolicy().hasHeightForWidth());
      70            0 :         label->setSizePolicy(sizePolicy);
      71            0 :         label->setWordWrap(true);
      72              : 
      73            0 :         verticalLayout_2->addWidget(label);
      74              : 
      75            0 :         frame = new QFrame(KeygenDialog);
      76            0 :         frame->setObjectName("frame");
      77            0 :         frame->setFrameShape(QFrame::NoFrame);
      78            0 :         frame->setFrameShadow(QFrame::Plain);
      79            0 :         verticalLayout = new QVBoxLayout(frame);
      80            0 :         verticalLayout->setObjectName("verticalLayout");
      81            0 :         verticalLayout->setContentsMargins(0, 0, 0, 0);
      82            0 :         widget = new QWidget(frame);
      83            0 :         widget->setObjectName("widget");
      84            0 :         QSizePolicy sizePolicy1(QSizePolicy::Policy::Preferred, QSizePolicy::Policy::Preferred);
      85              :         sizePolicy1.setHorizontalStretch(0);
      86              :         sizePolicy1.setVerticalStretch(0);
      87            0 :         sizePolicy1.setHeightForWidth(widget->sizePolicy().hasHeightForWidth());
      88            0 :         widget->setSizePolicy(sizePolicy1);
      89            0 :         formLayout = new QFormLayout(widget);
      90            0 :         formLayout->setObjectName("formLayout");
      91            0 :         labelEmail = new QLabel(widget);
      92            0 :         labelEmail->setObjectName("labelEmail");
      93            0 :         sizePolicy1.setHeightForWidth(labelEmail->sizePolicy().hasHeightForWidth());
      94            0 :         labelEmail->setSizePolicy(sizePolicy1);
      95            0 :         labelEmail->setLayoutDirection(Qt::LeftToRight);
      96            0 :         labelEmail->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
      97              : 
      98            0 :         formLayout->setWidget(0, QFormLayout::ItemRole::LabelRole, labelEmail);
      99              : 
     100            0 :         email = new QLineEdit(widget);
     101            0 :         email->setObjectName("email");
     102            0 :         QSizePolicy sizePolicy2(QSizePolicy::Policy::MinimumExpanding, QSizePolicy::Policy::Fixed);
     103              :         sizePolicy2.setHorizontalStretch(0);
     104              :         sizePolicy2.setVerticalStretch(0);
     105            0 :         sizePolicy2.setHeightForWidth(email->sizePolicy().hasHeightForWidth());
     106            0 :         email->setSizePolicy(sizePolicy2);
     107              : 
     108            0 :         formLayout->setWidget(0, QFormLayout::ItemRole::FieldRole, email);
     109              : 
     110            0 :         labelName = new QLabel(widget);
     111            0 :         labelName->setObjectName("labelName");
     112            0 :         sizePolicy1.setHeightForWidth(labelName->sizePolicy().hasHeightForWidth());
     113            0 :         labelName->setSizePolicy(sizePolicy1);
     114            0 :         labelName->setLayoutDirection(Qt::LeftToRight);
     115            0 :         labelName->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
     116              : 
     117            0 :         formLayout->setWidget(1, QFormLayout::ItemRole::LabelRole, labelName);
     118              : 
     119            0 :         name = new QLineEdit(widget);
     120            0 :         name->setObjectName("name");
     121            0 :         sizePolicy2.setHeightForWidth(name->sizePolicy().hasHeightForWidth());
     122            0 :         name->setSizePolicy(sizePolicy2);
     123              : 
     124            0 :         formLayout->setWidget(1, QFormLayout::ItemRole::FieldRole, name);
     125              : 
     126            0 :         labelPassphrase = new QLabel(widget);
     127            0 :         labelPassphrase->setObjectName("labelPassphrase");
     128            0 :         sizePolicy1.setHeightForWidth(labelPassphrase->sizePolicy().hasHeightForWidth());
     129            0 :         labelPassphrase->setSizePolicy(sizePolicy1);
     130            0 :         labelPassphrase->setLayoutDirection(Qt::LeftToRight);
     131            0 :         labelPassphrase->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
     132              : 
     133            0 :         formLayout->setWidget(2, QFormLayout::ItemRole::LabelRole, labelPassphrase);
     134              : 
     135            0 :         passphrase1 = new QLineEdit(widget);
     136            0 :         passphrase1->setObjectName("passphrase1");
     137            0 :         sizePolicy2.setHeightForWidth(passphrase1->sizePolicy().hasHeightForWidth());
     138            0 :         passphrase1->setSizePolicy(sizePolicy2);
     139            0 :         passphrase1->setEchoMode(QLineEdit::Password);
     140              : 
     141            0 :         formLayout->setWidget(2, QFormLayout::ItemRole::FieldRole, passphrase1);
     142              : 
     143            0 :         passphrase2 = new QLineEdit(widget);
     144            0 :         passphrase2->setObjectName("passphrase2");
     145            0 :         sizePolicy2.setHeightForWidth(passphrase2->sizePolicy().hasHeightForWidth());
     146            0 :         passphrase2->setSizePolicy(sizePolicy2);
     147            0 :         passphrase2->setEchoMode(QLineEdit::Password);
     148              : 
     149            0 :         formLayout->setWidget(3, QFormLayout::ItemRole::FieldRole, passphrase2);
     150              : 
     151            0 :         labelPassphraseInfo = new QLabel(widget);
     152            0 :         labelPassphraseInfo->setObjectName("labelPassphraseInfo");
     153            0 :         QSizePolicy sizePolicy3(QSizePolicy::Policy::Preferred, QSizePolicy::Policy::Minimum);
     154              :         sizePolicy3.setHorizontalStretch(0);
     155              :         sizePolicy3.setVerticalStretch(0);
     156            0 :         sizePolicy3.setHeightForWidth(labelPassphraseInfo->sizePolicy().hasHeightForWidth());
     157            0 :         labelPassphraseInfo->setSizePolicy(sizePolicy3);
     158            0 :         labelPassphraseInfo->setWordWrap(true);
     159              : 
     160            0 :         formLayout->setWidget(4, QFormLayout::ItemRole::FieldRole, labelPassphraseInfo);
     161              : 
     162            0 :         label_2 = new QLabel(widget);
     163            0 :         label_2->setObjectName("label_2");
     164              : 
     165            0 :         formLayout->setWidget(3, QFormLayout::ItemRole::LabelRole, label_2);
     166              : 
     167              : 
     168            0 :         verticalLayout->addWidget(widget);
     169              : 
     170            0 :         line = new QFrame(frame);
     171            0 :         line->setObjectName("line");
     172            0 :         line->setFrameShape(QFrame::Shape::HLine);
     173            0 :         line->setFrameShadow(QFrame::Shadow::Sunken);
     174              : 
     175            0 :         verticalLayout->addWidget(line);
     176              : 
     177            0 :         checkBox = new QCheckBox(frame);
     178            0 :         checkBox->setObjectName("checkBox");
     179              : 
     180            0 :         verticalLayout->addWidget(checkBox);
     181              : 
     182            0 :         plainTextEdit = new QPlainTextEdit(frame);
     183            0 :         plainTextEdit->setObjectName("plainTextEdit");
     184            0 :         plainTextEdit->setEnabled(false);
     185            0 :         plainTextEdit->setFrameShape(QFrame::StyledPanel);
     186            0 :         plainTextEdit->setFrameShadow(QFrame::Plain);
     187            0 :         plainTextEdit->setReadOnly(true);
     188            0 :         plainTextEdit->setTextInteractionFlags(Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
     189            0 :         plainTextEdit->setBackgroundVisible(false);
     190              : 
     191            0 :         verticalLayout->addWidget(plainTextEdit);
     192              : 
     193            0 :         labelExpertInfo = new QLabel(frame);
     194            0 :         labelExpertInfo->setObjectName("labelExpertInfo");
     195            0 :         labelExpertInfo->setOpenExternalLinks(true);
     196            0 :         labelExpertInfo->setTextInteractionFlags(Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse);
     197              : 
     198            0 :         verticalLayout->addWidget(labelExpertInfo);
     199              : 
     200            0 :         buttonBox = new QDialogButtonBox(frame);
     201            0 :         buttonBox->setObjectName("buttonBox");
     202            0 :         buttonBox->setOrientation(Qt::Horizontal);
     203            0 :         buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
     204              : 
     205            0 :         verticalLayout->addWidget(buttonBox);
     206              : 
     207              : 
     208            0 :         verticalLayout_2->addWidget(frame);
     209              : 
     210              : #if QT_CONFIG(shortcut)
     211            0 :         labelEmail->setBuddy(email);
     212            0 :         labelName->setBuddy(name);
     213            0 :         labelPassphrase->setBuddy(passphrase1);
     214              : #endif // QT_CONFIG(shortcut)
     215            0 :         QWidget::setTabOrder(email, name);
     216            0 :         QWidget::setTabOrder(name, passphrase1);
     217            0 :         QWidget::setTabOrder(passphrase1, passphrase2);
     218            0 :         QWidget::setTabOrder(passphrase2, checkBox);
     219            0 :         QWidget::setTabOrder(checkBox, plainTextEdit);
     220              : 
     221            0 :         retranslateUi(KeygenDialog);
     222            0 :         QObject::connect(buttonBox, &QDialogButtonBox::accepted, KeygenDialog, qOverload<>(&QDialog::accept));
     223            0 :         QObject::connect(buttonBox, &QDialogButtonBox::rejected, KeygenDialog, qOverload<>(&QDialog::reject));
     224              : 
     225            0 :         QMetaObject::connectSlotsByName(KeygenDialog);
     226            0 :     } // setupUi
     227              : 
     228            0 :     void retranslateUi(QDialog *KeygenDialog)
     229              :     {
     230            0 :         KeygenDialog->setWindowTitle(QCoreApplication::translate("KeygenDialog", "Generate GnuPG keypair", nullptr));
     231            0 :         label->setText(QCoreApplication::translate("KeygenDialog", "Generate a new key pair", nullptr));
     232            0 :         labelEmail->setText(QCoreApplication::translate("KeygenDialog", "Email", nullptr));
     233            0 :         labelName->setText(QCoreApplication::translate("KeygenDialog", "Name", nullptr));
     234            0 :         labelPassphrase->setText(QCoreApplication::translate("KeygenDialog", "Passphrase", nullptr));
     235            0 :         labelPassphraseInfo->setText(QCoreApplication::translate("KeygenDialog", "<html><head/><body><p>There is no limit on the length of a passphrase, and it should be carefully chosen. From the perspective of security, the passphrase to unlock the private key is one of the weakest points in GnuPG (and other public-key encryption systems as well) since it is the only protection you have if another individual gets your private key. <br/>Ideally, the passphrase should not use words from a dictionary and should mix the case of alphabetic characters as well as use non-alphabetic characters.<br/>A good passphrase is crucial to the secure use of GnuPG.</p></body></html>", nullptr));
     236            0 :         label_2->setText(QCoreApplication::translate("KeygenDialog", "Repeat pass", nullptr));
     237            0 :         checkBox->setText(QCoreApplication::translate("KeygenDialog", "Expert", nullptr));
     238            0 :         plainTextEdit->setPlainText(QCoreApplication::translate("KeygenDialog", "#           QtPass GPG key generator\n"
     239              : "#\n"
     240              : "#      first test version please comment\n"
     241              : "#\n"
     242              : "%echo Generating a default key\n"
     243              : "Key-Type: RSA\n"
     244              : "Subkey-Type: RSA\n"
     245              : "Name-Real:\n"
     246              : "Name-Comment: QtPass\n"
     247              : "Name-Email:\n"
     248              : "Expire-Date: 0\n"
     249              : "%no-protection\n"
     250              : "# Do a commit here, so that we can later print \"done\" :-)\n"
     251              : "%commit\n"
     252              : "%echo done", nullptr));
     253            0 :         labelExpertInfo->setText(QCoreApplication::translate("KeygenDialog", "For expert options check out the <a href=\"https://www.gnupg.org/documentation/manuals/gnupg/Unattended-GPG-key-generation.html\">GnuPG manual</a>", nullptr));
     254            0 :     } // retranslateUi
     255              : 
     256              : };
     257              : 
     258              : namespace Ui {
     259              :     class KeygenDialog: public Ui_KeygenDialog {};
     260              : } // namespace Ui
     261              : 
     262              : QT_END_NAMESPACE
     263              : 
     264              : #endif // UI_KEYGENDIALOG_H
        

Generated by: LCOV version 2.4-beta