ROOT
v6-24
Reference Guide
Loading...
Searching...
No Matches
TCanvasWidget.h
Go to the documentation of this file.
1
// Author: Sergey Linev, GSI 13/01/2021
2
3
/*************************************************************************
4
* Copyright (C) 1995-2021, Rene Brun and Fons Rademakers. *
5
* All rights reserved. *
6
* *
7
* For the licensing terms see $ROOTSYS/LICENSE. *
8
* For the list of contributors see $ROOTSYS/README/CREDITS. *
9
*************************************************************************/
10
11
#ifndef TCanvasWidget_H
12
#define TCanvasWidget_H
13
14
#include <QWidget>
15
#include <QWebEngineView>
16
17
class
TCanvas
;
18
class
TPad
;
19
class
TObject
;
20
21
class
TCanvasWidget
:
public
QWidget
{
22
23
Q_OBJECT
24
25
public
:
26
TCanvasWidget
(
QWidget
*parent =
nullptr
);
27
virtual
~TCanvasWidget
();
28
29
/// returns canvas shown in the widget
30
TCanvas
*
getCanvas
() {
return
fCanvas
; }
31
32
signals:
33
34
void
CanvasUpdated
();
35
36
void
SelectedPadChanged
(
TPad
*);
37
38
void
PadClicked
(
TPad
*,
int
,
int
);
39
40
void
PadDblClicked
(
TPad
*,
int
,
int
);
41
42
public
slots:
43
44
void
activateEditor
(
TPad
*pad =
nullptr
,
TObject
*obj =
nullptr
);
45
46
void
activateStatusLine
();
47
48
void
setEditorVisible
(
bool
flag =
true
);
49
50
protected
:
51
52
void
resizeEvent
(QResizeEvent *event)
override
;
53
54
void
SetPrivateCanvasFields
(
bool
on_init);
55
56
QWebEngineView *
fView
{
nullptr
};
///< qt webwidget to show
57
58
TCanvas
*
fCanvas
{
nullptr
};
59
};
60
61
#endif
QWidget
TCanvasWidget
Definition
TCanvasWidget.h:21
TCanvasWidget::fCanvas
TCanvas * fCanvas
Definition
TCanvasWidget.h:58
TCanvasWidget::SelectedPadChanged
void SelectedPadChanged(TPad *)
TCanvasWidget::PadDblClicked
void PadDblClicked(TPad *, int, int)
TCanvasWidget::SetPrivateCanvasFields
void SetPrivateCanvasFields(bool on_init)
Definition
TCanvasWidget.cpp:90
TCanvasWidget::resizeEvent
void resizeEvent(QResizeEvent *event) override
Definition
TCanvasWidget.cpp:109
TCanvasWidget::~TCanvasWidget
virtual ~TCanvasWidget()
Definition
TCanvasWidget.cpp:77
TCanvasWidget::fView
QWebEngineView * fView
qt webwidget to show
Definition
TCanvasWidget.h:56
TCanvasWidget::getCanvas
TCanvas * getCanvas()
returns canvas shown in the widget
Definition
TCanvasWidget.h:30
TCanvasWidget::activateEditor
void activateEditor(TPad *pad=nullptr, TObject *obj=nullptr)
Definition
TCanvasWidget.cpp:115
TCanvasWidget::PadClicked
void PadClicked(TPad *, int, int)
TCanvasWidget::setEditorVisible
void setEditorVisible(bool flag=true)
Definition
TCanvasWidget.cpp:124
TCanvasWidget::activateStatusLine
void activateStatusLine()
Definition
TCanvasWidget.cpp:130
TCanvasWidget::CanvasUpdated
void CanvasUpdated()
TCanvas
The Canvas class.
Definition
TCanvas.h:23
TObject
Mother of all ROOT objects.
Definition
TObject.h:37
TPad
The most important graphics class in the ROOT system.
Definition
TPad.h:26
tutorials
webgui
qt5web
TCanvasWidget.h
ROOT v6-24 - Reference Guide Generated on Tue Aug 22 2023 03:07:00 (GVA Time) using Doxygen 1.9.8