Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TCurlyArcEditor.h
Go to the documentation of this file.
1 // @(#)root/ged:$Id$
2 // Author: Ilka Antcheva, Otto Schaile 15/12/04
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TCurlyArcEditor
13 #define ROOT_TCurlyArcEditor
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TCurlyArcEditor //
18 // //
19 // Implements GUI for editing CurlyArc attributes: radius, phi1, phi2. // //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #include "TGedFrame.h"
24 
25 class TGNumberEntry;
26 class TCurlyArc;
27 
28 class TCurlyArcEditor : public TGedFrame {
29 
30 protected:
31  TCurlyArc *fCurlyArc; // CurlyArc object
32  TGNumberEntry *fRadiusEntry; // radius entry
33  TGNumberEntry *fPhiminEntry; // Phimin entry
34  TGNumberEntry *fPhimaxEntry; // Phimax entry
35  TGNumberEntry *fCenterXEntry; // center x entry
36  TGNumberEntry *fCenterYEntry; // center y entry
37 
38  virtual void ConnectSignals2Slots();
39 
40 public:
41  TCurlyArcEditor(const TGWindow *p = 0,
42  Int_t width = 140, Int_t height = 30,
43  UInt_t options = kChildFrame,
44  Pixel_t back = GetDefaultFrameBackground());
45  virtual ~TCurlyArcEditor();
46 
47  virtual void SetModel(TObject* obj);
48  virtual void DoRadius();
49  virtual void DoPhimin();
50  virtual void DoPhimax();
51  virtual void DoCenterXY();
52 
53  ClassDef(TCurlyArcEditor,0) // GUI for editing arrow attributes
54 };
55 
56 #endif