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-2021, 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 
23 #include "TGedFrame.h"
24 
25 class TText;
26 class TGTextEntry;
27 class TGNumberEntry;
28 
29 class TTextEditor : public TGedFrame {
30 
31 private:
33 
34 protected:
35  TGTextEntry *fText; // Text
36  TGNumberEntry *fAngle; // Text's angle
37  TGNumberEntry *fSize; // Text's angle
38  TGNumberEntry *fXpos; // Text's X position
39  TGNumberEntry *fYpos; // Text's Y position
40 
41  void ConnectSignals2Slots();
42 
43 public:
44  TTextEditor(const TGWindow *p = nullptr,
45  Int_t width = 140, Int_t height = 30,
46  UInt_t options = kChildFrame,
48  ~TTextEditor();
49 
50  void SetModel(TObject *);
51 
52  void DoAngle();
53  void DoSize();
54  void DoText(const char*);
55  void DoXpos();
56  void DoYpos();
57 
58  ClassDef(TTextEditor,0) // text editor
59 };
60 
61 #endif // ROOT_TTextEditor
62 
TGWindow
Definition: TGWindow.h:31
TTextEditor::fSize
TGNumberEntry * fSize
Definition: TTextEditor.h:37
TTextEditor::fText
TGTextEntry * fText
Definition: TTextEditor.h:35
Pixel_t
ULong_t Pixel_t
Pixel value.
Definition: GuiTypes.h:40
TTextEditor::fEditedText
TText * fEditedText
Definition: TTextEditor.h:32
width
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
TTextEditor::ConnectSignals2Slots
void ConnectSignals2Slots()
Connect signals to slots.
Definition: TTextEditor.cxx:109
TTextEditor::DoText
void DoText(const char *)
Slot for setting the text string.
Definition: TTextEditor.cxx:145
TGFrame::GetDefaultFrameBackground
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:668
TTextEditor::DoAngle
void DoAngle()
Slot for setting the text Angle.
Definition: TTextEditor.cxx:123
TGedFrame.h
TTextEditor::fXpos
TGNumberEntry * fXpos
Definition: TTextEditor.h:38
TTextEditor::SetModel
void SetModel(TObject *)
Set model.
Definition: TTextEditor.cxx:90
TGTextEntry
Definition: TGTextEntry.h:39
TTextEditor
Definition: TTextEditor.h:29
TTextEditor::DoXpos
void DoXpos()
Slot for setting the text X position.
Definition: TTextEditor.cxx:156
TTextEditor::DoYpos
void DoYpos()
Slot for setting the text Y position.
Definition: TTextEditor.cxx:167
unsigned int
TGedFrame
Definition: TGedFrame.h:34
TText
Base class for several text objects.
Definition: TText.h:22
TTextEditor::TTextEditor
TTextEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
TTextEditor constructor.
Definition: TTextEditor.cxx:26
TTextEditor::fAngle
TGNumberEntry * fAngle
Definition: TTextEditor.h:36
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TTextEditor::~TTextEditor
~TTextEditor()
TTextEditor destructor.
Definition: TTextEditor.cxx:82
TGNumberEntry
Definition: TGNumberEntry.h:157
TTextEditor::DoSize
void DoSize()
Slot for setting the text Size.
Definition: TTextEditor.cxx:134
TTextEditor::fYpos
TGNumberEntry * fYpos
Definition: TTextEditor.h:39
kChildFrame
@ kChildFrame
Definition: GuiTypes.h:379
int