Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TWebControlBar.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Author: Sergey Linev, GSI   15/12/2022
0002 
0003 /*************************************************************************
0004  * Copyright (C) 1995-2022, Rene Brun and Fons Rademakers.               *
0005  * All rights reserved.                                                  *
0006  *                                                                       *
0007  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0008  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0009  *************************************************************************/
0010 
0011 #ifndef ROOT_TWebControlBar
0012 #define ROOT_TWebControlBar
0013 
0014 #include "TControlBarImp.h"
0015 
0016 #include <ROOT/RWebWindow.hxx>
0017 
0018 class TWebControlBar : public TControlBarImp {
0019 
0020 protected:
0021 
0022    std::shared_ptr<ROOT::RWebWindow> fWindow; ///!< configured display
0023 
0024    void SendInitMsg(unsigned connid);
0025    Bool_t ProcessData(unsigned connid, const std::string &arg);
0026 
0027 public:
0028    TWebControlBar(TControlBar *bar, const char *title, Int_t x, Int_t y);
0029    ~TWebControlBar() override = default;
0030 
0031    void Create() override { }
0032    void Hide() override;
0033    void Show() override;
0034    void SetFont(const char * /*fontName*/) override { }
0035    void SetTextColor(const char * /*colorName*/) override { }
0036    void SetButtonState(const char * /*label*/, Int_t /*state*/) override { }
0037    void SetButtonWidth(UInt_t /*width*/) override { }
0038 
0039    static TControlBarImp *NewControlBar(TControlBar *bar, const char *title, Int_t x, Int_t y);
0040 
0041    ClassDefOverride(TWebControlBar, 0) // Web-based implementation for TControlBarImp
0042 };
0043 
0044 #endif