Logo ROOT   6.12/07
Reference Guide
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,
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
TGNumberEntry * fPhimaxEntry
int Int_t
Definition: RtypesCore.h:41
TGNumberEntry * fRadiusEntry
TGNumberEntry * fCenterYEntry
virtual void DoPhimin()
Slot connected to the phimin setting.
virtual void SetModel(TObject *obj)
Pick up the used curly arc attributes.
#define ClassDef(name, id)
Definition: Rtypes.h:320
ULong_t Pixel_t
Definition: GuiTypes.h:39
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
TGNumberEntry * fPhiminEntry
virtual ~TCurlyArcEditor()
Destructor of CurlyArc editor.
virtual void DoPhimax()
Slot connected to the phimax setting.
virtual void DoRadius()
Slot connected to the radius setting.
virtual void ConnectSignals2Slots()
Connect signals to slots.
unsigned int UInt_t
Definition: RtypesCore.h:42
TCurlyArcEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of CurlyArc GUI.
TGNumberEntry * fCenterXEntry
TCurlyArc * fCurlyArc
Mother of all ROOT objects.
Definition: TObject.h:37
Implements curly or wavy arcs used to draw Feynman diagrams.
Definition: TCurlyArc.h:20
virtual void DoCenterXY()
Slot connected to set center .