class daqTab { private: public: int ID; int nx,ny, max_hist; TCanvas *canvas; vector hids; vector pattern; vector system; int modified; int Divide(int nx0 , int ny0 ) { nx=nx0; ny=ny0; max_hist=nx*ny; canvas->Divide(nx,ny); } int Create(daqMainFrame *fMain, /*TGString**/ char* name) { canvas=fMain->add_tab(name); int cID = fMain->fTab->GetCurrent(); //fMain->fTab->SetTab(name,kTRUE); //ID=fMain->fTab->GetCurrent(); ID=fMain->fTab->GetNumberOfTabs()-1; printf("New TAB ID=(%d,%d) Current=%d\n",ID,fMain->fTab->GetNumberOfTabs()-1,cID); //fMain->fTab->SetTab(cID,kTRUE); modified=0; } daqTab(daqMainFrame *fMain, /*TGString**/ char* name) { Create(fMain, name); nx=1; ny=1; max_hist=1; } daqTab(daqMainFrame *fMain, char* name, int nx0 , int ny0 ) { Create(fMain, name); Divide(nx0,ny0); } ~daqTab() { } };