File indexing completed on 2025-12-16 10:30:05
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT7_RWebBrowserImp
0013 #define ROOT7_RWebBrowserImp
0014
0015 #include "TBrowserImp.h"
0016
0017 #include "ROOT/RBrowser.hxx"
0018
0019 namespace ROOT {
0020
0021 class RWebBrowserImp : public TBrowserImp {
0022
0023 std::shared_ptr<RBrowser> fWebBrowser;
0024 Int_t fX{-1}, fY{-1}, fWidth{0}, fHeight{0};
0025
0026 void ShowWarning();
0027
0028 public:
0029 RWebBrowserImp(TBrowser *b = nullptr);
0030 RWebBrowserImp(TBrowser *b, const char *title, UInt_t width, UInt_t height, Option_t *opt = "");
0031 RWebBrowserImp(TBrowser *b, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t *opt = "");
0032 virtual ~RWebBrowserImp();
0033
0034 void Iconify() final;
0035 void Refresh(Bool_t = kFALSE) final;
0036 void Show() final;
0037 void BrowseObj(TObject *) final;
0038 Bool_t IsWeb() const final { return kTRUE; }
0039
0040 static TBrowserImp *NewBrowser(TBrowser *b = nullptr, const char *title = "ROOT Browser", UInt_t width = 800, UInt_t height = 500, Option_t *opt = "");
0041 static TBrowserImp *NewBrowser(TBrowser *b, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t *opt = "");
0042
0043 ClassDefOverride(RWebBrowserImp,0)
0044 };
0045
0046 }
0047
0048 #endif