Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TRootGuiFactory.h
Go to the documentation of this file.
1 // @(#)root/gui:$Id$
2 // Author: Fons Rademakers 15/01/98
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 
13 #ifndef ROOT_TRootGuiFactory
14 #define ROOT_TRootGuiFactory
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TRootGuiFactory //
19 // //
20 // This class is a factory for ROOT GUI components. It overrides //
21 // the member functions of the ABS TGuiFactory. //
22 // //
23 //////////////////////////////////////////////////////////////////////////
24 
25 #include "TGuiFactory.h"
26 
27 class TApplicationImp;
28 class TCanvasImp;
29 class TBrowserImp;
30 class TContextMenuImp;
31 class TContextMenu;
32 class TControlBarImp;
33 class TControlBar;
34 
35 
36 class TRootGuiFactory : public TGuiFactory {
37 
38 public:
39  TRootGuiFactory(const char *name = "Root", const char *title = "ROOT GUI Factory");
40  virtual ~TRootGuiFactory() { }
41 
42  virtual TApplicationImp *CreateApplicationImp(const char *classname, int *argc, char **argv);
43 
44  virtual TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height);
45  virtual TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height);
46 
47  virtual TBrowserImp *CreateBrowserImp(TBrowser *b, const char *title, UInt_t width, UInt_t height, Option_t *opt="");
48  virtual TBrowserImp *CreateBrowserImp(TBrowser *b, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t *opt="");
49 
50  virtual TContextMenuImp *CreateContextMenuImp(TContextMenu *c, const char *name, const char *title);
51 
52  virtual TControlBarImp *CreateControlBarImp(TControlBar *c, const char *title);
53  virtual TControlBarImp *CreateControlBarImp(TControlBar *c, const char *title, Int_t x, Int_t y);
54 
55  ClassDef(TRootGuiFactory,0) //Factory for ROOT GUI components
56 };
57 
58 #endif