Logo ROOT   6.14/05
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:58
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
Definition: TControlBar.h:22
ABC describing GUI independent main window (with menubar, scrollbars and a drawing area)...
Definition: TCanvasImp.h:30
This class provides an interface to GUI independent context sensitive popup menus.
const char Option_t
Definition: RtypesCore.h:62
image html pict1_TGaxis_012 png width
Define new text attributes for the label number "labNum".
Definition: TGaxis.cxx:2551
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.
TQtRootGuiFactory()
TQtRootGuiFactory ctor.
Double_t x[n]
Definition: legend1.C:17
#define ClassDef(name, id)
Definition: Rtypes.h:320
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:37
static TGClient * gfQtClient
This class provides an interface to context sensitive popup menus.
Definition: TContextMenu.h:40
unsigned int UInt_t
Definition: RtypesCore.h:42
TGuiFactory * fGuiProxy
The Canvas class.
Definition: TCanvas.h:31
Double_t y[n]
Definition: legend1.C:17
Mother of all ROOT objects.
Definition: TObject.h:37
This ABC is a factory for GUI components.
Definition: TGuiFactory.h:42
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)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
Definition: TRolke.cxx:630
static TGClient * GetRootClient()
#define c(i)
Definition: RSha256.hxx:101
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:30
char name[80]
Definition: TGX11.cxx:109
ABC describing GUI independent browser implementation protocol.
Definition: TBrowserImp.h:29