ROOT logo
// @(#)root/qtgsi:$Id: TQRootGuiFactory.h 20882 2007-11-19 11:31:26Z rdm $
// Author: Denis Bertini  01/11/2000

/*************************************************************************
 * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TQRootGuiFactory
#define ROOT_TQRootGuiFactory

////////////////////////////////////////////////////////////////////
//
//  TQRootGuiFactory
//
//  As TRootGuiFactory from the ROOT library, this
//  class uses the services of the general ABC TGuiFactory
//  in order to get Qt Native GUI components instead of
//  the ROOT ones. Basically it will overrides the
//  member functions:
//    @li TGuiFactory::CreateCanvasImp(TCanvas *c, const char *title,
//                                     UInt_t width, UInt_t height);
//    @li TGuiFactory::CreateCanvasImp(TCanvas *c, const char *title,
//                      Int_t x, Int_t y, UInt_t width, UInt_t height)
//
//@short Qt Factory GUI components
//
//Services:
//@li Creates a specific Canvas Implementation QCanvasImp
////////////////////////////////////////////////////////////////////

#ifndef ROOT_TRootGuiFactory
#include "TRootGuiFactory.h"
#endif

class TCanvasImp;

class TQRootGuiFactory : public TRootGuiFactory {

private:
   Bool_t fCustom;
public:

   TQRootGuiFactory(const char *name = "QRoot", const char *title = "Qt/ROOT GUI Factory");
   virtual ~TQRootGuiFactory();
   TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height);
   TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height);
   void SetCustomFlag(Bool_t custom) { fCustom=custom; }
   
   ClassDef(TQRootGuiFactory,1)  //Qt ROOT Gui factory

};

#endif

 TQRootGuiFactory.h:1
 TQRootGuiFactory.h:2
 TQRootGuiFactory.h:3
 TQRootGuiFactory.h:4
 TQRootGuiFactory.h:5
 TQRootGuiFactory.h:6
 TQRootGuiFactory.h:7
 TQRootGuiFactory.h:8
 TQRootGuiFactory.h:9
 TQRootGuiFactory.h:10
 TQRootGuiFactory.h:11
 TQRootGuiFactory.h:12
 TQRootGuiFactory.h:13
 TQRootGuiFactory.h:14
 TQRootGuiFactory.h:15
 TQRootGuiFactory.h:16
 TQRootGuiFactory.h:17
 TQRootGuiFactory.h:18
 TQRootGuiFactory.h:19
 TQRootGuiFactory.h:20
 TQRootGuiFactory.h:21
 TQRootGuiFactory.h:22
 TQRootGuiFactory.h:23
 TQRootGuiFactory.h:24
 TQRootGuiFactory.h:25
 TQRootGuiFactory.h:26
 TQRootGuiFactory.h:27
 TQRootGuiFactory.h:28
 TQRootGuiFactory.h:29
 TQRootGuiFactory.h:30
 TQRootGuiFactory.h:31
 TQRootGuiFactory.h:32
 TQRootGuiFactory.h:33
 TQRootGuiFactory.h:34
 TQRootGuiFactory.h:35
 TQRootGuiFactory.h:36
 TQRootGuiFactory.h:37
 TQRootGuiFactory.h:38
 TQRootGuiFactory.h:39
 TQRootGuiFactory.h:40
 TQRootGuiFactory.h:41
 TQRootGuiFactory.h:42
 TQRootGuiFactory.h:43
 TQRootGuiFactory.h:44
 TQRootGuiFactory.h:45
 TQRootGuiFactory.h:46
 TQRootGuiFactory.h:47
 TQRootGuiFactory.h:48
 TQRootGuiFactory.h:49
 TQRootGuiFactory.h:50
 TQRootGuiFactory.h:51
 TQRootGuiFactory.h:52
 TQRootGuiFactory.h:53
 TQRootGuiFactory.h:54
 TQRootGuiFactory.h:55
 TQRootGuiFactory.h:56
 TQRootGuiFactory.h:57
 TQRootGuiFactory.h:58