CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
qmlexecutorguiint.h
Go to the documentation of this file.
1#ifndef QMLEXECUTORGUIINT_H
2#define QMLEXECUTORGUIINT_H
3
4#include <Qt>
5#include <QObject>
6#include <QUrl>
7
8class QWidget;
9class CANBusModel;
10
15class QMLExecutorGuiInt : public QObject
16{
17
18 Q_OBJECT
19
20public:
25 QMLExecutorGuiInt(QObject* parent)
26 : QObject(parent){};
27
32 {
33 }
34
35public:
39 virtual QWidget* mainWidget() = 0;
40
41public slots:
47 virtual void loadQML(const QUrl& url) = 0;
48
53 virtual void setModel(CANBusModel* model) = 0;
54
58 virtual void updateUIColor() = 0;
59
60signals:
65 void QMLLoaded(const QUrl& url);
66
67 void dockUndock();
68};
69
70
71#endif // QMLEXECUTORGUIINT_H
The CANBusModel class is used to interface CAN operations with QML stack.
Definition canbusmodel.hpp:11
Interface of gui for QMLExecutor plugin.
Definition qmlexecutorguiint.h:16
virtual void setModel(CANBusModel *model)=0
sets can bus model pointer
virtual void updateUIColor()=0
used to align empty QQuickWidget color with current color scheme
virtual ~QMLExecutorGuiInt()
virtual dtor to get things working
Definition qmlexecutorguiint.h:31
virtual void loadQML(const QUrl &url)=0
void QMLLoaded(const QUrl &url)
this signal is emitted when qml was loaded
QMLExecutorGuiInt(QObject *parent)
constructor
Definition qmlexecutorguiint.h:25
virtual QWidget * mainWidget()=0
not used, return main widget for ui