Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 
25 class TGNumberEntry;
26 class TGCheckButton;
27 class TCurlyLine;
28 
29 class TCurlyLineEditor : public TGedFrame {
30 
31 protected:
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
37  TGNumberEntry *fAmplitudeEntry; // ampl entry
38  TGNumberEntry *fWaveLengthEntry; // wavelength entry
39  TGCheckButton *fIsWavy; // toggle wavy / curly
40  TGCompositeFrame *fStartXFrame;
41 
42  virtual void ConnectSignals2Slots();
43 
44 public:
45  TCurlyLineEditor(const TGWindow *p = 0 ,
46  Int_t width = 140, Int_t height = 30,
47  UInt_t options = kChildFrame,
48  Pixel_t back = GetDefaultFrameBackground());
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