Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

tqcanvasimp.cpp

Go to the documentation of this file.
00001 //-------------------------------------------------------------
00002 //        Go4 Release Package v3.04-01 (build 30401)
00003 //                      28-November-2008
00004 //---------------------------------------------------------------
00005 //   The GSI Online Offline Object Oriented (Go4) Project
00006 //   Experiment Data Processing at EE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 //Author : Denis Bertini 01.11.2000
00017 
00018 /**************************************************************************
00019 * Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI           *
00020 *                     Planckstr. 1, 64291 Darmstadt, Germany              *
00021 *                     All rights reserved.                                *
00022 * Contact:            http://go4.gsi.de                                   *
00023 *                                                                         *
00024 * This software can be used under the license agreements as stated in     *
00025 * Go4License.txt file which is part of the distribution.                  *
00026 ***************************************************************************/
00027 
00028 
00030 //                                                                      //
00031 // ABC describing GUI independent main window (with menubar, scrollbars //
00032 // and a drawing area).                                                 //
00033 //                                                                      //
00035 
00036 #include "qapplication.h"
00037 #include "tqcanvasimp.h"
00038 #include "TClass.h"
00039 #include "TRootCanvas.h"
00040 #include "lockguard.h"
00041 
00042 TQCanvasImp::TQCanvasImp(TCanvas *c, const char *name, UInt_t width, UInt_t height){
00043 
00044   build(c,name,10,10,width,height);
00045 }
00046 
00047 
00048 TQCanvasImp::TQCanvasImp(TCanvas *c, const char *name, Int_t x, Int_t y, UInt_t width, UInt_t height){
00049 
00050   build(c,name,x,y,width,height);
00051 
00052 }
00053 
00054 void TQCanvasImp::build(TCanvas *c, const char *name, Int_t x, Int_t y, UInt_t width, UInt_t height){
00055 //Qtrootlockguard threadlock;
00056 #if DEBUG_LEVEL
00057   qDebug(" canvas name %i %s %s \n",c,
00058           c->ClassName(), c->IsA()->GetTitle() );
00059 #endif
00060 
00061       fdialbox = new QTFrame(qApp->mainWidget(),"test",Qt::WDestructiveClose);
00062       fQCanvas = new TQRootCanvas(fdialbox,name,c);
00063       fCanvas = fQCanvas->getCanvas();
00064       fdialbox->setCanvas(fQCanvas);
00065       //fdialbox->setCentralWidget( fQCanvas );
00066       fdialbox->move(x,y);
00067       fdialbox->resize(width,height);
00068 
00069 }
00070 
00071 
00072 
00073 
00074 
00075 
00076 
00077 
00078 
00079 
00080 
00081 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Fri Nov 28 12:59:33 2008 for Go4-v3.04-1 by  doxygen 1.4.2