TGTableContainer.h

Go to the documentation of this file.
00001 // Author: Roel Aaij   14/08/2007
00002 
00003 /*************************************************************************
00004  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
00005  * All rights reserved.                                                  *
00006  *                                                                       *
00007  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00008  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00009  *************************************************************************/
00010 
00011 #ifndef ROOT_TGCanvas
00012 #include "TGCanvas.h"
00013 #endif
00014 #ifndef ROOT_TGTableHeader
00015 #include "TGTableHeader.h"
00016 #endif
00017 
00018 class TGTableFrame : public TQObject {
00019 
00020 protected:
00021    TGCompositeFrame *fFrame;  // Composite frame used as a container
00022    TGCanvas         *fCanvas; // Pointer to the canvas that used this frame.
00023 
00024 public:
00025    TGTableFrame(const TGWindow *p, UInt_t nrows, UInt_t ncolumns);
00026    virtual ~TGTableFrame() { delete fFrame; }
00027 
00028    TGFrame *GetFrame() const { return fFrame; }
00029 
00030    void SetCanvas(TGCanvas *canvas) { fCanvas = canvas; }
00031    void HandleMouseWheel(Event_t *event);
00032    virtual void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h);
00033 
00034    ClassDef(TGTableFrame, 0) // A frame used internally by TGTable.
00035 };
00036 
00037 class TGTableHeaderFrame: public TGCompositeFrame {
00038 
00039 protected:
00040    Int_t    fX0;     // X coordinate of the header frame 
00041    Int_t    fY0;     // Y coordinate of the header frame
00042    TGTable *fTable;  // Table that this frame belongs to
00043 
00044 public:
00045    TGTableHeaderFrame(const TGWindow *p, TGTable *table = 0, UInt_t w = 1, 
00046                       UInt_t h = 1, EHeaderType type = kColumnHeader, 
00047                       UInt_t option = 0);
00048    ~TGTableHeaderFrame() {}
00049 
00050    virtual void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h);
00051 
00052    ClassDef(TGTableHeaderFrame, 0) // A frame used internally by TGTable.
00053 };

Generated on Tue Jul 5 14:20:08 2011 for ROOT_528-00b_version by  doxygen 1.5.1