9 #ifndef UI_PQLOGVIEWERWIDGET_H 10 #define UI_PQLOGVIEWERWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QHBoxLayout> 16 #include <QtWidgets/QHeaderView> 17 #include <QtWidgets/QLineEdit> 18 #include <QtWidgets/QPushButton> 19 #include <QtWidgets/QSpacerItem> 20 #include <QtWidgets/QSplitter> 21 #include <QtWidgets/QTextEdit> 22 #include <QtWidgets/QToolButton> 23 #include <QtWidgets/QTreeView> 24 #include <QtWidgets/QVBoxLayout> 25 #include <QtWidgets/QWidget> 49 if (LogViewerWidget->objectName().isEmpty())
50 LogViewerWidget->setObjectName(QString::fromUtf8(
"LogViewerWidget"));
51 LogViewerWidget->resize(480, 640);
52 verticalLayout =
new QVBoxLayout(LogViewerWidget);
53 verticalLayout->setSpacing(4);
54 verticalLayout->setContentsMargins(0, 0, 0, 0);
55 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
56 widget =
new QWidget(LogViewerWidget);
57 widget->setObjectName(QString::fromUtf8(
"widget"));
58 horizontalLayout =
new QHBoxLayout(widget);
59 horizontalLayout->setContentsMargins(0, 0, 0, 0);
60 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
62 verticalLayout->addWidget(widget);
64 controlsWidget =
new QWidget(LogViewerWidget);
65 controlsWidget->setObjectName(QString::fromUtf8(
"controlsWidget"));
66 horizontalLayout_2 =
new QHBoxLayout(controlsWidget);
67 horizontalLayout_2->setSpacing(4);
68 horizontalLayout_2->setContentsMargins(0, 0, 0, 0);
69 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
70 filter =
new QLineEdit(controlsWidget);
71 filter->setObjectName(QString::fromUtf8(
"filter"));
72 filter->setProperty(
"clearButtonEnabled", QVariant(
true));
74 horizontalLayout_2->addWidget(filter);
76 advancedButton =
new QToolButton(controlsWidget);
77 advancedButton->setObjectName(QString::fromUtf8(
"advancedButton"));
79 icon.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqAdvanced.svg"), QSize(), QIcon::Normal, QIcon::Off);
80 advancedButton->setIcon(icon);
81 advancedButton->setCheckable(
true);
82 advancedButton->setToolButtonStyle(Qt::ToolButtonIconOnly);
84 horizontalLayout_2->addWidget(advancedButton);
87 verticalLayout->addWidget(controlsWidget);
89 splitter =
new QSplitter(LogViewerWidget);
90 splitter->setObjectName(QString::fromUtf8(
"splitter"));
91 splitter->setOrientation(Qt::Vertical);
92 treeView =
new QTreeView(splitter);
93 treeView->setObjectName(QString::fromUtf8(
"treeView"));
94 treeView->setEditTriggers(QAbstractItemView::NoEditTriggers);
95 treeView->setAlternatingRowColors(
true);
96 treeView->setSelectionMode(QAbstractItemView::ExtendedSelection);
97 treeView->setUniformRowHeights(
true);
98 splitter->addWidget(treeView);
99 details =
new QTextEdit(splitter);
100 details->setObjectName(QString::fromUtf8(
"details"));
102 font.setFamily(QString::fromUtf8(
"Courier"));
105 details->setFont(font);
106 details->setReadOnly(
true);
107 splitter->addWidget(details);
109 verticalLayout->addWidget(splitter);
111 widget_2 =
new QWidget(LogViewerWidget);
112 widget_2->setObjectName(QString::fromUtf8(
"widget_2"));
113 horizontalLayout_3 =
new QHBoxLayout(widget_2);
114 horizontalLayout_3->setObjectName(QString::fromUtf8(
"horizontalLayout_3"));
115 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
117 horizontalLayout_3->addItem(horizontalSpacer);
119 exportLogButton =
new QPushButton(widget_2);
120 exportLogButton->setObjectName(QString::fromUtf8(
"exportLogButton"));
122 horizontalLayout_3->addWidget(exportLogButton);
125 verticalLayout->addWidget(widget_2);
130 QMetaObject::connectSlotsByName(LogViewerWidget);
135 LogViewerWidget->setWindowTitle(QCoreApplication::translate(
"LogViewerWidget",
"Form",
nullptr));
136 filter->setPlaceholderText(QCoreApplication::translate(
"LogViewerWidget",
"Set filter on this log",
nullptr));
137 #if QT_CONFIG(tooltip) 138 advancedButton->setToolTip(QCoreApplication::translate(
"LogViewerWidget",
"Show/hide all columns",
nullptr));
139 #endif // QT_CONFIG(tooltip) 140 advancedButton->setText(QCoreApplication::translate(
"LogViewerWidget",
"...",
nullptr));
141 details->setProperty(
"placeholderText", QVariant(QCoreApplication::translate(
"LogViewerWidget",
"Select rows above to show raw log text here. Save text with the Export Log button below.",
nullptr)));
142 exportLogButton->setText(QCoreApplication::translate(
"LogViewerWidget",
"Export Log",
nullptr));
153 #endif // UI_PQLOGVIEWERWIDGET_H