Logo ROOT  
Reference Guide
TAttTextEditor.h
Go to the documentation of this file.
1 // @(#)root/ged:$Id$
2 // Author: Ilka Antcheva 11/05/04
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2002, 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_TAttTextEditor
13 #define ROOT_TAttTextEditor
14 
15 
16 #include "TGedFrame.h"
17 
18 class TGComboBox;
19 class TGFontTypeComboBox;
20 class TGColorSelect;
21 class TAttText;
22 class TGNumberEntryField;
23 
24 class TAttTextEditor : public TGedFrame {
25 
26 protected:
27  TAttText *fAttText; ///< text attribute object
28  TGFontTypeComboBox *fTypeCombo; ///< font style combo box
29  TGComboBox *fSizeCombo; ///< font size combo box
30  TGComboBox *fAlignCombo; ///< font aligh combo box
31  TGColorSelect *fColorSelect; ///< color selection widget
32  TGHSlider *fAlpha; ///< fill opacity
34 
35  void ConnectSignals2Slots();
36 
37  static TGComboBox *BuildFontSizeComboBox(TGFrame *parent, Int_t id);
38  static TGComboBox *BuildTextAlignComboBox(TGFrame *parent, Int_t id);
39 
40 public:
41  TAttTextEditor(const TGWindow *p = 0,
42  Int_t width = 140, Int_t height = 30,
43  UInt_t options = kChildFrame,
45  virtual ~TAttTextEditor();
46 
47  virtual void SetModel(TObject* obj);
48  virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
49  virtual void DoTextAlphaColor(ULong_t p);
50  virtual void DoAlpha();
51  virtual void DoAlphaField();
52  virtual void DoLiveAlpha(Int_t a);
53  virtual void GetCurAlpha();
54  virtual void DoTextColor(Pixel_t color);
55 
56  ClassDef(TAttTextEditor,0) //GUI for editing text attributes
57 };
58 
59 #endif
TAttText
Text Attributes class.
Definition: TAttText.h:18
TAttTextEditor::GetCurAlpha
virtual void GetCurAlpha()
Slot to update alpha value on click on Slider.
Definition: TAttTextEditor.cxx:323
TAttTextEditor::ProcessMessage
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process message.
Definition: TAttTextEditor.cxx:193
TGWindow
ROOT GUI Window base class.
Definition: TGWindow.h:23
TGFontTypeComboBox
The TGFontTypeComboBox is user callable and it creates a combobox for selecting the font.
Definition: TGComboBox.h:177
TAttTextEditor::fAlignCombo
TGComboBox * fAlignCombo
font aligh combo box
Definition: TAttTextEditor.h:30
Pixel_t
ULong_t Pixel_t
Pixel value.
Definition: GuiTypes.h:40
TAttTextEditor::BuildFontSizeComboBox
static TGComboBox * BuildFontSizeComboBox(TGFrame *parent, Int_t id)
Create text size combo box.
Definition: TAttTextEditor.cxx:239
TGHSlider
Concrete class for horizontal slider.
Definition: TGSlider.h:128
width
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
TAttTextEditor::DoLiveAlpha
virtual void DoLiveAlpha(Int_t a)
Slot to set alpha value online.
Definition: TAttTextEditor.cxx:304
TGFrame::GetDefaultFrameBackground
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:683
TGFrame
Definition: TGFrame.h:80
bool
TAttTextEditor::ConnectSignals2Slots
void ConnectSignals2Slots()
Connect signals to slots.
Definition: TAttTextEditor.cxx:105
TAttTextEditor::SetModel
virtual void SetModel(TObject *obj)
Pick up the values of used text attributes.
Definition: TAttTextEditor.cxx:119
TGedFrame.h
TAttTextEditor::BuildTextAlignComboBox
static TGComboBox * BuildTextAlignComboBox(TGFrame *parent, Int_t id)
Create text align combo box.
Definition: TAttTextEditor.cxx:256
a
auto * a
Definition: textangle.C:12
TAttTextEditor::DoAlphaField
virtual void DoAlphaField()
Slot to set the alpha value from the entry field.
Definition: TAttTextEditor.cxx:276
Long_t
long Long_t
Definition: RtypesCore.h:54
TAttTextEditor::DoAlpha
virtual void DoAlpha()
Slot to set the alpha value.
Definition: TAttTextEditor.cxx:290
TAttTextEditor::fAlpha
TGHSlider * fAlpha
fill opacity
Definition: TAttTextEditor.h:32
ULong_t
unsigned long ULong_t
Definition: RtypesCore.h:55
TAttTextEditor::TAttTextEditor
TAttTextEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of text attributes GUI.
Definition: TAttTextEditor.cxx:49
TAttTextEditor::~TAttTextEditor
virtual ~TAttTextEditor()
Destructor of text editor.
Definition: TAttTextEditor.cxx:98
TAttTextEditor
Implements GUI for editing text attributes.
Definition: TAttTextEditor.h:24
TGNumberEntryField
Definition: TGNumberEntry.h:65
unsigned int
TGComboBox
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
Definition: TGComboBox.h:47
TAttTextEditor::DoTextAlphaColor
virtual void DoTextAlphaColor(ULong_t p)
Slot connected to the color with alpha.
Definition: TAttTextEditor.cxx:178
TAttTextEditor::DoTextColor
virtual void DoTextColor(Pixel_t color)
Slot connected to the marker color.
Definition: TAttTextEditor.cxx:162
TGedFrame
Base frame for implementing GUI - a service class.
Definition: TGedFrame.h:27
TAttTextEditor::fAttText
TAttText * fAttText
text attribute object
Definition: TAttTextEditor.h:27
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TAttTextEditor::fAlphaField
TGNumberEntryField * fAlphaField
Definition: TAttTextEditor.h:33
TGColorSelect
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
Definition: TGColorSelect.h:104
TAttTextEditor::fSizeCombo
TGComboBox * fSizeCombo
font size combo box
Definition: TAttTextEditor.h:29
TAttTextEditor::fTypeCombo
TGFontTypeComboBox * fTypeCombo
font style combo box
Definition: TAttTextEditor.h:28
TAttTextEditor::fColorSelect
TGColorSelect * fColorSelect
color selection widget
Definition: TAttTextEditor.h:31
kChildFrame
@ kChildFrame
Definition: GuiTypes.h:379
int