File: htmlwidget.h

package info (click to toggle)
mediainfo 25.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,656 kB
  • sloc: cpp: 18,871; objc: 3,102; xml: 1,426; sh: 1,328; python: 263; makefile: 212
file content (47 lines) | stat: -rw-r--r-- 980 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*  Copyright (c) MediaArea.net SARL. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license that can
 *  be found in the License.html file in the root of the source tree.
 */

#ifndef HTMLWIDGET_H
#define HTMLWIDGET_H

#ifndef MEDIAINFO_HTML_NO

#include "Common/Core.h"
#include <QSettings>
#include <QString>
#include <QTemporaryFile>
#include <QWidget>

#ifdef EDGE_WEBVIEW2_YES
#include "edgewebview2widget.h"
#define WebViewWidget WebView2Widget
#else
#include <QWebEngineView>
#define WebViewWidget QWebEngineView
#endif

class HTMLViewWidget : public QWidget {
    Q_OBJECT
public:
    explicit HTMLViewWidget(Core *C, QSettings *settings, QWidget *parent = nullptr);

private:
    QString generateGraphHTML();
    void refresh();
    Core *C;
    int FilePos;
    WebViewWidget *webView;
    QTemporaryFile tempFile;

signals:

private slots:
    void changeFilePos(int newFilePos);
};

#endif // MEDIAINFO_HTML_NO

#endif // HTMLWIDGET_H