Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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#include "TGedFrame.h"
17
18class TGNumberEntry;
19class TGCheckButton;
20class TLine;
21
22class TLineEditor : public TGedFrame {
23
24protected:
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
32
33 virtual void ConnectSignals2Slots();
34
35public:
36 TLineEditor(const TGWindow *p = nullptr,
37 Int_t width = 140, Int_t height = 30,
38 UInt_t options = kChildFrame,
40 ~TLineEditor() override;
41
42 void SetModel(TObject* obj) override;
43 virtual void DoStartPoint();
44 virtual void DoEndPoint();
45 virtual void DoLineVertical();
46 virtual void DoLineHorizontal();
47
48 ClassDefOverride(TLineEditor,0) // GUI for editing Line attributes
49};
50
51#endif
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
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
Implements GUI for editing line attributes: shape, size, angle.
Definition TLineEditor.h:22
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGNumberEntry * fEndPointX
end point x coordinate
Definition TLineEditor.h:28
virtual void DoLineVertical()
Slot so set the line vertical.
~TLineEditor() override
Destructor of line editor.
void SetModel(TObject *obj) override
Pick up the used line attributes.
TLine * fLine
line object
Definition TLineEditor.h:25
TGCheckButton * fHorizontal
set the line horizontal
Definition TLineEditor.h:31
virtual void DoStartPoint()
Slot connected to the line start point.
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