Vast reworking of DBC editing system.
Currently not functional but the overall graphical layout is more or less complete.
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
#ifndef DBCMESSAGEEDITOR_H
|
||||
#define DBCMESSAGEEDITOR_H
|
||||
|
||||
#include <QDialog>
|
||||
#include "dbc_classes.h"
|
||||
#include "dbchandler.h"
|
||||
|
||||
namespace Ui {
|
||||
class DBCMessageEditor;
|
||||
}
|
||||
|
||||
class DBCMessageEditor : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit DBCMessageEditor(QWidget *parent = nullptr);
|
||||
~DBCMessageEditor();
|
||||
void showEvent(QShowEvent*);
|
||||
void setMessageRef(DBC_MESSAGE *msg);
|
||||
void setFileIdx(int idx);
|
||||
|
||||
private:
|
||||
Ui::DBCMessageEditor *ui;
|
||||
|
||||
DBCHandler *dbcHandler;
|
||||
DBC_MESSAGE *dbcMessage;
|
||||
DBCFile *dbcFile;
|
||||
|
||||
void closeEvent(QCloseEvent *event);
|
||||
bool eventFilter(QObject *obj, QEvent *event);
|
||||
void readSettings();
|
||||
void writeSettings();
|
||||
void refreshView();
|
||||
void generateSampleText();
|
||||
};
|
||||
|
||||
#endif // DBCMESSAGEEDITOR_H
|
||||
Reference in New Issue
Block a user