#ifndef ROOT_TGeoConeEditor
#define ROOT_TGeoConeEditor
#ifndef ROOT_TGButton
#include "TGWidget.h"
#endif
#ifndef ROOT_TGeoGedFrame
#include "TGeoGedFrame.h"
#endif
class TGeoCone;
class TGeoConeSeg;
class TGeoTabManager;
class TGTextEntry;
class TGNumberEntry;
class TGTab;
class TGComboBox;
class TGTextButton;
class TGCheckButton;
class TString;
class TGeoConeEditor : public TGeoGedFrame {
protected:
Double_t fRmini1;
Double_t fRmaxi1;
Double_t fRmini2;
Double_t fRmaxi2;
Double_t fDzi;
TString fNamei;
TGeoCone *fShape;
Bool_t fIsModified;
Bool_t fIsShapeEditable;
TGTextEntry *fShapeName;
TGNumberEntry *fERmin1;
TGNumberEntry *fERmin2;
TGNumberEntry *fERmax1;
TGNumberEntry *fERmax2;
TGNumberEntry *fEDz;
TGTextButton *fApply;
TGTextButton *fUndo;
TGCompositeFrame *fBFrame;
TGCheckButton *fDelayed;
TGCompositeFrame *fDFrame;
virtual void ConnectSignals2Slots();
Bool_t IsDelayed() const;
public:
TGeoConeEditor(const TGWindow *p = 0,
Int_t width = 140, Int_t height = 30,
UInt_t options = kChildFrame,
Pixel_t back = GetDefaultFrameBackground());
virtual ~TGeoConeEditor();
virtual void SetModel(TObject *obj);
void DoRmin1();
void DoRmin2();
void DoRmax1();
void DoRmax2();
void DoDz();
void DoModified();
void DoName();
virtual void DoApply();
virtual void DoUndo();
ClassDef(TGeoConeEditor,0)
};
class TGDoubleVSlider;
class TGeoConeSegEditor : public TGeoConeEditor {
protected:
Bool_t fLock;
Double_t fPmini;
Double_t fPmaxi;
TGDoubleVSlider *fSPhi;
TGNumberEntry *fEPhi1;
TGNumberEntry *fEPhi2;
virtual void ConnectSignals2Slots();
public:
TGeoConeSegEditor(const TGWindow *p = 0,
Int_t width = 140, Int_t height = 30,
UInt_t options = kChildFrame,
Pixel_t back = GetDefaultFrameBackground());
virtual ~TGeoConeSegEditor();
virtual void SetModel(TObject *obj);
void DoPhi();
void DoPhi1();
void DoPhi2();
virtual void DoApply();
virtual void DoUndo();
ClassDef(TGeoConeSegEditor,0)
};
#endif