1 #ifndef ALIMUONPAINTERMASTERFRAME_H
2 #define ALIMUONPAINTERMASTERFRAME_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONPainterMasterFrame
11 /// \brief The main window for the offline "a la mood" display
13 // Author Laurent Aphecetche, Subatech
22 class AliMUONAttPainter;
23 class AliMUONPainterMatrix;
24 class AliMUONPainterMatrixFrame;
25 class AliMUONAttPainterSelectorFrame;
26 class AliMUONVPainter;
33 class AliMUONPainterMasterFrame : public TGCompositeFrame
36 AliMUONPainterMasterFrame(const TGWindow* p, UInt_t w, UInt_t h);
37 virtual ~AliMUONPainterMasterFrame();
41 void ChangeTitle(const char* newTitle);
43 void Clicked(AliMUONVPainter* painter, Double_t* values);
45 void ShiftClicked(AliMUONVPainter* painter, Double_t* values);
49 void PainterMatrixWantToShow(AliMUONPainterMatrix* group);
53 void AttributesChanged(AliMUONAttPainter* newValues);
57 AliMUONPainterMasterFrame(const AliMUONPainterMasterFrame& rhs);
59 AliMUONPainterMasterFrame& operator=(const AliMUONPainterMasterFrame& rhs);
61 void AddPainterMatrix(AliMUONPainterMatrix* group);
62 void MakeTopPainterMatrix(UInt_t w, UInt_t h);
63 void SetNavigation(Int_t i);
64 void ShowPainterMatrix(AliMUONPainterMatrix* group);
65 void UpdateNavigation();
66 void UpdateAttributes(const AliMUONPainterMatrix& painterMatrix);
69 TGHorizontalFrame* fNavigationFrame; ///< top frame for navigation
70 AliMUONPainterMatrixFrame* fPainterMatrixFrame; ///< main frame with painters
72 TGButton* fBackButton; ///< navigation back
73 TGButton* fForwardButton; ///< navigation forward
74 TGLabel* fGroupTitle; ///< top title
76 TArrayI fNavigation; ///< navigation "history"
78 Int_t fCurrentNavigationPosition; ///< current position in navigation history
80 AliMUONAttPainterSelectorFrame* fAttPainterSelectorFrame; ///< view type selection frame
82 static const Int_t fgkBorderSize; ///< border sizes to use when placing frames
84 ClassDef(AliMUONPainterMasterFrame,0) // Main window of display