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