]>
Commit | Line | Data |
---|---|---|
5af6242d | 1 | #ifndef ALIANALYSISGUI_H |
2 | #define ALIANALYSISGUI_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | //------------------------------------------------------------------------- | |
9 | // Class AliAnalysisGUIFrame | |
10 | // AliAnalysisGUI class that describes the overall analysis GUI | |
11 | // | |
12 | // Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch | |
13 | //------------------------------------------------------------------------- | |
14 | ||
15 | ||
16 | ||
17 | ////////////////////////////////////////////////////////////////////////// | |
18 | // // | |
19 | // AliAnalysisGUI // | |
20 | // // | |
21 | // Implementation fo the analysis GUI. // | |
22 | // // | |
23 | ////////////////////////////////////////////////////////////////////////// | |
24 | ||
25 | #include <TGDockableFrame.h> | |
26 | #include <TGrid.h> | |
27 | ||
28 | class TGToolBar; | |
29 | class TGTab; | |
30 | class TGCanvas; | |
31 | class TGStatusBar; | |
32 | class TGPicture; | |
33 | class TGIcon; | |
34 | class TGListTreeItem; | |
35 | class TGPopupMenu; | |
36 | class TGMenuBar; | |
37 | class TGHorizontal3DLine; | |
38 | ||
39 | //GUI | |
40 | class AliFileListFrame; | |
41 | class AliLoginFrame; | |
42 | class AliAlienBrowser; | |
43 | class AliTagFrame; | |
44 | class AliPackageFrame; | |
45 | ||
46 | #include "AliTagAnalysisFrame.h" | |
47 | #include "AliSelectorFrame.h" | |
48 | ||
49 | enum ECommandIdentifiers { | |
50 | kMFILELOGIN, | |
51 | kMFILEOPEN, | |
52 | kMFILESAVEAS, | |
53 | kMFILETAG, | |
54 | kMFILEEXIT | |
55 | }; | |
56 | ||
57 | //___________________________________________________________________________ | |
58 | class AliAnalysisGUI : public TGMainFrame { | |
59 | ||
60 | public: | |
61 | AliAnalysisGUI(const TGWindow *p, UInt_t w, UInt_t h); | |
62 | ~AliAnalysisGUI(); | |
63 | ||
64 | //___________________________________________________________________________ | |
65 | void CloseWindow(); | |
66 | Bool_t LogIn(const char * server, const char* username=""); | |
67 | Bool_t IsConnected() const {return fIsConnected;} | |
68 | ||
69 | // slot | |
70 | void HandleMenu(Int_t id); | |
71 | void HandleToolBar(Int_t id); | |
72 | void OnDoubleClick(TGListTreeItem* item, Int_t btn); | |
73 | ||
74 | //___________________________________________________________________________ | |
75 | private: | |
76 | AliAnalysisGUI(const AliAnalysisGUI&); | |
77 | AliAnalysisGUI& operator= (const AliAnalysisGUI&); | |
78 | ||
79 | // private methods | |
80 | void AddMenuBar(); | |
81 | void AddToolBar(); | |
82 | void AddStatusBar(); | |
83 | void ChangeRightLogo(const char *name); | |
84 | ||
85 | TGHorizontalFrame *fHFrame1; //horizontal frame | |
86 | TGVerticalFrame *fVFrame1, *fVFrame2; //verticla frames | |
87 | TGDockableFrame *fMenuDock; //main menu | |
88 | TGPopupMenu *fMenuFile; //main popup menu | |
89 | TGMenuBar *fMenuBar; //menu bar | |
90 | TGToolBar *fToolBar; //the button tool bar | |
91 | TGTab *fTab; //tab objects | |
92 | TGLayoutHints *fMenuBarLayout, *fMenuBarItemLayout; //layout | |
93 | TGHorizontal3DLine *fH3DLine; //3d line | |
94 | TGCanvas *fCanvas2; //canvas | |
95 | TGStatusBar *fStatusBar; //status bar | |
96 | ||
97 | AliAlienBrowser *fAliEnBrowser; //the catalog browser | |
98 | AliFileListFrame *fFileListFrame; //the file list tab | |
99 | AliLoginFrame *fLogInFrame; //the login frame | |
100 | AliTagFrame *fTagFrame; //the tag frame | |
101 | AliTagAnalysisFrame *fTagAnalysisFrame; //the event tag tab | |
102 | AliPackageFrame *fPackageFrame; //the package tab | |
103 | AliSelectorFrame *fSelectorFrame; //the selector tab | |
104 | ||
105 | const TGPicture *fIcon; //picture | |
106 | TGPicture *fRightIconPicture; //picture | |
107 | TGIcon *fRightIcon; //icon | |
108 | Bool_t fIsConnected; //alien connected | |
109 | TGrid *fAlien; //api pointer | |
110 | ||
111 | ClassDef(AliAnalysisGUI, 0); // AliAnalysisGUI | |
112 | }; | |
113 | ||
114 | #endif |