Logo ROOT   6.10/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 #include "TRootGuiFactory.h"
36 
37 class TCanvasImp;
38 
40 
41 private:
43 public:
44 
45  TQRootGuiFactory(const char *name = "QRoot", const char *title = "Qt/ROOT GUI Factory");
46  virtual ~TQRootGuiFactory();
47  TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height);
48  TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height);
49  void SetCustomFlag(Bool_t custom) { fCustom=custom; }
50 
51  ClassDef(TQRootGuiFactory,1) //Qt ROOT Gui factory
52 
53 };
54 
55 #endif
56 
ABC describing GUI independent main window (with menubar, scrollbars and a drawing area)...
Definition: TCanvasImp.h:30
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:297
TQRootGuiFactory(const char *name="QRoot", const char *title="Qt/ROOT GUI Factory")
TQRootGuiFactory ctor.
unsigned int UInt_t
Definition: RtypesCore.h:42
void SetCustomFlag(Bool_t custom)
The Canvas class.
Definition: TCanvas.h:31
Double_t y[n]
Definition: legend1.C:17