ROOT  6.06/09
Reference Guide
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 #ifndef ROOT_TGuiFactory
26 #include "TGuiFactory.h"
27 #endif
28 
29 class TApplicationImp;
30 class TCanvasImp;
31 class TBrowserImp;
32 class TContextMenuImp;
33 class TContextMenu;
34 class TControlBarImp;
35 class TControlBar;
36 
37 
38 class TRootGuiFactory : public TGuiFactory {
39 
40 public:
41  TRootGuiFactory(const char *name = "Root", const char *title = "ROOT GUI Factory");
42  virtual ~TRootGuiFactory() { }
43 
44  virtual TApplicationImp *CreateApplicationImp(const char *classname, int *argc, char **argv);
45 
46  virtual TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height);
47  virtual TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height);
48 
49  virtual TBrowserImp *CreateBrowserImp(TBrowser *b, const char *title, UInt_t width, UInt_t height, Option_t *opt="");
50  virtual TBrowserImp *CreateBrowserImp(TBrowser *b, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t *opt="");
51 
52  virtual TContextMenuImp *CreateContextMenuImp(TContextMenu *c, const char *name, const char *title);
53 
54  virtual TControlBarImp *CreateControlBarImp(TControlBar *c, const char *title);
55  virtual TControlBarImp *CreateControlBarImp(TControlBar *c, const char *title, Int_t x, Int_t y);
56 
57  ClassDef(TRootGuiFactory,0) //Factory for ROOT GUI components
58 };
59 
60 #endif
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
Definition: TControlBar.h:37
ABC describing GUI independent main window (with menubar, scrollbars and a drawing area)...
Definition: TCanvasImp.h:32
This class provides an interface to GUI independent context sensitive popup menus.
const char Option_t
Definition: RtypesCore.h:62
virtual TBrowserImp * CreateBrowserImp(TBrowser *b, const char *title, UInt_t width, UInt_t height, Option_t *opt="")
Create a ROOT native GUI version of TBrowserImp.
ABC describing GUI independent control bar.
virtual ~TRootGuiFactory()
int Int_t
Definition: RtypesCore.h:41
ABC describing GUI independent application implementation protocol.
Double_t x[n]
Definition: legend1.C:17
#define ClassDef(name, id)
Definition: Rtypes.h:254
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:41
This class provides an interface to context sensitive popup menus.
Definition: TContextMenu.h:44
unsigned int UInt_t
Definition: RtypesCore.h:42
TRootGuiFactory(const char *name="Root", const char *title="ROOT GUI Factory")
virtual TCanvasImp * CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height)
Create a ROOT native GUI version of TCanvasImp.
virtual TControlBarImp * CreateControlBarImp(TControlBar *c, const char *title)
Create a ROOT native GUI version of TControlBarImp.
virtual TApplicationImp * CreateApplicationImp(const char *classname, int *argc, char **argv)
Create a ROOT native GUI version of TApplicationImp.
The Canvas class.
Definition: TCanvas.h:48
Double_t y[n]
Definition: legend1.C:17
#define name(a, b)
Definition: linkTestLib0.cpp:5
This ABC is a factory for GUI components.
Definition: TGuiFactory.h:44
virtual TContextMenuImp * CreateContextMenuImp(TContextMenu *c, const char *name, const char *title)
Create a ROOT native GUI version of TContextMenuImp.
ABC describing GUI independent browser implementation protocol.
Definition: TBrowserImp.h:31