90 lines
1.4 KiB
C++
90 lines
1.4 KiB
C++
#ifndef TOOLS_INDEX3_H
|
|
#define TOOLS_INDEX3_H
|
|
|
|
#include <QWidget>
|
|
#include "QFile"
|
|
#include "QTextStream"
|
|
#include "QDebug"
|
|
|
|
#include "QAction"
|
|
#include "QContextMenuEvent"
|
|
#include "QMenu"
|
|
#include "QScreen"
|
|
#include <QtGlobal>
|
|
|
|
#include "QDateTime"
|
|
#include "QTextCursor"
|
|
|
|
#include "QWheelEvent"
|
|
#include "QTimer"
|
|
#include "QFile"
|
|
#include "QFileDialog"
|
|
#include "QDataStream"
|
|
#include "QAbstractScrollArea"
|
|
#include "QScrollBar"
|
|
|
|
|
|
#include "ToolsUI/ToolsWidget.h"
|
|
|
|
namespace Ui {
|
|
class Tools_Index3;
|
|
}
|
|
|
|
class Tools_Index3 : public ToolsWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Tools_Index3(QWidget *parent = nullptr);
|
|
~Tools_Index3();
|
|
|
|
void resizeEvent(QResizeEvent *event);
|
|
|
|
public slots:
|
|
|
|
void Recieve(QString msg);
|
|
void Transmit(QString msg);
|
|
|
|
|
|
signals:
|
|
void Terminal_Transmit(QString msg);
|
|
|
|
|
|
protected:
|
|
void wheelEvent(QWheelEvent *event);
|
|
void keyPressEvent(QKeyEvent *event);
|
|
|
|
private slots:
|
|
|
|
void timerout();
|
|
|
|
void on_pushButton_clear_clicked();
|
|
|
|
void on_pushButton_send_clicked();
|
|
|
|
void on_comboBox_EndType_currentIndexChanged(int index);
|
|
|
|
|
|
void on_pushButton_ClearWindow_clicked();
|
|
|
|
void on_pushButton_Save_clicked();
|
|
|
|
private:
|
|
Ui::Tools_Index3 *ui;
|
|
|
|
QString EndChar = "/r/n";
|
|
|
|
|
|
QStringList History;
|
|
int64_t HistoryCount = 0;
|
|
qint64 last;
|
|
|
|
|
|
QByteArray msgdata;
|
|
|
|
QTimer *timer = nullptr;
|
|
|
|
};
|
|
|
|
#endif // INDEX1_H
|