-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
logviewer.h
61 lines (48 loc) · 1.06 KB
/
logviewer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef LOGVIEWER_H
#define LOGVIEWER_H
#include <QDialog>
#include <QString>
#include <QStringList>
#include <QtWidgets>
#include <vector>
using namespace std;
struct rectangle
{
int x;
int y=0;
int w;
int h;
};
struct logHTTP
{
int tid;
QStringList log;
};
namespace Ui {
class logViewer;
}
class logViewer : public QDialog
{
Q_OBJECT
public:
explicit logViewer(QWidget *parent = nullptr);
~logViewer();
//vector<QTextEdit*> logTextEdit;
vector<QPlainTextEdit*> logTextEdit;
vector<QJsonArray*> logJson;
vector<logHTTP*> stlogHTTP;
public slots:
void moveLogViewer(QPoint e,QPoint mainPoint);
void log(int module,QString str,int mod);
private slots:
void resizeEvent(QResizeEvent *event);
bool eventFilter(QObject *obj, QEvent *event);
void showEvent(QShowEvent *event);
private:
Ui::logViewer *ui;
void logUpdate(int c);
/*显示控制*/
int editNowChoose=1;
void chooseEdit(int num);
};
#endif // LOGVIEWER_H