pqLinkedObjectPythonTextArea.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 
5 #ifndef pqLinkedObjectPythonTextArea_h
6 #define pqLinkedObjectPythonTextArea_h
7 
8 #include "pqPythonModule.h"
9 
11 
12 class pqPythonTextArea;
13 
19 {
21 
26  explicit pqLinkedObjectPythonTextArea(pqPythonTextArea& textArea) noexcept;
27 
33  , TextArea(other.TextArea)
34  {
35  if (other.isLinked())
36  {
37  this->link(this->ConnectedTo);
38  }
39  }
40 
44  ~pqLinkedObjectPythonTextArea() noexcept override = default;
45 
50  std::unique_ptr<pqLinkedObjectInterface> clone() const override
51  {
52  return std::unique_ptr<pqLinkedObjectPythonTextArea>(new pqLinkedObjectPythonTextArea(*this));
53  }
54 
59  void link(pqLinkedObjectInterface* other) override;
60 
62 };
63 
64 #endif // pqLinkedObjectPythonTextArea_h
pqLinkedObjectQTextEdit::link
void link(pqLinkedObjectInterface *other) override
Link this object to the other.
pqLinkedObjectPythonTextArea::pqLinkedObjectPythonTextArea
pqLinkedObjectPythonTextArea(const pqLinkedObjectPythonTextArea &other) noexcept
Copy constructor.
Definition: pqLinkedObjectPythonTextArea.h:31
pqLinkedObjectPythonTextArea
pqLinkedObjectPythonTextArea implements the pqLinkedObjectInterface for a QTextEdit using the existin...
Definition: pqLinkedObjectPythonTextArea.h:18
pqPythonTextArea
A python text editor widget.
Definition: pqPythonTextArea.h:32
pqLinkedObjectQTextEdit
pqLinkedObjectQTextEdit implements the pqLinkedObjectInterface for a QTextEdit
Definition: pqLinkedObjectQTextEdit.h:16
pqLinkedObjectPythonTextArea::TextArea
pqPythonTextArea & TextArea
Definition: pqLinkedObjectPythonTextArea.h:61
pqLinkedObjectInterface
The interface to a linked Qt text widget.
Definition: pqLinkedObjectInterface.h:21
pqLinkedObjectQTextEdit.h
pqLinkedObjectQTextEdit::pqLinkedObjectQTextEdit
pqLinkedObjectQTextEdit()=delete
Default constructor is deleted.