Logo ROOT  
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 #include "TGuiFactory.h"
18 
19 class TApplicationImp;
20 class TCanvasImp;
21 class TBrowserImp;
22 class TContextMenuImp;
23 class TContextMenu;
24 class TControlBarImp;
25 class TControlBar;
26 
27 
28 class TRootGuiFactory : public TGuiFactory {
29 
30 public:
31  TRootGuiFactory(const char *name = "Root", const char *title = "ROOT GUI Factory");
32  virtual ~TRootGuiFactory() { }
33 
34  virtual TApplicationImp *CreateApplicationImp(const char *classname, int *argc, char **argv);
35 
36  virtual TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height);
37  virtual TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height);
38 
39  virtual TBrowserImp *CreateBrowserImp(TBrowser *b, const char *title, UInt_t width, UInt_t height, Option_t *opt="");
40  virtual TBrowserImp *CreateBrowserImp(TBrowser *b, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t *opt="");
41 
42  virtual TContextMenuImp *CreateContextMenuImp(TContextMenu *c, const char *name, const char *title);
43 
44  virtual TControlBarImp *CreateControlBarImp(TControlBar *c, const char *title);
45  virtual TControlBarImp *CreateControlBarImp(TControlBar *c, const char *title, Int_t x, Int_t y);
46 
47  ClassDef(TRootGuiFactory,0) //Factory for ROOT GUI components
48 };
49 
50 #endif
TControlBarImp
ABC describing GUI independent control bar.
Definition: TControlBarImp.h:30
c
#define c(i)
Definition: RSha256.hxx:101
TRootGuiFactory::CreateBrowserImp
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.
Definition: TRootGuiFactory.cxx:78
TRootGuiFactory::CreateApplicationImp
virtual TApplicationImp * CreateApplicationImp(const char *classname, int *argc, char **argv)
Create a ROOT native GUI version of TApplicationImp.
Definition: TRootGuiFactory.cxx:46
TBrowser
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:37
TContextMenuImp
This class provides an interface to GUI independent context sensitive popup menus.
Definition: TContextMenuImp.h:33
Option_t
const char Option_t
Definition: RtypesCore.h:66
TApplicationImp
ABC describing GUI independent application implementation protocol.
Definition: TApplicationImp.h:29
TRootGuiFactory::CreateContextMenuImp
virtual TContextMenuImp * CreateContextMenuImp(TContextMenu *c, const char *name, const char *title)
Create a ROOT native GUI version of TContextMenuImp.
Definition: TRootGuiFactory.cxx:132
width
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
Int_t
int Int_t
Definition: RtypesCore.h:45
x
Double_t x[n]
Definition: legend1.C:17
TRootGuiFactory::CreateCanvasImp
virtual TCanvasImp * CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height)
Create a ROOT native GUI version of TCanvasImp.
Definition: TRootGuiFactory.cxx:60
b
#define b(i)
Definition: RSha256.hxx:100
TControlBar
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
Definition: TControlBar.h:26
TContextMenu
This class provides an interface to context sensitive popup menus.
Definition: TContextMenu.h:44
TRootGuiFactory::TRootGuiFactory
TRootGuiFactory(const char *name="Root", const char *title="ROOT GUI Factory")
TRootGuiFactory ctor.
Definition: TRootGuiFactory.cxx:38
TRootGuiFactory::~TRootGuiFactory
virtual ~TRootGuiFactory()
Definition: TRootGuiFactory.h:32
TBrowserImp
ABC describing GUI independent browser implementation protocol.
Definition: TBrowserImp.h:29
TGuiFactory
This ABC is a factory for GUI components.
Definition: TGuiFactory.h:42
TCanvasImp
ABC describing GUI independent main window (with menubar, scrollbars and a drawing area).
Definition: TCanvasImp.h:30
UInt_t
unsigned int UInt_t
Definition: RtypesCore.h:46
y
Double_t y[n]
Definition: legend1.C:17
TCanvas
The Canvas class.
Definition: TCanvas.h:23
TRootGuiFactory::CreateControlBarImp
virtual TControlBarImp * CreateControlBarImp(TControlBar *c, const char *title)
Create a ROOT native GUI version of TControlBarImp.
Definition: TRootGuiFactory.cxx:141
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
name
char name[80]
Definition: TGX11.cxx:110
TGuiFactory.h
TRootGuiFactory
This class is a factory for ROOT GUI components.
Definition: TRootGuiFactory.h:28