missing files
This commit is contained in:
65
console/terminal/console.h
Normal file
65
console/terminal/console.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2012 Denis Shienkov <denis.shienkov@gmail.com>
|
||||
** Copyright (C) 2012 Laszlo Papp <lpapp@kde.org>
|
||||
** Contact: http://www.qt-project.org/legal
|
||||
**
|
||||
** This file is part of the QtSerialPort module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL21$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and Digia. For licensing terms and
|
||||
** conditions see http://qt.digia.com/licensing. For further information
|
||||
** use the contact form at http://qt.digia.com/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 2.1 or version 3 as published by the Free
|
||||
** Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
** LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
** following information to ensure the GNU Lesser General Public License
|
||||
** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Digia gives you certain additional
|
||||
** rights. These rights are described in the Digia Qt LGPL Exception
|
||||
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONSOLE_H
|
||||
#define CONSOLE_H
|
||||
|
||||
#include <QPlainTextEdit>
|
||||
|
||||
class Console : public QPlainTextEdit
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
signals:
|
||||
void getData(const QString &data);
|
||||
|
||||
public:
|
||||
explicit Console(QWidget *parent = 0);
|
||||
|
||||
void putData(const QString &data);
|
||||
|
||||
void setLocalEchoEnabled(bool set);
|
||||
|
||||
protected:
|
||||
virtual void keyPressEvent(QKeyEvent *e);
|
||||
virtual void mousePressEvent(QMouseEvent *e);
|
||||
virtual void mouseDoubleClickEvent(QMouseEvent *e);
|
||||
virtual void contextMenuEvent(QContextMenuEvent *e);
|
||||
|
||||
private:
|
||||
bool localEchoEnabled;
|
||||
|
||||
};
|
||||
|
||||
#endif // CONSOLE_H
|
||||
84
console/terminal/mainwindow.h
Normal file
84
console/terminal/mainwindow.h
Normal file
@@ -0,0 +1,84 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2012 Denis Shienkov <denis.shienkov@gmail.com>
|
||||
** Copyright (C) 2012 Laszlo Papp <lpapp@kde.org>
|
||||
** Contact: http://www.qt-project.org/legal
|
||||
**
|
||||
** This file is part of the QtSerialPort module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL21$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and Digia. For licensing terms and
|
||||
** conditions see http://qt.digia.com/licensing. For further information
|
||||
** use the contact form at http://qt.digia.com/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 2.1 or version 3 as published by the Free
|
||||
** Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
** LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
** following information to ensure the GNU Lesser General Public License
|
||||
** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Digia gives you certain additional
|
||||
** rights. These rights are described in the Digia Qt LGPL Exception
|
||||
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef MAINWINDOW_H
|
||||
#define MAINWINDOW_H
|
||||
|
||||
#include <QtCore/QtGlobal>
|
||||
|
||||
#include <QMainWindow>
|
||||
|
||||
#include <yapi.hh>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace Ui {
|
||||
class MainWindow;
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class Console;
|
||||
class SettingsDialog;
|
||||
|
||||
|
||||
|
||||
class MainWindow : public QMainWindow, public YAPEngine
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit MainWindow(QWidget *parent = 0);
|
||||
~MainWindow();
|
||||
|
||||
private slots:
|
||||
void startYAP(YAPEngine *&eng);
|
||||
void stopYAP(YAPEngine *eng);
|
||||
void about();
|
||||
void writeData(const QString &data);
|
||||
void readData();
|
||||
|
||||
void handleError(YAPError error);
|
||||
|
||||
private:
|
||||
void initActionsConnections();
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
Console *console;
|
||||
SettingsDialog *settings;
|
||||
YAPEngine *eng;
|
||||
};
|
||||
|
||||
#endif // MAINWINDOW_H
|
||||
95
console/terminal/settingsdialog.h
Normal file
95
console/terminal/settingsdialog.h
Normal file
@@ -0,0 +1,95 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2012 Denis Shienkov <denis.shienkov@gmail.com>
|
||||
** Copyright (C) 2012 Laszlo Papp <lpapp@kde.org>
|
||||
** Contact: http://www.qt-project.org/legal
|
||||
**
|
||||
** This file is part of the QtSerialPort module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL21$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and Digia. For licensing terms and
|
||||
** conditions see http://qt.digia.com/licensing. For further information
|
||||
** use the contact form at http://qt.digia.com/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 2.1 or version 3 as published by the Free
|
||||
** Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
** LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
** following information to ensure the GNU Lesser General Public License
|
||||
** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Digia gives you certain additional
|
||||
** rights. These rights are described in the Digia Qt LGPL Exception
|
||||
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef SETTINGSDIALOG_H
|
||||
#define SETTINGSDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QtSerialPort/QSerialPort>
|
||||
|
||||
QT_USE_NAMESPACE
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace Ui {
|
||||
class SettingsDialog;
|
||||
}
|
||||
|
||||
class QIntValidator;
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class SettingsDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
struct Settings {
|
||||
QString name;
|
||||
qint32 baudRate;
|
||||
QString stringBaudRate;
|
||||
QSerialPort::DataBits dataBits;
|
||||
QString stringDataBits;
|
||||
QSerialPort::Parity parity;
|
||||
QString stringParity;
|
||||
QSerialPort::StopBits stopBits;
|
||||
QString stringStopBits;
|
||||
QSerialPort::FlowControl flowControl;
|
||||
QString stringFlowControl;
|
||||
bool localEchoEnabled;
|
||||
};
|
||||
|
||||
explicit SettingsDialog(QWidget *parent = 0);
|
||||
~SettingsDialog();
|
||||
|
||||
Settings settings() const;
|
||||
|
||||
private slots:
|
||||
void showPortInfo(int idx);
|
||||
void apply();
|
||||
void checkCustomBaudRatePolicy(int idx);
|
||||
void checkCustomDevicePathPolicy(int idx);
|
||||
|
||||
private:
|
||||
void fillPortsParameters();
|
||||
void fillPortsInfo();
|
||||
void updateSettings();
|
||||
|
||||
private:
|
||||
Ui::SettingsDialog *ui;
|
||||
Settings currentSettings;
|
||||
QIntValidator *intValidator;
|
||||
};
|
||||
|
||||
#endif // SETTINGSDIALOG_H
|
||||
169
console/terminal/ui_mainwindow.h
Normal file
169
console/terminal/ui_mainwindow.h
Normal file
@@ -0,0 +1,169 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading UI file 'mainwindow.ui'
|
||||
**
|
||||
** Created by: Qt User Interface Compiler version 5.4.2
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef UI_MAINWINDOW_H
|
||||
#define UI_MAINWINDOW_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtWidgets/QAction>
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtWidgets/QButtonGroup>
|
||||
#include <QtWidgets/QHeaderView>
|
||||
#include <QtWidgets/QMainWindow>
|
||||
#include <QtWidgets/QMenu>
|
||||
#include <QtWidgets/QMenuBar>
|
||||
#include <QtWidgets/QStatusBar>
|
||||
#include <QtWidgets/QToolBar>
|
||||
#include <QtWidgets/QVBoxLayout>
|
||||
#include <QtWidgets/QWidget>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_MainWindow
|
||||
{
|
||||
public:
|
||||
QAction *actionAbout;
|
||||
QAction *actionAboutQt;
|
||||
QAction *actionConnect;
|
||||
QAction *actionDisconnect;
|
||||
QAction *actionConfigure;
|
||||
QAction *actionClear;
|
||||
QAction *actionQuit;
|
||||
QWidget *centralWidget;
|
||||
QVBoxLayout *verticalLayout;
|
||||
QMenuBar *menuBar;
|
||||
QMenu *menuCalls;
|
||||
QMenu *menuTools;
|
||||
QMenu *menuHelp;
|
||||
QToolBar *mainToolBar;
|
||||
QStatusBar *statusBar;
|
||||
|
||||
void setupUi(QMainWindow *MainWindow)
|
||||
{
|
||||
if (MainWindow->objectName().isEmpty())
|
||||
MainWindow->setObjectName(QStringLiteral("MainWindow"));
|
||||
MainWindow->resize(400, 300);
|
||||
actionAbout = new QAction(MainWindow);
|
||||
actionAbout->setObjectName(QStringLiteral("actionAbout"));
|
||||
actionAboutQt = new QAction(MainWindow);
|
||||
actionAboutQt->setObjectName(QStringLiteral("actionAboutQt"));
|
||||
actionConnect = new QAction(MainWindow);
|
||||
actionConnect->setObjectName(QStringLiteral("actionConnect"));
|
||||
QIcon icon;
|
||||
icon.addFile(QStringLiteral(":/images/connect.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
actionConnect->setIcon(icon);
|
||||
actionDisconnect = new QAction(MainWindow);
|
||||
actionDisconnect->setObjectName(QStringLiteral("actionDisconnect"));
|
||||
QIcon icon1;
|
||||
icon1.addFile(QStringLiteral(":/images/disconnect.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
actionDisconnect->setIcon(icon1);
|
||||
actionConfigure = new QAction(MainWindow);
|
||||
actionConfigure->setObjectName(QStringLiteral("actionConfigure"));
|
||||
QIcon icon2;
|
||||
icon2.addFile(QStringLiteral(":/images/settings.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
actionConfigure->setIcon(icon2);
|
||||
actionClear = new QAction(MainWindow);
|
||||
actionClear->setObjectName(QStringLiteral("actionClear"));
|
||||
QIcon icon3;
|
||||
icon3.addFile(QStringLiteral(":/images/clear.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
actionClear->setIcon(icon3);
|
||||
actionQuit = new QAction(MainWindow);
|
||||
actionQuit->setObjectName(QStringLiteral("actionQuit"));
|
||||
QIcon icon4;
|
||||
icon4.addFile(QStringLiteral(":/images/application-exit.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
actionQuit->setIcon(icon4);
|
||||
centralWidget = new QWidget(MainWindow);
|
||||
centralWidget->setObjectName(QStringLiteral("centralWidget"));
|
||||
verticalLayout = new QVBoxLayout(centralWidget);
|
||||
verticalLayout->setSpacing(6);
|
||||
verticalLayout->setContentsMargins(11, 11, 11, 11);
|
||||
verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
|
||||
MainWindow->setCentralWidget(centralWidget);
|
||||
menuBar = new QMenuBar(MainWindow);
|
||||
menuBar->setObjectName(QStringLiteral("menuBar"));
|
||||
menuBar->setGeometry(QRect(0, 0, 400, 19));
|
||||
menuCalls = new QMenu(menuBar);
|
||||
menuCalls->setObjectName(QStringLiteral("menuCalls"));
|
||||
menuTools = new QMenu(menuBar);
|
||||
menuTools->setObjectName(QStringLiteral("menuTools"));
|
||||
menuHelp = new QMenu(menuBar);
|
||||
menuHelp->setObjectName(QStringLiteral("menuHelp"));
|
||||
MainWindow->setMenuBar(menuBar);
|
||||
mainToolBar = new QToolBar(MainWindow);
|
||||
mainToolBar->setObjectName(QStringLiteral("mainToolBar"));
|
||||
MainWindow->addToolBar(Qt::TopToolBarArea, mainToolBar);
|
||||
statusBar = new QStatusBar(MainWindow);
|
||||
statusBar->setObjectName(QStringLiteral("statusBar"));
|
||||
MainWindow->setStatusBar(statusBar);
|
||||
|
||||
menuBar->addAction(menuCalls->menuAction());
|
||||
menuBar->addAction(menuTools->menuAction());
|
||||
menuBar->addAction(menuHelp->menuAction());
|
||||
menuCalls->addAction(actionConnect);
|
||||
menuCalls->addAction(actionDisconnect);
|
||||
menuCalls->addSeparator();
|
||||
menuCalls->addAction(actionQuit);
|
||||
menuTools->addAction(actionConfigure);
|
||||
menuTools->addAction(actionClear);
|
||||
menuHelp->addAction(actionAbout);
|
||||
menuHelp->addAction(actionAboutQt);
|
||||
mainToolBar->addAction(actionConnect);
|
||||
mainToolBar->addAction(actionDisconnect);
|
||||
mainToolBar->addAction(actionConfigure);
|
||||
mainToolBar->addAction(actionClear);
|
||||
|
||||
retranslateUi(MainWindow);
|
||||
|
||||
QMetaObject::connectSlotsByName(MainWindow);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QMainWindow *MainWindow)
|
||||
{
|
||||
MainWindow->setWindowTitle(QApplication::translate("MainWindow", "Simple Terminal", 0));
|
||||
actionAbout->setText(QApplication::translate("MainWindow", "&About", 0));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
actionAbout->setToolTip(QApplication::translate("MainWindow", "About program", 0));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
actionAbout->setShortcut(QApplication::translate("MainWindow", "Alt+A", 0));
|
||||
actionAboutQt->setText(QApplication::translate("MainWindow", "About Qt", 0));
|
||||
actionConnect->setText(QApplication::translate("MainWindow", "C&onnect", 0));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
actionConnect->setToolTip(QApplication::translate("MainWindow", "Connect to serial port", 0));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
actionConnect->setShortcut(QApplication::translate("MainWindow", "Ctrl+O", 0));
|
||||
actionDisconnect->setText(QApplication::translate("MainWindow", "&Disconnect", 0));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
actionDisconnect->setToolTip(QApplication::translate("MainWindow", "Disconnect from serial port", 0));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
actionDisconnect->setShortcut(QApplication::translate("MainWindow", "Ctrl+D", 0));
|
||||
actionConfigure->setText(QApplication::translate("MainWindow", "&Configure", 0));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
actionConfigure->setToolTip(QApplication::translate("MainWindow", "Configure serial port", 0));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
actionConfigure->setShortcut(QApplication::translate("MainWindow", "Alt+C", 0));
|
||||
actionClear->setText(QApplication::translate("MainWindow", "C&lear", 0));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
actionClear->setToolTip(QApplication::translate("MainWindow", "Clear data", 0));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
actionClear->setShortcut(QApplication::translate("MainWindow", "Alt+L", 0));
|
||||
actionQuit->setText(QApplication::translate("MainWindow", "&Quit", 0));
|
||||
actionQuit->setShortcut(QApplication::translate("MainWindow", "Ctrl+Q", 0));
|
||||
menuCalls->setTitle(QApplication::translate("MainWindow", "Calls", 0));
|
||||
menuTools->setTitle(QApplication::translate("MainWindow", "Tools", 0));
|
||||
menuHelp->setTitle(QApplication::translate("MainWindow", "Help", 0));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class MainWindow: public Ui_MainWindow {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // UI_MAINWINDOW_H
|
||||
230
console/terminal/ui_settingsdialog.h
Normal file
230
console/terminal/ui_settingsdialog.h
Normal file
@@ -0,0 +1,230 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading UI file 'settingsdialog.ui'
|
||||
**
|
||||
** Created by: Qt User Interface Compiler version 5.4.2
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef UI_SETTINGSDIALOG_H
|
||||
#define UI_SETTINGSDIALOG_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtWidgets/QAction>
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtWidgets/QButtonGroup>
|
||||
#include <QtWidgets/QCheckBox>
|
||||
#include <QtWidgets/QComboBox>
|
||||
#include <QtWidgets/QDialog>
|
||||
#include <QtWidgets/QGridLayout>
|
||||
#include <QtWidgets/QGroupBox>
|
||||
#include <QtWidgets/QHBoxLayout>
|
||||
#include <QtWidgets/QHeaderView>
|
||||
#include <QtWidgets/QLabel>
|
||||
#include <QtWidgets/QPushButton>
|
||||
#include <QtWidgets/QSpacerItem>
|
||||
#include <QtWidgets/QVBoxLayout>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_SettingsDialog
|
||||
{
|
||||
public:
|
||||
QGridLayout *gridLayout_3;
|
||||
QGroupBox *parametersBox;
|
||||
QGridLayout *gridLayout_2;
|
||||
QLabel *baudRateLabel;
|
||||
QComboBox *baudRateBox;
|
||||
QLabel *dataBitsLabel;
|
||||
QComboBox *dataBitsBox;
|
||||
QLabel *parityLabel;
|
||||
QComboBox *parityBox;
|
||||
QLabel *stopBitsLabel;
|
||||
QComboBox *stopBitsBox;
|
||||
QLabel *flowControlLabel;
|
||||
QComboBox *flowControlBox;
|
||||
QGroupBox *selectBox;
|
||||
QGridLayout *gridLayout;
|
||||
QComboBox *serialPortInfoListBox;
|
||||
QLabel *descriptionLabel;
|
||||
QLabel *manufacturerLabel;
|
||||
QLabel *serialNumberLabel;
|
||||
QLabel *locationLabel;
|
||||
QLabel *vidLabel;
|
||||
QLabel *pidLabel;
|
||||
QHBoxLayout *horizontalLayout;
|
||||
QSpacerItem *horizontalSpacer;
|
||||
QPushButton *applyButton;
|
||||
QGroupBox *additionalOptionsGroupBox;
|
||||
QVBoxLayout *verticalLayout;
|
||||
QCheckBox *localEchoCheckBox;
|
||||
|
||||
void setupUi(QDialog *SettingsDialog)
|
||||
{
|
||||
if (SettingsDialog->objectName().isEmpty())
|
||||
SettingsDialog->setObjectName(QStringLiteral("SettingsDialog"));
|
||||
SettingsDialog->resize(281, 262);
|
||||
gridLayout_3 = new QGridLayout(SettingsDialog);
|
||||
gridLayout_3->setObjectName(QStringLiteral("gridLayout_3"));
|
||||
parametersBox = new QGroupBox(SettingsDialog);
|
||||
parametersBox->setObjectName(QStringLiteral("parametersBox"));
|
||||
gridLayout_2 = new QGridLayout(parametersBox);
|
||||
gridLayout_2->setObjectName(QStringLiteral("gridLayout_2"));
|
||||
baudRateLabel = new QLabel(parametersBox);
|
||||
baudRateLabel->setObjectName(QStringLiteral("baudRateLabel"));
|
||||
|
||||
gridLayout_2->addWidget(baudRateLabel, 0, 0, 1, 1);
|
||||
|
||||
baudRateBox = new QComboBox(parametersBox);
|
||||
baudRateBox->setObjectName(QStringLiteral("baudRateBox"));
|
||||
|
||||
gridLayout_2->addWidget(baudRateBox, 0, 1, 1, 1);
|
||||
|
||||
dataBitsLabel = new QLabel(parametersBox);
|
||||
dataBitsLabel->setObjectName(QStringLiteral("dataBitsLabel"));
|
||||
|
||||
gridLayout_2->addWidget(dataBitsLabel, 1, 0, 1, 1);
|
||||
|
||||
dataBitsBox = new QComboBox(parametersBox);
|
||||
dataBitsBox->setObjectName(QStringLiteral("dataBitsBox"));
|
||||
|
||||
gridLayout_2->addWidget(dataBitsBox, 1, 1, 1, 1);
|
||||
|
||||
parityLabel = new QLabel(parametersBox);
|
||||
parityLabel->setObjectName(QStringLiteral("parityLabel"));
|
||||
|
||||
gridLayout_2->addWidget(parityLabel, 2, 0, 1, 1);
|
||||
|
||||
parityBox = new QComboBox(parametersBox);
|
||||
parityBox->setObjectName(QStringLiteral("parityBox"));
|
||||
|
||||
gridLayout_2->addWidget(parityBox, 2, 1, 1, 1);
|
||||
|
||||
stopBitsLabel = new QLabel(parametersBox);
|
||||
stopBitsLabel->setObjectName(QStringLiteral("stopBitsLabel"));
|
||||
|
||||
gridLayout_2->addWidget(stopBitsLabel, 3, 0, 1, 1);
|
||||
|
||||
stopBitsBox = new QComboBox(parametersBox);
|
||||
stopBitsBox->setObjectName(QStringLiteral("stopBitsBox"));
|
||||
|
||||
gridLayout_2->addWidget(stopBitsBox, 3, 1, 1, 1);
|
||||
|
||||
flowControlLabel = new QLabel(parametersBox);
|
||||
flowControlLabel->setObjectName(QStringLiteral("flowControlLabel"));
|
||||
|
||||
gridLayout_2->addWidget(flowControlLabel, 4, 0, 1, 1);
|
||||
|
||||
flowControlBox = new QComboBox(parametersBox);
|
||||
flowControlBox->setObjectName(QStringLiteral("flowControlBox"));
|
||||
|
||||
gridLayout_2->addWidget(flowControlBox, 4, 1, 1, 1);
|
||||
|
||||
|
||||
gridLayout_3->addWidget(parametersBox, 0, 1, 1, 1);
|
||||
|
||||
selectBox = new QGroupBox(SettingsDialog);
|
||||
selectBox->setObjectName(QStringLiteral("selectBox"));
|
||||
gridLayout = new QGridLayout(selectBox);
|
||||
gridLayout->setObjectName(QStringLiteral("gridLayout"));
|
||||
serialPortInfoListBox = new QComboBox(selectBox);
|
||||
serialPortInfoListBox->setObjectName(QStringLiteral("serialPortInfoListBox"));
|
||||
|
||||
gridLayout->addWidget(serialPortInfoListBox, 0, 0, 1, 1);
|
||||
|
||||
descriptionLabel = new QLabel(selectBox);
|
||||
descriptionLabel->setObjectName(QStringLiteral("descriptionLabel"));
|
||||
|
||||
gridLayout->addWidget(descriptionLabel, 1, 0, 1, 1);
|
||||
|
||||
manufacturerLabel = new QLabel(selectBox);
|
||||
manufacturerLabel->setObjectName(QStringLiteral("manufacturerLabel"));
|
||||
|
||||
gridLayout->addWidget(manufacturerLabel, 2, 0, 1, 1);
|
||||
|
||||
serialNumberLabel = new QLabel(selectBox);
|
||||
serialNumberLabel->setObjectName(QStringLiteral("serialNumberLabel"));
|
||||
|
||||
gridLayout->addWidget(serialNumberLabel, 3, 0, 1, 1);
|
||||
|
||||
locationLabel = new QLabel(selectBox);
|
||||
locationLabel->setObjectName(QStringLiteral("locationLabel"));
|
||||
|
||||
gridLayout->addWidget(locationLabel, 4, 0, 1, 1);
|
||||
|
||||
vidLabel = new QLabel(selectBox);
|
||||
vidLabel->setObjectName(QStringLiteral("vidLabel"));
|
||||
|
||||
gridLayout->addWidget(vidLabel, 5, 0, 1, 1);
|
||||
|
||||
pidLabel = new QLabel(selectBox);
|
||||
pidLabel->setObjectName(QStringLiteral("pidLabel"));
|
||||
|
||||
gridLayout->addWidget(pidLabel, 6, 0, 1, 1);
|
||||
|
||||
|
||||
gridLayout_3->addWidget(selectBox, 0, 0, 1, 1);
|
||||
|
||||
horizontalLayout = new QHBoxLayout();
|
||||
horizontalLayout->setObjectName(QStringLiteral("horizontalLayout"));
|
||||
horizontalSpacer = new QSpacerItem(96, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout->addItem(horizontalSpacer);
|
||||
|
||||
applyButton = new QPushButton(SettingsDialog);
|
||||
applyButton->setObjectName(QStringLiteral("applyButton"));
|
||||
|
||||
horizontalLayout->addWidget(applyButton);
|
||||
|
||||
|
||||
gridLayout_3->addLayout(horizontalLayout, 2, 0, 1, 2);
|
||||
|
||||
additionalOptionsGroupBox = new QGroupBox(SettingsDialog);
|
||||
additionalOptionsGroupBox->setObjectName(QStringLiteral("additionalOptionsGroupBox"));
|
||||
verticalLayout = new QVBoxLayout(additionalOptionsGroupBox);
|
||||
verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
|
||||
localEchoCheckBox = new QCheckBox(additionalOptionsGroupBox);
|
||||
localEchoCheckBox->setObjectName(QStringLiteral("localEchoCheckBox"));
|
||||
localEchoCheckBox->setChecked(true);
|
||||
|
||||
verticalLayout->addWidget(localEchoCheckBox);
|
||||
|
||||
|
||||
gridLayout_3->addWidget(additionalOptionsGroupBox, 1, 0, 1, 2);
|
||||
|
||||
|
||||
retranslateUi(SettingsDialog);
|
||||
|
||||
QMetaObject::connectSlotsByName(SettingsDialog);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QDialog *SettingsDialog)
|
||||
{
|
||||
SettingsDialog->setWindowTitle(QApplication::translate("SettingsDialog", "Settings", 0));
|
||||
parametersBox->setTitle(QApplication::translate("SettingsDialog", "Select Parameters", 0));
|
||||
baudRateLabel->setText(QApplication::translate("SettingsDialog", "BaudRate:", 0));
|
||||
dataBitsLabel->setText(QApplication::translate("SettingsDialog", "Data bits:", 0));
|
||||
parityLabel->setText(QApplication::translate("SettingsDialog", "Parity:", 0));
|
||||
stopBitsLabel->setText(QApplication::translate("SettingsDialog", "Stop bits:", 0));
|
||||
flowControlLabel->setText(QApplication::translate("SettingsDialog", "Flow control:", 0));
|
||||
selectBox->setTitle(QApplication::translate("SettingsDialog", "Select Serial Port", 0));
|
||||
descriptionLabel->setText(QApplication::translate("SettingsDialog", "Description:", 0));
|
||||
manufacturerLabel->setText(QApplication::translate("SettingsDialog", "Manufacturer:", 0));
|
||||
serialNumberLabel->setText(QApplication::translate("SettingsDialog", "Serial number:", 0));
|
||||
locationLabel->setText(QApplication::translate("SettingsDialog", "Location:", 0));
|
||||
vidLabel->setText(QApplication::translate("SettingsDialog", "Vendor ID:", 0));
|
||||
pidLabel->setText(QApplication::translate("SettingsDialog", "Product ID:", 0));
|
||||
applyButton->setText(QApplication::translate("SettingsDialog", "Apply", 0));
|
||||
additionalOptionsGroupBox->setTitle(QApplication::translate("SettingsDialog", "Additional options", 0));
|
||||
localEchoCheckBox->setText(QApplication::translate("SettingsDialog", "Local echo", 0));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class SettingsDialog: public Ui_SettingsDialog {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // UI_SETTINGSDIALOG_H
|
||||
Reference in New Issue
Block a user