Logo ROOT  
Reference Guide
Go to the documentation of this file.
1// @(#)root/ged:$Id$
2// Author: Ilka Antcheva 24/04/06
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 *************************************************************************/
12#ifndef ROOT_TLineEditor
13#define ROOT_TLineEditor
16#include "TGedFrame.h"
18class TGNumberEntry;
19class TGCheckButton;
20class TLine;
22class TLineEditor : public TGedFrame {
25 TLine *fLine; ///< line object
26 TGNumberEntry *fStartPointX; ///< start point x coordinate
27 TGNumberEntry *fStartPointY; ///< start point y coordinate
28 TGNumberEntry *fEndPointX; ///< end point x coordinate
29 TGNumberEntry *fEndPointY; ///< end point y coordinate
30 TGCheckButton *fVertical; ///< set the line vertical
31 TGCheckButton *fHorizontal; ///< set the line horizontal
33 virtual void ConnectSignals2Slots();
36 TLineEditor(const TGWindow *p = nullptr,
37 Int_t width = 140, Int_t height = 30,
38 UInt_t options = kChildFrame,
40 virtual ~TLineEditor();
42 virtual void SetModel(TObject* obj);
43 virtual void DoStartPoint();
44 virtual void DoEndPoint();
45 virtual void DoLineVertical();
46 virtual void DoLineHorizontal();
48 ClassDef(TLineEditor,0) // GUI for editing Line attributes
@ kChildFrame
Definition: GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition: GuiTypes.h:40
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t width
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Selects different options.
Definition: TGButton.h:264
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:683
TGNumberEntry is a number entry input widget with up/down buttons.
ROOT GUI Window base class.
Definition: TGWindow.h:23
Base frame for implementing GUI - a service class.
Definition: TGedFrame.h:27
ClassDef(TGedFrame, 0)
Implements GUI for editing line attributes: shape, size, angle.
Definition: TLineEditor.h:22
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void SetModel(TObject *obj)
Pick up the used line attributes.
TGNumberEntry * fEndPointX
end point x coordinate
Definition: TLineEditor.h:28
virtual void DoLineVertical()
Slot so set the line vertical.
TLine * fLine
line object
Definition: TLineEditor.h:25
virtual ~TLineEditor()
Destructor of line editor.
TGCheckButton * fHorizontal
set the line horizontal
Definition: TLineEditor.h:31
virtual void DoStartPoint()
Slot connected to the line start point.
TLineEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of line GUI.
Definition: TLineEditor.cxx:40
TGNumberEntry * fEndPointY
end point y coordinate
Definition: TLineEditor.h:29
TGCheckButton * fVertical
set the line vertical
Definition: TLineEditor.h:30
virtual void DoEndPoint()
Slot connected to the line EndPoint.
TGNumberEntry * fStartPointX
start point x coordinate
Definition: TLineEditor.h:26
TGNumberEntry * fStartPointY
start point y coordinate
Definition: TLineEditor.h:27
virtual void DoLineHorizontal()
Slot so set the line horizontal.
Use the TLine constructor to create a simple line.
Definition: TLine.h:22
Mother of all ROOT objects.
Definition: TObject.h:41