ROOT  6.06/09
Reference Guide
TQRootGuiFactory.h
Go to the documentation of this file.
1 // @(#)root/qtgsi:$Id$
2 // Author: Denis Bertini 01/11/2000
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2006, 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 #ifndef ROOT_TQRootGuiFactory
13 #define ROOT_TQRootGuiFactory
14 
15 ////////////////////////////////////////////////////////////////////
16 //
17 // TQRootGuiFactory
18 //
19 // As TRootGuiFactory from the ROOT library, this
20 // class uses the services of the general ABC TGuiFactory
21 // in order to get Qt Native GUI components instead of
22 // the ROOT ones. Basically it will overrides the
23 // member functions:
24 // @li TGuiFactory::CreateCanvasImp(TCanvas *c, const char *title,
25 // UInt_t width, UInt_t height);
26 // @li TGuiFactory::CreateCanvasImp(TCanvas *c, const char *title,
27 // Int_t x, Int_t y, UInt_t width, UInt_t height)
28 //
29 //@short Qt Factory GUI components
30 //
31 //Services:
32 //@li Creates a specific Canvas Implementation QCanvasImp
33 ////////////////////////////////////////////////////////////////////
34 
35 #ifndef ROOT_TRootGuiFactory
36 #include "TRootGuiFactory.h"
37 #endif
38 
39 class TCanvasImp;
40 
42 
43 private:
45 public:
46 
47  TQRootGuiFactory(const char *name = "QRoot", const char *title = "Qt/ROOT GUI Factory");
48  virtual ~TQRootGuiFactory();
49  TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height);
50  TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height);
51  void SetCustomFlag(Bool_t custom) { fCustom=custom; }
52 
53  ClassDef(TQRootGuiFactory,1) //Qt ROOT Gui factory
54 
55 };
56 
57 #endif
58 
ABC describing GUI independent main window (with menubar, scrollbars and a drawing area)...
Definition: TCanvasImp.h:32
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
TCanvasImp * CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height)
Create a ROOT native GUI version of TCanvasImp.
virtual ~TQRootGuiFactory()
destructor
Double_t x[n]
Definition: legend1.C:17
#define ClassDef(name, id)
Definition: Rtypes.h:254
TQRootGuiFactory(const char *name="QRoot", const char *title="Qt/ROOT GUI Factory")
unsigned int UInt_t
Definition: RtypesCore.h:42
void SetCustomFlag(Bool_t custom)
The Canvas class.
Definition: TCanvas.h:48
Double_t y[n]
Definition: legend1.C:17
#define name(a, b)
Definition: linkTestLib0.cpp:5