Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TLineEditor.h
Go to the documentation of this file.
1 // @(#)root/ged:$Id$
2 // Author: Ilka Antcheva 24/04/06
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2006, 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_TLineEditor
13 #define ROOT_TLineEditor
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TLineEditor //
18 // //
19 // Implements GUI for editing line attributes, start/end points. // //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #include "TGedFrame.h"
24 
25 class TGNumberEntry;
26 class TGCheckButton;
27 class TLine;
28 
29 class TLineEditor : public TGedFrame {
30 
31 protected:
32  TLine *fLine; //line object
33  TGNumberEntry *fStartPointX; //start point x coordinate
34  TGNumberEntry *fStartPointY; //start point y coordinate
35  TGNumberEntry *fEndPointX; //end point x coordinate
36  TGNumberEntry *fEndPointY; //end point y coordinate
37  TGCheckButton *fVertical; //set the line vertical
38  TGCheckButton *fHorizontal; //set the line horizontal
39 
40  virtual void ConnectSignals2Slots();
41 
42 public:
43  TLineEditor(const TGWindow *p = 0,
44  Int_t width = 140, Int_t height = 30,
45  UInt_t options = kChildFrame,
46  Pixel_t back = GetDefaultFrameBackground());
47  virtual ~TLineEditor();
48 
49  virtual void SetModel(TObject* obj);
50  virtual void DoStartPoint();
51  virtual void DoEndPoint();
52  virtual void DoLineVertical();
53  virtual void DoLineHorizontal();
54 
55  ClassDef(TLineEditor,0) // GUI for editing Line attributes
56 };
57 
58 #endif