Completed playback system except that sending frames isn't implemented in the project yet so that must be completed.
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
#define FRAMEPLAYBACKWINDOW_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QListWidget>
|
||||
#include <QTimer>
|
||||
#include "can_structs.h"
|
||||
|
||||
namespace Ui {
|
||||
@@ -16,15 +18,35 @@ public:
|
||||
explicit FramePlaybackWindow(QList<CANFrame> *frames, QWidget *parent = 0);
|
||||
~FramePlaybackWindow();
|
||||
|
||||
private slots:
|
||||
void btnBackOneClick();
|
||||
void btnPauseClick();
|
||||
void btnReverseClick();
|
||||
void btnStopClick();
|
||||
void btnPlayClick();
|
||||
void btnFwdOneClick();
|
||||
void changePlaybackSpeed(int newSpeed);
|
||||
void changeLooping(bool check);
|
||||
void changeSendingBus(int newIdx);
|
||||
void changeIDFiltering(QListWidgetItem *item);
|
||||
void btnSelectAllClick();
|
||||
void btnSelectNoneClick();
|
||||
void timerTriggered();
|
||||
|
||||
private:
|
||||
Ui::FramePlaybackWindow *ui;
|
||||
QList<int> foundID;
|
||||
QList<CANFrame> frameCache;
|
||||
QList<CANFrame> *modelFrames;
|
||||
int currentPosition;
|
||||
QTimer *playbackTimer;
|
||||
bool playbackActive;
|
||||
bool playbackForward;
|
||||
int whichBusSend;
|
||||
|
||||
void refreshIDList();
|
||||
void updateFrameLabel();
|
||||
void updatePosition(bool forward);
|
||||
};
|
||||
|
||||
#endif // FRAMEPLAYBACKWINDOW_H
|
||||
|
||||
Reference in New Issue
Block a user