Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RWebBrowserImp.hxx
Go to the documentation of this file.
1// Author: Sergey Linev <S.Linev@gsi.de>
2// Date: 2021-02-11
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-2021, 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 ROOT7_RWebBrowserImp
14#define ROOT7_RWebBrowserImp
15
16#include "TBrowserImp.h"
17
18#include "ROOT/RBrowser.hxx"
19
20namespace ROOT {
21namespace Experimental {
22
24
25 std::shared_ptr<RBrowser> fWebBrowser; ///< actual browser used
26 Int_t fX{-1}, fY{-1}, fWidth{0}, fHeight{0}; ///< window coordinates
27
28 void ShowWarning();
29
30public:
31 RWebBrowserImp(TBrowser *b = nullptr);
32 RWebBrowserImp(TBrowser *b, const char *title, UInt_t width, UInt_t height, Option_t *opt = "");
33 RWebBrowserImp(TBrowser *b, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t *opt = "");
34 virtual ~RWebBrowserImp();
35
36 void Iconify() final;
37 void Refresh(Bool_t = kFALSE) final;
38 void Show() final;
39 void BrowseObj(TObject *) final;
40
41 static TBrowserImp *NewBrowser(TBrowser *b = nullptr, const char *title = "ROOT Browser", UInt_t width = 800, UInt_t height = 500, Option_t *opt = "");
42 static TBrowserImp *NewBrowser(TBrowser *b, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t *opt = "");
43
44 ClassDefOverride(RWebBrowserImp,0) // browser implementation for RBrowser
45};
46
47} // namespace Experimental
48} // namespace ROOT
49
50#endif
#define b(i)
Definition RSha256.hxx:100
int Int_t
Definition RtypesCore.h:45
unsigned int UInt_t
Definition RtypesCore.h:46
const Bool_t kFALSE
Definition RtypesCore.h:101
bool Bool_t
Definition RtypesCore.h:63
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:329
include TDocParser_001 C image html pict1_TDocParser_001 png width
void ShowWarning()
Show warning that RBrowser will be shown.
std::shared_ptr< RBrowser > fWebBrowser
actual browser used
virtual ~RWebBrowserImp()
Constructor with width and height parameters.
void Iconify() final
Iconify browser.
void Refresh(Bool_t=kFALSE) final
Refresh browser.
static TBrowserImp * NewBrowser(TBrowser *b=nullptr, const char *title="ROOT Browser", UInt_t width=800, UInt_t height=500, Option_t *opt="")
Factory method to create RWebBrowserImp via plugin.
void BrowseObj(TObject *) final
Browse specified object.
RWebBrowserImp(TBrowser *b=nullptr)
Default constructor.
ABC describing GUI independent browser implementation protocol.
Definition TBrowserImp.h:29
TBrowser * Browser() const
Definition TBrowserImp.h:49
Using a TBrowser one can browse all ROOT objects.
Definition TBrowser.h:37
Mother of all ROOT objects.
Definition TObject.h:41
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...