// @(#):$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_TGeoTrd1Editor
#define ROOT_TGeoTrd1Editor

//////////////////////////////////////////////////////////////////////////
//                                                                      //
//  TGeoTrd1Editor                                                      //
//                                                                      //
//  Editor for a TGeoTrd1.                                              //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

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

class TGeoTrd1;
class TGeoTabManager;
class TGTextEntry;
class TGNumberEntry;
class TGTab;
class TGComboBox;
class TGTextButton;
class TGCheckButton;
class TString;

class TGeoTrd1Editor : public TGeoGedFrame {

protected:

   Double_t             fDxi1;              // Initial  dx1
   Double_t             fDxi2;              // Initial  dx2
   Double_t             fDyi;               // Initial  dy
   Double_t             fDzi;               // Initial  dz
   TString              fNamei;             // Initial name
   TGeoTrd1            *fShape;             // Shape object
   Bool_t               fIsModified;        // Flag that volume was modified
   Bool_t               fIsShapeEditable;   // Flag that the shape can be changed

   TGTextEntry         *fShapeName;         // Shape name text entry
   TGNumberEntry       *fEDx1;              // Number entry for  DX1
   TGNumberEntry       *fEDx2;              // Number entry for  DX2 
   TGNumberEntry       *fEDy;               // Number entry for  DY
   TGNumberEntry       *fEDz;               // Number entry for  DZ
   TGTextButton        *fApply;             // Apply-Button to accept changes
   TGTextButton        *fUndo;              // Undo-Button
   TGCheckButton       *fDelayed;           // Check button for delayed draw

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

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

   void           DoDx1();
   void           DoDx2();
   void           DoDy();
   void           DoDz();
   void           DoModified();
   void           DoName();
   void           DoApply();
   void           DoUndo();
   
   ClassDef(TGeoTrd1Editor,0)   // TGeoTrd1 editor
};   
  
#endif                    
 TGeoTrd1Editor.h:1
 TGeoTrd1Editor.h:2
 TGeoTrd1Editor.h:3
 TGeoTrd1Editor.h:4
 TGeoTrd1Editor.h:5
 TGeoTrd1Editor.h:6
 TGeoTrd1Editor.h:7
 TGeoTrd1Editor.h:8
 TGeoTrd1Editor.h:9
 TGeoTrd1Editor.h:10
 TGeoTrd1Editor.h:11
 TGeoTrd1Editor.h:12
 TGeoTrd1Editor.h:13
 TGeoTrd1Editor.h:14
 TGeoTrd1Editor.h:15
 TGeoTrd1Editor.h:16
 TGeoTrd1Editor.h:17
 TGeoTrd1Editor.h:18
 TGeoTrd1Editor.h:19
 TGeoTrd1Editor.h:20
 TGeoTrd1Editor.h:21
 TGeoTrd1Editor.h:22
 TGeoTrd1Editor.h:23
 TGeoTrd1Editor.h:24
 TGeoTrd1Editor.h:25
 TGeoTrd1Editor.h:26
 TGeoTrd1Editor.h:27
 TGeoTrd1Editor.h:28
 TGeoTrd1Editor.h:29
 TGeoTrd1Editor.h:30
 TGeoTrd1Editor.h:31
 TGeoTrd1Editor.h:32
 TGeoTrd1Editor.h:33
 TGeoTrd1Editor.h:34
 TGeoTrd1Editor.h:35
 TGeoTrd1Editor.h:36
 TGeoTrd1Editor.h:37
 TGeoTrd1Editor.h:38
 TGeoTrd1Editor.h:39
 TGeoTrd1Editor.h:40
 TGeoTrd1Editor.h:41
 TGeoTrd1Editor.h:42
 TGeoTrd1Editor.h:43
 TGeoTrd1Editor.h:44
 TGeoTrd1Editor.h:45
 TGeoTrd1Editor.h:46
 TGeoTrd1Editor.h:47
 TGeoTrd1Editor.h:48
 TGeoTrd1Editor.h:49
 TGeoTrd1Editor.h:50
 TGeoTrd1Editor.h:51
 TGeoTrd1Editor.h:52
 TGeoTrd1Editor.h:53
 TGeoTrd1Editor.h:54
 TGeoTrd1Editor.h:55
 TGeoTrd1Editor.h:56
 TGeoTrd1Editor.h:57
 TGeoTrd1Editor.h:58
 TGeoTrd1Editor.h:59
 TGeoTrd1Editor.h:60
 TGeoTrd1Editor.h:61
 TGeoTrd1Editor.h:62
 TGeoTrd1Editor.h:63
 TGeoTrd1Editor.h:64
 TGeoTrd1Editor.h:65
 TGeoTrd1Editor.h:66
 TGeoTrd1Editor.h:67
 TGeoTrd1Editor.h:68
 TGeoTrd1Editor.h:69
 TGeoTrd1Editor.h:70
 TGeoTrd1Editor.h:71
 TGeoTrd1Editor.h:72
 TGeoTrd1Editor.h:73
 TGeoTrd1Editor.h:74
 TGeoTrd1Editor.h:75
 TGeoTrd1Editor.h:76
 TGeoTrd1Editor.h:77
 TGeoTrd1Editor.h:78
 TGeoTrd1Editor.h:79
 TGeoTrd1Editor.h:80
 TGeoTrd1Editor.h:81
 TGeoTrd1Editor.h:82
 TGeoTrd1Editor.h:83
 TGeoTrd1Editor.h:84