32 TGuiFactory *gGuiFactory = 0;
33 TGuiFactory *gBatchGuiFactory = 0;
35 ClassImp(TGuiFactory);
40 TGuiFactory::TGuiFactory(
const char *name,
const char *title)
48 TApplicationImp *TGuiFactory::CreateApplicationImp(
const char *classname,
int *argc,
char **argv)
50 return new TApplicationImp(classname, argc, argv);
56 TCanvasImp *TGuiFactory::CreateCanvasImp(TCanvas *c,
const char *title, UInt_t width, UInt_t height)
58 return new TCanvasImp(c, title, width, height);
64 TCanvasImp *TGuiFactory::CreateCanvasImp(TCanvas *c,
const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height)
66 return new TCanvasImp(c, title, x, y, width, height);
72 TBrowserImp *TGuiFactory::CreateBrowserImp(TBrowser *b,
const char *title, UInt_t width, UInt_t height, Option_t *)
74 return new TBrowserImp(b, title, width, height);
80 TBrowserImp *TGuiFactory::CreateBrowserImp(TBrowser *b,
const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t *)
82 return new TBrowserImp(b, title, x, y, width, height);
88 TContextMenuImp *TGuiFactory::CreateContextMenuImp(TContextMenu *c,
const char *,
const char *)
90 return new TContextMenuImp(c);
96 TControlBarImp *TGuiFactory::CreateControlBarImp(TControlBar *c,
const char *title)
98 return new TControlBarImp(c, title);
104 TControlBarImp *TGuiFactory::CreateControlBarImp(TControlBar *c,
const char *title, Int_t x, Int_t y)
106 return new TControlBarImp(c, title, x, y);
112 TInspectorImp *TGuiFactory::CreateInspectorImp(
const TObject *obj, UInt_t width, UInt_t height)
114 if (gROOT->IsBatch()) {
115 return new TInspectorImp(obj, width, height);
118 gROOT->ProcessLine(Form(
"TInspectCanvas::Inspector((TObject*)0x%lx);", (ULong_t)obj));