-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbeanpacketsmonitor.h
More file actions
38 lines (28 loc) · 861 Bytes
/
beanpacketsmonitor.h
File metadata and controls
38 lines (28 loc) · 861 Bytes
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
#ifndef BEANPACKETSMONITOR_H
#define BEANPACKETSMONITOR_H
#include "beanpacket.h"
#include "beanpacketsmonitormodel.h"
#include <QFrame>
namespace Ui {
class BeanPacketsMonitor;
}
class BeanPacketsMonitor : public QFrame
{
Q_OBJECT
public:
explicit BeanPacketsMonitor(QWidget *parent = nullptr);
~BeanPacketsMonitor() override;
void initializeBeanTable();
QSharedPointer<BeanPacket> getSelectedPacket();
void receiveSerialLine(QSharedPointer<BeanPacket> packet);
private:
Ui::BeanPacketsMonitor *ui;
BeanPacketsMonitorModel *monitorModel;
void rowChanged(int row);
private slots:
void onUpdateTimer();
void on_btnClearTable_clicked();
void on_tableMonitor_clicked(const QModelIndex &index);
void rowChanged(const QModelIndex ¤t, const QModelIndex &previous);
};
#endif // BEANPACKETSMONITOR_H