9 #ifndef UI_SEARCHDISPLAY_H 10 #define UI_SEARCHDISPLAY_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QCheckBox> 17 #include <QtWidgets/QDialog> 18 #include <QtWidgets/QDialogButtonBox> 19 #include <QtWidgets/QFrame> 20 #include <QtWidgets/QGridLayout> 21 #include <QtWidgets/QHBoxLayout> 22 #include <QtWidgets/QHeaderView> 23 #include <QtWidgets/QLabel> 24 #include <QtWidgets/QLineEdit> 25 #include <QtWidgets/QListView> 26 #include <QtWidgets/QPushButton> 27 #include <QtWidgets/QVBoxLayout> 51 if (searchDisplay->objectName().isEmpty())
52 searchDisplay->setObjectName(QStringLiteral(
"searchDisplay"));
53 searchDisplay->resize(823, 671);
54 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
55 sizePolicy.setHorizontalStretch(0);
56 sizePolicy.setVerticalStretch(0);
57 sizePolicy.setHeightForWidth(searchDisplay->sizePolicy().hasHeightForWidth());
58 searchDisplay->setSizePolicy(sizePolicy);
59 searchDisplay->setMinimumSize(QSize(0, 0));
60 searchDisplay->setSizeGripEnabled(
true);
61 gridLayout =
new QGridLayout(searchDisplay);
62 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
63 verticalLayout =
new QVBoxLayout();
64 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
65 bottomButtonsBox =
new QDialogButtonBox(searchDisplay);
66 bottomButtonsBox->setObjectName(QStringLiteral(
"bottomButtonsBox"));
67 QSizePolicy sizePolicy1(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
68 sizePolicy1.setHorizontalStretch(0);
69 sizePolicy1.setVerticalStretch(0);
70 sizePolicy1.setHeightForWidth(bottomButtonsBox->sizePolicy().hasHeightForWidth());
71 bottomButtonsBox->setSizePolicy(sizePolicy1);
72 bottomButtonsBox->setStandardButtons(QDialogButtonBox::Close|QDialogButtonBox::Open);
73 bottomButtonsBox->setCenterButtons(
false);
75 verticalLayout->addWidget(bottomButtonsBox);
78 gridLayout->addLayout(verticalLayout, 3, 0, 1, 1);
80 searchWordsLayout =
new QHBoxLayout();
81 searchWordsLayout->setObjectName(QStringLiteral(
"searchWordsLayout"));
82 searchWordsLayout->setContentsMargins(-1, 0, -1, -1);
83 wordsLabel =
new QLabel(searchDisplay);
84 wordsLabel->setObjectName(QStringLiteral(
"wordsLabel"));
86 searchWordsLayout->addWidget(wordsLabel);
88 wordsEdit =
new QLineEdit(searchDisplay);
89 wordsEdit->setObjectName(QStringLiteral(
"wordsEdit"));
91 searchWordsLayout->addWidget(wordsEdit);
93 searchButton =
new QPushButton(searchDisplay);
94 searchButton->setObjectName(QStringLiteral(
"searchButton"));
96 searchWordsLayout->addWidget(searchButton);
99 gridLayout->addLayout(searchWordsLayout, 0, 0, 1, 1);
101 resultsView =
new QListView(searchDisplay);
102 resultsView->setObjectName(QStringLiteral(
"resultsView"));
104 gridLayout->addWidget(resultsView, 2, 0, 1, 1);
106 searchOptionsLayout =
new QHBoxLayout();
107 searchOptionsLayout->setObjectName(QStringLiteral(
"searchOptionsLayout"));
108 searchOptionsLayout->setContentsMargins(-1, 0, -1, -1);
109 networkSearchCheckBox =
new QCheckBox(searchDisplay);
110 networkSearchCheckBox->setObjectName(QStringLiteral(
"networkSearchCheckBox"));
112 searchOptionsLayout->addWidget(networkSearchCheckBox);
114 separatorLine =
new QFrame(searchDisplay);
115 separatorLine->setObjectName(QStringLiteral(
"separatorLine"));
116 separatorLine->setFrameShape(QFrame::VLine);
117 separatorLine->setFrameShadow(QFrame::Sunken);
119 searchOptionsLayout->addWidget(separatorLine);
121 searchCAsCheckBox =
new QCheckBox(searchDisplay);
122 searchCAsCheckBox->setObjectName(QStringLiteral(
"searchCAsCheckBox"));
123 searchCAsCheckBox->setChecked(
true);
125 searchOptionsLayout->addWidget(searchCAsCheckBox);
127 searchProfilesCheckBox =
new QCheckBox(searchDisplay);
128 searchProfilesCheckBox->setObjectName(QStringLiteral(
"searchProfilesCheckBox"));
129 searchProfilesCheckBox->setChecked(
true);
131 searchOptionsLayout->addWidget(searchProfilesCheckBox);
133 searchCommentsCheckBox =
new QCheckBox(searchDisplay);
134 searchCommentsCheckBox->setObjectName(QStringLiteral(
"searchCommentsCheckBox"));
135 searchCommentsCheckBox->setChecked(
true);
137 searchOptionsLayout->addWidget(searchCommentsCheckBox);
140 gridLayout->addLayout(searchOptionsLayout, 1, 0, 1, 1);
142 QWidget::setTabOrder(wordsEdit, searchButton);
143 QWidget::setTabOrder(searchButton, networkSearchCheckBox);
144 QWidget::setTabOrder(networkSearchCheckBox, searchCAsCheckBox);
145 QWidget::setTabOrder(searchCAsCheckBox, searchProfilesCheckBox);
146 QWidget::setTabOrder(searchProfilesCheckBox, searchCommentsCheckBox);
147 QWidget::setTabOrder(searchCommentsCheckBox, resultsView);
148 QWidget::setTabOrder(resultsView, bottomButtonsBox);
151 QObject::connect(bottomButtonsBox, SIGNAL(rejected()), searchDisplay, SLOT(reject()));
153 QMetaObject::connectSlotsByName(searchDisplay);
158 searchDisplay->setWindowTitle(QApplication::translate(
"searchDisplay",
"Search data storage", Q_NULLPTR));
159 wordsLabel->setText(QApplication::translate(
"searchDisplay",
"Words:", Q_NULLPTR));
160 searchButton->setText(QApplication::translate(
"searchDisplay",
"Search", Q_NULLPTR));
161 networkSearchCheckBox->setText(QApplication::translate(
"searchDisplay",
"Network search", Q_NULLPTR));
162 searchCAsCheckBox->setText(QApplication::translate(
"searchDisplay",
"Search ads", Q_NULLPTR));
163 searchProfilesCheckBox->setText(QApplication::translate(
"searchDisplay",
"Search profiles", Q_NULLPTR));
164 searchCommentsCheckBox->setText(QApplication::translate(
"searchDisplay",
"Search comments", Q_NULLPTR));
175 #endif // UI_SEARCHDISPLAY_H QHBoxLayout * searchWordsLayout
Definition: ui_searchDisplay.h:37
QFrame * separatorLine
Definition: ui_searchDisplay.h:44
QListView * resultsView
Definition: ui_searchDisplay.h:41
QLabel * wordsLabel
Definition: ui_searchDisplay.h:38
Definition: ui_aboutDialog.h:161
QHBoxLayout * searchOptionsLayout
Definition: ui_searchDisplay.h:42
QDialogButtonBox * bottomButtonsBox
Definition: ui_searchDisplay.h:36
void setupUi(QDialog *searchDisplay)
Definition: ui_searchDisplay.h:49
QGridLayout * gridLayout
Definition: ui_searchDisplay.h:34
Definition: ui_searchDisplay.h:170
void retranslateUi(QDialog *searchDisplay)
Definition: ui_searchDisplay.h:156
QVBoxLayout * verticalLayout
Definition: ui_searchDisplay.h:35
QCheckBox * searchProfilesCheckBox
Definition: ui_searchDisplay.h:46
QLineEdit * wordsEdit
Definition: ui_searchDisplay.h:39
QCheckBox * networkSearchCheckBox
Definition: ui_searchDisplay.h:43
QCheckBox * searchCAsCheckBox
Definition: ui_searchDisplay.h:45
Definition: ui_searchDisplay.h:31
QPushButton * searchButton
Definition: ui_searchDisplay.h:40
QCheckBox * searchCommentsCheckBox
Definition: ui_searchDisplay.h:47