mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-14 15:46:57 +02:00
32 lines
No EOL
836 B
C++
32 lines
No EOL
836 B
C++
//
|
|
// DataWebDialog.h
|
|
// interface/src/ui
|
|
//
|
|
// Created by Stephen Birarda on 2014-09-17.
|
|
// Copyright 2014 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_DataWebDialog_h
|
|
#define hifi_DataWebDialog_h
|
|
|
|
#include <qobject.h>
|
|
#include <qwebview.h>
|
|
|
|
typedef QMap<QString, QObject*> JavascriptObjectMap;
|
|
|
|
class DataWebDialog : public QWebView {
|
|
Q_OBJECT
|
|
public:
|
|
DataWebDialog();
|
|
static DataWebDialog* dialogForPath(const QString& path,
|
|
const JavascriptObjectMap& javascriptObjects = JavascriptObjectMap());
|
|
private slots:
|
|
void addJavascriptObjectsToWindow();
|
|
private:
|
|
JavascriptObjectMap _javascriptObjects;
|
|
};
|
|
|
|
#endif // hifi_WebkitDialog_h
|