// Author: Roel Aaij   14/08/2007

/*************************************************************************
 * Copyright (C) 1995-2007, 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_TGTableFrame
#define ROOT_TGTableFrame

#ifndef ROOT_TGCanvas
#include "TGCanvas.h"
#endif
#ifndef ROOT_TGTableHeader
#include "TGTableHeader.h"
#endif

class TGTableFrame : public TQObject {

protected:
   TGCompositeFrame *fFrame;  // Composite frame used as a container
   TGCanvas         *fCanvas; // Pointer to the canvas that used this frame.

public:
   TGTableFrame(const TGWindow *p, UInt_t nrows, UInt_t ncolumns);
   virtual ~TGTableFrame() { delete fFrame; }

   TGFrame *GetFrame() const { return fFrame; }

   void SetCanvas(TGCanvas *canvas) { fCanvas = canvas; }
   void HandleMouseWheel(Event_t *event);
   virtual void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h);

   ClassDef(TGTableFrame, 0) // A frame used internally by TGTable.
};

class TGTableHeaderFrame: public TGCompositeFrame {

protected:
   Int_t    fX0;     // X coordinate of the header frame
   Int_t    fY0;     // Y coordinate of the header frame
   TGTable *fTable;  // Table that this frame belongs to

public:
   TGTableHeaderFrame(const TGWindow *p, TGTable *table = 0, UInt_t w = 1,
                      UInt_t h = 1, EHeaderType type = kColumnHeader,
                      UInt_t option = 0);
   ~TGTableHeaderFrame() {}

   virtual void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h);

   ClassDef(TGTableHeaderFrame, 0) // A frame used internally by TGTable.
};

#endif // ROOT_TGTableFrame


 TGTableContainer.h:1
 TGTableContainer.h:2
 TGTableContainer.h:3
 TGTableContainer.h:4
 TGTableContainer.h:5
 TGTableContainer.h:6
 TGTableContainer.h:7
 TGTableContainer.h:8
 TGTableContainer.h:9
 TGTableContainer.h:10
 TGTableContainer.h:11
 TGTableContainer.h:12
 TGTableContainer.h:13
 TGTableContainer.h:14
 TGTableContainer.h:15
 TGTableContainer.h:16
 TGTableContainer.h:17
 TGTableContainer.h:18
 TGTableContainer.h:19
 TGTableContainer.h:20
 TGTableContainer.h:21
 TGTableContainer.h:22
 TGTableContainer.h:23
 TGTableContainer.h:24
 TGTableContainer.h:25
 TGTableContainer.h:26
 TGTableContainer.h:27
 TGTableContainer.h:28
 TGTableContainer.h:29
 TGTableContainer.h:30
 TGTableContainer.h:31
 TGTableContainer.h:32
 TGTableContainer.h:33
 TGTableContainer.h:34
 TGTableContainer.h:35
 TGTableContainer.h:36
 TGTableContainer.h:37
 TGTableContainer.h:38
 TGTableContainer.h:39
 TGTableContainer.h:40
 TGTableContainer.h:41
 TGTableContainer.h:42
 TGTableContainer.h:43
 TGTableContainer.h:44
 TGTableContainer.h:45
 TGTableContainer.h:46
 TGTableContainer.h:47
 TGTableContainer.h:48
 TGTableContainer.h:49
 TGTableContainer.h:50
 TGTableContainer.h:51
 TGTableContainer.h:52
 TGTableContainer.h:53
 TGTableContainer.h:54
 TGTableContainer.h:55
 TGTableContainer.h:56
 TGTableContainer.h:57
 TGTableContainer.h:58
 TGTableContainer.h:59
 TGTableContainer.h:60