KTextEditor

katescripteditor.h
1 /*
2  SPDX-FileCopyrightText: 2017 Dominik Haumann <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef KATE_SCRIPT_EDITOR_H
8 #define KATE_SCRIPT_EDITOR_H
9 
10 #include <QJSValue>
11 #include <QObject>
12 
13 #include <ktexteditor_export.h>
14 
15 namespace KTextEditor
16 {
17 class ViewPrivate;
18 }
19 class QJSEngine;
20 
25 class KTEXTEDITOR_EXPORT KateScriptEditor : public QObject
26 {
27  Q_OBJECT
28 
29 public:
30  explicit KateScriptEditor(QJSEngine *engine, QObject *parent = nullptr);
31 
32  Q_INVOKABLE QString clipboardText() const;
33  Q_INVOKABLE QStringList clipboardHistory() const;
34  Q_INVOKABLE void setClipboardText(const QString &text);
35 
36 private:
37  QJSEngine *m_engine = nullptr;
38 };
39 
40 #endif
This class wraps the global editor instance KateGlobal, exposing some helper methods such as the clip...
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Oct 24 2020 23:02:55 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.