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