60 if (
gROOT->IsWebDisplay()) {
61 auto ph =
gROOT->GetPluginManager()->FindHandler(
"TCanvasImp",
"TWebCanvas");
63 if (ph && ph->LoadPlugin() != -1) {
77 if (
gROOT->IsWebDisplay()) {
78 auto ph =
gROOT->GetPluginManager()->FindHandler(
"TCanvasImp",
"TWebCanvas");
80 if (ph && ph->LoadPlugin() != -1) {
94 const char *browserName =
nullptr;
96 if (
gROOT->IsWebDisplay() && !
gROOT->IsWebDisplayBatch())
97 browserName =
"ROOT::RWebBrowserImp";
98 else if (!
gROOT->IsBatch()) {
100 if (strcmp(browserName,
"ROOT::RWebBrowserImp") == 0) {
101 printf(
"\nWARNING!\n");
102 printf(
"rootrc parameter \"Browser.Name\" with web browser disabled for security reasons.\n");
103 printf(
"See https://root.cern/about/security/#2023-11-26-open-port-for-control-of-web-gui-allows-read-and-write-access-to-file-system for more information.\n");
104 printf(
"For environments controlling the security issues you can enable web display by calling\n");
105 printf(
"gROOT->SetWebDisplay(); in ROOT prompt or in startup scripts\n\n");
107 browserName =
"TRootBrowser";
111 if (browserName && *browserName) {
112 auto ph =
gROOT->GetPluginManager()->FindHandler(
"TBrowserImp", browserName);
114 if (ph && ph->LoadPlugin() != -1) {
128 const char *browserName =
nullptr;
130 if (
gROOT->IsWebDisplay() && !
gROOT->IsWebDisplayBatch())
131 browserName =
"ROOT::RWebBrowserImp";
132 else if (!
gROOT->IsBatch()) {
134 if (strcmp(browserName,
"ROOT::RWebBrowserImp") == 0) {
135 printf(
"\nWARNING!\n");
136 printf(
"rootrc parameter \"Browser.Name\" with web browser disabled for security reason.\n");
137 printf(
"See https://root.cern/about/security/#2023-11-26-open-port-for-control-of-web-gui-allows-read-and-write-access-to-file-system for more information.\n");
138 printf(
"For environments controlling the security issues you can enable web display by calling\n");
139 printf(
"gROOT->SetWebDisplay(); in ROOT prompt or in startup scripts\n\n");
141 browserName =
"TRootBrowser";
145 if (browserName && *browserName) {
146 auto ph =
gROOT->GetPluginManager()->FindHandler(
"TBrowserImp", browserName);
148 if (ph && ph->LoadPlugin() != -1) {
170 if (
gROOT->IsWebDisplay()) {
171 auto ph =
gROOT->GetPluginManager()->FindHandler(
"TControlBarImp",
"TWebControlBar");
173 if (ph && ph->LoadPlugin() != -1) {
187 if (
gROOT->IsWebDisplay()) {
188 auto ph =
gROOT->GetPluginManager()->FindHandler(
"TControlBarImp",
"TWebControlBar");
190 if (ph && ph->LoadPlugin() != -1) {
204 if (
gROOT->IsBatch())
207 gROOT->ProcessLine(
TString::Format(
"TInspectCanvas::Inspector((TObject*)0x%zx);", (
size_t)obj).Data());
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
TGuiFactory * gGuiFactory
TGuiFactory * gBatchGuiFactory
ABC describing GUI independent application implementation protocol.
ABC describing GUI independent browser implementation protocol.
virtual Longptr_t ExecPlugin(const char *, const char *, const char *, Int_t, Int_t)
Using a TBrowser one can browse all ROOT objects.
ABC describing GUI independent main window (with menubar, scrollbars and a drawing area).
ABC describing GUI independent control bar.
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
This ABC is a factory for GUI components.
virtual TApplicationImp * CreateApplicationImp(const char *classname, int *argc, char **argv)
Create a batch version of TApplicationImp.
TGuiFactory(const char *name="Batch", const char *title="Batch GUI Factory")
TGuiFactory ctor only called by derived classes.
virtual TContextMenuImp * CreateContextMenuImp(TContextMenu *c, const char *name, const char *title)
Create a batch version of TContextMenuImp.
virtual TInspectorImp * CreateInspectorImp(const TObject *obj, UInt_t width, UInt_t height)
Create a batch version of TInspectorImp.
virtual TBrowserImp * CreateBrowserImp(TBrowser *b, const char *title, UInt_t width, UInt_t height, Option_t *opt="")
Create a batch version of TBrowserImp.
virtual TCanvasImp * CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height)
Create a batch version of TCanvasImp.
virtual TControlBarImp * CreateControlBarImp(TControlBar *c, const char *title)
Create a batch version of TControlBarImp.
ABC describing GUI independent object inspector (abstraction mainly needed for Win32.
The TNamed class is the base class for all named ROOT classes.
Mother of all ROOT objects.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.