TQRootGuiFactory.h

Go to the documentation of this file.
00001 // @(#)root/qtgsi:$Id: TQRootGuiFactory.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Denis Bertini  01/11/2000
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TQRootGuiFactory
00013 #define ROOT_TQRootGuiFactory
00014 
00015 ////////////////////////////////////////////////////////////////////
00016 //
00017 //  TQRootGuiFactory
00018 //
00019 //  As TRootGuiFactory from the ROOT library, this
00020 //  class uses the services of the general ABC TGuiFactory
00021 //  in order to get Qt Native GUI components instead of
00022 //  the ROOT ones. Basically it will overrides the
00023 //  member functions:
00024 //    @li TGuiFactory::CreateCanvasImp(TCanvas *c, const char *title,
00025 //                                     UInt_t width, UInt_t height);
00026 //    @li TGuiFactory::CreateCanvasImp(TCanvas *c, const char *title,
00027 //                      Int_t x, Int_t y, UInt_t width, UInt_t height)
00028 //
00029 //@short Qt Factory GUI components
00030 //
00031 //Services:
00032 //@li Creates a specific Canvas Implementation QCanvasImp
00033 ////////////////////////////////////////////////////////////////////
00034 
00035 #ifndef ROOT_TRootGuiFactory
00036 #include "TRootGuiFactory.h"
00037 #endif
00038 
00039 class TCanvasImp;
00040 
00041 class TQRootGuiFactory : public TRootGuiFactory {
00042 
00043 private:
00044    Bool_t fCustom;
00045 public:
00046 
00047    TQRootGuiFactory(const char *name = "QRoot", const char *title = "Qt/ROOT GUI Factory");
00048    virtual ~TQRootGuiFactory();
00049    TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height);
00050    TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height);
00051    void SetCustomFlag(Bool_t custom) { fCustom=custom; }
00052    
00053    ClassDef(TQRootGuiFactory,1)  //Qt ROOT Gui factory
00054 
00055 };
00056 
00057 #endif
00058 

Generated on Tue Jul 5 14:22:20 2011 for ROOT_528-00b_version by  doxygen 1.5.1