9 #ifndef UI_PROFILEREADERSDIALOG_H 10 #define UI_PROFILEREADERSDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QDialog> 17 #include <QtWidgets/QFormLayout> 18 #include <QtWidgets/QGridLayout> 19 #include <QtWidgets/QHeaderView> 20 #include <QtWidgets/QLabel> 21 #include <QtWidgets/QLineEdit> 22 #include <QtWidgets/QListView> 23 #include <QtWidgets/QPushButton> 24 #include <QtWidgets/QTableView> 43 void setupUi(QDialog *profileReadersDialog)
45 if (profileReadersDialog->objectName().isEmpty())
46 profileReadersDialog->setObjectName(QStringLiteral(
"profileReadersDialog"));
47 profileReadersDialog->resize(635, 577);
48 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
49 sizePolicy.setHorizontalStretch(0);
50 sizePolicy.setVerticalStretch(0);
51 sizePolicy.setHeightForWidth(profileReadersDialog->sizePolicy().hasHeightForWidth());
52 profileReadersDialog->setSizePolicy(sizePolicy);
53 profileReadersDialog->setMinimumSize(QSize(0, 0));
54 profileReadersDialog->setLayoutDirection(Qt::RightToLeft);
55 gridLayout =
new QGridLayout(profileReadersDialog);
56 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
57 formLayout =
new QFormLayout();
58 formLayout->setObjectName(QStringLiteral(
"formLayout"));
59 searchLabel =
new QLabel(profileReadersDialog);
60 searchLabel->setObjectName(QStringLiteral(
"searchLabel"));
62 formLayout->setWidget(0, QFormLayout::SpanningRole, searchLabel);
64 matchingProfilesLabel =
new QLabel(profileReadersDialog);
65 matchingProfilesLabel->setObjectName(QStringLiteral(
"matchingProfilesLabel"));
67 formLayout->setWidget(3, QFormLayout::SpanningRole, matchingProfilesLabel);
69 listView =
new QListView(profileReadersDialog);
70 listView->setObjectName(QStringLiteral(
"listView"));
72 formLayout->setWidget(4, QFormLayout::SpanningRole, listView);
74 addSelectedButton =
new QPushButton(profileReadersDialog);
75 addSelectedButton->setObjectName(QStringLiteral(
"addSelectedButton"));
76 QSizePolicy sizePolicy1(QSizePolicy::Fixed, QSizePolicy::Fixed);
77 sizePolicy1.setHorizontalStretch(0);
78 sizePolicy1.setVerticalStretch(0);
79 sizePolicy1.setHeightForWidth(addSelectedButton->sizePolicy().hasHeightForWidth());
80 addSelectedButton->setSizePolicy(sizePolicy1);
81 addSelectedButton->setMinimumSize(QSize(200, 0));
83 formLayout->setWidget(5, QFormLayout::SpanningRole, addSelectedButton);
85 currentListOfReadersLabel =
new QLabel(profileReadersDialog);
86 currentListOfReadersLabel->setObjectName(QStringLiteral(
"currentListOfReadersLabel"));
88 formLayout->setWidget(6, QFormLayout::LabelRole, currentListOfReadersLabel);
90 currentListOfReadersView =
new QTableView(profileReadersDialog);
91 currentListOfReadersView->setObjectName(QStringLiteral(
"currentListOfReadersView"));
92 QSizePolicy sizePolicy2(QSizePolicy::Expanding, QSizePolicy::MinimumExpanding);
93 sizePolicy2.setHorizontalStretch(0);
94 sizePolicy2.setVerticalStretch(0);
95 sizePolicy2.setHeightForWidth(currentListOfReadersView->sizePolicy().hasHeightForWidth());
96 currentListOfReadersView->setSizePolicy(sizePolicy2);
98 formLayout->setWidget(7, QFormLayout::SpanningRole, currentListOfReadersView);
100 closeButton =
new QPushButton(profileReadersDialog);
101 closeButton->setObjectName(QStringLiteral(
"closeButton"));
103 formLayout->setWidget(8, QFormLayout::LabelRole, closeButton);
105 removeSelectedItemsButton =
new QPushButton(profileReadersDialog);
106 removeSelectedItemsButton->setObjectName(QStringLiteral(
"removeSelectedItemsButton"));
107 sizePolicy1.setHeightForWidth(removeSelectedItemsButton->sizePolicy().hasHeightForWidth());
108 removeSelectedItemsButton->setSizePolicy(sizePolicy1);
109 removeSelectedItemsButton->setMinimumSize(QSize(150, 0));
111 formLayout->setWidget(8, QFormLayout::FieldRole, removeSelectedItemsButton);
113 searchEdit =
new QLineEdit(profileReadersDialog);
114 searchEdit->setObjectName(QStringLiteral(
"searchEdit"));
115 QSizePolicy sizePolicy3(QSizePolicy::Maximum, QSizePolicy::Fixed);
116 sizePolicy3.setHorizontalStretch(0);
117 sizePolicy3.setVerticalStretch(0);
118 sizePolicy3.setHeightForWidth(searchEdit->sizePolicy().hasHeightForWidth());
119 searchEdit->setSizePolicy(sizePolicy3);
120 searchEdit->setMinimumSize(QSize(462, 0));
121 searchEdit->setLayoutDirection(Qt::LeftToRight);
123 formLayout->setWidget(2, QFormLayout::FieldRole, searchEdit);
126 gridLayout->addLayout(formLayout, 0, 0, 1, 1);
128 QWidget::setTabOrder(searchEdit, listView);
129 QWidget::setTabOrder(listView, addSelectedButton);
130 QWidget::setTabOrder(addSelectedButton, currentListOfReadersView);
131 QWidget::setTabOrder(currentListOfReadersView, removeSelectedItemsButton);
132 QWidget::setTabOrder(removeSelectedItemsButton, closeButton);
136 QMetaObject::connectSlotsByName(profileReadersDialog);
141 profileReadersDialog->setWindowTitle(QApplication::translate(
"profileReadersDialog",
"Profile readers list", Q_NULLPTR));
142 searchLabel->setText(QApplication::translate(
"profileReadersDialog",
"Search for profiles to add", Q_NULLPTR));
143 matchingProfilesLabel->setText(QApplication::translate(
"profileReadersDialog",
"First 100 matching profiles:", Q_NULLPTR));
144 addSelectedButton->setText(QApplication::translate(
"profileReadersDialog",
"Add selected to list of readers", Q_NULLPTR));
145 currentListOfReadersLabel->setText(QApplication::translate(
"profileReadersDialog",
"Current list of readers", Q_NULLPTR));
146 closeButton->setText(QApplication::translate(
"profileReadersDialog",
"Close", Q_NULLPTR));
147 removeSelectedItemsButton->setText(QApplication::translate(
"profileReadersDialog",
"Remove selected", Q_NULLPTR));
158 #endif // UI_PROFILEREADERSDIALOG_H QLabel * searchLabel
Definition: ui_profileReadersDialog.h:33
QTableView * currentListOfReadersView
Definition: ui_profileReadersDialog.h:38
Definition: ui_profileReadersDialog.h:153
Definition: ui_profileReadersDialog.h:28
QGridLayout * gridLayout
Definition: ui_profileReadersDialog.h:31
Definition: ui_aboutDialog.h:161
void setupUi(QDialog *profileReadersDialog)
Definition: ui_profileReadersDialog.h:43
QListView * listView
Definition: ui_profileReadersDialog.h:35
QPushButton * addSelectedButton
Definition: ui_profileReadersDialog.h:36
QLineEdit * searchEdit
Definition: ui_profileReadersDialog.h:41
void retranslateUi(QDialog *profileReadersDialog)
Definition: ui_profileReadersDialog.h:139
QPushButton * closeButton
Definition: ui_profileReadersDialog.h:39
QFormLayout * formLayout
Definition: ui_profileReadersDialog.h:32
QLabel * matchingProfilesLabel
Definition: ui_profileReadersDialog.h:34
QLabel * currentListOfReadersLabel
Definition: ui_profileReadersDialog.h:37
QPushButton * removeSelectedItemsButton
Definition: ui_profileReadersDialog.h:40