forked from collin80/SavvyCAN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathframeinfowindow.h
50 lines (41 loc) · 1.11 KB
/
frameinfowindow.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
#ifndef FRAMEINFOWINDOW_H
#define FRAMEINFOWINDOW_H
#include <QDialog>
#include <QFile>
#include <QListWidget>
#include <QTreeWidget>
#include "can_structs.h"
#include "bus_protocols/j1939_handler.h"
#include "dbc/dbchandler.h"
namespace Ui {
class FrameInfoWindow;
}
class FrameInfoWindow : public QDialog
{
Q_OBJECT
public:
explicit FrameInfoWindow(const QVector<CANFrame> *frames, QWidget *parent = 0);
~FrameInfoWindow();
void showEvent(QShowEvent*);
private slots:
void updateDetailsWindow(QString);
void updatedFrames(int);
void saveDetails();
private:
Ui::FrameInfoWindow *ui;
QList<int> foundID;
QList<CANFrame> frameCache;
const QVector<CANFrame> *modelFrames;
bool useOpenGL;
bool useHexTicker;
static const QColor byteGraphColors[8];
static QPen bytePens[8];
DBCHandler *dbcHandler;
void refreshIDList();
void closeEvent(QCloseEvent *event);
bool eventFilter(QObject *obj, QEvent *event);
void readSettings();
void writeSettings();
void dumpNode(QTreeWidgetItem* item, QFile *file, int indent);
};
#endif // FRAMEINFOWINDOW_H