qquicktextdocument.sip 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. // qquicktextdocument.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtQuick Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  8. //
  9. // This file may be used under the terms of the GNU General Public License
  10. // version 3.0 as published by the Free Software Foundation and appearing in
  11. // the file LICENSE included in the packaging of this file. Please review the
  12. // following information to ensure the GNU General Public License version 3.0
  13. // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. //
  15. // If you do not wish to use this file under the terms of the GPL version 3.0
  16. // then you may purchase a commercial license. For more information contact
  17. // info@riverbankcomputing.com.
  18. //
  19. // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. class QQuickTextDocument : public QObject
  22. {
  23. %TypeHeaderCode
  24. #include <qquicktextdocument.h>
  25. %End
  26. public:
  27. %If (Qt_6_7_0 -)
  28. enum class Status : quint8
  29. {
  30. Null,
  31. Loading,
  32. Loaded,
  33. Saving,
  34. Saved,
  35. ReadError,
  36. WriteError,
  37. NonLocalFileError,
  38. };
  39. %End
  40. QQuickTextDocument(QQuickItem *parent /TransferThis/);
  41. QTextDocument *textDocument() const;
  42. %If (Qt_6_7_0 -)
  43. QUrl source() const;
  44. %End
  45. %If (Qt_6_7_0 -)
  46. void setSource(const QUrl &url);
  47. %End
  48. %If (Qt_6_7_0 -)
  49. bool isModified() const;
  50. %End
  51. %If (Qt_6_7_0 -)
  52. void setModified(bool modified);
  53. %End
  54. %If (Qt_6_7_0 -)
  55. void setTextDocument(QTextDocument *document);
  56. %End
  57. %If (Qt_6_7_0 -)
  58. void save() /ReleaseGIL/;
  59. %End
  60. %If (Qt_6_7_0 -)
  61. void saveAs(const QUrl &url) /ReleaseGIL/;
  62. %End
  63. %If (Qt_6_7_0 -)
  64. QQuickTextDocument::Status status() const;
  65. %End
  66. %If (Qt_6_7_0 -)
  67. QString errorString() const;
  68. %End
  69. signals:
  70. %If (Qt_6_7_0 -)
  71. void textDocumentChanged();
  72. %End
  73. %If (Qt_6_7_0 -)
  74. void sourceChanged();
  75. %End
  76. %If (Qt_6_7_0 -)
  77. void modifiedChanged();
  78. %End
  79. %If (Qt_6_7_0 -)
  80. void statusChanged();
  81. %End
  82. %If (Qt_6_7_0 -)
  83. void errorStringChanged();
  84. %End
  85. };