ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
AtTabBase.cxx
Go to the documentation of this file.
1 #include "AtTabBase.h"
2 
3 #include <TEveBrowser.h>
4 #include <TEveManager.h>
5 #include <TEveWindow.h>
6 
8 int AtTabBase::fNumTabs = 0;
9 
10 AtTabBase::AtTabBase(TString name) : fTabId(fNumTabs), fTabName(std::move(name))
11 {
12  fNumTabs++;
13 }
14 
17 {
18  MakeTab(TEveWindow::CreateWindowInTab(gEve->GetBrowser()->GetTabRight()));
19  InitTab();
20 }
ClassImp
ClassImp(AtTabBase)
AtTabBase::fNumTabs
static int fNumTabs
Definition: AtTabBase.h:29
AtTabBase::MakeTab
virtual void MakeTab(TEveWindowSlot *slot)=0
Create the gui components of the tab in the passed window slot.
AtTabBase::Init
void Init()
Called in the init stage of the run.
Definition: AtTabBase.cxx:16
AtTabBase::InitTab
virtual void InitTab()=0
AtTabBase.h
AtTabBase
Definition: AtTabBase.h:27
AtTabBase::AtTabBase
AtTabBase(TString tabName)
Definition: AtTabBase.cxx:10