Implement Plugin Loading.

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
This commit is contained in:
2025-11-10 21:42:51 +00:00
parent 0c42ac2c72
commit ac85f22bb5
13 changed files with 309 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
#ifndef WEBBROWSERPLUGIN_H
#define WEBBROWSERPLUGIN_H
#include <../../src/interface.h>
#include <QWebEngineView>
#include <QtWidgets>
class WebBrowserPlugin : public QObject, public Interface
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.SOM.Interface" FILE "WebBrowserPlugin.json")
Q_INTERFACES(Interface)
public:
QString pname() override;
QString pdesc() override;
QWidget *pcontent() override;
private:
QGroupBox *horizontalGroupBox;
QPushButton *back;
QPushButton *forward;
QPushButton *refresh;
QLineEdit *smallEditor;
QPushButton *go;
QWebEngineView *view;
private slots:
void gotourl();
void refreshpage();
void backpage();
void forwardpage();
};
#endif