File indexing completed on 2024-04-28 04:39:03

0001 /*
0002     SPDX-FileCopyrightText: 2010 Friedrich W. H. Kossebau <kossebau@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #ifndef OKTETAWIDGET_H
0008 #define OKTETAWIDGET_H
0009 
0010 // KF
0011 #include <KXMLGUIClient>
0012 // Qt
0013 #include <QWidget>
0014 
0015 namespace Kasten {
0016 class ByteArrayView;
0017 class AbstractXmlGuiController;
0018 }
0019 
0020 
0021 namespace KDevelop
0022 {
0023 class OktetaPlugin;
0024 
0025 class OktetaWidget : public QWidget, public KXMLGUIClient
0026 {
0027   Q_OBJECT
0028 
0029   public:
0030     OktetaWidget( QWidget* parent, Kasten::ByteArrayView* byteArrayView, OktetaPlugin* plugin );
0031     ~OktetaWidget() override;
0032 
0033   private:
0034     void setupActions(OktetaPlugin* plugin);
0035 
0036   private:
0037     Kasten::ByteArrayView* mByteArrayView;
0038     // TODO: move this to the plugin, per mainwindow
0039     QList<Kasten::AbstractXmlGuiController*> mControllers;
0040 };
0041 
0042 }
0043 
0044 #endif