File indexing completed on 2024-04-28 05:49:28
0001 /* 0002 SPDX-FileCopyrightText: 2001 Christoph Cullmann <cullmann@kde.org> 0003 SPDX-FileCopyrightText: 2002 Joseph Wenninger <jowenn@kde.org> 0004 SPDX-FileCopyrightText: 2007 Mirko Stocker <me@misto.ch> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 0009 #pragma once 0010 0011 #include <QFrame> 0012 #include <QTreeWidget> 0013 0014 class KatePluginListItem; 0015 0016 class KatePluginListView : public QTreeWidget 0017 { 0018 Q_OBJECT 0019 0020 public: 0021 explicit KatePluginListView(QWidget *parent = nullptr); 0022 0023 Q_SIGNALS: 0024 void stateChange(KatePluginListItem *, bool); 0025 0026 private Q_SLOTS: 0027 void stateChanged(QTreeWidgetItem *); 0028 }; 0029 0030 class KateConfigPluginPage : public QFrame 0031 { 0032 Q_OBJECT 0033 0034 public: 0035 KateConfigPluginPage(QWidget *parent, class KateConfigDialog *dialog); 0036 0037 public Q_SLOTS: 0038 void slotApply(); 0039 0040 private: 0041 class KateConfigDialog *myDialog; 0042 0043 Q_SIGNALS: 0044 void changed(); 0045 0046 private Q_SLOTS: 0047 void stateChange(KatePluginListItem *, bool); 0048 0049 void loadPlugin(KatePluginListItem *); 0050 void unloadPlugin(KatePluginListItem *); 0051 0052 private: 0053 std::vector<class KatePluginListItem *> m_pluginItems; 0054 };