Public Member Functions | Public Attributes | List of all members
pqLinkedObjectQTextEdit Struct Reference

pqLinkedObjectQTextEdit implements the pqLinkedObjectInterface for a QTextEdit More...

#include <pqLinkedObjectQTextEdit.h>

Inheritance diagram for pqLinkedObjectQTextEdit:
Inheritance graph
[legend]
Collaboration diagram for pqLinkedObjectQTextEdit:
Collaboration graph
[legend]

Public Member Functions

 pqLinkedObjectQTextEdit ()=delete
 Default constructor is deleted. More...
 
 pqLinkedObjectQTextEdit (QTextEdit &textEdit) noexcept
 Constructor that takes the QTextEdit as parameter. More...
 
 pqLinkedObjectQTextEdit (const pqLinkedObjectQTextEdit &other) noexcept
 Copy constructor. More...
 
 ~pqLinkedObjectQTextEdit () noexcept override
 Destructor that unlink this object on deletion. More...
 
std::unique_ptr< pqLinkedObjectInterfaceclone () const override
 Constructs a new instance of pqLinkedObjectQTextEdit using the default copy constructor of this class. More...
 
void link (pqLinkedObjectInterface *other) override
 Link this object to the other. More...
 
void unlink () override
 Unlink this object with the other. More...
 
void setText (const QString &txt) override
 See pqLinkedObjectInterface::setText. More...
 
QString getText () const override
 See pqLinkedObjectInterface::getText. More...
 
QObject * getLinked () const noexcept override
 See pqLinkedObjectInterface::getLinked. More...
 
QString getName () const override
 See pqLinkedObjectInterface::getName. More...
 
- Public Member Functions inherited from pqLinkedObjectInterface
 pqLinkedObjectInterface ()=default
 Default constructor. More...
 
 pqLinkedObjectInterface (const pqLinkedObjectInterface &)=default
 Copy constructor needed for the clone method. More...
 
virtual ~pqLinkedObjectInterface () noexcept=default
 Default virtual destructor. More...
 
bool isLinked () const noexcept
 Returns true if this object is connected to another one. More...
 

Public Attributes

QTextEdit & TextEdit
 

Additional Inherited Members

- Public Types inherited from pqLinkedObjectInterface
enum  QtSignalState : bool { QtSignalState::On = true, QtSignalState::Off = false }
 Used to trigger on and off an object signal. More...
 
- Protected Attributes inherited from pqLinkedObjectInterface
pqLinkedObjectInterfaceConnectedTo = nullptr
 
QMetaObject::Connection Connection
 
bool SettingText = false
 

Detailed Description

pqLinkedObjectQTextEdit implements the pqLinkedObjectInterface for a QTextEdit

Definition at line 16 of file pqLinkedObjectQTextEdit.h.

Constructor & Destructor Documentation

◆ pqLinkedObjectQTextEdit() [1/3]

pqLinkedObjectQTextEdit::pqLinkedObjectQTextEdit ( )
delete

Default constructor is deleted.

◆ pqLinkedObjectQTextEdit() [2/3]

pqLinkedObjectQTextEdit::pqLinkedObjectQTextEdit ( QTextEdit &  textEdit)
inlineexplicitnoexcept

Constructor that takes the QTextEdit as parameter.

Definition at line 26 of file pqLinkedObjectQTextEdit.h.

◆ pqLinkedObjectQTextEdit() [3/3]

pqLinkedObjectQTextEdit::pqLinkedObjectQTextEdit ( const pqLinkedObjectQTextEdit other)
inlineexplicitnoexcept

Copy constructor.

Do link the other object to this one if it exists

Definition at line 34 of file pqLinkedObjectQTextEdit.h.

◆ ~pqLinkedObjectQTextEdit()

pqLinkedObjectQTextEdit::~pqLinkedObjectQTextEdit ( )
inlineoverridenoexcept

Destructor that unlink this object on deletion.

Definition at line 47 of file pqLinkedObjectQTextEdit.h.

Member Function Documentation

◆ clone()

std::unique_ptr<pqLinkedObjectInterface> pqLinkedObjectQTextEdit::clone ( ) const
inlineoverridevirtual

Constructs a new instance of pqLinkedObjectQTextEdit using the default copy constructor of this class.

Implements pqLinkedObjectInterface.

Reimplemented in pqLinkedObjectPythonTextArea.

Definition at line 53 of file pqLinkedObjectQTextEdit.h.

◆ link()

void pqLinkedObjectQTextEdit::link ( pqLinkedObjectInterface other)
overridevirtual

Link this object to the other.

Note that the link is established if and only if the given pqLinkedObjectInterface is not nullptr.

Implements pqLinkedObjectInterface.

Reimplemented in pqLinkedObjectPythonTextArea.

◆ unlink()

void pqLinkedObjectQTextEdit::unlink ( )
overridevirtual

Unlink this object with the other.

Implements pqLinkedObjectInterface.

◆ setText()

void pqLinkedObjectQTextEdit::setText ( const QString &  txt)
overridevirtual

◆ getText()

QString pqLinkedObjectQTextEdit::getText ( ) const
overridevirtual

◆ getLinked()

QObject* pqLinkedObjectQTextEdit::getLinked ( ) const
overridevirtualnoexcept

◆ getName()

QString pqLinkedObjectQTextEdit::getName ( ) const
overridevirtual

Member Data Documentation

◆ TextEdit

QTextEdit& pqLinkedObjectQTextEdit::TextEdit

Definition at line 89 of file pqLinkedObjectQTextEdit.h.


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