Files
giesCANne/graphingwindow.h
T

54 lines
1.1 KiB
C++

#ifndef GRAPHINGWINDOW_H
#define GRAPHINGWINDOW_H
#include "qcustomplot.h"
#include "can_structs.h"
#include <QDialog>
namespace Ui {
class GraphingWindow;
}
class GraphingWindow : public QDialog
{
Q_OBJECT
public:
explicit GraphingWindow(QList<CANFrame> *, QWidget *parent = 0);
~GraphingWindow();
private slots:
void titleDoubleClick(QMouseEvent *event, QCPPlotTitle *title);
void axisLabelDoubleClick(QCPAxis* axis, QCPAxis::SelectablePart part);
void legendDoubleClick(QCPLegend* legend, QCPAbstractLegendItem* item);
void selectionChanged();
void mousePress();
void mouseWheel();
void removeSelectedGraph();
void removeAllGraphs();
void contextMenuRequest(QPoint pos);
void moveLegend();
void addNewGraph();
private:
Ui::GraphingWindow *ui;
QList<CANFrame> frameCache;
QList<CANFrame> *modelFrames;
};
class GraphParams
{
public:
int32_t ID;
int startByte, endByte;
bool isSigned;
int32_t mask;
float bias;
float scale;
int stride;
QColor color;
};
#endif // GRAPHINGWINDOW_H