]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ANALYSIS/Aliengui/AliFileListFrame.h
a9f61364f6e59ef484782a293a641230060cd1f0
[u/mrichter/AliRoot.git] / ANALYSIS / Aliengui / AliFileListFrame.h
1 #ifndef ALIFILELISTFRAME_H
2 #define ALIFILELISTFRAME_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 AliFileListFrame
10 //   AliFileListFrame class that describes the file list frame of the GUI
11 //
12 //    Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
13 //-------------------------------------------------------------------------
14
15
16
17 //////////////////////////////////////////////////////////////////////////
18 //                                                                      //
19 //                        AliFileListFrame                              //
20 //                                                                      //
21 //                      File list frame of the GUI.                     //
22 //                                                                      //
23 //////////////////////////////////////////////////////////////////////////
24
25 #include <TGFrame.h>
26 class TGCanvas;
27
28 class TGHorizontalFrame;
29 class TGVerticalFrame;
30 class TGHorizontalFrame;
31 class TGLabel;
32 class TGTextEntry;
33 class TGNumberEntry;
34 class TGTextEntry;
35 class TGButton;
36 class TGCompositeFrame;
37 class TGCanvas;
38 class TGTableLayout;
39 class TGLVEntry;
40   
41 class TObjArray;
42
43 //___________________________________________________________________________
44 class AliFileListFrame : public TGCompositeFrame {
45  public:
46   AliFileListFrame(const TGWindow *main, UInt_t w, UInt_t h);
47   ~AliFileListFrame();
48   
49   void        SetQueryPath(const char* path);
50   const char* GetQueryPath();
51   const char* GetQueryPattern();
52   
53   // slots
54   void OnDoubleClick(TGLVEntry* entry, Int_t btn);
55   void RunQuery();
56   
57   //___________________________________________________________________________
58  private:
59   AliFileListFrame(const AliFileListFrame&); // cp ctor
60   AliFileListFrame& operator= (AliFileListFrame&); // op= 
61
62   // private methods
63   TGHorizontalFrame   *fHFrame1; //horiz. frame 
64   TGVerticalFrame     *fVFrame1, *fVFrame2; //vertical frames
65   
66   // VFrame1's widgets
67   TGHorizontalFrame   *fHFrame2;  //vertical frame
68   TGLabel             *fLabel1, *fLabel2, *fLabel3; //labels
69   TGTextEntry         *fTextQueryPath; //text box
70   TGNumberEntry       *fNumMaxResults; //results
71   TGTextEntry         *fTextQueryPattern; //query pattern
72   TGButton            *fButtonRun; //run button
73   TGCompositeFrame    *fContents; //frame
74   TGCanvas            *fCanvas; //canvas
75   TGTableLayout       *fTableLayout; //layout
76   
77   TObjArray           *fTags; // File "detail" mode tags 
78   
79   void DisplayObject(const TString& fname,const TString& name) const;
80   void BuildQueryPathFrame();
81
82   AliFileListFrame & operator=(const AliFileListFrame & ) {return *this;}
83
84   ClassDef(AliFileListFrame, 0) // AliFileListFrame  
85 };
86
87 #endif