Added a new window that allows for bisecting a CAN log into pieces along a variety of patterns. Not quite complete but what's there works.

This commit is contained in:
Collin Kidder
2016-12-13 22:38:09 -05:00
parent 8f12802657
commit a5ff16fc20
7 changed files with 456 additions and 3 deletions
+46
View File
@@ -0,0 +1,46 @@
#ifndef BISECTWINDOW_H
#define BISECTWINDOW_H
#include <QDialog>
#include "can_structs.h"
namespace Ui {
class BisectWindow;
}
class BisectWindow : public QDialog
{
Q_OBJECT
public:
explicit BisectWindow(const QVector<CANFrame> *frames, QWidget *parent = 0);
~BisectWindow();
void showEvent(QShowEvent*);
signals:
void sendCANFrame(const CANFrame *, int);
void sendFrameBatch(const QList<CANFrame> *);
private slots:
void updatedFrames(int numFrames);
void handleSaveButton();
void handleReplaceButton();
void handleCalculateButton();
void updateFrameNumSlider();
void updatePercentSlider();
void updateFrameNumText();
void updatePercentText();
private:
Ui::BisectWindow *ui;
const QVector<CANFrame> *modelFrames;
QVector<CANFrame> splitFrames;
QList<int> foundID;
void refreshIDList();
void refreshFrameNumbers();
};
#endif // BISECTWINDOW_H