KTextEditor

katescripteditor.h
1/*
2 SPDX-FileCopyrightText: 2017 Dominik Haumann <dhaumann@kde.org>
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
15namespace KTextEditor
16{
17class ViewPrivate;
18}
19class QJSEngine;
20
21/**
22 * This class wraps the global editor instance KateGlobal, exposing some
23 * helper methods such as the clipboard history etc.
24 */
25class KTEXTEDITOR_EXPORT KateScriptEditor : public QObject
26{
27 Q_OBJECT
28
29public:
30 using QObject::QObject;
31
32 Q_INVOKABLE QString clipboardText() const;
33 Q_INVOKABLE QStringList clipboardHistory() const;
34 Q_INVOKABLE void setClipboardText(const QString &text);
35};
36
37#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...
QObject(QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:56:21 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.