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 
24 class TText;
25 class TGTextEntry;
26 class TGNumberEntry;
27 
28 class TTextEditor : public TGedFrame {
29 
30 private:
32 
33 protected:
34  TGTextEntry *fText; // Text
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 
40  void ConnectSignals2Slots();
41 
42 public:
43  TTextEditor(const TGWindow *p = 0,
44  Int_t width = 140, Int_t height = 30,
45  UInt_t options = kChildFrame,
47  ~TTextEditor();
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 
TGWindow
Definition: TGWindow.h:31
TTextEditor::fSize
TGNumberEntry * fSize
Definition: TTextEditor.h:36
TTextEditor::fText
TGTextEntry * fText
Definition: TTextEditor.h:34
Pixel_t
ULong_t Pixel_t
Definition: GuiTypes.h:39
TTextEditor::fEditedText
TText * fEditedText
Definition: TTextEditor.h:31
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:101
TTextEditor::DoText
void DoText(const char *)
Slot for setting the text string.
Definition: TTextEditor.cxx:137
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:115
TGedFrame.h
TTextEditor::fXpos
TGNumberEntry * fXpos
Definition: TTextEditor.h:37
TTextEditor::SetModel
void SetModel(TObject *)
Set model.
Definition: TTextEditor.cxx:82
TGTextEntry
Definition: TGTextEntry.h:39
TTextEditor
Definition: TTextEditor.h:28
TTextEditor::DoXpos
void DoXpos()
Slot for setting the text X position.
Definition: TTextEditor.cxx:148
TTextEditor::DoYpos
void DoYpos()
Slot for setting the text Y position.
Definition: TTextEditor.cxx:159
unsigned int
TGedFrame
Definition: TGedFrame.h:33
TText
Definition: TText.h:22
TTextEditor::TTextEditor
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
TTextEditor::fAngle
TGNumberEntry * fAngle
Definition: TTextEditor.h:35
TObject
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TTextEditor::~TTextEditor
~TTextEditor()
TTextEditor destructor.
Definition: TTextEditor.cxx:74
TGNumberEntry
Definition: TGNumberEntry.h:156
TTextEditor::DoSize
void DoSize()
Slot for setting the text Size.
Definition: TTextEditor.cxx:126
TTextEditor::fYpos
TGNumberEntry * fYpos
Definition: TTextEditor.h:38
kChildFrame
@ kChildFrame
Definition: GuiTypes.h:379
int