00001 // @(#):$Id: TGeoPgonEditor.h 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: M.Gheata 00003 /************************************************************************* 00004 * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. * 00005 * All rights reserved. * 00006 * * 00007 * For the licensing terms see $ROOTSYS/LICENSE. * 00008 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00009 *************************************************************************/ 00010 00011 #ifndef ROOT_TGeoPgonEditor 00012 #define ROOT_TGeoPgonEditor 00013 00014 ////////////////////////////////////////////////////////////////////////// 00015 // // 00016 // TGeoPgonEditor // 00017 // // 00018 // Editor for a TGeoPgon. // 00019 // // 00020 ////////////////////////////////////////////////////////////////////////// 00021 00022 #ifndef ROOT_TGButton 00023 #include "TGWidget.h" 00024 #endif 00025 #ifndef ROOT_TGeoPconEditor 00026 #include "TGeoPconEditor.h" 00027 #endif 00028 00029 class TGNumberEntry; 00030 class TGTab; 00031 00032 class TGeoPgonEditor : public TGeoPconEditor { 00033 00034 protected: 00035 Int_t fNedgesi; // Initial number of edges 00036 TGNumberEntry *fENedges; // Number entry for nsections 00037 00038 virtual void CreateEdges(); 00039 00040 public: 00041 TGeoPgonEditor(const TGWindow *p = 0, 00042 Int_t width = 140, Int_t height = 30, 00043 UInt_t options = kChildFrame, 00044 Pixel_t back = GetDefaultFrameBackground()); 00045 virtual ~TGeoPgonEditor(); 00046 virtual void SetModel(TObject *obj); 00047 00048 void DoNedges(); 00049 virtual void DoApply(); 00050 virtual void DoUndo(); 00051 00052 ClassDef(TGeoPgonEditor,0) // TGeoPgon editor 00053 }; 00054 #endif