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

QMLExecutor plugin gui implementation. More...

#include <qmlexecutorguiimpl.h>

Inheritance diagram for QMLExecutorGuiImpl:
Collaboration diagram for QMLExecutorGuiImpl:

Public Slots

void browseAndOpenQML ()
 Slot to do browsing for QML file, calls qml load.
 
virtual void loadQML (const QUrl &url) override
 loads qml into a quick widget
 
virtual void setModel (CANBusModel *model) override
 remembers can bus model for qml
 
void startQMLFileModificationChecks ()
 starts checking for qml file modification
 
void stopFileModificationChecks ()
 stops checking for qml file modification
 
void checkQMLModification ()
 checks if qml file was modified, ask the user and reloads it if needed
 
bool askForQMLReload ()
 ask if qml reload should be done
 
void log (const QString &text)
 log message to log area
 
void editQML ()
 tries to launch system editor for .qml file
 
void handleStatusChange (QQuickWidget::Status status)
 handle status change of qml, just log it
 
- Public Slots inherited from QMLExecutorGuiInt
virtual void loadQML (const QUrl &url)=0
 
virtual void setModel (CANBusModel *model)=0
 sets can bus model pointer
 

Public Member Functions

 QMLExecutorGuiImpl (QObject *parent)
 explicit constructor
 
virtual QWidget * mainWidget () override
 not used, return main widget for ui
 
void updateUIColor () override
 used to align empty QQuickWidget color with current color scheme
 
- Public Member Functions inherited from QMLExecutorGuiInt
 QMLExecutorGuiInt (QObject *parent)
 constructor
 
virtual ~QMLExecutorGuiInt ()
 virtual dtor to get things working
 

Additional Inherited Members

- Signals inherited from QMLExecutorGuiInt
void QMLLoaded (const QUrl &url)
 this signal is emitted when qml was loaded
 
void dockUndock ()
 

Detailed Description

QMLExecutor plugin gui implementation.

Constructor & Destructor Documentation

◆ QMLExecutorGuiImpl()

QMLExecutorGuiImpl::QMLExecutorGuiImpl ( QObject *  parent)
inlineexplicit

explicit constructor

Parameters
parentqt QObject requirement, possibly to remove

Member Function Documentation

◆ askForQMLReload

bool QMLExecutorGuiImpl::askForQMLReload ( )
inlineslot

ask if qml reload should be done

Returns
true if yes, false if no

◆ browseAndOpenQML

void QMLExecutorGuiImpl::browseAndOpenQML ( )
inlineslot

Slot to do browsing for QML file, calls qml load.

◆ checkQMLModification

void QMLExecutorGuiImpl::checkQMLModification ( )
inlineslot

checks if qml file was modified, ask the user and reloads it if needed

◆ editQML

void QMLExecutorGuiImpl::editQML ( )
inlineslot

tries to launch system editor for .qml file

◆ handleStatusChange

void QMLExecutorGuiImpl::handleStatusChange ( QQuickWidget::Status  status)
inlineslot

handle status change of qml, just log it

Parameters
statusqml status loading

◆ loadQML

virtual void QMLExecutorGuiImpl::loadQML ( const QUrl &  url)
inlineoverridevirtualslot

loads qml into a quick widget

Parameters
urlurl of a local file to load

◆ log

void QMLExecutorGuiImpl::log ( const QString &  text)
inlineslot

log message to log area

Parameters
texttext to log

◆ mainWidget()

virtual QWidget * QMLExecutorGuiImpl::mainWidget ( )
inlineoverridevirtual

not used, return main widget for ui

Implements QMLExecutorGuiInt.

◆ setModel

virtual void QMLExecutorGuiImpl::setModel ( CANBusModel model)
inlineoverridevirtualslot

remembers can bus model for qml

Parameters
modelcan bus model

◆ startQMLFileModificationChecks

void QMLExecutorGuiImpl::startQMLFileModificationChecks ( )
inlineslot

starts checking for qml file modification

◆ stopFileModificationChecks

void QMLExecutorGuiImpl::stopFileModificationChecks ( )
inlineslot

stops checking for qml file modification

◆ updateUIColor()

void QMLExecutorGuiImpl::updateUIColor ( )
inlineoverridevirtual

used to align empty QQuickWidget color with current color scheme

Implements QMLExecutorGuiInt.


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