File indexing completed on 2024-04-28 05:49:10
0001 /* This file is part of the KDE project 0002 SPDX-FileCopyrightText: 2014 Martin Sandsmark <martin.sandsmark@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 #pragma once 0007 0008 #include "replicodeview.h" 0009 #include <KTextEditor/ConfigPage> 0010 #include <KTextEditor/Plugin> 0011 0012 class ReplicodePlugin : public KTextEditor::Plugin 0013 { 0014 Q_OBJECT 0015 0016 public: 0017 // Constructor 0018 explicit ReplicodePlugin(QObject *parent = nullptr, const QVariantList &args = QVariantList()); 0019 // Destructor 0020 ~ReplicodePlugin() override; 0021 0022 QObject *createView(KTextEditor::MainWindow *mainWindow) override 0023 { 0024 return new ReplicodeView(this, mainWindow); 0025 } 0026 0027 // Config interface 0028 int configPages() const override 0029 { 0030 return 1; 0031 } 0032 KTextEditor::ConfigPage *configPage(int number = 0, QWidget *parent = nullptr) override; 0033 };