Logo ROOT   6.14/05
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 #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,
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
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void DoLineVertical()
Slot so set the line vertical.
virtual ~TLineEditor()
Destructor of line editor.
image html pict1_TGaxis_012 png width
Define new text attributes for the label number "labNum".
Definition: TGaxis.cxx:2551
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:320
ULong_t Pixel_t
Definition: GuiTypes.h:39
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:35
TGNumberEntry * fStartPointX
Definition: TLineEditor.h:33
TGCheckButton * fVertical
Definition: TLineEditor.h:37
TGCheckButton * fHorizontal
Definition: TLineEditor.h:38
unsigned int UInt_t
Definition: RtypesCore.h:42
A simple line.
Definition: TLine.h:23
TGNumberEntry * fEndPointY
Definition: TLineEditor.h:36
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:34
TLine * fLine
Definition: TLineEditor.h:32