9 #ifndef UI_VTKQTRICHTEXTVIEW_H
10 #define UI_VTKQTRICHTEXTVIEW_H
12 #include <QtCore/QVariant>
13 #include <QtWebKitWidgets/QWebView>
14 #include <QtWidgets/QAction>
15 #include <QtWidgets/QApplication>
16 #include <QtWidgets/QButtonGroup>
17 #include <QtWidgets/QHBoxLayout>
18 #include <QtWidgets/QHeaderView>
19 #include <QtWidgets/QLabel>
20 #include <QtWidgets/QSpacerItem>
21 #include <QtWidgets/QToolButton>
22 #include <QtWidgets/QVBoxLayout>
23 #include <QtWidgets/QWidget>
43 if (vtkQtRichTextView->objectName().isEmpty())
44 vtkQtRichTextView->setObjectName(QStringLiteral(
"vtkQtRichTextView"));
45 vtkQtRichTextView->resize(400, 300);
46 verticalLayout =
new QVBoxLayout(vtkQtRichTextView);
47 verticalLayout->setSpacing(0);
48 verticalLayout->setContentsMargins(0, 0, 0, 0);
49 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
50 horizontalLayout =
new QHBoxLayout();
51 horizontalLayout->setSpacing(6);
52 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
53 Title =
new QLabel(vtkQtRichTextView);
54 Title->setObjectName(QStringLiteral(
"Title"));
56 horizontalLayout->addWidget(Title);
58 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
60 horizontalLayout->addItem(horizontalSpacer);
62 BackButton =
new QToolButton(vtkQtRichTextView);
63 BackButton->setObjectName(QStringLiteral(
"BackButton"));
64 BackButton->setArrowType(Qt::LeftArrow);
66 horizontalLayout->addWidget(BackButton);
68 ForwardButton =
new QToolButton(vtkQtRichTextView);
69 ForwardButton->setObjectName(QStringLiteral(
"ForwardButton"));
70 ForwardButton->setArrowType(Qt::RightArrow);
72 horizontalLayout->addWidget(ForwardButton);
74 ZoomIn =
new QToolButton(vtkQtRichTextView);
75 ZoomIn->setObjectName(QStringLiteral(
"ZoomIn"));
77 horizontalLayout->addWidget(ZoomIn);
79 ZoomReset =
new QToolButton(vtkQtRichTextView);
80 ZoomReset->setObjectName(QStringLiteral(
"ZoomReset"));
82 horizontalLayout->addWidget(ZoomReset);
84 ZoomOut =
new QToolButton(vtkQtRichTextView);
85 ZoomOut->setObjectName(QStringLiteral(
"ZoomOut"));
87 horizontalLayout->addWidget(ZoomOut);
90 verticalLayout->addLayout(horizontalLayout);
92 WebView =
new QWebView(vtkQtRichTextView);
93 WebView->setObjectName(QStringLiteral(
"WebView"));
94 WebView->setUrl(QUrl(QStringLiteral(
"about:blank")));
96 verticalLayout->addWidget(WebView);
101 QMetaObject::connectSlotsByName(vtkQtRichTextView);
106 vtkQtRichTextView->setWindowTitle(QApplication::translate(
"vtkQtRichTextView",
"Form", 0));
107 Title->setText(QString());
108 #ifndef QT_NO_TOOLTIP
109 BackButton->setToolTip(QApplication::translate(
"vtkQtRichTextView",
"Go back one page", 0));
110 #endif // QT_NO_TOOLTIP
111 BackButton->setText(QApplication::translate(
"vtkQtRichTextView",
"Back", 0));
112 #ifndef QT_NO_TOOLTIP
113 ForwardButton->setToolTip(QApplication::translate(
"vtkQtRichTextView",
" Go forward one page", 0));
114 #endif // QT_NO_TOOLTIP
115 ForwardButton->setText(QApplication::translate(
"vtkQtRichTextView",
"Forward", 0));
116 ZoomIn->setText(QApplication::translate(
"vtkQtRichTextView",
"+", 0));
117 ZoomReset->setText(QApplication::translate(
"vtkQtRichTextView",
"100%", 0));
118 ZoomOut->setText(QApplication::translate(
"vtkQtRichTextView",
"-", 0));
129 #endif // UI_VTKQTRICHTEXTVIEW_H
Superclass for QAbstractItemView-based views.
QToolButton * ForwardButton
void setupUi(QWidget *vtkQtRichTextView)
QSpacerItem * horizontalSpacer
QHBoxLayout * horizontalLayout
void retranslateUi(QWidget *vtkQtRichTextView)
QVBoxLayout * verticalLayout