This commit adds plugin laoding which are then added as sub winows onto the main window. This commit also adds 2 plugins however more will follow
30 lines
538 B
C++
30 lines
538 B
C++
#ifndef TESTPLUGIN_H
|
|
#define TESTPLUGIN_H
|
|
|
|
|
|
#include <../../src/interface.h>
|
|
#include <qtermwidget6/qtermwidget.h>
|
|
|
|
#include <QObject>
|
|
#include <QtPlugin>
|
|
#include <QString>
|
|
#include <QWidget>
|
|
#include <QImage>
|
|
|
|
class TerminalPlugin : public QObject, public Interface
|
|
{
|
|
Q_OBJECT
|
|
Q_PLUGIN_METADATA(IID "org.SOM.Interface" FILE "TerminalPlugin.json")
|
|
Q_INTERFACES(Interface)
|
|
|
|
public:
|
|
QString pname() override;
|
|
QString pdesc() override;
|
|
QWidget *pcontent() override;
|
|
|
|
private:
|
|
QTermWidget *console;
|
|
|
|
};
|
|
#endif
|