Logo ROOT   6.18/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
25class TGNumberEntry;
26class TGCheckButton;
27class TLine;
28
29class TLineEditor : public TGedFrame {
30
31protected:
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
42public:
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
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
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void SetModel(TObject *obj)
Pick up the used line attributes.
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
TGNumberEntry * fEndPointX
Definition: TLineEditor.h:35
virtual void DoLineVertical()
Slot so set the line vertical.
TLine * fLine
Definition: TLineEditor.h:32
virtual ~TLineEditor()
Destructor of line editor.
TGCheckButton * fHorizontal
Definition: TLineEditor.h:38
virtual void DoStartPoint()
Slot connected to the line start point.
TGNumberEntry * fEndPointY
Definition: TLineEditor.h:36
TGCheckButton * fVertical
Definition: TLineEditor.h:37
virtual void DoEndPoint()
Slot connected to the line EndPoint.
TGNumberEntry * fStartPointX
Definition: TLineEditor.h:33
TGNumberEntry * fStartPointY
Definition: TLineEditor.h:34
virtual void DoLineHorizontal()
Slot so set the line horizontal.
A simple line.
Definition: TLine.h:23
Mother of all ROOT objects.
Definition: TObject.h:37