KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVIDGridManagerGUI.h
Go to the documentation of this file.
1 #include "TGFrame.h"
2 #include "TGMenu.h"
3 #include "KVListView.h"
4 #include "TGButtonGroup.h"
5 #include "TGButton.h"
6 #include "KVIDGrid.h"
7 #include "RQ_OBJECT.h"
8 #include <TGComboBox.h>
9 #include <TGLabel.h>
10 #include <TGNumberEntry.h>
11 #include <TGTextEntry.h>
12 #include <TGProgressBar.h>
13 #include "TGTab.h"
14 #include "TGToolBar.h"
15 #include "TGStatusBar.h"
16 #include "KVIDGridEditor.h"
17 
29 
34  enum {
50  M_QUIT
51  };
61 
63 
82 
84 
90  std::unique_ptr<TList> fSelectedEntries;
91 
93  {
95  if (fIDGridList) return fIDGridList->GetUserItems();
96  return 0;
97  };
98 
99  void SetStatus(const Char_t* text = "")
100  {
103  };
104 
105 public:
106 
109 
110  void CloseWindow();
111 
112  void HandleGridsMenu(Int_t id);
113 
114  void CreateAndFillTabs();
115  void UpdateTabs();
116  void RemoveEmptyTabs();
117  void TabSelect(Int_t);
118  void UpdateListOfGrids();
119 
120  void ShowListOfLines();
121  void UpdateListOfLines();
122 
123  void SelectionChanged();
125 
126  void NewGrid();
127  void CopyGrid();
128  void MergeGrids();
129  void ClearGrid();
130  void DeleteGrids();
131  void DeleteAllGridsInTab();
132  void SetIDTelescopes();
133 
134  void ActivateToolbarButtons();
135 
136  void SaveGridsAs(const TCollection* /*selected*/ = 0);
137 
138  void OpenFile();
139  void SaveCurrent()
140  {
141  SaveGridsAs();
142  };
143  void NewIDLine();
144  void NewIDContour() {}
145  void NewCut();
146  void FitGrid();
147  void TestGrid();
148  void TestTreeGrid();
149  void DeleteSelectedGrids();
150  void Quit()
151  {
152  CloseWindow();
153  };
154  void StartEditor();
155  void OpenRootFile();
156 
157  ClassDef(KVIDGridManagerGUI, 0) //A GUI for managing identification grids
158  TFile* TestIdentificationWithTree(KVIDGraph* gr, const Char_t* name_of_data_histo);
159  void StartEditor(TObject*);
160 };
int Int_t
char Char_t
Base class for particle identification in a 2D map.
Definition: KVIDGraph.h:31
Identification grid editor GUI ,.
Graphical interface tool for managing, creating, testing and fitting identification grids.
TGPopupMenu * fMenuEdit
TGPopupMenu * fMenuHelp
void TabSelect(Int_t)
called when a new tab is selected
TGLayoutHints * fMenuBarItemLayout
Int_t GetNSelected()
returns current number of selected items in grid list
void SaveGridsAs(const TCollection *=0)
KVListView * fCUTInfoList
list of lines in currently selected grid
void DeleteSelectedGrids()
warning message and confirmation
void HandleGridsMenu(Int_t id)
Receive signals emitted by items selected in Grids menu.
void DeleteAllGridsInTab()
delete the all grids in currently selected tab
TCollection * GetAllGridsInTab()
void SetIDTelescopes()
Set ID telescopes for selected grid.
void ActivateToolbarButtons()
disable all buttons
virtual ~ KVIDGridManagerGUI()
KVIDGraph * fLastSelectedGrid
void DeleteGrids()
delete the current selected grid, or all currently selected grids if there are more than one
KVListView * fIDGridList
list of grids in current tab
TGTab * fGridListTabs
tabs with lists of grids
KVListView * fIDLineList
list of lines in currently selected grid
const Char_t * name_of_data_histo
TGPopupMenu * fMenuFile
TGMainFrame* fMain;.
void CloseWindow()
close viewer
TGLayoutHints * fMenuBarHelpLayout
void ClearGrid()
deletes all lines in currently selected grid(s)
ClassDef(KVIDGridManagerGUI, 0) TFile *TestIdentificationWithTree(KVIDGraph *gr
void SetStatus(const Char_t *text="")
TGStatusBar * fStatusBar
TGButton * fTBbuttons[50]
void RemoveEmptyTabs()
Recursively remove any empty tabs.
KVIDGridEditor * fIDGridEditor
ID grid editor.
TGHorizontalFrame * fHframe
KVListView * fCUTList
list of lines in currently selected grid
std::unique_ptr< TList > fSelectedEntries
Enhanced version of ROOT TGListView widget.
Definition: KVListView.h:145
TCollection * GetUserItems()
Definition: KVListView.h:256
virtual void SetText(const char *text, Int_t partidx=0)
TText * text