#include "TGuiFactory.h"
#include "TApplicationImp.h"
#include "TCanvasImp.h"
#include "TBrowserImp.h"
#include "TContextMenuImp.h"
#include "TControlBarImp.h"
#include "TInspectorImp.h"
#include "TROOT.h"
TGuiFactory *gGuiFactory = 0;
TGuiFactory *gBatchGuiFactory = 0;
ClassImp(TGuiFactory)
TGuiFactory::TGuiFactory(const char *name, const char *title)
: TNamed(name, title)
{
}
TApplicationImp *TGuiFactory::CreateApplicationImp(const char *classname, int *argc, char **argv)
{
return new TApplicationImp(classname, argc, argv);
}
TCanvasImp *TGuiFactory::CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height)
{
return new TCanvasImp(c, title, width, height);
}
TCanvasImp *TGuiFactory::CreateCanvasImp(TCanvas *c, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height)
{
return new TCanvasImp(c, title, x, y, width, height);
}
TBrowserImp *TGuiFactory::CreateBrowserImp(TBrowser *b, const char *title, UInt_t width, UInt_t height, Option_t *)
{
return new TBrowserImp(b, title, width, height);
}
TBrowserImp *TGuiFactory::CreateBrowserImp(TBrowser *b, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t *)
{
return new TBrowserImp(b, title, x, y, width, height);
}
TContextMenuImp *TGuiFactory::CreateContextMenuImp(TContextMenu *c, const char *, const char *)
{
return new TContextMenuImp(c);
}
TControlBarImp *TGuiFactory::CreateControlBarImp(TControlBar *c, const char *title)
{
return new TControlBarImp(c, title);
}
TControlBarImp *TGuiFactory::CreateControlBarImp(TControlBar *c, const char *title, Int_t x, Int_t y)
{
return new TControlBarImp(c, title, x, y);
}
TInspectorImp *TGuiFactory::CreateInspectorImp(const TObject *obj, UInt_t width, UInt_t height)
{
if (gROOT->IsBatch()) {
return new TInspectorImp(obj, width, height);
}
gROOT->ProcessLine(Form("TInspectCanvas::Inspector((TObject*)0x%lx);",obj));
return 0;
}
Last change: Wed Jun 25 08:46:28 2008
Last generated: 2008-06-25 08:46
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.