ROOT  6.06/09
Reference Guide
TQtRootGuiFactory.h
Go to the documentation of this file.
1 // Author: Valeri Fine 13/05/2003
2 /****************************************************************************
3 ** $Id: TQtRootGuiFactory.h,v 1.3 2007/11/02 17:08:10 fine Exp $
4 **
5 ** Copyright (C) 2002 by Valeri Fine. All rights reserved.
6 **
7 *****************************************************************************/
8 
9 #ifndef ROOT_TQtRootGuiFactory
10 #define ROOT_TQtRootGuiFactory
11 
12 //////////////////////////////////////////////////////////////////////////
13 // //
14 // TQtRootGuiFactory //
15 // //
16 // This class is a proxy-factory for Qt-base ROOT GUI components. //
17 // It overrides the member functions of the X11/win32gdk-based //
18 // TRootGuiFactory. //
19 // //
20 //////////////////////////////////////////////////////////////////////////
21 
22 #include "TGuiFactory.h"
23 
24 class TQtApplication;
25 class TVirtualX;
26 class TGClient;
27 
29 
30 private:
32 
33 protected:
34  static void CreateQClient();
36 
37 public:
39  TQtRootGuiFactory(const char *name, const char *title= "Qt-based ROOT GUI Factory");
40  virtual ~TQtRootGuiFactory() { delete fGuiProxy; }
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);
48  virtual TBrowserImp *CreateBrowserImp(TBrowser *b, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height);
49 
50  virtual TBrowserImp *CreateBrowserImp(TBrowser *b, const char *title, UInt_t width, UInt_t height, Option_t *opt);
51  virtual TBrowserImp *CreateBrowserImp(TBrowser *b, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t *opt);
52 
53  virtual TContextMenuImp *CreateContextMenuImp(TContextMenu *c, const char *name, const char *title);
54 
55  virtual TControlBarImp *CreateControlBarImp(TControlBar *c, const char *title);
56  virtual TControlBarImp *CreateControlBarImp(TControlBar *c, const char *title, Int_t x, Int_t y);
57 
58  virtual TInspectorImp *CreateInspectorImp(const TObject *obj, UInt_t width, UInt_t height);
59 
60  static TGClient *GetRootClient();
61  ClassDef(TQtRootGuiFactory,0) //Factory for Qt-based ROOT GUI components
62 };
63 
65 
66 
67 #endif
virtual TContextMenuImp * CreateContextMenuImp(TContextMenu *c, const char *name, const char *title)
Create a batch version of TContextMenuImp.
Semi-Abstract base class defining a generic interface to the underlying, low level, native graphics backend (X11, Win32, MacOS, OpenGL...).
Definition: TVirtualX.h:70
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 TCanvasImp * CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height)
Create a batch version of TCanvasImp.
ABC describing GUI independent control bar.
int Int_t
Definition: RtypesCore.h:41
virtual TControlBarImp * CreateControlBarImp(TControlBar *c, const char *title)
Create a batch version of TControlBarImp.
virtual ~TQtRootGuiFactory()
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
static TGClient * gfQtClient
This class provides an interface to context sensitive popup menus.
Definition: TContextMenu.h:44
unsigned int UInt_t
Definition: RtypesCore.h:42
TGuiFactory * fGuiProxy
The Canvas class.
Definition: TCanvas.h:48
Double_t y[n]
Definition: legend1.C:17
#define name(a, b)
Definition: linkTestLib0.cpp:5
Mother of all ROOT objects.
Definition: TObject.h:58
This ABC is a factory for GUI components.
Definition: TGuiFactory.h:44
virtual TInspectorImp * CreateInspectorImp(const TObject *obj, UInt_t width, UInt_t height)
Create a batch version of TInspectorImp.
virtual TBrowserImp * CreateBrowserImp(TBrowser *b, const char *title, UInt_t width, UInt_t height)
static TGClient * GetRootClient()
static void CreateQClient()
virtual TApplicationImp * CreateApplicationImp(const char *classname, int *argc, char **argv)
Create a batch version of TApplicationImp.
ABC describing GUI independent object inspector (abstraction mainly needed for Win32.
Definition: TInspectorImp.h:32
TObject * obj
ABC describing GUI independent browser implementation protocol.
Definition: TBrowserImp.h:31