2020-10-29 21:28:00 +08:00
|
|
|
#ifndef TOOLS_INDEX3_H
|
2020-06-04 18:20:13 +08:00
|
|
|
#define TOOLS_INDEX3_H
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
#include "QFile"
|
|
|
|
|
#include "QTextStream"
|
|
|
|
|
#include "QDebug"
|
|
|
|
|
|
2020-10-13 18:41:23 +08:00
|
|
|
#include "QAction"
|
|
|
|
|
#include "QContextMenuEvent"
|
|
|
|
|
#include "QMenu"
|
|
|
|
|
#include "QScreen"
|
|
|
|
|
#include <QtGlobal>
|
|
|
|
|
|
2020-12-18 09:35:41 +08:00
|
|
|
#include "QDateTime"
|
|
|
|
|
#include "QTextCursor"
|
2020-10-29 21:28:00 +08:00
|
|
|
|
2020-12-18 09:35:41 +08:00
|
|
|
#include "QWheelEvent"
|
2020-12-18 16:40:49 +08:00
|
|
|
#include "QTimer"
|
2020-12-18 09:35:41 +08:00
|
|
|
#include "QFile"
|
|
|
|
|
#include "QFileDialog"
|
|
|
|
|
#include "QDataStream"
|
2021-04-22 10:24:09 +08:00
|
|
|
#include "QAbstractScrollArea"
|
|
|
|
|
#include "QScrollBar"
|
2020-10-29 21:28:00 +08:00
|
|
|
|
2021-01-07 10:55:02 +08:00
|
|
|
|
|
|
|
|
#include "ToolsUI/ToolsWidget.h"
|
|
|
|
|
|
2020-06-04 18:20:13 +08:00
|
|
|
namespace Ui {
|
|
|
|
|
class Tools_Index3;
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-07 10:55:02 +08:00
|
|
|
class Tools_Index3 : public ToolsWidget
|
2020-06-04 18:20:13 +08:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit Tools_Index3(QWidget *parent = nullptr);
|
|
|
|
|
~Tools_Index3();
|
|
|
|
|
|
|
|
|
|
void resizeEvent(QResizeEvent *event);
|
|
|
|
|
|
2020-10-13 18:41:23 +08:00
|
|
|
public slots:
|
|
|
|
|
|
2020-12-16 16:49:51 +08:00
|
|
|
void Recieve(QString msg);
|
|
|
|
|
void Transmit(QString msg);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
void Terminal_Transmit(QString msg);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
2020-12-18 09:35:41 +08:00
|
|
|
void wheelEvent(QWheelEvent *event);
|
2020-12-16 16:49:51 +08:00
|
|
|
void keyPressEvent(QKeyEvent *event);
|
|
|
|
|
|
|
|
|
|
private slots:
|
2020-12-18 16:40:49 +08:00
|
|
|
|
|
|
|
|
void timerout();
|
|
|
|
|
|
2020-12-16 16:49:51 +08:00
|
|
|
void on_pushButton_clear_clicked();
|
|
|
|
|
|
|
|
|
|
void on_pushButton_send_clicked();
|
|
|
|
|
|
|
|
|
|
void on_comboBox_EndType_currentIndexChanged(int index);
|
|
|
|
|
|
|
|
|
|
|
2020-12-16 18:39:22 +08:00
|
|
|
void on_pushButton_ClearWindow_clicked();
|
|
|
|
|
|
2020-12-18 09:35:41 +08:00
|
|
|
void on_pushButton_Save_clicked();
|
|
|
|
|
|
2020-06-04 18:20:13 +08:00
|
|
|
private:
|
|
|
|
|
Ui::Tools_Index3 *ui;
|
|
|
|
|
|
2020-12-16 16:49:51 +08:00
|
|
|
QString EndChar = "/r/n";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QStringList History;
|
2020-12-16 18:39:22 +08:00
|
|
|
int64_t HistoryCount = 0;
|
2020-12-18 09:35:41 +08:00
|
|
|
qint64 last;
|
|
|
|
|
|
2020-12-16 16:49:51 +08:00
|
|
|
|
2020-12-18 16:40:49 +08:00
|
|
|
QByteArray msgdata;
|
|
|
|
|
|
|
|
|
|
QTimer *timer = nullptr;
|
2020-12-16 16:49:51 +08:00
|
|
|
|
2020-06-04 18:20:13 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // INDEX1_H
|