9 #ifndef UI_PQHELPWINDOW_H 10 #define UI_PQHELPWINDOW_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QDockWidget> 16 #include <QtWidgets/QGridLayout> 17 #include <QtWidgets/QMainWindow> 18 #include <QtWidgets/QMenuBar> 19 #include <QtWidgets/QStatusBar> 20 #include <QtWidgets/QToolBar> 21 #include <QtWidgets/QWidget> 44 if (pqHelpWindow->objectName().isEmpty())
45 pqHelpWindow->setObjectName(QString::fromUtf8(
"pqHelpWindow"));
46 pqHelpWindow->resize(1024, 768);
47 actionHome =
new QAction(pqHelpWindow);
48 actionHome->setObjectName(QString::fromUtf8(
"actionHome"));
50 icon.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqHome.svg"), QSize(), QIcon::Normal, QIcon::Off);
51 actionHome->setIcon(icon);
52 actionBackward =
new QAction(pqHelpWindow);
53 actionBackward->setObjectName(QString::fromUtf8(
"actionBackward"));
55 icon1.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqNavBack.svg"), QSize(), QIcon::Normal, QIcon::Off);
56 actionBackward->setIcon(icon1);
57 actionForward =
new QAction(pqHelpWindow);
58 actionForward->setObjectName(QString::fromUtf8(
"actionForward"));
60 icon2.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqNavForward.svg"), QSize(), QIcon::Normal, QIcon::Off);
61 actionForward->setIcon(icon2);
62 actionSaveAsHomepage =
new QAction(pqHelpWindow);
63 actionSaveAsHomepage->setObjectName(QString::fromUtf8(
"actionSaveAsHomepage"));
65 icon3.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqHomeWithSave.svg"), QSize(), QIcon::Normal, QIcon::Off);
66 actionSaveAsHomepage->setIcon(icon3);
67 centralwidget =
new QWidget(pqHelpWindow);
68 centralwidget->setObjectName(QString::fromUtf8(
"centralwidget"));
69 gridLayout =
new QGridLayout(centralwidget);
70 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
71 gridLayout->setContentsMargins(0, 0, 0, 0);
72 pqHelpWindow->setCentralWidget(centralwidget);
73 menubar =
new QMenuBar(pqHelpWindow);
74 menubar->setObjectName(QString::fromUtf8(
"menubar"));
75 menubar->setGeometry(QRect(0, 0, 1024, 23));
76 pqHelpWindow->setMenuBar(menubar);
77 statusbar =
new QStatusBar(pqHelpWindow);
78 statusbar->setObjectName(QString::fromUtf8(
"statusbar"));
79 pqHelpWindow->setStatusBar(statusbar);
80 contentsDock =
new QDockWidget(pqHelpWindow);
81 contentsDock->setObjectName(QString::fromUtf8(
"contentsDock"));
82 dockWidgetContents =
new QWidget();
83 dockWidgetContents->setObjectName(QString::fromUtf8(
"dockWidgetContents"));
84 contentsDock->setWidget(dockWidgetContents);
85 pqHelpWindow->addDockWidget(Qt::LeftDockWidgetArea, contentsDock);
86 searchDock =
new QDockWidget(pqHelpWindow);
87 searchDock->setObjectName(QString::fromUtf8(
"searchDock"));
88 dockWidgetContents_3 =
new QWidget();
89 dockWidgetContents_3->setObjectName(QString::fromUtf8(
"dockWidgetContents_3"));
90 searchDock->setWidget(dockWidgetContents_3);
91 pqHelpWindow->addDockWidget(Qt::LeftDockWidgetArea, searchDock);
92 toolBar =
new QToolBar(pqHelpWindow);
93 toolBar->setObjectName(QString::fromUtf8(
"toolBar"));
94 pqHelpWindow->addToolBar(Qt::TopToolBarArea, toolBar);
96 toolBar->addAction(actionHome);
97 toolBar->addAction(actionBackward);
98 toolBar->addAction(actionForward);
99 toolBar->addAction(actionSaveAsHomepage);
103 QMetaObject::connectSlotsByName(pqHelpWindow);
108 pqHelpWindow->setWindowTitle(QCoreApplication::translate(
"pqHelpWindow",
"Online Documentation",
nullptr));
109 actionHome->setText(QCoreApplication::translate(
"pqHelpWindow",
"Home",
nullptr));
110 actionBackward->setText(QCoreApplication::translate(
"pqHelpWindow",
"Go backward",
nullptr));
111 actionForward->setText(QCoreApplication::translate(
"pqHelpWindow",
"Go forward",
nullptr));
112 actionSaveAsHomepage->setText(QCoreApplication::translate(
"pqHelpWindow",
"Save as homepage",
nullptr));
113 contentsDock->setWindowTitle(QCoreApplication::translate(
"pqHelpWindow",
"Contents",
nullptr));
114 searchDock->setWindowTitle(QCoreApplication::translate(
"pqHelpWindow",
"Search",
nullptr));
115 toolBar->setWindowTitle(QCoreApplication::translate(
"pqHelpWindow",
"toolBar",
nullptr));
126 #endif // UI_PQHELPWINDOW_H
QWidget * dockWidgetContents_3
pqHelpWindow provides a assistant-like window for showing help provided by a QHelpEngine.
void retranslateUi(QMainWindow *pqHelpWindow)
QDockWidget * contentsDock
QAction * actionSaveAsHomepage
QWidget * dockWidgetContents
void setupUi(QMainWindow *pqHelpWindow)