Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:10:49

0001 // Author: Sergey Linev <S.Linev@gsi.de>
0002 // Date: 2021-02-11
0003 // Warning: This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
0004 
0005 /*************************************************************************
0006  * Copyright (C) 1995-2021, Rene Brun and Fons Rademakers.               *
0007  * All rights reserved.                                                  *
0008  *                                                                       *
0009  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0010  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0011  *************************************************************************/
0012 
0013 #ifndef ROOT7_RWebBrowserImp
0014 #define ROOT7_RWebBrowserImp
0015 
0016 #include "TBrowserImp.h"
0017 
0018 #include "ROOT/RBrowser.hxx"
0019 
0020 namespace ROOT {
0021 
0022 class RWebBrowserImp : public TBrowserImp {
0023 
0024    std::shared_ptr<RBrowser> fWebBrowser;  ///< actual browser used
0025    Int_t fX{-1}, fY{-1}, fWidth{0}, fHeight{0}; ///< window coordinates
0026 
0027    void ShowWarning();
0028 
0029 public:
0030    RWebBrowserImp(TBrowser *b = nullptr);
0031    RWebBrowserImp(TBrowser *b, const char *title, UInt_t width, UInt_t height, Option_t *opt = "");
0032    RWebBrowserImp(TBrowser *b, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t *opt = "");
0033    virtual ~RWebBrowserImp();
0034 
0035    void      Iconify() final;
0036    void      Refresh(Bool_t = kFALSE) final;
0037    void      Show() final;
0038    void      BrowseObj(TObject *) final;
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