Fixed up ability to send frames while not connected and to show frames
that were sent within the same window as received frames. Added a new scripting window that can be used to create scripts that send and receive messages at runtime - not done but sort of working.
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
#ifndef SCRIPTINGWINDOW_H
|
||||
#define SCRIPTINGWINDOW_H
|
||||
|
||||
#include "can_structs.h"
|
||||
#include "scriptcontainer.h"
|
||||
|
||||
#include <QDialog>
|
||||
#include <QJSEngine>
|
||||
|
||||
namespace Ui {
|
||||
class ScriptingWindow;
|
||||
}
|
||||
|
||||
class ScriptingWindow : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ScriptingWindow(const QVector<CANFrame> *frames, QWidget *parent = 0);
|
||||
~ScriptingWindow();
|
||||
|
||||
private slots:
|
||||
void loadNewScript();
|
||||
void createNewScript();
|
||||
void deleteCurrentScript();
|
||||
void refreshSourceWindow();
|
||||
void saveScript();
|
||||
void revertScript();
|
||||
void recompileScript();
|
||||
|
||||
public slots:
|
||||
|
||||
|
||||
private:
|
||||
Ui::ScriptingWindow *ui;
|
||||
|
||||
QList<ScriptContainer *> scripts;
|
||||
ScriptContainer *currentScript;
|
||||
const QVector<CANFrame> *modelFrames;
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif // SCRIPTINGWINDOW_H
|
||||
Reference in New Issue
Block a user