CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
CanRawView Class Reference

#include <canrawview.h>

Inheritance diagram for CanRawView:
Collaboration diagram for CanRawView:

Public Slots

void frameReceived (const QCanBusFrame &frame)
 
void frameSent (bool status, const QCanBusFrame &frame)
 
void stopSimulation () override
 
void startSimulation () override
 
void simBcastRcv (const QJsonObject &msg, const QVariant &param) override
 

Signals

void mainWidgetDockToggled (QWidget *widget) override
 
void simBcastSnd (const QJsonObject &msg, const QVariant &param=QVariant()) override
 

Public Member Functions

 CanRawView ()
 
 CanRawView (CanRawViewCtx &&ctx)
 
 ~CanRawView ()
 
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
 
virtual void configChanged () override
 
bool mainWidgetDocked () const override
 
ComponentInterface::ComponentProperties getSupportedProperties () const override
 
- 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 &param=QVariant())=0
 
virtual void simBcastRcv (const QJsonObject &msg, const QVariant &param)=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 PropertyEditablepropertyEditability (const ComponentProperty &p)
 
static constexpr const CustomEditFieldCbkpropertyField (const ComponentProperty &p)
 

Constructor & Destructor Documentation

◆ CanRawView() [1/2]

CanRawView::CanRawView ( )

◆ CanRawView() [2/2]

CanRawView::CanRawView ( CanRawViewCtx &&  ctx)
explicit

◆ ~CanRawView()

CanRawView::~CanRawView ( )

Member Function Documentation

◆ configChanged()

void CanRawView::configChanged ( )
overridevirtual

◆ frameReceived

void CanRawView::frameReceived ( const QCanBusFrame &  frame)
slot

◆ frameSent

void CanRawView::frameSent ( bool  status,
const QCanBusFrame &  frame 
)
slot

◆ getConfig()

QJsonObject CanRawView::getConfig ( ) const
overridevirtual

◆ getQConfig()

std::shared_ptr< QWidget > CanRawView::getQConfig ( ) const
overridevirtual

◆ getSupportedProperties()

ComponentInterface::ComponentProperties CanRawView::getSupportedProperties ( ) const
overridevirtual

◆ mainWidget()

QWidget * CanRawView::mainWidget ( )
overridevirtual

◆ mainWidgetDocked()

bool CanRawView::mainWidgetDocked ( ) const
overridevirtual

◆ mainWidgetDockToggled

void CanRawView::mainWidgetDockToggled ( QWidget *  widget)
overridesignal

◆ setConfig() [1/2]

void CanRawView::setConfig ( const QJsonObject &  json)
overridevirtual

◆ setConfig() [2/2]

void CanRawView::setConfig ( const QWidget &  qobject)
overridevirtual

◆ simBcastRcv

void CanRawView::simBcastRcv ( const QJsonObject &  msg,
const QVariant &  param 
)
overrideslot

◆ simBcastSnd

void CanRawView::simBcastSnd ( const QJsonObject &  msg,
const QVariant &  param = QVariant() 
)
overridesignal

◆ startSimulation

void CanRawView::startSimulation ( )
overrideslot

◆ stopSimulation

void CanRawView::stopSimulation ( )
overrideslot

The documentation for this class was generated from the following files: