ROOT  6.06/09
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 #ifndef ROOT_TGedFrame
24 #include "TGedFrame.h"
25 #endif
26 
27 class TGNumberEntry;
28 class TCurlyArc;
29 
30 class TCurlyArcEditor : public TGedFrame {
31 
32 protected:
33  TCurlyArc *fCurlyArc; // CurlyArc object
34  TGNumberEntry *fRadiusEntry; // radius entry
35  TGNumberEntry *fPhiminEntry; // Phimin entry
36  TGNumberEntry *fPhimaxEntry; // Phimax entry
37  TGNumberEntry *fCenterXEntry; // center x entry
38  TGNumberEntry *fCenterYEntry; // center y entry
39 
40  virtual void ConnectSignals2Slots();
41 
42 public:
43  TCurlyArcEditor(const TGWindow *p = 0,
44  Int_t width = 140, Int_t height = 30,
45  UInt_t options = kChildFrame,
47  virtual ~TCurlyArcEditor();
48 
49  virtual void SetModel(TObject* obj);
50  virtual void DoRadius();
51  virtual void DoPhimin();
52  virtual void DoPhimax();
53  virtual void DoCenterXY();
54 
55  ClassDef(TCurlyArcEditor,0) // GUI for editing arrow attributes
56 };
57 
58 #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.
ULong_t Pixel_t
Definition: GuiTypes.h:41
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.
ClassDef(TGedFrame, 0)
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:58
TObject * obj
Implements curly or wavy arcs used to draw Feynman diagrams.
Definition: TCurlyArc.h:25
virtual void DoCenterXY()
Slot connected to set center .