]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TGeant4/TG4MaterialsFrames.h
Class for fixed point operations.
[u/mrichter/AliRoot.git] / TGeant4 / TG4MaterialsFrames.h
1 // $Id$
2 // Category: interfaces
3 //
4 // Author: D. Adamova
5 //
6 //======================================================
7 //
8 //------------TG4MaterialsFrames.h--------------------------------//
9 //---------Frames for the the display of materials properties---//
10 //
11 //=======================================================
12
13 #ifndef TG4_MATERIALSFRAMES_H
14 #define TG4_MATERIALSFRAMES_H
15
16 #include <TObject.h>
17 #include <TGFrame.h>
18
19 class TGLabel;
20 class TGTab;
21 class TGTextBuffer;
22 class TGTextEntry;
23 class TGComboBox;
24
25 class TG4MaterialsFrames : public TObject {
26
27 public:   
28
29     TG4MaterialsFrames(  TGTab* tab, TGMainFrame* ActionFrame);
30     virtual ~TG4MaterialsFrames();
31     
32     void DisplayMaterialCharacteristics( int qmat);
33     void SetMaterialsComboEntries() ;
34
35 protected:
36
37     TG4MaterialsFrames(const TG4MaterialsFrames& mf) ;
38     TG4MaterialsFrames& operator=(const TG4MaterialsFrames& mf) ;
39
40
41 private:
42     TGCompositeFrame*   fCapFrame; // the top frame for materials display
43     TGCompositeFrame*   fMatSubframe1; // frame for the combo box
44     TGCompositeFrame*   fMatSubframe2; // frame for the text entries
45     TGLayoutHints*      fMatFrameLayout; // layout hints for SubFrames
46
47
48
49     TGHorizontalFrame*  fHframe[8]; // horizontal frames for text entries
50     TGLabel*            fLabel[8];  // labels for text entries 
51     TGTextBuffer*       fMatTextBuff[8]; //text buffs for mat properties
52     TGTextEntry*        fMatTextEntry[8]; //text entries for mat properties
53     TGComboBox*         fMaterialsCombo; // materials  combo box
54     TGLabel*            fComboLabel; // label for the combo box
55  
56
57     void AddMaterialName( const char* name, Int_t index) const;
58
59     ClassDef(TG4MaterialsFrames,0) 
60          // class for the composition of the materials display frame   
61   };
62   
63 #endif
64     
65     
66      
67     
68     
69