Files
giesCANne/re/newgraphdialog.h
T
Andy Huska ab476c746e Added fully qualified dbc, node, and msg searching
...to graphing window and signal viewer so complex systems with message
name duplication (eg "Status") works well.  DBCHandler class has a new
function to find a msg by fully qualified node name...Utility class defines
the qualified name seperator, right now it is :: and is used thusly
filenameNoExtension::nodeName for display in the node dropdown (because
nodes can be common between dbc files).  To get the message from the
system you use the findMessage function in dbchandler and pass the
msgName and the fully qualified node name.  This is about as unique as we
can get, second only to message ID.

Added node comboBox to graph signal editor for easier data filtering
(took the same implementation that was in signal viewer, and tuned up
both of them)
2023-05-17 17:23:27 -05:00

48 lines
1.0 KiB
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 fillSwatchClick();
void loadNodes();
void loadMessages(int idx);
void loadSignals(int idx);
void bitfieldClicked(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;
bool shownFromPlotEdit;
};
#endif // NEWGRAPHDIALOG_H