39 lines
757 B
C++
39 lines
757 B
C++
#ifndef CANBRIDGEWINDOW_H
|
|
#define CANBRIDGEWINDOW_H
|
|
|
|
#include <QDialog>
|
|
#include "connections/canconmanager.h"
|
|
|
|
namespace Ui {
|
|
class CANBridgeWindow;
|
|
}
|
|
|
|
class CANBridgeWindow : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit CANBridgeWindow(const QVector<CANFrame> *frames, QWidget *parent = nullptr);
|
|
~CANBridgeWindow();
|
|
void showEvent(QShowEvent*);
|
|
|
|
|
|
private slots:
|
|
void updatedFrames(int);
|
|
void recalcSides();
|
|
|
|
private:
|
|
Ui::CANBridgeWindow *ui;
|
|
const QVector<CANFrame> *modelFrames;
|
|
QMap<int, bool> foundIDSide1;
|
|
QMap<int, bool> foundIDSide2;
|
|
int side1BusNum;
|
|
int side2BusNum;
|
|
|
|
void processIncomingFrame(CANFrame *frame);
|
|
bool eventFilter(QObject *obj, QEvent *event);
|
|
|
|
};
|
|
|
|
#endif // CANBRIDGEWINDOW_H
|