List events panel in ED looks better now + preparation for sending RecPoints from...
[u/mrichter/AliRoot.git] / MONITOR / alistoragemanager / AliStorageAdministratorPanelListEvents.h
1 #ifndef AliStorageAdministratorPanelListEvents_H
2 #define AliStorageAdministratorPanelListEvents_H
3
4 #include "AliStorageTypes.h"
5 #include "AliStorageEventManager.h"
6
7 #include <TGLabel.h>
8 #include <TGNumberEntry.h>
9 #include <TGDoubleSlider.h>
10 #include <TGSlider.h>
11 #include <TGListBox.h>
12 #include <TQObject.h>
13
14 class AliStorageAdministratorPanelListEvents : public TGMainFrame
15 {
16 public:
17         static AliStorageAdministratorPanelListEvents* GetInstance();
18     AliESDEvent* GetSelectedEvent(){return fCurrentEvent;}
19         void onExit();
20     void SelectedEvent(); //*SIGNAL*
21     void SetOfflineMode(Bool_t);
22
23     void RunSliderPositionChanged();
24     void EventSliderPositionChanged();
25     void MultiplicitySliderPositionChanged();
26     void RunChanged();
27     void EventChanged();
28     void MultiplicityChanged();
29
30 private:
31         AliStorageAdministratorPanelListEvents();
32         virtual ~AliStorageAdministratorPanelListEvents();
33         
34         static AliStorageAdministratorPanelListEvents *fInstance;
35         
36     
37     
38         //gui components and methods
39         TGLabel *fStatusLabel;
40         TGNumberEntry *fRunMinEntry;
41         TGNumberEntry *fRunMaxEntry;
42         TGNumberEntry *fEventMinEntry;
43         TGNumberEntry *fEventMaxEntry;
44         TGNumberEntry *fMultiplicityMinEntry;
45         TGNumberEntry *fMultiplicityMaxEntry;
46
47         TGDoubleHSlider *fMultiplicitySlider;
48         TGDoubleHSlider *fRunNumberSlider;
49         TGDoubleHSlider *fEventSlider;
50
51
52         TGCheckButton *fPPcheckbox;
53         TGCheckButton *fPbPbcheckbox;
54         TGCheckButton *fTemporaryCheckbox;
55         TGCheckButton *fPermanentCheckbox;
56         
57         TGTextButton *fCloseButton;
58         TGTextButton *fGetListButton;
59         TGTextButton *fMarkButton;
60         TGTextButton *fLoadButton;
61
62         TGListBox *fListBox;
63         
64         void InitWindow();
65         void onCloseButton();
66         void onGetListButton();
67         void onMarkButton();
68     void onLoadButton();
69
70         std::vector<serverListStruct> fEventsListVector;
71
72         virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t);
73         void CloseWindow();
74
75         storageSockets fServerSocket;
76         AliStorageEventManager *fEventManager;
77     
78     AliESDEvent *fCurrentEvent;
79         
80         AliStorageAdministratorPanelListEvents(const AliStorageAdministratorPanelListEvents&);
81         AliStorageAdministratorPanelListEvents& operator=(const AliStorageAdministratorPanelListEvents&);
82         
83         ClassDef(AliStorageAdministratorPanelListEvents,0);
84 };
85
86 #endif