// @(#):$Id$
// Author: M.Gheata 

/*************************************************************************
 * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TGeoMediumEditor
#define ROOT_TGeoMediumEditor

//////////////////////////////////////////////////////////////////////////
//                                                                      //
//  TGeoMediumEditor                                                    //
//                                                                      //
//  Editor for a TGeoMedium.                                            //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TGButton
#include "TGWidget.h"
#endif
#ifndef ROOT_TGeoGedFrame
#include "TGeoGedFrame.h"
#endif

class TGeoMedium;
class TGeoMaterial;
class TGeoTabManager;
class TGTextEntry;
class TGNumberEntry;
class TGTab;
class TGComboBox;
class TGTextButton;
class TGPictureButton;
class TGCheckButton;
class TGLabel;

class TGeoMediumEditor : public TGeoGedFrame {

protected:

   TGeoMedium          *fMedium;            // Medium object

   Bool_t               fIsEditable;        // Flag that the medium can be changed
   Bool_t               fIsModified;        // Modified flag
   TGTextEntry         *fMedName;           // Medium name text entry
   TGNumberEntry       *fMedId;             // Number entry for medium id
//   TGComboBox          *fMatList;           // Combo box for all materials
   TGeoMaterial        *fSelectedMaterial;  // Selected material
   TGLabel             *fLSelMaterial;      // Selected material label
   TGPictureButton     *fBSelMaterial;        // Button for selecting a material
   TGTextButton        *fEditMaterial;      // Check button for material editing
   TGCheckButton       *fMedSensitive;      // Check button for sensitivity
   TGComboBox          *fMagfldOption;      // Combo box with magnetic field options
   TGNumberEntry       *fMedFieldm;         // Number entry for fieldm
   TGNumberEntry       *fMedTmaxfd;         // Number entry for tmaxfd
   TGNumberEntry       *fMedStemax;         // Number entry for stemax
   TGNumberEntry       *fMedDeemax;         // Number entry for deemax
   TGNumberEntry       *fMedEpsil;          // Number entry for epsil
   TGNumberEntry       *fMedStmin;          // Number entry for stmin
   TGTextButton        *fApply;             // Apply-Button to accept changes
   TGTextButton        *fUndo;              // Undo-Button

   virtual void   ConnectSignals2Slots();   // Connect the signals to the slots

public:
   TGeoMediumEditor(const TGWindow *p = 0,
                   Int_t width = 140, Int_t height = 30,
                   UInt_t options = kChildFrame,
                   Pixel_t back = GetDefaultFrameBackground());
   virtual ~TGeoMediumEditor();
   virtual void   SetModel(TObject *obj);

   void           DoEditMaterial();
   void           DoSelectMaterial();
   void           DoMedName();
   void           DoMedId();
   void           DoToggleSensitive();
   void           DoMagfldSelect(Int_t ientry);
   void           DoFieldm();
   void           DoTmaxfd();
   void           DoStemax();
   void           DoDeemax();
   void           DoEpsil();
   void           DoStmin();
   void           DoApply();
   void           DoUndo();
   
   ClassDef(TGeoMediumEditor,0)   // TGeoMedium editor
};   
  
#endif                    
 TGeoMediumEditor.h:1
 TGeoMediumEditor.h:2
 TGeoMediumEditor.h:3
 TGeoMediumEditor.h:4
 TGeoMediumEditor.h:5
 TGeoMediumEditor.h:6
 TGeoMediumEditor.h:7
 TGeoMediumEditor.h:8
 TGeoMediumEditor.h:9
 TGeoMediumEditor.h:10
 TGeoMediumEditor.h:11
 TGeoMediumEditor.h:12
 TGeoMediumEditor.h:13
 TGeoMediumEditor.h:14
 TGeoMediumEditor.h:15
 TGeoMediumEditor.h:16
 TGeoMediumEditor.h:17
 TGeoMediumEditor.h:18
 TGeoMediumEditor.h:19
 TGeoMediumEditor.h:20
 TGeoMediumEditor.h:21
 TGeoMediumEditor.h:22
 TGeoMediumEditor.h:23
 TGeoMediumEditor.h:24
 TGeoMediumEditor.h:25
 TGeoMediumEditor.h:26
 TGeoMediumEditor.h:27
 TGeoMediumEditor.h:28
 TGeoMediumEditor.h:29
 TGeoMediumEditor.h:30
 TGeoMediumEditor.h:31
 TGeoMediumEditor.h:32
 TGeoMediumEditor.h:33
 TGeoMediumEditor.h:34
 TGeoMediumEditor.h:35
 TGeoMediumEditor.h:36
 TGeoMediumEditor.h:37
 TGeoMediumEditor.h:38
 TGeoMediumEditor.h:39
 TGeoMediumEditor.h:40
 TGeoMediumEditor.h:41
 TGeoMediumEditor.h:42
 TGeoMediumEditor.h:43
 TGeoMediumEditor.h:44
 TGeoMediumEditor.h:45
 TGeoMediumEditor.h:46
 TGeoMediumEditor.h:47
 TGeoMediumEditor.h:48
 TGeoMediumEditor.h:49
 TGeoMediumEditor.h:50
 TGeoMediumEditor.h:51
 TGeoMediumEditor.h:52
 TGeoMediumEditor.h:53
 TGeoMediumEditor.h:54
 TGeoMediumEditor.h:55
 TGeoMediumEditor.h:56
 TGeoMediumEditor.h:57
 TGeoMediumEditor.h:58
 TGeoMediumEditor.h:59
 TGeoMediumEditor.h:60
 TGeoMediumEditor.h:61
 TGeoMediumEditor.h:62
 TGeoMediumEditor.h:63
 TGeoMediumEditor.h:64
 TGeoMediumEditor.h:65
 TGeoMediumEditor.h:66
 TGeoMediumEditor.h:67
 TGeoMediumEditor.h:68
 TGeoMediumEditor.h:69
 TGeoMediumEditor.h:70
 TGeoMediumEditor.h:71
 TGeoMediumEditor.h:72
 TGeoMediumEditor.h:73
 TGeoMediumEditor.h:74
 TGeoMediumEditor.h:75
 TGeoMediumEditor.h:76
 TGeoMediumEditor.h:77
 TGeoMediumEditor.h:78
 TGeoMediumEditor.h:79
 TGeoMediumEditor.h:80
 TGeoMediumEditor.h:81
 TGeoMediumEditor.h:82
 TGeoMediumEditor.h:83
 TGeoMediumEditor.h:84
 TGeoMediumEditor.h:85
 TGeoMediumEditor.h:86
 TGeoMediumEditor.h:87
 TGeoMediumEditor.h:88
 TGeoMediumEditor.h:89
 TGeoMediumEditor.h:90
 TGeoMediumEditor.h:91
 TGeoMediumEditor.h:92
 TGeoMediumEditor.h:93
 TGeoMediumEditor.h:94
 TGeoMediumEditor.h:95
 TGeoMediumEditor.h:96