TRootGuiFactory.h

Go to the documentation of this file.
00001 // @(#)root/gui:$Id: TRootGuiFactory.h 23115 2008-04-10 13:35:37Z rdm $
00002 // Author: Fons Rademakers   15/01/98
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 
00013 #ifndef ROOT_TRootGuiFactory
00014 #define ROOT_TRootGuiFactory
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // TRootGuiFactory                                                      //
00019 //                                                                      //
00020 // This class is a factory for ROOT GUI components. It overrides        //
00021 // the member functions of the ABS TGuiFactory.                         //
00022 //                                                                      //
00023 //////////////////////////////////////////////////////////////////////////
00024 
00025 #ifndef ROOT_TGuiFactory
00026 #include "TGuiFactory.h"
00027 #endif
00028 
00029 class TApplicationImp;
00030 class TCanvasImp;
00031 class TBrowserImp;
00032 class TContextMenuImp;
00033 class TContextMenu;
00034 class TControlBarImp;
00035 class TControlBar;
00036 
00037 
00038 class TRootGuiFactory : public TGuiFactory {
00039 
00040 public:
00041    TRootGuiFactory(const char *name = "Root", const char *title = "ROOT GUI Factory");
00042    virtual ~TRootGuiFactory() { }
00043 
00044    virtual TApplicationImp *CreateApplicationImp(const char *classname, int *argc, char **argv);
00045 
00046    virtual TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height);
00047    virtual TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height);
00048 
00049    virtual TBrowserImp *CreateBrowserImp(TBrowser *b, const char *title, UInt_t width, UInt_t height, Option_t *opt="");
00050    virtual TBrowserImp *CreateBrowserImp(TBrowser *b, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t *opt="");
00051 
00052    virtual TContextMenuImp *CreateContextMenuImp(TContextMenu *c, const char *name, const char *title);
00053 
00054    virtual TControlBarImp *CreateControlBarImp(TControlBar *c, const char *title);
00055    virtual TControlBarImp *CreateControlBarImp(TControlBar *c, const char *title, Int_t x, Int_t y);
00056 
00057    ClassDef(TRootGuiFactory,0)  //Factory for ROOT GUI components
00058 };
00059 
00060 #endif

Generated on Tue Jul 5 14:20:12 2011 for ROOT_528-00b_version by  doxygen 1.5.1