9#ifndef UI_USERSDIALOG_H
10#define UI_USERSDIALOG_H
12#include <QtCore/QVariant>
14#include <QtWidgets/QAbstractButton>
15#include <QtWidgets/QApplication>
16#include <QtWidgets/QCheckBox>
17#include <QtWidgets/QDialog>
18#include <QtWidgets/QDialogButtonBox>
19#include <QtWidgets/QHBoxLayout>
20#include <QtWidgets/QLabel>
21#include <QtWidgets/QLineEdit>
22#include <QtWidgets/QListWidget>
23#include <QtWidgets/QVBoxLayout>
30 QVBoxLayout *verticalLayout;
32 QHBoxLayout *horizontalLayout;
35 QListWidget *listWidget;
36 QDialogButtonBox *buttonBox;
43 QSizePolicy sizePolicy(QSizePolicy::Policy::Preferred, QSizePolicy::Policy::Preferred);
44 sizePolicy.setHorizontalStretch(0);
45 sizePolicy.setVerticalStretch(0);
46 sizePolicy.setHeightForWidth(
UsersDialog->sizePolicy().hasHeightForWidth());
49 icon.addFile(QString::fromUtf8(
":/artwork/icon.png"), QSize(), QIcon::Mode::Normal, QIcon::State::Off);
53 verticalLayout->setObjectName(
"verticalLayout");
54 verticalLayout->setContentsMargins(6, 6, 6, 6);
56 label->setObjectName(
"label");
57 label->setTextFormat(Qt::PlainText);
58 label->setWordWrap(
true);
60 verticalLayout->addWidget(label);
62 horizontalLayout =
new QHBoxLayout();
63 horizontalLayout->setObjectName(
"horizontalLayout");
65 lineEdit->setObjectName(
"lineEdit");
66 lineEdit->setMinimumSize(QSize(0, 26));
68 horizontalLayout->addWidget(lineEdit);
71 checkBox->setObjectName(
"checkBox");
73 horizontalLayout->addWidget(checkBox);
76 verticalLayout->addLayout(horizontalLayout);
79 listWidget->setObjectName(
"listWidget");
80 listWidget->setFrameShadow(QFrame::Plain);
81 listWidget->setAlternatingRowColors(
true);
82 listWidget->setSortingEnabled(
true);
84 verticalLayout->addWidget(listWidget);
87 buttonBox->setObjectName(
"buttonBox");
88 buttonBox->setOrientation(Qt::Horizontal);
89 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
91 verticalLayout->addWidget(buttonBox);
93 QWidget::setTabOrder(lineEdit, listWidget);
102 UsersDialog->setWindowTitle(QCoreApplication::translate(
"UsersDialog",
"Read access users",
nullptr));
103 label->setText(QCoreApplication::translate(
"UsersDialog",
"Select which users should be able to decrypt passwords stored in this folder.\n"
104"Note: Existing files will not be modified, and retain the old permissions until you edit them.\n"
105"Blue entries have a secret key available, select one of these to be able to decrypt.\n"
106"Black entries have an encryption key available and it is trusted, select one of these to allow other people to decrypt.\n"
107"Red entries are not valid, you will not be able to encrypt to these.",
nullptr));
108 lineEdit->setPlaceholderText(QCoreApplication::translate(
"UsersDialog",
"Search for users",
nullptr));
109 checkBox->setText(QCoreApplication::translate(
"UsersDialog",
"Show unusable keys",
nullptr));
Dialog for selecting GPG recipients for password encryption.