]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ANALYSIS/Aliengui/AliTagFrame.h
Minor fix related to output directory.
[u/mrichter/AliRoot.git] / ANALYSIS / Aliengui / AliTagFrame.h
1 #ifndef ALITAGFRAME_H
2 #define ALITAGFRAME_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 AliTagFrame
10 //   AliTagFrame class that describes the event tag frame of the GUI
11 //
12 //    Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
13 //-------------------------------------------------------------------------
14
15
16
17 //////////////////////////////////////////////////////////////////////////
18 //                                                                      //
19 //                           AliTagFrame                                //
20 //                                                                      //
21 //                      Event tag tab of the GUI.                       //
22 //                                                                      //
23 //////////////////////////////////////////////////////////////////////////
24
25
26 #include <TGFrame.h>
27
28 class TGCanvas;
29 class TGVerticalFrame;
30 class TGButton;
31 class TGNumberEntryField;
32
33 enum ETagRangeType {
34    kRangeMin,
35    kRangeMax,
36    kRangeMinMax
37 };
38
39 //___________________________________________________________________________
40 class AliTagFrame : public TGTransientFrame {
41 public:
42   AliTagFrame(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h, UInt_t options, const char* text, Int_t tagId, ETagRangeType range);
43   ~AliTagFrame();
44
45   Int_t GetRangeMin() const {return fMin;}
46   Int_t GetRangeMax() const {return fMax;}
47
48   void  OnClicked();
49    
50 //___________________________________________________________________________
51 private:
52   AliTagFrame(const AliTagFrame&); // copy ctor
53   AliTagFrame& operator= (const AliTagFrame&); // assignment op
54
55   // methods to build the GUI
56    void  CreateTagName(const char* name);
57    void  CreateTagRange(TGVerticalFrame* frame, TGNumberEntryField*& entry, const char *name);
58    void  CreateTagButton();
59
60    void (AliTagFrame::*fTagCutMethods [3]) (void); //tag fields
61    
62    Int_t              fMin;   // min range
63    Int_t              fMax;   // max range
64    ETagRangeType      fRange; // range type
65
66    TGNumberEntryField *fEntry1, *fEntry2; //range entry fields
67
68    TGButton           *fButton; //button
69    TGVerticalFrame    *fVFrame1, *fVFrame2; //vertical frames
70
71    ClassDef(AliTagFrame, 0) // Tag Frame
72 };
73
74 #endif