59 if (
gROOT->IsWebDisplay()) {
60 auto ph =
gROOT->GetPluginManager()->FindHandler(
"TCanvasImp",
"TWebCanvas");
62 if (ph && ph->LoadPlugin() != -1) {
63 auto imp = (
TCanvasImp *)ph->ExecPlugin(6,
c, title, 0, 0, width, height);
68 Error(
"CreateCanvasImp",
"Fail to create TWebCanvas, please provide missing libWebGui6 or run 'root --web=off'");
79 if (
gROOT->IsWebDisplay()) {
80 auto ph =
gROOT->GetPluginManager()->FindHandler(
"TCanvasImp",
"TWebCanvas");
82 if (ph && ph->LoadPlugin() != -1) {
83 auto imp = (
TCanvasImp *)ph->ExecPlugin(6,
c, title,
x,
y, width, height);
88 Error(
"CreateCanvasImp",
"Fail to create TWebCanvas, please provide missing libWebGui6 or run 'root --web=off'");
99 const char *browserName =
nullptr;
101 if (
gROOT->IsWebDisplay() && !
gROOT->IsWebDisplayBatch())
102 browserName =
"ROOT::RWebBrowserImp";
103 else if (!
gROOT->IsBatch())
104 browserName =
gEnv->GetValue(
"Browser.Name",
"");
106 if (browserName && *browserName) {
107 auto ph =
gROOT->GetPluginManager()->FindHandler(
"TBrowserImp", browserName);
109 if (ph && ph->LoadPlugin() != -1) {
110 auto imp = (
TBrowserImp *)ph->ExecPlugin(5,
b, title, width, height, opt);
115 Error(
"CreateBrowserImp",
"Fail to create %s, please provide missing libraries or run 'root --web=off'",
127 const char *browserName =
nullptr;
129 if (
gROOT->IsWebDisplay() && !
gROOT->IsWebDisplayBatch())
130 browserName =
"ROOT::RWebBrowserImp";
131 else if (!
gROOT->IsBatch())
132 browserName =
gEnv->GetValue(
"Browser.Name",
"");
134 if (browserName && *browserName) {
135 auto ph =
gROOT->GetPluginManager()->FindHandler(
"TBrowserImp", browserName);
137 if (ph && ph->LoadPlugin() != -1) {
138 auto imp = (
TBrowserImp *)ph->ExecPlugin(7,
b, title,
x,
y, width, height, opt);
143 Error(
"CreateBrowserImp",
"Fail to create %s, please provide missing libraries or run 'root --web=off'",
163 if (
gROOT->IsWebDisplay()) {
164 auto ph =
gROOT->GetPluginManager()->FindHandler(
"TControlBarImp",
"TWebControlBar");
166 if (ph && ph->LoadPlugin() != -1) {
172 Error(
"CreateControlBarImp",
173 "Fail to create TWebControlBar, please provide missing libWebGui6 or run 'root --web=off'");
184 if (
gROOT->IsWebDisplay()) {
185 auto ph =
gROOT->GetPluginManager()->FindHandler(
"TControlBarImp",
"TWebControlBar");
187 if (ph && ph->LoadPlugin() != -1) {
193 Error(
"CreateControlBarImp",
194 "Fail to create TWebControlBar, please provide missing libWebGui6 or run 'root --web=off'");
205 if (
gROOT->IsBatch())
208 gROOT->ProcessLine(
TString::Format(
"TInspectCanvas::Inspector((TObject*)0x%zx);", (
size_t)obj).Data());
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
const char Option_t
Option string (const char).
externTGuiFactory * gGuiFactory
externTGuiFactory * gBatchGuiFactory
ABC describing GUI independent application implementation protocol.
ABC describing GUI independent browser implementation protocol.
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...
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.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
TObject()
TObject constructor.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.