This commit compiles but the results are all funky. Just committing to give a good reference point during debugging. Don't use compiles from this revision. Wait young Jedi...
41 lines
825 B
C++
41 lines
825 B
C++
#ifndef NEWGRAPHDIALOG_H
|
|
#define NEWGRAPHDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include "graphingwindow.h"
|
|
#include "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:
|
|
Ui::NewGraphDialog *ui;
|
|
DBCHandler *dbcHandler;
|
|
int startBit, dataLen;
|
|
};
|
|
|
|
#endif // NEWGRAPHDIALOG_H
|