#include <componentmodel.h>
|
| ComponentModel ()=default |
|
| ComponentModel (const QString &name) |
|
virtual | ~ComponentModel () |
|
virtual void | initModel (QtNodes::Node &node, int nodeCnt, bool darkMode) override |
|
virtual QString | caption () const override |
| Used to get node caption.
|
|
virtual void | setCaption (const QString &caption) override |
| Sets model caption and updates widget title.
|
|
virtual QString | name () const override |
| Used to identify model by data model name.
|
|
virtual std::unique_ptr< QtNodes::NodeDataModel > | clone () const override |
| Creates new node of the same type.
|
|
virtual QJsonObject | save () const override |
| Possibility to save node properties.
|
|
virtual void | restore (QJsonObject const &json) override |
| Used to restore node configurations.
|
|
virtual QWidget * | embeddedWidget () override |
| Used to get widget embedded in Node.
|
|
virtual bool | resizable () const override |
| Used to get information if node is resizable.
|
|
virtual ComponentInterface & | getComponent () override |
| Component getter.
|
|
virtual bool | restored () override |
|
virtual void | setColorMode (bool darkMode) override |
|
virtual bool | hasSeparateThread () const override |
|
void | simBcastRcv (const QJsonObject &msg, const QVariant ¶m) override |
|
void | simBcastSndSlot (const QJsonObject &msg, const QVariant ¶m) override |
|
virtual | ~ComponentModelInterface ()=default |
|
◆ ComponentModel() [1/2]
template<typename
C , typename Derived >
◆ ComponentModel() [2/2]
template<typename
C , typename Derived >
◆ ~ComponentModel()
template<typename
C , typename Derived >
◆ caption()
template<typename
C , typename Derived >
Used to get node caption.
- Returns
- Node caption
◆ clone()
template<typename
C , typename Derived >
virtual std::unique_ptr< QtNodes::NodeDataModel > ComponentModel< C, Derived >::clone |
( |
| ) |
const |
|
inlineoverridevirtual |
Creates new node of the same type.
- Returns
- cloned node
◆ embeddedWidget()
template<typename
C , typename Derived >
Used to get widget embedded in Node.
- Returns
- QLabel
◆ getComponent()
template<typename
C , typename Derived >
◆ hasSeparateThread()
template<typename
C , typename Derived >
◆ initModel()
template<typename
C , typename Derived >
virtual void ComponentModel< C, Derived >::initModel |
( |
QtNodes::Node & |
node, |
|
|
int |
nodeCnt, |
|
|
bool |
darkMode |
|
) |
| |
|
inlineoverridevirtual |
◆ name()
template<typename
C , typename Derived >
Used to identify model by data model name.
- Returns
- Node model name
◆ resizable()
template<typename
C , typename Derived >
Used to get information if node is resizable.
- Returns
- false
◆ restore()
template<typename
C , typename Derived >
virtual void ComponentModel< C, Derived >::restore |
( |
QJsonObject const & |
json | ) |
|
|
inlineoverridevirtual |
Used to restore node configurations.
- Parameters
-
json | Constant reference to json object |
◆ restored()
template<typename
C , typename Derived >
◆ save()
template<typename
C , typename Derived >
Possibility to save node properties.
- Returns
- json object
◆ setCaption()
template<typename
C , typename Derived >
virtual void ComponentModel< C, Derived >::setCaption |
( |
const QString & |
caption | ) |
|
|
inlineoverridevirtual |
◆ setColorMode()
template<typename
C , typename Derived >
◆ simBcastRcv()
template<typename
C , typename Derived >
void ComponentModel< C, Derived >::simBcastRcv |
( |
const QJsonObject & |
msg, |
|
|
const QVariant & |
param |
|
) |
| |
|
inlineoverridevirtual |
◆ simBcastSndSlot()
template<typename
C , typename Derived >
void ComponentModel< C, Derived >::simBcastSndSlot |
( |
const QJsonObject & |
msg, |
|
|
const QVariant & |
param |
|
) |
| |
|
inlineoverridevirtual |
◆ _caption
template<typename
C , typename Derived >
◆ _component
template<typename
C , typename Derived >
◆ _darkMode
template<typename
C , typename Derived >
◆ _id
template<typename
C , typename Derived >
◆ _label
template<typename
C , typename Derived >
◆ _name
template<typename
C , typename Derived >
◆ _nodeStyle
template<typename
C , typename Derived >
◆ _resizable
template<typename
C , typename Derived >
◆ _restored
template<typename
C , typename Derived >
◆ _thread
template<typename
C , typename Derived >
The documentation for this class was generated from the following file: