Logo ROOT  
Reference Guide
rootwebview.h
Go to the documentation of this file.
1// Author: Sergey Linev <S.Linev@gsi.de>
2// Date: 2017-06-29
3// Warning: This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
4
5/*************************************************************************
6 * Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. *
7 * All rights reserved. *
8 * *
9 * For the licensing terms see $ROOTSYS/LICENSE. *
10 * For the list of contributors see $ROOTSYS/README/CREDITS. *
11 *************************************************************************/
12
13#ifndef ROOT_RootWebView
14#define ROOT_RootWebView
15
16#include <QWebEngineView>
17
19 Q_OBJECT
20protected:
21 unsigned fWidth, fHeight;
22 int fX, fY;
23
24 virtual void closeEvent(QCloseEvent *);
25
26 virtual void dropEvent(QDropEvent* event);
27 virtual void dragEnterEvent( QDragEnterEvent *e );
28
29public slots:
30 void onLoadStarted();
31
33
34signals:
35
36 void drop(QDropEvent* event);
37
38public:
39 RootWebView(QWidget *parent = nullptr, unsigned width = 0, unsigned height = 0, int x = -1, int y = -1);
40 virtual ~RootWebView() = default;
41
42 virtual QSize sizeHint() const;
43};
44
45#endif
#define e(i)
Definition: RSha256.hxx:103
Option_t Option_t width
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
virtual QSize sizeHint() const
Definition: rootwebview.cpp:47
virtual void dropEvent(QDropEvent *event)
Definition: rootwebview.cpp:61
unsigned fWidth
Definition: rootwebview.h:21
void onLoadStarted()
Definition: rootwebview.cpp:71
void onWindowCloseRequested()
Definition: rootwebview.cpp:78
virtual ~RootWebView()=default
void drop(QDropEvent *event)
virtual void dragEnterEvent(QDragEnterEvent *e)
Definition: rootwebview.cpp:54
unsigned fHeight
Definition: rootwebview.h:21
virtual void closeEvent(QCloseEvent *)
Definition: rootwebview.cpp:66
RootWebView(QWidget *parent=nullptr, unsigned width=0, unsigned height=0, int x=-1, int y=-1)
Definition: rootwebview.cpp:24
Double_t y[n]
Definition: legend1.C:17
Double_t x[n]
Definition: legend1.C:17