1/********************************************************************************
2** Form generated from reading UI file 'mainwindow.ui'
3**
4** Created by: Qt User Interface Compiler version 5.15.9
5**
6** WARNING! All changes made in this file will be lost when recompiling UI file!
7********************************************************************************/
8
9#ifndef UI_MAINWINDOW_H
10#define UI_MAINWINDOW_H
11
12#include <QtCore/QVariant>
13#include <QtWidgets/QAction>
14#include <QtWidgets/QApplication>
15#include <QtWidgets/QGroupBox>
16#include <QtWidgets/QLabel>
17#include <QtWidgets/QMainWindow>
18#include <QtWidgets/QMenu>
19#include <QtWidgets/QMenuBar>
20#include <QtWidgets/QStatusBar>
21#include <QtWidgets/QTextEdit>
22#include <QtWidgets/QToolBar>
23#include <QtWidgets/QVBoxLayout>
24#include <QtWidgets/QWidget>
25#include <sendframebox.h>
26
27QT_BEGIN_NAMESPACE
28
29class Ui_MainWindow
30{
31public:
32 QAction *actionConnect;
33 QAction *actionDisconnect;
34 QAction *actionQuit;
35 QAction *actionAboutQt;
36 QAction *actionClearLog;
37 QAction *actionPluginDocumentation;
38 QAction *actionResetController;
39 QWidget *centralWidget;
40 QVBoxLayout *verticalLayout;
41 SendFrameBox *sendFrameBox;
42 QGroupBox *receivedMessagesBox;
43 QVBoxLayout *verticalLayout_4;
44 QLabel *label_3;
45 QTextEdit *receivedMessagesEdit;
46 QLabel *busStatus;
47 QMenuBar *menuBar;
48 QMenu *menuCalls;
49 QMenu *menuHelp;
50 QToolBar *mainToolBar;
51 QStatusBar *statusBar;
52
53 void setupUi(QMainWindow *MainWindow)
54 {
55 if (MainWindow->objectName().isEmpty())
56 MainWindow->setObjectName(QString::fromUtf8(str: "MainWindow"));
57 MainWindow->resize(w: 551, h: 481);
58 actionConnect = new QAction(MainWindow);
59 actionConnect->setObjectName(QString::fromUtf8(str: "actionConnect"));
60 QIcon icon;
61 icon.addFile(fileName: QString::fromUtf8(str: ":/images/connect.png"), size: QSize(), mode: QIcon::Normal, state: QIcon::Off);
62 actionConnect->setIcon(icon);
63 actionDisconnect = new QAction(MainWindow);
64 actionDisconnect->setObjectName(QString::fromUtf8(str: "actionDisconnect"));
65 QIcon icon1;
66 icon1.addFile(fileName: QString::fromUtf8(str: ":/images/disconnect.png"), size: QSize(), mode: QIcon::Normal, state: QIcon::Off);
67 actionDisconnect->setIcon(icon1);
68 actionQuit = new QAction(MainWindow);
69 actionQuit->setObjectName(QString::fromUtf8(str: "actionQuit"));
70 QIcon icon2;
71 icon2.addFile(fileName: QString::fromUtf8(str: ":/images/application-exit.png"), size: QSize(), mode: QIcon::Normal, state: QIcon::Off);
72 actionQuit->setIcon(icon2);
73 actionAboutQt = new QAction(MainWindow);
74 actionAboutQt->setObjectName(QString::fromUtf8(str: "actionAboutQt"));
75 actionClearLog = new QAction(MainWindow);
76 actionClearLog->setObjectName(QString::fromUtf8(str: "actionClearLog"));
77 QIcon icon3;
78 icon3.addFile(fileName: QString::fromUtf8(str: ":/images/clear.png"), size: QSize(), mode: QIcon::Normal, state: QIcon::Off);
79 actionClearLog->setIcon(icon3);
80 actionPluginDocumentation = new QAction(MainWindow);
81 actionPluginDocumentation->setObjectName(QString::fromUtf8(str: "actionPluginDocumentation"));
82 actionResetController = new QAction(MainWindow);
83 actionResetController->setObjectName(QString::fromUtf8(str: "actionResetController"));
84 centralWidget = new QWidget(MainWindow);
85 centralWidget->setObjectName(QString::fromUtf8(str: "centralWidget"));
86 verticalLayout = new QVBoxLayout(centralWidget);
87 verticalLayout->setSpacing(6);
88 verticalLayout->setContentsMargins(left: 11, top: 11, right: 11, bottom: 11);
89 verticalLayout->setObjectName(QString::fromUtf8(str: "verticalLayout"));
90 sendFrameBox = new SendFrameBox(centralWidget);
91 sendFrameBox->setObjectName(QString::fromUtf8(str: "sendFrameBox"));
92
93 verticalLayout->addWidget(sendFrameBox);
94
95 receivedMessagesBox = new QGroupBox(centralWidget);
96 receivedMessagesBox->setObjectName(QString::fromUtf8(str: "receivedMessagesBox"));
97 verticalLayout_4 = new QVBoxLayout(receivedMessagesBox);
98 verticalLayout_4->setSpacing(6);
99 verticalLayout_4->setContentsMargins(left: 11, top: 11, right: 11, bottom: 11);
100 verticalLayout_4->setObjectName(QString::fromUtf8(str: "verticalLayout_4"));
101 label_3 = new QLabel(receivedMessagesBox);
102 label_3->setObjectName(QString::fromUtf8(str: "label_3"));
103 QFont font;
104 font.setFamily(QString::fromUtf8(str: "Courier"));
105 font.setKerning(false);
106 label_3->setFont(font);
107 label_3->setFrameShape(QFrame::StyledPanel);
108
109 verticalLayout_4->addWidget(label_3);
110
111 receivedMessagesEdit = new QTextEdit(receivedMessagesBox);
112 receivedMessagesEdit->setObjectName(QString::fromUtf8(str: "receivedMessagesEdit"));
113 receivedMessagesEdit->setFont(font);
114 receivedMessagesEdit->setFrameShape(QFrame::StyledPanel);
115 receivedMessagesEdit->setUndoRedoEnabled(false);
116 receivedMessagesEdit->setLineWrapMode(QTextEdit::NoWrap);
117 receivedMessagesEdit->setReadOnly(true);
118
119 verticalLayout_4->addWidget(receivedMessagesEdit);
120
121 busStatus = new QLabel(receivedMessagesBox);
122 busStatus->setObjectName(QString::fromUtf8(str: "busStatus"));
123
124 verticalLayout_4->addWidget(busStatus);
125
126
127 verticalLayout->addWidget(receivedMessagesBox);
128
129 MainWindow->setCentralWidget(centralWidget);
130 menuBar = new QMenuBar(MainWindow);
131 menuBar->setObjectName(QString::fromUtf8(str: "menuBar"));
132 menuBar->setGeometry(QRect(0, 0, 551, 22));
133 menuCalls = new QMenu(menuBar);
134 menuCalls->setObjectName(QString::fromUtf8(str: "menuCalls"));
135 menuHelp = new QMenu(menuBar);
136 menuHelp->setObjectName(QString::fromUtf8(str: "menuHelp"));
137 MainWindow->setMenuBar(menuBar);
138 mainToolBar = new QToolBar(MainWindow);
139 mainToolBar->setObjectName(QString::fromUtf8(str: "mainToolBar"));
140 MainWindow->addToolBar(area: Qt::TopToolBarArea, toolbar: mainToolBar);
141 statusBar = new QStatusBar(MainWindow);
142 statusBar->setObjectName(QString::fromUtf8(str: "statusBar"));
143 MainWindow->setStatusBar(statusBar);
144
145 menuBar->addAction(action: menuCalls->menuAction());
146 menuBar->addAction(action: menuHelp->menuAction());
147 menuCalls->addAction(action: actionConnect);
148 menuCalls->addAction(action: actionDisconnect);
149 menuCalls->addSeparator();
150 menuCalls->addAction(action: actionResetController);
151 menuCalls->addSeparator();
152 menuCalls->addAction(action: actionClearLog);
153 menuCalls->addSeparator();
154 menuCalls->addAction(action: actionQuit);
155 menuHelp->addAction(action: actionPluginDocumentation);
156 menuHelp->addAction(action: actionAboutQt);
157 mainToolBar->addAction(action: actionConnect);
158 mainToolBar->addAction(action: actionDisconnect);
159 mainToolBar->addSeparator();
160 mainToolBar->addAction(action: actionClearLog);
161
162 retranslateUi(MainWindow);
163
164 QMetaObject::connectSlotsByName(o: MainWindow);
165 } // setupUi
166
167 void retranslateUi(QMainWindow *MainWindow)
168 {
169 MainWindow->setWindowTitle(QCoreApplication::translate(context: "MainWindow", key: "CAN Example", disambiguation: nullptr));
170 actionConnect->setText(QCoreApplication::translate(context: "MainWindow", key: "&Connect", disambiguation: nullptr));
171 actionDisconnect->setText(QCoreApplication::translate(context: "MainWindow", key: "&Disconnect", disambiguation: nullptr));
172 actionQuit->setText(QCoreApplication::translate(context: "MainWindow", key: "&Quit", disambiguation: nullptr));
173 actionAboutQt->setText(QCoreApplication::translate(context: "MainWindow", key: "&About Qt", disambiguation: nullptr));
174 actionClearLog->setText(QCoreApplication::translate(context: "MainWindow", key: "Clear &Log", disambiguation: nullptr));
175 actionPluginDocumentation->setText(QCoreApplication::translate(context: "MainWindow", key: "Plugin Documentation", disambiguation: nullptr));
176#if QT_CONFIG(tooltip)
177 actionPluginDocumentation->setToolTip(QCoreApplication::translate(context: "MainWindow", key: "Open plugin documentation in Webbrowser", disambiguation: nullptr));
178#endif // QT_CONFIG(tooltip)
179 actionResetController->setText(QCoreApplication::translate(context: "MainWindow", key: "&Reset CAN Controller", disambiguation: nullptr));
180#if QT_CONFIG(tooltip)
181 actionResetController->setToolTip(QCoreApplication::translate(context: "MainWindow", key: "Reset CAN Controller", disambiguation: nullptr));
182#endif // QT_CONFIG(tooltip)
183 sendFrameBox->setTitle(QCoreApplication::translate(context: "MainWindow", key: "Send CAN frame", disambiguation: nullptr));
184 receivedMessagesBox->setTitle(QCoreApplication::translate(context: "MainWindow", key: "Received CAN messages", disambiguation: nullptr));
185 label_3->setText(QCoreApplication::translate(context: "MainWindow", key: "Timestamp Flags CAN-ID DLC Data", disambiguation: nullptr));
186 busStatus->setText(QString());
187 menuCalls->setTitle(QCoreApplication::translate(context: "MainWindow", key: "&Calls", disambiguation: nullptr));
188 menuHelp->setTitle(QCoreApplication::translate(context: "MainWindow", key: "&Help", disambiguation: nullptr));
189 } // retranslateUi
190
191};
192
193namespace Ui {
194 class MainWindow: public Ui_MainWindow {};
195} // namespace Ui
196
197QT_END_NAMESPACE
198
199#endif // UI_MAINWINDOW_H
200

source code of qtserialbus/examples/serialbus/can/.uic/ui_mainwindow.h