Logo ROOT   6.16/01
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
24class TQtApplication;
25class TVirtualX;
26class TGClient;
27
29
30private:
32
33protected:
34 static void CreateQClient();
36
37public:
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
#define b(i)
Definition: RSha256.hxx:100
#define c(i)
Definition: RSha256.hxx:101
int Int_t
Definition: RtypesCore.h:41
unsigned int UInt_t
Definition: RtypesCore.h:42
const char Option_t
Definition: RtypesCore.h:62
#define ClassDef(name, id)
Definition: Rtypes.h:324
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
ABC describing GUI independent application implementation protocol.
ABC describing GUI independent browser implementation protocol.
Definition: TBrowserImp.h:29
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:37
ABC describing GUI independent main window (with menubar, scrollbars and a drawing area).
Definition: TCanvasImp.h:30
The Canvas class.
Definition: TCanvas.h:31
This class provides an interface to GUI independent context sensitive popup menus.
This class provides an interface to context sensitive popup menus.
Definition: TContextMenu.h:40
ABC describing GUI independent control bar.
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
Definition: TControlBar.h:22
This ABC is a factory for GUI components.
Definition: TGuiFactory.h:42
ABC describing GUI independent object inspector (abstraction mainly needed for Win32.
Definition: TInspectorImp.h:30
Mother of all ROOT objects.
Definition: TObject.h:37
virtual TContextMenuImp * CreateContextMenuImp(TContextMenu *c, const char *name, const char *title)
Create a batch version of TContextMenuImp.
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 * gfQtClient
virtual ~TQtRootGuiFactory()
static void CreateQClient()
virtual TControlBarImp * CreateControlBarImp(TControlBar *c, const char *title)
Create a batch version of TControlBarImp.
TQtRootGuiFactory()
TQtRootGuiFactory ctor.
virtual TCanvasImp * CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height)
Create a batch version of TCanvasImp.
static TGClient * GetRootClient()
TGuiFactory * fGuiProxy
virtual TApplicationImp * CreateApplicationImp(const char *classname, int *argc, char **argv)
Create a batch version of TApplicationImp.
Semi-Abstract base class defining a generic interface to the underlying, low level,...
Definition: TVirtualX.h:53
Double_t y[n]
Definition: legend1.C:17
Double_t x[n]
Definition: legend1.C:17