You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
618 B
32 lines
618 B
#ifndef UBLIBWEBVIEW_H
|
|
#define UBLIBWEBVIEW_H
|
|
|
|
#include <QWidget>
|
|
#include <QWebView>
|
|
#include <QWebSettings>
|
|
#include <QVBoxLayout>
|
|
|
|
#include "board/UBLibraryController.h"
|
|
#include "api/UBWidgetUniboardAPI.h"
|
|
|
|
class UBLibWebView : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
UBLibWebView(QWidget* parent = 0, const char* name = "UBLibWebView");
|
|
~UBLibWebView();
|
|
|
|
void setElement(UBLibElement* elem);
|
|
|
|
private slots:
|
|
void onLoadFinished(bool ok);
|
|
|
|
private:
|
|
QWebView* mpView;
|
|
QWebSettings* mpWebSettings;
|
|
QVBoxLayout* mpLayout;
|
|
UBWidgetUniboardAPI* mpSankoreAPI;
|
|
};
|
|
|
|
#endif // UBLIBWEBVIEW_H
|
|
|