KTextEditor

plugin.h
1 /*
2  SPDX-FileCopyrightText: 2001-2014 Christoph Cullmann <[email protected]>
3  SPDX-FileCopyrightText: 2005-2014 Dominik Haumann <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #ifndef KTEXTEDITOR_PLUGIN_H
9 #define KTEXTEDITOR_PLUGIN_H
10 
11 #include <QObject>
12 
13 #include <ktexteditor_export.h>
14 
15 namespace KTextEditor
16 {
17 class ConfigPage;
18 class MainWindow;
19 
78 class KTEXTEDITOR_EXPORT Plugin : public QObject
79 {
80  Q_OBJECT
81 
82 public:
89  Plugin(QObject *parent);
90 
94  virtual ~Plugin();
95 
112  virtual QObject *createView(KTextEditor::MainWindow *mainWindow) = 0;
113 
120  virtual int configPages() const;
121 
130  virtual ConfigPage *configPage(int number, QWidget *parent);
131 
132 private:
133  class PluginPrivate *const d;
134 };
135 
136 }
137 
138 #endif
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
KTextEditor Plugin interface.
Definition: plugin.h:78
Config page interface for the Editor and Plugins.
Definition: configpage.h:43
This class allows the application that embeds the KTextEditor component to allow it to access parts o...
Definition: mainwindow.h:43
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Sep 20 2020 22:57:20 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.