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
pqLinkedObjectPythonTextArea(const pqLinkedObjectPythonTextArea &other) noexcept
Copy constructor.
pqLinkedObjectPythonTextArea implements the pqLinkedObjectInterface for a QTextEdit using the existin...
#define PQPYTHON_EXPORT
The interface to a linked Qt text widget.
std::unique_ptr< pqLinkedObjectInterface > clone() const override
Constructs a new instance of pqLinkedObjectPythonTextArea using the default copy constructor of this ...
A python text editor widget.
pqLinkedObjectQTextEdit()=delete
Default constructor is deleted.
void link(pqLinkedObjectInterface *other) override
Link this object to the other.
pqLinkedObjectQTextEdit implements the pqLinkedObjectInterface for a QTextEdit