ROOT  6.06/09
Reference Guide
TCurlyLineEditor.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_TCurlyLineEditor
13 #define ROOT_TCurlyLineEditor
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TCurlyLineEditor //
18 // //
19 // Implements GUI for editing CurlyLine attributes: wavelength ampl. // //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #ifndef ROOT_TGedFrame
24 #include "TGedFrame.h"
25 #endif
26 
27 class TGNumberEntry;
28 class TGCheckButton;
29 class TCurlyLine;
30 
31 class TCurlyLineEditor : public TGedFrame {
32 
33 protected:
34  TCurlyLine *fCurlyLine; // CurlyLineobject
35  TGNumberEntry *fStartXEntry; // start x entry
36  TGNumberEntry *fEndXEntry; // end x entry
37  TGNumberEntry *fStartYEntry; // start y entry
38  TGNumberEntry *fEndYEntry; // end y entry
40  TGNumberEntry *fWaveLengthEntry; // wavelength entry
41  TGCheckButton *fIsWavy; // toggle wavy / curly
43 
44  virtual void ConnectSignals2Slots();
45 
46 public:
47  TCurlyLineEditor(const TGWindow *p = 0 ,
48  Int_t width = 140, Int_t height = 30,
49  UInt_t options = kChildFrame,
51  virtual ~TCurlyLineEditor();
52 
53  virtual void SetModel(TObject* obj);
54  virtual void ActivateBaseClassEditors(TClass* cl);
55  virtual void DoStartXY();
56  virtual void DoEndXY();
57  virtual void DoAmplitude();
58  virtual void DoWaveLength();
59  virtual void DoWavy();
60 
61  ClassDef(TCurlyLineEditor,0) // GUI for editing arrow attributes
62 };
63 
64 #endif
TCurlyLineEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of CurlyLine GUI.
TGCheckButton * fIsWavy
virtual ~TCurlyLineEditor()
Destructor of CurlyLine editor.
TGCompositeFrame * fStartXFrame
int Int_t
Definition: RtypesCore.h:41
virtual void DoWavy()
Slot connected to the wavy / curly setting.
ULong_t Pixel_t
Definition: GuiTypes.h:41
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
TGNumberEntry * fStartYEntry
Implements curly or wavy polylines used to draw Feynman diagrams.
Definition: TCurlyLine.h:32
ClassDef(TGedFrame, 0)
virtual void DoWaveLength()
Slot connected to the wavelength setting.
TGNumberEntry * fEndYEntry
virtual void DoStartXY()
Slot connected to the CurlyLine StartPoint.
virtual void SetModel(TObject *obj)
Pick up the used curly line attributes.
unsigned int UInt_t
Definition: RtypesCore.h:42
TCurlyLine * fCurlyLine
The ROOT global object gROOT contains a list of all defined classes.
Definition: TClass.h:81
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void DoAmplitude()
Slot connected to the amplitude setting.
TGNumberEntry * fStartXEntry
Mother of all ROOT objects.
Definition: TObject.h:58
TGNumberEntry * fWaveLengthEntry
TGNumberEntry * fEndXEntry
virtual void ActivateBaseClassEditors(TClass *cl)
Exclude TAttFillEditor.
TObject * obj
virtual void DoEndXY()
Slot connected to the CurlyLine End.
TGNumberEntry * fAmplitudeEntry