File: dbcnodeeditor.h

package info (click to toggle)
savvycan 220-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 12,456 kB
  • sloc: cpp: 61,803; sh: 293; javascript: 91; python: 44; makefile: 8
file content (41 lines) | stat: -rw-r--r-- 787 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef DBCNODEEDITOR_H
#define DBCNODEEDITOR_H

#include <QDialog>
#include "dbc_classes.h"
#include "dbchandler.h"

namespace Ui {
class DBCNodeEditor;
}

class DBCNodeEditor : public QDialog
{
    Q_OBJECT

public:
    explicit DBCNodeEditor(QWidget *parent = nullptr);
    ~DBCNodeEditor();
    void showEvent(QShowEvent*);
    void setNodeRef(DBC_NODE *node);
    void setFileIdx(int idx);
    void refreshView();

signals:
    void updatedTreeInfo(DBC_NODE *node);

private:
    Ui::DBCNodeEditor *ui;

    DBCHandler *dbcHandler;
    DBC_NODE *dbcNode;
    DBCFile *dbcFile;

    void closeEvent(QCloseEvent *event);
    bool eventFilter(QObject *obj, QEvent *event);
    void readSettings();
    void writeSettings();
    void generateSampleText();
};

#endif // DBCNODEEDITOR_H