35 Int_t GetUnID(
void) {
return ++nID ; }
52 virtual ~TableTest() ;
63 :
TGMainFrame(p, w,
h), fData(0), fNDataRows(ndrows), fNDataColumns(ndcols),
64 fNTableRows(ntrows), fNTableColumns(ntcols), fSimpleTable(0)
67 Connect(
"CloseWindow()",
"TableTest",
this,
"DoExit()") ;
73 for (i = 0; i < (
Int_t)fNDataRows; i++) {
74 fData[i] =
new Double_t[fNDataColumns];
75 for (j = 0; j < (
Int_t)fNDataColumns; j++) {
76 fData[i][j] = 10 * i + j;
81 fSimpleTable =
new TGSimpleTable(
this, IDs.GetUnID(), fData, fNTableRows,
86 SetWindowName(
"TGSimpleTable Test") ;
89 Resize(GetDefaultWidth()+20, 600) ;
94TableTest::~TableTest()
98 for (i = 0; i < fNDataRows; i++) {
105 void TableTest::DoExit()
118 TableTest *
test =
new TableTest(0, ndrows, ndcols, ntrows, ntcols, 500, 200);
119 return test->GetTable();
#define ClassDef(name, id)
RooCmdArg Layout(Double_t xmin, Double_t xmax=0.99, Double_t ymin=0.95)