Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TWebControlBar.h
Go to the documentation of this file.
1// Author: Sergey Linev, GSI 15/12/2022
2
3/*************************************************************************
4 * Copyright (C) 1995-2022, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#ifndef ROOT_TWebControlBar
12#define ROOT_TWebControlBar
13
14#include "TControlBarImp.h"
15
16#include <ROOT/RWebWindow.hxx>
17
19
20protected:
21
22 std::shared_ptr<ROOT::RWebWindow> fWindow; ///!< configured display
23
24 void SendInitMsg(unsigned connid);
25 Bool_t ProcessData(unsigned connid, const std::string &arg);
26
27public:
28 TWebControlBar(TControlBar *bar, const char *title, Int_t x, Int_t y);
29 ~TWebControlBar() override = default;
30
31 void Create() override { }
32 void Hide() override;
33 void Show() override;
34 void SetFont(const char * /*fontName*/) override { }
35 void SetTextColor(const char * /*colorName*/) override { }
36 void SetButtonState(const char * /*label*/, Int_t /*state*/) override { }
37 void SetButtonWidth(UInt_t /*width*/) override { }
38
39 static TControlBarImp *NewControlBar(TControlBar *bar, const char *title, Int_t x, Int_t y);
40
41 ClassDefOverride(TWebControlBar, 0) // Web-based implementation for TControlBarImp
42};
43
44#endif
int Int_t
Definition RtypesCore.h:45
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
ABC describing GUI independent control bar.
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
Definition TControlBar.h:26
Web-based implementation for TControlBar class.
void Create() override
std::shared_ptr< ROOT::RWebWindow > fWindow
void SetFont(const char *) override
void Hide() override
Hide control bar.
Bool_t ProcessData(unsigned connid, const std::string &arg)
Handle data from web browser Returns kFALSE if message was not processed.
void Show() override
Show canvas in browser window.
void SendInitMsg(unsigned connid)
!< configured display
static TControlBarImp * NewControlBar(TControlBar *bar, const char *title, Int_t x, Int_t y)
Static method to create TWebControlBar instance Used by plugin manager.
void SetTextColor(const char *) override
void SetButtonWidth(UInt_t) override
~TWebControlBar() override=default
void SetButtonState(const char *, Int_t) override
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17