AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONPainterRegistry.h
Go to the documentation of this file.
1 #ifndef ALIMUONPAINTERREGISTRY_H
2 #define ALIMUONPAINTERREGISTRY_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6 
7 // $Id$
8 
13 // Author Laurent Aphecetche, Subatech
14 
15 #ifndef ROOT_TObject
16 # include "TObject.h"
17 #endif
18 #ifndef ROOT_TQObject
19 # include <TQObject.h>
20 #endif
21 
22 class TGPopupMenu;
23 class TObjArray;
25 class TGMenuBar;
26 
27 class AliMUONPainterRegistry : public TObject, public TQObject
28 {
29 public:
30  virtual ~AliMUONPainterRegistry();
31 
32  Int_t FindIndexOf(AliMUONPainterMatrix* group) const;
33 
34  void HistoryMenuActivated(Int_t i);
35 
37 
38  Int_t NumberOfPainterMatrices() const;
39 
40  AliMUONPainterMatrix* PainterMatrix(Int_t i) const;
41 
42  AliMUONPainterMatrix* PainterMatrix(const char* groupName) const;
43 
45 
46  void PainterMatrixWasRegistered(const AliMUONPainterMatrix* group); // *SIGNAL*
47 
48  void PainterMatrixWasUnregistered(const AliMUONPainterMatrix* group); // *SIGNAL*
49 
50  void PainterMatrixWantToShow(const AliMUONPainterMatrix* group); // *SIGNAL*
51 
52  void Print(Option_t* opt) const;
53 
54  Int_t Register(AliMUONPainterMatrix* group);
55 
57  void SetMenuBar(TGMenuBar* bar) { fMenuBar = bar; }
58 
59  Bool_t Unregister(AliMUONPainterMatrix* group);
60 
61 private:
68 
69 private:
72  TGPopupMenu* fHistoryMenu;
73  TGMenuBar* fMenuBar;
75 
76  ClassDef(AliMUONPainterRegistry,5) // Registry for AliMUONVPainter related stuff
77 };
78 
79 #endif
#define TObjArray
void Print(Option_t *opt) const
TObjArray * fPainterMatrices
painter matrices
AliMUONPainterRegistry()
Not implemented.
Int_t Register(AliMUONPainterMatrix *group)
void PainterMatrixWasUnregistered(const AliMUONPainterMatrix *group)
AliMUONPainterRegistry & operator=(const AliMUONPainterRegistry &)
Not implemented.
static AliMUONPainterRegistry * Instance()
static AliMUONPainterRegistry * fgInstance
unique instance
void PainterMatrixWantToShow(const AliMUONPainterMatrix *group)
Int_t FindIndexOf(AliMUONPainterMatrix *group) const
void SetMenuBar(TGMenuBar *bar)
Set the menu bar where to put the history menu.
Int_t fHistoryCounter
index to get back history menu items
TGMenuBar * fMenuBar
Menu bar where to put the history menu.
Registry for a bunch of AliMUONVPainter related stuff.
TGPopupMenu * fHistoryMenu
history menu
void PainterMatrixWasRegistered(const AliMUONPainterMatrix *group)
void AddToHistory(AliMUONPainterMatrix *group)
AliMUONPainterMatrix * PainterMatrix(Int_t i) const
A matrix of AliMUONVPainter.
Bool_t Unregister(AliMUONPainterMatrix *group)