// @(#)root/qtgsi:$Name:  $:$Id: TQRootGuiFactory.h,v 1.2 2006/04/12 10:07:21 brun Exp $
// 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



ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.