Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/qtroot/interface/tqcanvasimp.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE 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 #ifndef TQCANVASIMP_H
00029 #define TQCANVASIMP_H
00030 
00031 
00047 #include <iostream.h>
00048 
00049 #include "TCanvasImp.h"
00050 #include "TInterpreter.h"
00051 #include "TPad.h"
00052 #include "TVirtualPad.h"
00053 
00054 #include "qmainwindow.h"
00055 #include "tqrootcanvas.h"
00056 #include "qvbox.h"
00057 #include "qtframe.h"
00058 
00059 class TQCanvasImp :  public TCanvasImp {
00060 protected:
00061   TQRootCanvas *fQCanvas;
00062   QTFrame* fdialbox;
00063 
00064   void build(TCanvas *c, const char *name, Int_t x, Int_t y, UInt_t width, UInt_t height);
00065 public:
00066 
00073   TQCanvasImp(TCanvas* = 0) : TCanvasImp() { }
00085   TQCanvasImp(TCanvas *c, const char *name, UInt_t width, UInt_t height);
00098   TQCanvasImp(TCanvas *c, const char *name, Int_t x, Int_t y, UInt_t width, UInt_t height);
00099   virtual ~TQCanvasImp() {
00100     //    printf("~QCanvasImp \n");
00101   }
00102 
00108   virtual Int_t  InitWindow() { return fQCanvas->getRootWid(); }
00113   virtual void   ForceUpdate() { fdialbox->update(); }
00118 
00119 //  virtual void   GetWindowGeometry(Int_t &ax, Int_t &ay, UInt_t &w, UInt_t &h) {
00120 //    //    ax=fdialbox->x(); ay=fdialbox->y(); w=fdialbox->width(); h=fdialbox->height();
00121 //    ax=ay=w=h=0;
00122 //  }
00127   virtual void   Iconify() { cout << "Not implemented\n"; }
00131   virtual void   SetStatusText(const char* = 0, Int_t = 0) {
00132     //cout << "statustext Not implemented\n";
00133   }
00138   virtual void   SetWindowPosition(Int_t x, Int_t y) { fdialbox->move(x,y); }
00142   virtual void   SetWindowSize(UInt_t w, UInt_t h) { fdialbox->resize(w,h); }
00146   virtual void   SetWindowTitle(const char* newTitle) {
00147     cout << "title Not implemented" << newTitle << endl;
00148   }
00152   virtual void   SetCanvasSize(UInt_t w, UInt_t h) {fdialbox->resize(w,h);}
00156   virtual void   ShowMenuBar(Bool_t = kTRUE) {
00157     cout << "menubar Not implemented\n";
00158   }
00162   virtual void   ShowStatusBar(Bool_t = kTRUE) {
00163     cout << "statusbar Not implemented\n";
00164   }
00168   virtual void   Show() { fdialbox->show();}
00172   virtual void   Close() {
00173     // printf(" closing the dialbox \n");
00174      fQCanvas->close( true );
00175      fdialbox->close( true );
00176   }
00177 };
00178 #endif
00179 
00180 
00181 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:56:09 2005 for Go4-v2.10-5 by doxygen1.2.15