|
CANdevStudio
Development tool for CAN bus simulation
|
#include <qmlexecutor.h>


Public Slots | |
| void | stopSimulation () override |
| void | startSimulation () override |
| void | simBcastRcv (const QJsonObject &msg, const QVariant ¶m) override |
Signals | |
| void | mainWidgetDockToggled (QWidget *widget) override |
| void | simBcastSnd (const QJsonObject &msg, const QVariant ¶m=QVariant()) override |
Public Member Functions | |
| QMLExecutor () | |
| constructor | |
| QMLExecutor (QMLExecutorCtx &&ctx) | |
| explicit constructor with context | |
| virtual | ~QMLExecutor () |
| virtual dtor | |
| QWidget * | mainWidget () override |
| void | setConfig (const QJsonObject &json) override |
| void | setConfig (const QWidget &qobject) override |
| QJsonObject | getConfig () const override |
| std::shared_ptr< QWidget > | getQConfig () const override |
| void | configChanged () override |
| bool | mainWidgetDocked () const override |
| ComponentInterface::ComponentProperties | getSupportedProperties () const override |
| void | setCANBusModel (CANBusModel *model) |
| sets can bus model used from QML | |
Public Member Functions inherited from ComponentInterface | |
| virtual | ~ComponentInterface () |
| virtual void | mainWidgetDockToggled (QWidget *widget)=0 |
| Signal to be implemented by Component. Indicates when dock/undock action was invoked. | |
| virtual void | stopSimulation ()=0 |
| Slot to be implemented by Component to execute simulation stop action. | |
| virtual void | startSimulation ()=0 |
| Slot to be implemented by Component to execute simulation start action. | |
| virtual void | simBcastSnd (const QJsonObject &msg, const QVariant ¶m=QVariant())=0 |
| virtual void | simBcastRcv (const QJsonObject &msg, const QVariant ¶m)=0 |
Additional Inherited Members | |
Public Types inherited from ComponentInterface | |
| using | PropertyEditable = bool |
| using | CustomEditFieldCbk = std::function< QWidget *(void)> |
| using | ComponentProperty = std::tuple< QString, QVariant::Type, PropertyEditable, CustomEditFieldCbk > |
| using | ComponentProperties = std::vector< ComponentProperty > |
| using | PropertyContainer = std::map< QString, QVariant > |
Static Public Member Functions inherited from ComponentInterface | |
| static constexpr const QString & | propertyName (const ComponentProperty &p) |
| static constexpr const QVariant::Type & | propertyType (const ComponentProperty &p) |
| static constexpr const PropertyEditable & | propertyEditability (const ComponentProperty &p) |
| static constexpr const CustomEditFieldCbk & | propertyField (const ComponentProperty &p) |
| QMLExecutor::QMLExecutor | ( | ) |
constructor
|
explicit |
explicit constructor with context
| ctx | a context with something inside, most likely an ui |
|
virtual |
virtual dtor
|
overridevirtual |
Implements ComponentInterface.
|
overridevirtual |
Implements ComponentInterface.
|
overridevirtual |
Implements ComponentInterface.
|
overridevirtual |
Implements ComponentInterface.
|
overridevirtual |
Implements ComponentInterface.
|
overridevirtual |
Implements ComponentInterface.
|
overridesignal |
| void QMLExecutor::setCANBusModel | ( | CANBusModel * | model | ) |
sets can bus model used from QML
| model | can bus model used from qml |
|
overridevirtual |
Implements ComponentInterface.
|
overridevirtual |
Implements ComponentInterface.
|
overrideslot |
|
overridesignal |
|
overrideslot |
|
overrideslot |