Files
SOM/plugins/WebBrowserPlugin/WebBrowserPlugin.h
Triplehx3 ac85f22bb5 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
2025-11-10 21:42:51 +00:00

36 lines
730 B
C++

#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