| 1 |
/* |
| 2 |
********************************************************************* |
| 3 |
** |
| 4 |
** Copyright (C) 2016 The Qt Company Ltd. |
| 5 |
** Contact: https://www.qt.io/licensing/ |
| 6 |
** |
| 7 |
** This file is part of the autotests of the Qt Toolkit. |
| 8 |
** |
| 9 |
** $QT_BEGIN_LICENSE:GPL-EXCEPT$ |
| 10 |
** Commercial License Usage |
| 11 |
** Licensees holding valid commercial Qt licenses may use this file in |
| 12 |
** accordance with the commercial license agreement provided with the |
| 13 |
** Software or, alternatively, in accordance with the terms contained in |
| 14 |
** a written agreement between you and The Qt Company. For licensing terms |
| 15 |
** and conditions see https://www.qt.io/terms-conditions. For further |
| 16 |
** information use the contact form at https://www.qt.io/contact-us. |
| 17 |
** |
| 18 |
** GNU General Public License Usage |
| 19 |
** Alternatively, this file may be used under the terms of the GNU |
| 20 |
** General Public License version 3 as published by the Free Software |
| 21 |
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT |
| 22 |
** included in the packaging of this file. Please review the following |
| 23 |
** information to ensure the GNU General Public License requirements will |
| 24 |
** be met: https://www.gnu.org/licenses/gpl-3.0.html. |
| 25 |
** |
| 26 |
** $QT_END_LICENSE$ |
| 27 |
** |
| 28 |
********************************************************************* |
| 29 |
*/ |
| 30 |
|
| 31 |
/******************************************************************************** |
| 32 |
** Form generated from reading UI file 'helpdialog.ui' |
| 33 |
** |
| 34 |
** Created by: Qt User Interface Compiler version 5.12.0 |
| 35 |
** |
| 36 |
** WARNING! All changes made in this file will be lost when recompiling UI file! |
| 37 |
********************************************************************************/ |
| 38 |
|
| 39 |
#ifndef HELPDIALOG_H |
| 40 |
#define HELPDIALOG_H |
| 41 |
|
| 42 |
#include <QtCore/QVariant> |
| 43 |
#include <QtWidgets/QApplication> |
| 44 |
#include <QtWidgets/QFrame> |
| 45 |
#include <QtWidgets/QGridLayout> |
| 46 |
#include <QtWidgets/QHBoxLayout> |
| 47 |
#include <QtWidgets/QHeaderView> |
| 48 |
#include <QtWidgets/QLabel> |
| 49 |
#include <QtWidgets/QLineEdit> |
| 50 |
#include <QtWidgets/QListView> |
| 51 |
#include <QtWidgets/QListWidget> |
| 52 |
#include <QtWidgets/QProgressBar> |
| 53 |
#include <QtWidgets/QPushButton> |
| 54 |
#include <QtWidgets/QSpacerItem> |
| 55 |
#include <QtWidgets/QTabWidget> |
| 56 |
#include <QtWidgets/QTreeWidget> |
| 57 |
#include <QtWidgets/QVBoxLayout> |
| 58 |
#include <QtWidgets/QWidget> |
| 59 |
|
| 60 |
QT_BEGIN_NAMESPACE |
| 61 |
|
| 62 |
class Ui_HelpDialog |
| 63 |
{ |
| 64 |
public: |
| 65 |
QVBoxLayout *vboxLayout; |
| 66 |
QTabWidget *tabWidget; |
| 67 |
QWidget *contentPage; |
| 68 |
QVBoxLayout *vboxLayout1; |
| 69 |
QTreeWidget *listContents; |
| 70 |
QWidget *indexPage; |
| 71 |
QVBoxLayout *vboxLayout2; |
| 72 |
QLabel *TextLabel1; |
| 73 |
QLineEdit *editIndex; |
| 74 |
QListView *listIndex; |
| 75 |
QWidget *bookmarkPage; |
| 76 |
QVBoxLayout *vboxLayout3; |
| 77 |
QTreeWidget *listBookmarks; |
| 78 |
QHBoxLayout *hboxLayout; |
| 79 |
QSpacerItem *spacerItem; |
| 80 |
QPushButton *buttonAdd; |
| 81 |
QPushButton *buttonRemove; |
| 82 |
QWidget *searchPage; |
| 83 |
QGridLayout *gridLayout; |
| 84 |
QSpacerItem *spacerItem1; |
| 85 |
QLabel *TextLabel1_2; |
| 86 |
QLineEdit *termsEdit; |
| 87 |
QListWidget *resultBox; |
| 88 |
QLabel *TextLabel2; |
| 89 |
QHBoxLayout *hboxLayout1; |
| 90 |
QPushButton *helpButton; |
| 91 |
QSpacerItem *spacerItem2; |
| 92 |
QPushButton *searchButton; |
| 93 |
QFrame *framePrepare; |
| 94 |
QHBoxLayout *hboxLayout2; |
| 95 |
QLabel *labelPrepare; |
| 96 |
QProgressBar *progressPrepare; |
| 97 |
|
| 98 |
void setupUi(QWidget *HelpDialog) |
| 99 |
{ |
| 100 |
if (HelpDialog->objectName().isEmpty()) |
| 101 |
HelpDialog->setObjectName(QString::fromUtf8("HelpDialog")); |
| 102 |
HelpDialog->resize(274, 417); |
| 103 |
vboxLayout = new QVBoxLayout(HelpDialog); |
| 104 |
#ifndef Q_OS_MAC |
| 105 |
vboxLayout->setSpacing(6); |
| 106 |
#endif |
| 107 |
vboxLayout->setContentsMargins(0, 0, 0, 0); |
| 108 |
vboxLayout->setObjectName(QString::fromUtf8("vboxLayout")); |
| 109 |
tabWidget = new QTabWidget(HelpDialog); |
| 110 |
tabWidget->setObjectName(QString::fromUtf8("tabWidget")); |
| 111 |
contentPage = new QWidget(); |
| 112 |
contentPage->setObjectName(QString::fromUtf8("contentPage")); |
| 113 |
vboxLayout1 = new QVBoxLayout(contentPage); |
| 114 |
#ifndef Q_OS_MAC |
| 115 |
vboxLayout1->setSpacing(6); |
| 116 |
#endif |
| 117 |
vboxLayout1->setContentsMargins(5, 5, 5, 5); |
| 118 |
vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1")); |
| 119 |
listContents = new QTreeWidget(contentPage); |
| 120 |
listContents->setObjectName(QString::fromUtf8("listContents")); |
| 121 |
listContents->setContextMenuPolicy(Qt::CustomContextMenu); |
| 122 |
listContents->setRootIsDecorated(true); |
| 123 |
listContents->setUniformRowHeights(true); |
| 124 |
|
| 125 |
vboxLayout1->addWidget(listContents); |
| 126 |
|
| 127 |
QIcon icon(QIcon::fromTheme(QString::fromUtf8("edit-copy"))); |
| 128 |
tabWidget->addTab(contentPage, icon, QString()); |
| 129 |
indexPage = new QWidget(); |
| 130 |
indexPage->setObjectName(QString::fromUtf8("indexPage")); |
| 131 |
vboxLayout2 = new QVBoxLayout(indexPage); |
| 132 |
#ifndef Q_OS_MAC |
| 133 |
vboxLayout2->setSpacing(6); |
| 134 |
#endif |
| 135 |
vboxLayout2->setContentsMargins(5, 5, 5, 5); |
| 136 |
vboxLayout2->setObjectName(QString::fromUtf8("vboxLayout2")); |
| 137 |
TextLabel1 = new QLabel(indexPage); |
| 138 |
TextLabel1->setObjectName(QString::fromUtf8("TextLabel1")); |
| 139 |
|
| 140 |
vboxLayout2->addWidget(TextLabel1); |
| 141 |
|
| 142 |
editIndex = new QLineEdit(indexPage); |
| 143 |
editIndex->setObjectName(QString::fromUtf8("editIndex")); |
| 144 |
|
| 145 |
vboxLayout2->addWidget(editIndex); |
| 146 |
|
| 147 |
listIndex = new QListView(indexPage); |
| 148 |
listIndex->setObjectName(QString::fromUtf8("listIndex")); |
| 149 |
listIndex->setContextMenuPolicy(Qt::CustomContextMenu); |
| 150 |
|
| 151 |
vboxLayout2->addWidget(listIndex); |
| 152 |
|
| 153 |
tabWidget->addTab(indexPage, QString()); |
| 154 |
bookmarkPage = new QWidget(); |
| 155 |
bookmarkPage->setObjectName(QString::fromUtf8("bookmarkPage")); |
| 156 |
vboxLayout3 = new QVBoxLayout(bookmarkPage); |
| 157 |
#ifndef Q_OS_MAC |
| 158 |
vboxLayout3->setSpacing(6); |
| 159 |
#endif |
| 160 |
vboxLayout3->setContentsMargins(5, 5, 5, 5); |
| 161 |
vboxLayout3->setObjectName(QString::fromUtf8("vboxLayout3")); |
| 162 |
listBookmarks = new QTreeWidget(bookmarkPage); |
| 163 |
listBookmarks->setObjectName(QString::fromUtf8("listBookmarks")); |
| 164 |
listBookmarks->setContextMenuPolicy(Qt::CustomContextMenu); |
| 165 |
listBookmarks->setUniformRowHeights(true); |
| 166 |
|
| 167 |
vboxLayout3->addWidget(listBookmarks); |
| 168 |
|
| 169 |
hboxLayout = new QHBoxLayout(); |
| 170 |
#ifndef Q_OS_MAC |
| 171 |
hboxLayout->setSpacing(6); |
| 172 |
#endif |
| 173 |
hboxLayout->setContentsMargins(0, 0, 0, 0); |
| 174 |
hboxLayout->setObjectName(QString::fromUtf8("hboxLayout")); |
| 175 |
spacerItem = new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); |
| 176 |
|
| 177 |
hboxLayout->addItem(spacerItem); |
| 178 |
|
| 179 |
buttonAdd = new QPushButton(bookmarkPage); |
| 180 |
buttonAdd->setObjectName(QString::fromUtf8("buttonAdd")); |
| 181 |
|
| 182 |
hboxLayout->addWidget(buttonAdd); |
| 183 |
|
| 184 |
buttonRemove = new QPushButton(bookmarkPage); |
| 185 |
buttonRemove->setObjectName(QString::fromUtf8("buttonRemove")); |
| 186 |
|
| 187 |
hboxLayout->addWidget(buttonRemove); |
| 188 |
|
| 189 |
|
| 190 |
vboxLayout3->addLayout(hboxLayout); |
| 191 |
|
| 192 |
tabWidget->addTab(bookmarkPage, QString()); |
| 193 |
searchPage = new QWidget(); |
| 194 |
searchPage->setObjectName(QString::fromUtf8("searchPage")); |
| 195 |
gridLayout = new QGridLayout(searchPage); |
| 196 |
#ifndef Q_OS_MAC |
| 197 |
gridLayout->setSpacing(6); |
| 198 |
#endif |
| 199 |
gridLayout->setContentsMargins(5, 5, 5, 5); |
| 200 |
gridLayout->setObjectName(QString::fromUtf8("gridLayout")); |
| 201 |
spacerItem1 = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed); |
| 202 |
|
| 203 |
gridLayout->addItem(spacerItem1, 3, 0, 1, 1); |
| 204 |
|
| 205 |
TextLabel1_2 = new QLabel(searchPage); |
| 206 |
TextLabel1_2->setObjectName(QString::fromUtf8("TextLabel1_2")); |
| 207 |
|
| 208 |
gridLayout->addWidget(TextLabel1_2, 0, 0, 1, 1); |
| 209 |
|
| 210 |
termsEdit = new QLineEdit(searchPage); |
| 211 |
termsEdit->setObjectName(QString::fromUtf8("termsEdit")); |
| 212 |
|
| 213 |
gridLayout->addWidget(termsEdit, 1, 0, 1, 1); |
| 214 |
|
| 215 |
resultBox = new QListWidget(searchPage); |
| 216 |
resultBox->setObjectName(QString::fromUtf8("resultBox")); |
| 217 |
resultBox->setContextMenuPolicy(Qt::CustomContextMenu); |
| 218 |
|
| 219 |
gridLayout->addWidget(resultBox, 5, 0, 1, 1); |
| 220 |
|
| 221 |
TextLabel2 = new QLabel(searchPage); |
| 222 |
TextLabel2->setObjectName(QString::fromUtf8("TextLabel2")); |
| 223 |
|
| 224 |
gridLayout->addWidget(TextLabel2, 4, 0, 1, 1); |
| 225 |
|
| 226 |
hboxLayout1 = new QHBoxLayout(); |
| 227 |
#ifndef Q_OS_MAC |
| 228 |
hboxLayout1->setSpacing(6); |
| 229 |
#endif |
| 230 |
hboxLayout1->setContentsMargins(1, 1, 1, 1); |
| 231 |
hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1")); |
| 232 |
helpButton = new QPushButton(searchPage); |
| 233 |
helpButton->setObjectName(QString::fromUtf8("helpButton")); |
| 234 |
|
| 235 |
hboxLayout1->addWidget(helpButton); |
| 236 |
|
| 237 |
spacerItem2 = new QSpacerItem(61, 21, QSizePolicy::Expanding, QSizePolicy::Minimum); |
| 238 |
|
| 239 |
hboxLayout1->addItem(spacerItem2); |
| 240 |
|
| 241 |
searchButton = new QPushButton(searchPage); |
| 242 |
searchButton->setObjectName(QString::fromUtf8("searchButton")); |
| 243 |
searchButton->setEnabled(false); |
| 244 |
|
| 245 |
hboxLayout1->addWidget(searchButton); |
| 246 |
|
| 247 |
|
| 248 |
gridLayout->addLayout(hboxLayout1, 2, 0, 1, 1); |
| 249 |
|
| 250 |
tabWidget->addTab(searchPage, QString()); |
| 251 |
|
| 252 |
vboxLayout->addWidget(tabWidget); |
| 253 |
|
| 254 |
framePrepare = new QFrame(HelpDialog); |
| 255 |
framePrepare->setObjectName(QString::fromUtf8("framePrepare")); |
| 256 |
framePrepare->setFrameShape(QFrame::StyledPanel); |
| 257 |
framePrepare->setFrameShadow(QFrame::Raised); |
| 258 |
hboxLayout2 = new QHBoxLayout(framePrepare); |
| 259 |
#ifndef Q_OS_MAC |
| 260 |
hboxLayout2->setSpacing(6); |
| 261 |
#endif |
| 262 |
hboxLayout2->setContentsMargins(3, 3, 3, 3); |
| 263 |
hboxLayout2->setObjectName(QString::fromUtf8("hboxLayout2")); |
| 264 |
labelPrepare = new QLabel(framePrepare); |
| 265 |
labelPrepare->setObjectName(QString::fromUtf8("labelPrepare")); |
| 266 |
|
| 267 |
hboxLayout2->addWidget(labelPrepare); |
| 268 |
|
| 269 |
progressPrepare = new QProgressBar(framePrepare); |
| 270 |
progressPrepare->setObjectName(QString::fromUtf8("progressPrepare")); |
| 271 |
|
| 272 |
hboxLayout2->addWidget(progressPrepare); |
| 273 |
|
| 274 |
|
| 275 |
vboxLayout->addWidget(framePrepare); |
| 276 |
|
| 277 |
#if QT_CONFIG(shortcut) |
| 278 |
TextLabel1->setBuddy(editIndex); |
| 279 |
TextLabel1_2->setBuddy(termsEdit); |
| 280 |
TextLabel2->setBuddy(resultBox); |
| 281 |
#endif // QT_CONFIG(shortcut) |
| 282 |
QWidget::setTabOrder(tabWidget, listContents); |
| 283 |
QWidget::setTabOrder(listContents, editIndex); |
| 284 |
QWidget::setTabOrder(editIndex, listIndex); |
| 285 |
QWidget::setTabOrder(listIndex, listBookmarks); |
| 286 |
QWidget::setTabOrder(listBookmarks, buttonAdd); |
| 287 |
QWidget::setTabOrder(buttonAdd, buttonRemove); |
| 288 |
QWidget::setTabOrder(buttonRemove, termsEdit); |
| 289 |
QWidget::setTabOrder(termsEdit, searchButton); |
| 290 |
QWidget::setTabOrder(searchButton, helpButton); |
| 291 |
QWidget::setTabOrder(helpButton, resultBox); |
| 292 |
|
| 293 |
retranslateUi(HelpDialog); |
| 294 |
|
| 295 |
QMetaObject::connectSlotsByName(HelpDialog); |
| 296 |
} // setupUi |
| 297 |
|
| 298 |
void retranslateUi(QWidget *HelpDialog) |
| 299 |
{ |
| 300 |
HelpDialog->setWindowTitle(QCoreApplication::translate("HelpDialog", "Help", nullptr)); |
| 301 |
#if QT_CONFIG(whatsthis) |
| 302 |
HelpDialog->setWhatsThis(QCoreApplication::translate("HelpDialog", "<b>Help</b><p>Choose the topic you want help on from the contents list, or search the index for keywords.</p>", nullptr)); |
| 303 |
#endif // QT_CONFIG(whatsthis) |
| 304 |
#if QT_CONFIG(whatsthis) |
| 305 |
tabWidget->setWhatsThis(QCoreApplication::translate("HelpDialog", "Displays help topics organized by category, index or bookmarks. Another tab inherits the full text search.", nullptr)); |
| 306 |
#endif // QT_CONFIG(whatsthis) |
| 307 |
QTreeWidgetItem *___qtreewidgetitem = listContents->headerItem(); |
| 308 |
___qtreewidgetitem->setText(0, QCoreApplication::translate("HelpDialog", "column 1", nullptr)); |
| 309 |
#if QT_CONFIG(whatsthis) |
| 310 |
listContents->setWhatsThis(QCoreApplication::translate("HelpDialog", "<b>Help topics organized by category.</b><p>Double-click an item to see the topics in that category. To view a topic, just double-click it.</p>", nullptr)); |
| 311 |
#endif // QT_CONFIG(whatsthis) |
| 312 |
tabWidget->setTabText(tabWidget->indexOf(contentPage), QCoreApplication::translate("HelpDialog", "Con&tents", nullptr)); |
| 313 |
TextLabel1->setText(QCoreApplication::translate("HelpDialog", "&Look For:", nullptr)); |
| 314 |
#if QT_CONFIG(tooltip) |
| 315 |
editIndex->setToolTip(QCoreApplication::translate("HelpDialog", "Enter keyword", nullptr)); |
| 316 |
#endif // QT_CONFIG(tooltip) |
| 317 |
#if QT_CONFIG(whatsthis) |
| 318 |
editIndex->setWhatsThis(QCoreApplication::translate("HelpDialog", "<b>Enter a keyword.</b><p>The list will select an item that matches the entered string best.</p>", nullptr)); |
| 319 |
#endif // QT_CONFIG(whatsthis) |
| 320 |
#if QT_CONFIG(whatsthis) |
| 321 |
listIndex->setWhatsThis(QCoreApplication::translate("HelpDialog", "<b>List of available help topics.</b><p>Double-click on an item to open its help page. If more than one is found, you must specify which page you want.</p>", nullptr)); |
| 322 |
#endif // QT_CONFIG(whatsthis) |
| 323 |
tabWidget->setTabText(tabWidget->indexOf(indexPage), QCoreApplication::translate("HelpDialog", "&Index", nullptr)); |
| 324 |
QTreeWidgetItem *___qtreewidgetitem1 = listBookmarks->headerItem(); |
| 325 |
___qtreewidgetitem1->setText(0, QCoreApplication::translate("HelpDialog", "column 1", nullptr)); |
| 326 |
#if QT_CONFIG(whatsthis) |
| 327 |
listBookmarks->setWhatsThis(QCoreApplication::translate("HelpDialog", "Displays the list of bookmarks.", nullptr)); |
| 328 |
#endif // QT_CONFIG(whatsthis) |
| 329 |
#if QT_CONFIG(tooltip) |
| 330 |
buttonAdd->setToolTip(QCoreApplication::translate("HelpDialog", "Add new bookmark", nullptr)); |
| 331 |
#endif // QT_CONFIG(tooltip) |
| 332 |
#if QT_CONFIG(whatsthis) |
| 333 |
buttonAdd->setWhatsThis(QCoreApplication::translate("HelpDialog", "Add the currently displayed page as a new bookmark.", nullptr)); |
| 334 |
#endif // QT_CONFIG(whatsthis) |
| 335 |
buttonAdd->setText(QCoreApplication::translate("HelpDialog", "&New", nullptr)); |
| 336 |
#if QT_CONFIG(tooltip) |
| 337 |
buttonRemove->setToolTip(QCoreApplication::translate("HelpDialog", "Delete bookmark", nullptr)); |
| 338 |
#endif // QT_CONFIG(tooltip) |
| 339 |
#if QT_CONFIG(whatsthis) |
| 340 |
buttonRemove->setWhatsThis(QCoreApplication::translate("HelpDialog", "Delete the selected bookmark.", nullptr)); |
| 341 |
#endif // QT_CONFIG(whatsthis) |
| 342 |
buttonRemove->setText(QCoreApplication::translate("HelpDialog", "&Delete", nullptr)); |
| 343 |
tabWidget->setTabText(tabWidget->indexOf(bookmarkPage), QCoreApplication::translate("HelpDialog", "&Bookmarks", nullptr)); |
| 344 |
TextLabel1_2->setText(QCoreApplication::translate("HelpDialog", "Searching f&or:", nullptr)); |
| 345 |
#if QT_CONFIG(tooltip) |
| 346 |
termsEdit->setToolTip(QCoreApplication::translate("HelpDialog", "Enter searchword(s).", nullptr)); |
| 347 |
#endif // QT_CONFIG(tooltip) |
| 348 |
#if QT_CONFIG(whatsthis) |
| 349 |
termsEdit->setWhatsThis(QCoreApplication::translate("HelpDialog", "<b>Enter search word(s).</b><p>Enter here the word(s) you are looking for. The words may contain wildcards (*). For a sequence of words quote them.</p>", nullptr)); |
| 350 |
#endif // QT_CONFIG(whatsthis) |
| 351 |
#if QT_CONFIG(whatsthis) |
| 352 |
resultBox->setWhatsThis(QCoreApplication::translate("HelpDialog", "<b>Found documents</b><p>This list contains all found documents from the last search. The documents are ordered, i.e. the first document has the most matches.</p>", nullptr)); |
| 353 |
#endif // QT_CONFIG(whatsthis) |
| 354 |
TextLabel2->setText(QCoreApplication::translate("HelpDialog", "Found &Documents:", nullptr)); |
| 355 |
#if QT_CONFIG(tooltip) |
| 356 |
helpButton->setToolTip(QCoreApplication::translate("HelpDialog", "Display the help page.", nullptr)); |
| 357 |
#endif // QT_CONFIG(tooltip) |
| 358 |
#if QT_CONFIG(whatsthis) |
| 359 |
helpButton->setWhatsThis(QCoreApplication::translate("HelpDialog", "Display the help page for the full text search.", nullptr)); |
| 360 |
#endif // QT_CONFIG(whatsthis) |
| 361 |
helpButton->setText(QCoreApplication::translate("HelpDialog", "He&lp", nullptr)); |
| 362 |
#if QT_CONFIG(tooltip) |
| 363 |
searchButton->setToolTip(QCoreApplication::translate("HelpDialog", "Start searching.", nullptr)); |
| 364 |
#endif // QT_CONFIG(tooltip) |
| 365 |
#if QT_CONFIG(whatsthis) |
| 366 |
searchButton->setWhatsThis(QCoreApplication::translate("HelpDialog", "Pressing this button starts the search.", nullptr)); |
| 367 |
#endif // QT_CONFIG(whatsthis) |
| 368 |
searchButton->setText(QCoreApplication::translate("HelpDialog", "&Search", nullptr)); |
| 369 |
tabWidget->setTabText(tabWidget->indexOf(searchPage), QCoreApplication::translate("HelpDialog", "&Search", nullptr)); |
| 370 |
labelPrepare->setText(QCoreApplication::translate("HelpDialog", "Preparing...", nullptr)); |
| 371 |
} // retranslateUi |
| 372 |
|
| 373 |
}; |
| 374 |
|
| 375 |
namespace Ui { |
| 376 |
class HelpDialog: public Ui_HelpDialog {}; |
| 377 |
} // namespace Ui |
| 378 |
|
| 379 |
QT_END_NAMESPACE |
| 380 |
|
| 381 |
#endif // HELPDIALOG_H |