Logo ROOT   6.08/07
Reference Guide
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 #ifndef ROOT_TGedFrame
24 #include "TGedFrame.h"
25 #endif
26 
27 class TGNumberEntry;
28 class TGCheckButton;
29 class TLine;
30 
31 class TLineEditor : public TGedFrame {
32 
33 protected:
34  TLine *fLine; //line object
35  TGNumberEntry *fStartPointX; //start point x coordinate
36  TGNumberEntry *fStartPointY; //start point y coordinate
37  TGNumberEntry *fEndPointX; //end point x coordinate
38  TGNumberEntry *fEndPointY; //end point y coordinate
39  TGCheckButton *fVertical; //set the line vertical
40  TGCheckButton *fHorizontal; //set the line horizontal
41 
42  virtual void ConnectSignals2Slots();
43 
44 public:
45  TLineEditor(const TGWindow *p = 0,
46  Int_t width = 140, Int_t height = 30,
47  UInt_t options = kChildFrame,
49  virtual ~TLineEditor();
50 
51  virtual void SetModel(TObject* obj);
52  virtual void DoStartPoint();
53  virtual void DoEndPoint();
54  virtual void DoLineVertical();
55  virtual void DoLineHorizontal();
56 
57  ClassDef(TLineEditor,0) // GUI for editing Line attributes
58 };
59 
60 #endif
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void DoLineVertical()
Slot so set the line vertical.
virtual ~TLineEditor()
Destructor of line editor.
int Int_t
Definition: RtypesCore.h:41
virtual void SetModel(TObject *obj)
Pick up the used line attributes.
#define ClassDef(name, id)
Definition: Rtypes.h:254
ULong_t Pixel_t
Definition: GuiTypes.h:41
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
virtual void DoLineHorizontal()
Slot so set the line horizontal.
TGNumberEntry * fEndPointX
Definition: TLineEditor.h:37
TGNumberEntry * fStartPointX
Definition: TLineEditor.h:35
TGCheckButton * fVertical
Definition: TLineEditor.h:39
TGCheckButton * fHorizontal
Definition: TLineEditor.h:40
unsigned int UInt_t
Definition: RtypesCore.h:42
A simple line.
Definition: TLine.h:33
TGNumberEntry * fEndPointY
Definition: TLineEditor.h:38
TLineEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of line GUI.
Definition: TLineEditor.cxx:47
Mother of all ROOT objects.
Definition: TObject.h:37
virtual void DoEndPoint()
Slot connected to the line EndPoint.
virtual void DoStartPoint()
Slot connected to the line start point.
TGNumberEntry * fStartPointY
Definition: TLineEditor.h:36
TLine * fLine
Definition: TLineEditor.h:34