Logo ROOT  
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#include "TGedFrame.h"
24
25class TGNumberEntry;
26class TGCheckButton;
27class TCurlyLine;
28
30
31protected:
32 TCurlyLine *fCurlyLine; // CurlyLineobject
33 TGNumberEntry *fStartXEntry; // start x entry
34 TGNumberEntry *fEndXEntry; // end x entry
35 TGNumberEntry *fStartYEntry; // start y entry
36 TGNumberEntry *fEndYEntry; // end y entry
38 TGNumberEntry *fWaveLengthEntry; // wavelength entry
39 TGCheckButton *fIsWavy; // toggle wavy / curly
41
42 virtual void ConnectSignals2Slots();
43
44public:
45 TCurlyLineEditor(const TGWindow *p = 0 ,
46 Int_t width = 140, Int_t height = 30,
47 UInt_t options = kChildFrame,
49 virtual ~TCurlyLineEditor();
50
51 virtual void SetModel(TObject* obj);
52 virtual void ActivateBaseClassEditors(TClass* cl);
53 virtual void DoStartXY();
54 virtual void DoEndXY();
55 virtual void DoAmplitude();
56 virtual void DoWaveLength();
57 virtual void DoWavy();
58
59 ClassDef(TCurlyLineEditor,0) // GUI for editing arrow attributes
60};
61
62#endif
ULong_t Pixel_t
Definition: GuiTypes.h:39
int Int_t
Definition: RtypesCore.h:41
unsigned int UInt_t
Definition: RtypesCore.h:42
#define ClassDef(name, id)
Definition: Rtypes.h:326
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
@ kChildFrame
Definition: TGFrame.h:57
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition: TClass.h:75
TGCompositeFrame * fStartXFrame
TGNumberEntry * fAmplitudeEntry
virtual void DoWavy()
Slot connected to the wavy / curly setting.
TGNumberEntry * fWaveLengthEntry
TGNumberEntry * fStartXEntry
virtual void DoAmplitude()
Slot connected to the amplitude setting.
virtual void DoWaveLength()
Slot connected to the wavelength setting.
TGNumberEntry * fEndYEntry
virtual void ActivateBaseClassEditors(TClass *cl)
Exclude TAttFillEditor.
virtual void DoStartXY()
Slot connected to the CurlyLine StartPoint.
virtual ~TCurlyLineEditor()
Destructor of CurlyLine editor.
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
TGNumberEntry * fEndXEntry
virtual void ConnectSignals2Slots()
Connect signals to slots.
TCurlyLine * fCurlyLine
virtual void SetModel(TObject *obj)
Pick up the used curly line attributes.
virtual void DoEndXY()
Slot connected to the CurlyLine End.
TGNumberEntry * fStartYEntry
Implements curly or wavy polylines used to draw Feynman diagrams.
Definition: TCurlyLine.h:21
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
Mother of all ROOT objects.
Definition: TObject.h:37