Files
giesCANne/signalviewerwindow.h
T
Andy Huska bd8582b8e3 Added combobox for nodes so msg combobox isnt so long
Added disabled filenames in node combobox so you can understand what is what
Added node column to table
Made table columns sortable so you can sort by node name or message name

Want to make table fixed width font capable
Want to make table rearrangable
Want to make table rows shorter to fix more info in a window
Want to make it possible to have multiple signal viewer windows
Want to add ability to click on signals and add them to graphs like the main window
2022-09-28 20:02:27 -05:00

46 lines
988 B
C++

#ifndef SIGNALVIEWERWINDOW_H
#define SIGNALVIEWERWINDOW_H
#include <QDialog>
#include "dbc/dbchandler.h"
namespace Ui {
class SignalViewerWindow;
}
class SignalViewerWindow : public QDialog
{
Q_OBJECT
public:
explicit SignalViewerWindow(const QVector<CANFrame> *frames, QWidget *parent = 0);
~SignalViewerWindow();
private slots:
void loadNodes();
void loadMessages(int idx);
void loadSignals(int idx);
void addSignal();
void addSignal(DBC_SIGNAL *sig);
void removeSelectedSignal();
void updatedFrames(int);
void saveSignalsFile();
void loadSignalsFile();
void appendSignalsFile();
void clearSignalsTable();
void clearSignalsTable(bool);
void saveDefinitions();
void loadDefinitions(bool);
private:
Ui::SignalViewerWindow *ui;
DBCHandler *dbcHandler;
QList<DBC_SIGNAL *> signalList;
const QVector<CANFrame> *modelFrames;
void processFrame(CANFrame &frame);
};
#endif // SIGNALVIEWERWINDOW_H