524e5611ff5c37fd704ba2a4813f696cf3fa0854
[u/mrichter/AliRoot.git] / MONITOR / MONITORzmq / 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 private:
23         AliStorageAdministratorPanelListEvents();
24         virtual ~AliStorageAdministratorPanelListEvents();
25         
26         static AliStorageAdministratorPanelListEvents *fInstance;
27         
28     
29     
30         //gui components and methods
31         TGLabel *fStatusLabel;
32         TGNumberEntry *fRunMinEntry;
33         TGNumberEntry *fRunMaxEntry;
34         TGNumberEntry *fEventMinEntry;
35         TGNumberEntry *fEventMaxEntry;
36         TGNumberEntry *fMultiplicityMinEntry;
37         TGNumberEntry *fMultiplicityMaxEntry;
38
39         TGCheckButton *fPPcheckbox;
40         TGCheckButton *fPbPbcheckbox;
41         TGCheckButton *fTemporaryCheckbox;
42         TGCheckButton *fPermanentCheckbox;
43         
44         TGTextButton *fCloseButton;
45         TGTextButton *fGetListButton;
46         TGTextButton *fMarkButton;
47         TGTextButton *fLoadButton;
48
49         TGListBox *fListBox;
50         
51         void InitWindow();
52         void onCloseButton();
53         void onGetListButton();
54         void onMarkButton();
55         void onLoadButton();
56
57         std::vector<serverListStruct> fEventsListVector;
58
59         virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t);
60         void CloseWindow();
61
62         storageSockets fServerSocket;
63         AliStorageEventManager *fEventManager;
64     
65         AliESDEvent *fCurrentEvent;
66         
67         AliStorageAdministratorPanelListEvents(const AliStorageAdministratorPanelListEvents&);
68         AliStorageAdministratorPanelListEvents& operator=(const AliStorageAdministratorPanelListEvents&);
69         
70         ClassDef(AliStorageAdministratorPanelListEvents,0);
71 };
72
73 #endif