KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVIDGridManagerGUI.h
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
30
35 enum {
51 M_QUIT
52 };
62
64
83
85
91 std::unique_ptr<TList> fSelectedEntries;
92
94 {
97 return 0;
98 };
99
100 void SetStatus(const Char_t* text = "")
101 {
104 };
105
106public:
107
109 virtual ~ KVIDGridManagerGUI();
110
111 void CloseWindow();
112
113 void HandleGridsMenu(Int_t id);
114
115 void CreateAndFillTabs();
116 void UpdateTabs();
117 void RemoveEmptyTabs();
118 void TabSelect(Int_t);
119 void UpdateListOfGrids();
120
121 void ShowListOfLines();
122 void UpdateListOfLines();
123
124 void SelectionChanged();
126
127 void NewGrid();
128 void CopyGrid();
129 void MergeGrids();
130 void ClearGrid();
131 void DeleteGrids();
132 void DeleteAllGridsInTab();
133 void SetIDTelescopes();
134
136
137 void SaveGridsAs(const TCollection* /*selected*/ = 0);
138
139 void OpenFile();
141 {
142 SaveGridsAs();
143 };
144 void NewIDLine();
145 void NewIDContour() {}
146 void NewCut();
147 void FitGrid();
148 void TestGrid();
149 void TestTreeGrid();
150 void DeleteSelectedGrids();
151 void Quit()
152 {
153 CloseWindow();
154 };
155 void StartEditor();
156 void OpenRootFile();
157
158 ClassDef(KVIDGridManagerGUI, 0) //A GUI for managing identification grids
159 TFile* TestIdentificationWithTree(KVIDGraph* gr, const Char_t* name_of_data_histo);
160 void StartEditor(TObject*);
161};
int Int_t
char Char_t
Option_t Option_t TPoint TPoint const char text
Base class for particle identification in a 2D map.
Definition KVIDGraph.h:32
Identification grid editor GUI ,.
Graphical interface tool for managing, creating, testing and fitting identification grids.
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
void SetIDTelescopes()
Set ID telescopes for selected grid.
void ActivateToolbarButtons()
disable all buttons
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
TCollection * GetAllGridsInTab()
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="")
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:146
TCollection * GetUserItems()
Definition KVListView.h:257
virtual void SetText(const char *text, Int_t partidx=0)