9 #ifndef UI_VTKQTRICHTEXTVIEW_H 10 #define UI_VTKQTRICHTEXTVIEW_H 12 #include <QtCore/QVariant> 13 #include <QtWebKitWidgets/QWebView> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QHBoxLayout> 16 #include <QtWidgets/QLabel> 17 #include <QtWidgets/QSpacerItem> 18 #include <QtWidgets/QToolButton> 19 #include <QtWidgets/QVBoxLayout> 20 #include <QtWidgets/QWidget> 40 if (vtkQtRichTextView->objectName().isEmpty())
41 vtkQtRichTextView->setObjectName(QString::fromUtf8(
"vtkQtRichTextView"));
42 vtkQtRichTextView->resize(400, 300);
43 verticalLayout =
new QVBoxLayout(vtkQtRichTextView);
44 verticalLayout->setSpacing(0);
45 verticalLayout->setContentsMargins(0, 0, 0, 0);
46 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
47 horizontalLayout =
new QHBoxLayout();
48 horizontalLayout->setSpacing(6);
49 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
50 Title =
new QLabel(vtkQtRichTextView);
51 Title->setObjectName(QString::fromUtf8(
"Title"));
53 horizontalLayout->addWidget(Title);
55 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
57 horizontalLayout->addItem(horizontalSpacer);
59 BackButton =
new QToolButton(vtkQtRichTextView);
60 BackButton->setObjectName(QString::fromUtf8(
"BackButton"));
61 BackButton->setArrowType(Qt::LeftArrow);
63 horizontalLayout->addWidget(BackButton);
65 ForwardButton =
new QToolButton(vtkQtRichTextView);
66 ForwardButton->setObjectName(QString::fromUtf8(
"ForwardButton"));
67 ForwardButton->setArrowType(Qt::RightArrow);
69 horizontalLayout->addWidget(ForwardButton);
71 ZoomIn =
new QToolButton(vtkQtRichTextView);
72 ZoomIn->setObjectName(QString::fromUtf8(
"ZoomIn"));
74 horizontalLayout->addWidget(ZoomIn);
76 ZoomReset =
new QToolButton(vtkQtRichTextView);
77 ZoomReset->setObjectName(QString::fromUtf8(
"ZoomReset"));
79 horizontalLayout->addWidget(ZoomReset);
81 ZoomOut =
new QToolButton(vtkQtRichTextView);
82 ZoomOut->setObjectName(QString::fromUtf8(
"ZoomOut"));
84 horizontalLayout->addWidget(ZoomOut);
87 verticalLayout->addLayout(horizontalLayout);
89 WebView =
new QWebView(vtkQtRichTextView);
90 WebView->setObjectName(QString::fromUtf8(
"WebView"));
91 WebView->setUrl(QUrl(QString::fromUtf8(
"about:blank")));
93 verticalLayout->addWidget(WebView);
98 QMetaObject::connectSlotsByName(vtkQtRichTextView);
103 vtkQtRichTextView->setWindowTitle(QCoreApplication::translate(
"vtkQtRichTextView",
"Form",
nullptr));
104 Title->setText(QString());
105 #if QT_CONFIG(tooltip) 106 BackButton->setToolTip(QCoreApplication::translate(
"vtkQtRichTextView",
"Go back one page",
nullptr));
107 #endif // QT_CONFIG(tooltip) 108 BackButton->setText(QCoreApplication::translate(
"vtkQtRichTextView",
"Back",
nullptr));
109 #if QT_CONFIG(tooltip) 110 ForwardButton->setToolTip(QCoreApplication::translate(
"vtkQtRichTextView",
" Go forward one page",
nullptr));
111 #endif // QT_CONFIG(tooltip) 112 ForwardButton->setText(QCoreApplication::translate(
"vtkQtRichTextView",
"Forward",
nullptr));
113 ZoomIn->setText(QCoreApplication::translate(
"vtkQtRichTextView",
"+",
nullptr));
114 ZoomReset->setText(QCoreApplication::translate(
"vtkQtRichTextView",
"100%",
nullptr));
115 ZoomOut->setText(QCoreApplication::translate(
"vtkQtRichTextView",
"-",
nullptr));
126 #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