-
Notifications
You must be signed in to change notification settings - Fork 288
/
signalviewerwindow.h
47 lines (37 loc) · 1 KB
/
signalviewerwindow.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
#ifndef SIGNALVIEWERWINDOW_H
#define SIGNALVIEWERWINDOW_H
#include <QDialog>
#include "dbc/dbchandler.h"
namespace Ui {
class SignalViewerWindow;
}
class SignalViewerWindow : public QDialog
{
Q_OBJECT
public:
explicit SignalViewerWindow(const QVector<CANFrame> *frames, QWidget *parent = 0);
~SignalViewerWindow();
private slots:
void loadNodes();
void loadMessages(int idx);
void loadSignals(int idx);
void addSignal();
void addSignal(DBC_SIGNAL *sig);
void removeSelectedSignal();
void updatedFrames(int);
void saveSignalsFile();
void loadSignalsFile();
void appendSignalsFile();
void clearSignalsTable();
void clearSignalsTable(bool);
void saveDefinitions();
void loadDefinitions(bool);
private:
Ui::SignalViewerWindow *ui;
DBCHandler *dbcHandler;
DBC_MESSAGE *currentlySelectedMsg;
QList<DBC_SIGNAL *> signalList;
const QVector<CANFrame> *modelFrames;
void processFrame(CANFrame &frame);
};
#endif // SIGNALVIEWERWINDOW_H