9 #ifndef UI_LIVEDOC_WIDGET_H 10 #define UI_LIVEDOC_WIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QHBoxLayout> 17 #include <QtWidgets/QHeaderView> 18 #include <QtWidgets/QLabel> 19 #include <QtWidgets/QMainWindow> 20 #include <QtWidgets/QMenuBar> 21 #include <QtWidgets/QPushButton> 22 #include <QtWidgets/QSpacerItem> 23 #include <QtWidgets/QStatusBar> 24 #include <QtWidgets/QToolBar> 25 #include <QtWidgets/QVBoxLayout> 26 #include <QtWidgets/QWidget> 27 #include "gui/livedoc_browser.h" 31 class Ui_Livedoc_Widget
34 QAction *actionPrevious;
37 QAction *actionAutoNavigate;
38 QWidget *centralwidget;
39 QVBoxLayout *verticalLayout;
40 QWidget *noticeWidget;
41 QHBoxLayout *noticeLayout;
43 QSpacerItem *horizontalSpacer;
44 QPushButton *btnChange;
45 QPushButton *btnNoChange;
48 QStatusBar *statusbar;
53 if (Livedoc_Widget->objectName().isEmpty())
54 Livedoc_Widget->setObjectName(QStringLiteral(
"Livedoc_Widget"));
55 Livedoc_Widget->resize(449, 507);
56 actionPrevious =
new QAction(Livedoc_Widget);
57 actionPrevious->setObjectName(QStringLiteral(
"actionPrevious"));
59 QString iconThemeName = QStringLiteral(
"go-previous");
60 if (QIcon::hasThemeIcon(iconThemeName)) {
61 icon = QIcon::fromTheme(iconThemeName);
63 icon.addFile(QStringLiteral(
":/core/go-previous.png"), QSize(), QIcon::Normal, QIcon::Off);
65 actionPrevious->setIcon(icon);
66 actionNext =
new QAction(Livedoc_Widget);
67 actionNext->setObjectName(QStringLiteral(
"actionNext"));
69 iconThemeName = QStringLiteral(
"go-next");
70 if (QIcon::hasThemeIcon(iconThemeName)) {
71 icon1 = QIcon::fromTheme(iconThemeName);
73 icon1.addFile(QStringLiteral(
":/core/go-next.png"), QSize(), QIcon::Normal, QIcon::Off);
75 actionNext->setIcon(icon1);
76 actionHome =
new QAction(Livedoc_Widget);
77 actionHome->setObjectName(QStringLiteral(
"actionHome"));
79 iconThemeName = QStringLiteral(
"go-home");
80 if (QIcon::hasThemeIcon(iconThemeName)) {
81 icon2 = QIcon::fromTheme(iconThemeName);
83 icon2.addFile(QStringLiteral(
":/core/go-home-10.png"), QSize(), QIcon::Normal, QIcon::Off);
85 actionHome->setIcon(icon2);
86 actionAutoNavigate =
new QAction(Livedoc_Widget);
87 actionAutoNavigate->setObjectName(QStringLiteral(
"actionAutoNavigate"));
88 actionAutoNavigate->setCheckable(
true);
89 actionAutoNavigate->setChecked(
true);
91 iconThemeName = QStringLiteral(
"document-import");
92 if (QIcon::hasThemeIcon(iconThemeName)) {
93 icon3 = QIcon::fromTheme(iconThemeName);
95 icon3.addFile(QStringLiteral(
":/core/document-import-2.png"), QSize(), QIcon::Normal, QIcon::Off);
97 actionAutoNavigate->setIcon(icon3);
98 centralwidget =
new QWidget(Livedoc_Widget);
99 centralwidget->setObjectName(QStringLiteral(
"centralwidget"));
100 verticalLayout =
new QVBoxLayout(centralwidget);
101 verticalLayout->setSpacing(8);
102 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
103 verticalLayout->setContentsMargins(-1, 8, -1, -1);
104 noticeWidget =
new QWidget(centralwidget);
105 noticeWidget->setObjectName(QStringLiteral(
"noticeWidget"));
107 QBrush brush(QColor(255, 255, 255, 255));
108 brush.setStyle(Qt::SolidPattern);
109 palette.setBrush(QPalette::Active, QPalette::Base, brush);
110 QBrush brush1(QColor(255, 179, 0, 255));
111 brush1.setStyle(Qt::SolidPattern);
112 palette.setBrush(QPalette::Active, QPalette::Window, brush1);
113 palette.setBrush(QPalette::Inactive, QPalette::Base, brush);
114 palette.setBrush(QPalette::Inactive, QPalette::Window, brush1);
115 palette.setBrush(QPalette::Disabled, QPalette::Base, brush1);
116 palette.setBrush(QPalette::Disabled, QPalette::Window, brush1);
117 noticeWidget->setPalette(palette);
118 noticeWidget->setAutoFillBackground(
true);
119 noticeLayout =
new QHBoxLayout(noticeWidget);
120 noticeLayout->setObjectName(QStringLiteral(
"noticeLayout"));
121 noticeLayout->setContentsMargins(-1, 4, -1, 4);
122 lblChangeTo =
new QLabel(noticeWidget);
123 lblChangeTo->setObjectName(QStringLiteral(
"lblChangeTo"));
125 noticeLayout->addWidget(lblChangeTo);
127 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
129 noticeLayout->addItem(horizontalSpacer);
131 btnChange =
new QPushButton(noticeWidget);
132 btnChange->setObjectName(QStringLiteral(
"btnChange"));
134 noticeLayout->addWidget(btnChange);
136 btnNoChange =
new QPushButton(noticeWidget);
137 btnNoChange->setObjectName(QStringLiteral(
"btnNoChange"));
139 noticeLayout->addWidget(btnNoChange);
142 verticalLayout->addWidget(noticeWidget);
145 textBrowser->setObjectName(QStringLiteral(
"textBrowser"));
147 verticalLayout->addWidget(textBrowser);
149 Livedoc_Widget->setCentralWidget(centralwidget);
150 menubar =
new QMenuBar(Livedoc_Widget);
151 menubar->setObjectName(QStringLiteral(
"menubar"));
152 menubar->setGeometry(QRect(0, 0, 449, 23));
153 Livedoc_Widget->setMenuBar(menubar);
154 statusbar =
new QStatusBar(Livedoc_Widget);
155 statusbar->setObjectName(QStringLiteral(
"statusbar"));
156 Livedoc_Widget->setStatusBar(statusbar);
157 toolBar =
new QToolBar(Livedoc_Widget);
158 toolBar->setObjectName(QStringLiteral(
"toolBar"));
159 Livedoc_Widget->addToolBar(Qt::TopToolBarArea, toolBar);
161 toolBar->addAction(actionHome);
162 toolBar->addAction(actionPrevious);
163 toolBar->addAction(actionNext);
164 toolBar->addAction(actionAutoNavigate);
166 retranslateUi(Livedoc_Widget);
167 QObject::connect(textBrowser, SIGNAL(backwardAvailable(
bool)), actionPrevious, SLOT(setEnabled(
bool)));
168 QObject::connect(textBrowser, SIGNAL(forwardAvailable(
bool)), actionNext, SLOT(setEnabled(
bool)));
169 QObject::connect(actionNext, SIGNAL(triggered()), textBrowser, SLOT(forward()));
170 QObject::connect(actionPrevious, SIGNAL(triggered()), textBrowser, SLOT(backward()));
171 QObject::connect(actionHome, SIGNAL(triggered()), textBrowser, SLOT(home()));
173 QMetaObject::connectSlotsByName(Livedoc_Widget);
176 void retranslateUi(QMainWindow *Livedoc_Widget)
178 Livedoc_Widget->setWindowTitle(QApplication::translate(
"Livedoc_Widget",
"Livedoc", Q_NULLPTR));
179 actionPrevious->setText(QApplication::translate(
"Livedoc_Widget",
"Previous", Q_NULLPTR));
180 actionNext->setText(QApplication::translate(
"Livedoc_Widget",
"Next", Q_NULLPTR));
181 actionHome->setText(QApplication::translate(
"Livedoc_Widget",
"Home", Q_NULLPTR));
182 actionAutoNavigate->setText(QApplication::translate(
"Livedoc_Widget",
"Auto Navigate", Q_NULLPTR));
183 #ifndef QT_NO_TOOLTIP 184 actionAutoNavigate->setToolTip(QApplication::translate(
"Livedoc_Widget",
"Toggle Auto Navigate", Q_NULLPTR));
185 #endif // QT_NO_TOOLTIP 186 lblChangeTo->setText(QApplication::translate(
"Livedoc_Widget",
"Do you want to navigate to .....?", Q_NULLPTR));
187 btnChange->setText(QApplication::translate(
"Livedoc_Widget",
"Yes", Q_NULLPTR));
188 btnNoChange->setText(QApplication::translate(
"Livedoc_Widget",
"No", Q_NULLPTR));
189 toolBar->setWindowTitle(QApplication::translate(
"Livedoc_Widget",
"toolBar", Q_NULLPTR));
195 class Livedoc_Widget:
public Ui_Livedoc_Widget {};
200 #endif // UI_LIVEDOC_WIDGET_H Definition: item_origin_visualizer.h:10
Definition: livedoc_browser.h:6