Files
giesCANne/re/newgraphdialog.h
T
Collin Kidder 74f234a9f7 Tweaks to the associated signal tracking. Now there is a label that
tells you whether the parameters match the currently selected signal
or not.
2019-04-14 18:28:12 -04:00

45 lines
943 B
C++

#ifndef NEWGRAPHDIALOG_H
#define NEWGRAPHDIALOG_H
#include <QDialog>
#include "graphingwindow.h"
#include "dbc/dbchandler.h"
namespace Ui {
class NewGraphDialog;
}
class NewGraphDialog : public QDialog
{
Q_OBJECT
public:
explicit NewGraphDialog(DBCHandler *handler, QWidget *parent = 0);
~NewGraphDialog();
void showEvent(QShowEvent*);
void getParams(GraphParams &);
void setParams(GraphParams &);
void clearParams();
private slots:
void addButtonClicked();
void colorSwatchClick();
void loadMessages();
void loadSignals(int idx);
void bitfieldClicked(int,int);
void handleDataLenUpdate();
void drawBitfield();
void copySignalToParamsUI();
private:
bool eventFilter(QObject *obj, QEvent *event);
void checkSignalAgreement();
Ui::NewGraphDialog *ui;
DBCHandler *dbcHandler;
DBC_SIGNAL *assocSignal;
int startBit, dataLen;
};
#endif // NEWGRAPHDIALOG_H