00001 // @(#)root/qtgsi:$Id: TQCanvasImp.cxx 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: Denis Bertini, M. Al-Turany 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 00013 ////////////////////////////////////////////////////////////////////////// 00014 // // 00015 // ABC describing GUI independent main window (with menubar, scrollbars // 00016 // and a drawing area). // 00017 // // 00018 ////////////////////////////////////////////////////////////////////////// 00019 00020 #include "TQCanvasImp.h" 00021 #include "TQRootCanvas.h" 00022 00023 ClassImp(TQCanvasImp) 00024 00025 //______________________________________________________________________________ 00026 TQCanvasImp::TQCanvasImp(TCanvas *c, const char *name, UInt_t width, UInt_t height) 00027 { 00028 // TQCanvasImp ctor 00029 00030 // @param c (ptr to ROOT TCanvas) 00031 // @param name (title for canvas) 00032 // @param width 00033 // @param height 00034 00035 Build(c,name,10,10,width,height); 00036 } 00037 00038 //______________________________________________________________________________ 00039 TQCanvasImp::TQCanvasImp(TCanvas *c, const char *name, Int_t x, Int_t y, UInt_t width, UInt_t height) 00040 { 00041 // TQCanvasImp ctor 00042 00043 // @param c (ptr to ROOT TCanvas) 00044 // @param name (title for canvas) 00045 // @param x 00046 // @param y 00047 // @param width 00048 // @param height 00049 00050 Build(c,name,x,y,width,height); 00051 } 00052 00053 //______________________________________________________________________________ 00054 TQCanvasImp::TQCanvasImp(TCanvas* /*v*/) : TCanvasImp() 00055 { 00056 // TQCanvasImp ctor 00057 00058 } 00059 00060 //______________________________________________________________________________ 00061 void TQCanvasImp::Build(TCanvas *c, const char *name, Int_t /*x*/, Int_t /*y*/, UInt_t /*width*/, 00062 UInt_t /*height*/) 00063 { 00064 // Build the TQRootCanvas 00065 00066 fQCanvas = new TQRootCanvas(0,name,c); 00067 fCanvas = fQCanvas->GetCanvas(); 00068 } 00069 00070 //______________________________________________________________________________ 00071 TQCanvasImp::~TQCanvasImp() 00072 { 00073 // dtor 00074 }