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:
35
plugins/WebBrowserPlugin/WebBrowserPlugin.h
Normal file
35
plugins/WebBrowserPlugin/WebBrowserPlugin.h
Normal 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
|
||||
Reference in New Issue
Block a user