//*CMZ : 2.00/08 25/05/98 18.44.01 by Fons Rademakers
//*CMZ : 2.00/00 05/03/98 18.09.14 by Fons Rademakers
//*-- Author : Fons Rademakers 15/01/98
//*KEEP,CopyRight,T=C.
/*************************************************************************
* Copyright(c) 1995-1999, The ROOT System, All rights reserved. *
* Authors: Rene Brun and Fons Rademakers. *
* *
* For the licensing terms see $ROOTSYS/AA_LICENSE. *
* For the list of contributors see $ROOTSYS/AA_CREDITS. *
*************************************************************************/
//*KEND.
//////////////////////////////////////////////////////////////////////////
// //
// TRootGuiFactory //
// //
// This class is a factory for ROOT GUI components. It overrides //
// the member functions of the ABS TGuiFactory. //
// //
//////////////////////////////////////////////////////////////////////////
//*KEEP,TRootGuiFactory.
#include "TRootGuiFactory.h"
//*KEEP,TRootApplication,T=C++.
#include "TRootApplication.h"
//*KEEP,TRootCanvas.
#include "TRootCanvas.h"
//*KEEP,TRootBrowser.
#include "TRootBrowser.h"
//*KEEP,TRootContextMenu.
#include "TRootContextMenu.h"
//*KEEP,TRootControlBar.
#include "TRootControlBar.h"
//*KEND.
ClassImp(TRootGuiFactory)
//______________________________________________________________________________
TRootGuiFactory::TRootGuiFactory(const char *name, const char *title)
: TGuiFactory(name, title)
{
// TRootGuiFactory ctor.
}
//______________________________________________________________________________
TApplicationImp *TRootGuiFactory::CreateApplicationImp(const char *classname,
Int_t *argc, char **argv, void *options, Int_t numOptions)
{
// Create a ROOT native GUI version of TApplicationImp
return new TRootApplication(classname, argc, argv, options, numOptions);
}
//______________________________________________________________________________
TCanvasImp *TRootGuiFactory::CreateCanvasImp(TCanvas *c, const char *title,
UInt_t width, UInt_t height)
{
// Create a ROOT native GUI version of TCanvasImp
return new TRootCanvas(c, title, width, height);
}
//______________________________________________________________________________
TCanvasImp *TRootGuiFactory::CreateCanvasImp(TCanvas *c, const char *title,
Int_t x, Int_t y, UInt_t width, UInt_t height)
{
// Create a ROOT native GUI version of TCanvasImp
return new TRootCanvas(c, title, x, y, width, height);
}
//______________________________________________________________________________
TBrowserImp *TRootGuiFactory::CreateBrowserImp(TBrowser *b, const char *title,
UInt_t width, UInt_t height)
{
// Create a ROOT native GUI version of TBrowserImp
return new TRootBrowser(b, title, width, height);
}
//______________________________________________________________________________
TBrowserImp *TRootGuiFactory::CreateBrowserImp(TBrowser *b, const char *title,
Int_t x, Int_t y, UInt_t width, UInt_t height)
{
// Create a ROOT native GUI version of TBrowserImp
return new TRootBrowser(b, title, x, y, width, height);
}
//______________________________________________________________________________
TContextMenuImp *TRootGuiFactory::CreateContextMenuImp(TContextMenu *c,
const char *name, const char *)
{
// Create a ROOT native GUI version of TContextMenuImp
return new TRootContextMenu(c, name);
}
//______________________________________________________________________________
TControlBarImp *TRootGuiFactory::CreateControlBarImp(TControlBar *c, const char *title)
{
// Create a ROOT native GUI version of TControlBarImp
return new TRootControlBar(c, title);
}
//______________________________________________________________________________
TControlBarImp *TRootGuiFactory::CreateControlBarImp(TControlBar *c, const char *title,
Int_t x, Int_t y)
{
// Create a ROOT native GUI version of TControlBarImp
return new TRootControlBar(c, title, x, y);
}
ROOT page - Class index - Top of the page
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.