Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:30:05

0001 // Author: Sergey Linev <S.Linev@gsi.de>
0002 // Date: 2021-02-11
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2021, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
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;  ///< actual browser used
0024    Int_t fX{-1}, fY{-1}, fWidth{0}, fHeight{0}; ///< window coordinates
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)  // browser implementation for RBrowser
0044 };
0045 
0046 } // namespace ROOT
0047 
0048 #endif