Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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// //
17// TAttTextEditor //
18// //
19// Implements GUI for editing text attributes. //
20// //
21//////////////////////////////////////////////////////////////////////////
22
23#include "TGedFrame.h"
24
25class TGComboBox;
27class TGColorSelect;
28class TAttText;
30
31class TAttTextEditor : public TGedFrame {
32
33protected:
34 TAttText *fAttText; // text attribute object
35 TGFontTypeComboBox *fTypeCombo; // font style combo box
36 TGComboBox *fSizeCombo; // font size combo box
37 TGComboBox *fAlignCombo; // font aligh combo box
38 TGColorSelect *fColorSelect; // color selection widget
39 TGHSlider *fAlpha; // fill opacity
41
43
44 static TGComboBox *BuildFontSizeComboBox(TGFrame *parent, Int_t id);
46
47public:
48 TAttTextEditor(const TGWindow *p = 0,
49 Int_t width = 140, Int_t height = 30,
50 UInt_t options = kChildFrame,
52 virtual ~TAttTextEditor();
53
54 virtual void SetModel(TObject* obj);
55 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
56 virtual void DoTextAlphaColor(ULong_t p);
57 virtual void DoAlpha();
58 virtual void DoAlphaField();
59 virtual void DoLiveAlpha(Int_t a);
60 virtual void GetCurAlpha();
61 virtual void DoTextColor(Pixel_t color);
62
63 ClassDef(TAttTextEditor,0) //GUI for editing text attributes
64};
65
66#endif
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define a(i)
Definition RSha256.hxx:99
unsigned long ULong_t
Definition RtypesCore.h:55
long Long_t
Definition RtypesCore.h:54
#define ClassDef(name, id)
Definition Rtypes.h:325
include TDocParser_001 C image html pict1_TDocParser_001 png width
virtual void DoTextAlphaColor(ULong_t p)
Slot connected to the color with alpha.
TGHSlider * fAlpha
TGComboBox * fSizeCombo
static TGComboBox * BuildFontSizeComboBox(TGFrame *parent, Int_t id)
Create text size combo box.
virtual void SetModel(TObject *obj)
Pick up the values of used text attributes.
TGComboBox * fAlignCombo
virtual void GetCurAlpha()
Slot to update alpha value on click on Slider.
TAttText * fAttText
virtual void DoAlpha()
Slot to set the alpha value.
TGFontTypeComboBox * fTypeCombo
virtual void DoLiveAlpha(Int_t a)
Slot to set alpha value online.
virtual void DoAlphaField()
Slot to set the alpha value from the entry field.
static TGComboBox * BuildTextAlignComboBox(TGFrame *parent, Int_t id)
Create text align combo box.
virtual void DoTextColor(Pixel_t color)
Slot connected to the marker color.
TGNumberEntryField * fAlphaField
virtual ~TAttTextEditor()
Destructor of text editor.
TGColorSelect * fColorSelect
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process message.
void ConnectSignals2Slots()
Connect signals to slots.
Text Attributes class.
Definition TAttText.h:18
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:668
Mother of all ROOT objects.
Definition TObject.h:37