Logo ROOT  
Reference Guide
TTextEditor.h
Go to the documentation of this file.
1// Author: Olivier Couet 22/12/2013
2
3/*************************************************************************
4 * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11
12//////////////////////////////////////////////////////////////////////////
13// //
14// TTextEditor //
15// //
16// Editor for changing TText's and TLatex's attributes. //
17// //
18//////////////////////////////////////////////////////////////////////////
19
20#ifndef ROOT_TTextEditor
21#define ROOT_TTextEditor
22#include "TGedFrame.h"
23
24class TText;
25class TGTextEntry;
26class TGNumberEntry;
27
28class TTextEditor : public TGedFrame {
29
30private:
32
33protected:
35 TGNumberEntry *fAngle; // Text's angle
36 TGNumberEntry *fSize; // Text's angle
37 TGNumberEntry *fXpos; // Text's X position
38 TGNumberEntry *fYpos; // Text's Y position
39
41
42public:
43 TTextEditor(const TGWindow *p = 0,
44 Int_t width = 140, Int_t height = 30,
45 UInt_t options = kChildFrame,
48
49 void SetModel(TObject *);
50
51 void DoAngle();
52 void DoSize();
53 void DoText(const char*);
54 void DoXpos();
55 void DoYpos();
56
57 ClassDef(TTextEditor,0) // text editor
58};
59
60#endif // ROOT_TTextEditor
61
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
Mother of all ROOT objects.
Definition: TObject.h:37
void DoSize()
Slot for setting the text Size.
void DoText(const char *)
Slot for setting the text string.
TGNumberEntry * fYpos
Definition: TTextEditor.h:38
TGNumberEntry * fXpos
Definition: TTextEditor.h:37
TGNumberEntry * fAngle
Definition: TTextEditor.h:35
void SetModel(TObject *)
Set model.
Definition: TTextEditor.cxx:82
void DoAngle()
Slot for setting the text Angle.
void ConnectSignals2Slots()
Connect signals to slots.
void DoYpos()
Slot for setting the text Y position.
~TTextEditor()
TTextEditor destructor.
Definition: TTextEditor.cxx:74
TGNumberEntry * fSize
Definition: TTextEditor.h:36
void DoXpos()
Slot for setting the text X position.
TGTextEntry * fText
Definition: TTextEditor.h:34
TTextEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
TTextEditor constructor.
Definition: TTextEditor.cxx:18
TText * fEditedText
Definition: TTextEditor.h:31
Base class for several text objects.
Definition: TText.h:23