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#include "TGedFrame.h"
17
18class TGComboBox;
20class TGColorSelect;
21class TAttText;
23
24class TAttTextEditor : public TGedFrame {
25
26protected:
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
36
37 static TGComboBox *BuildFontSizeComboBox(TGFrame *parent, Int_t id);
39
40public:
41 TAttTextEditor(const TGWindow *p = nullptr,
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(Longptr_t msg, Longptr_t parm1, Longptr_t parm2);
49 virtual void DoTextAlphaColor(ULongptr_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
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define a(i)
Definition RSha256.hxx:99
long Longptr_t
Definition RtypesCore.h:82
unsigned long ULongptr_t
Definition RtypesCore.h:83
#define ClassDef(name, id)
Definition Rtypes.h:337
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t width
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Implements GUI for editing text attributes.
TGHSlider * fAlpha
fill opacity
TGComboBox * fSizeCombo
font size combo box
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
font aligh combo box
virtual void GetCurAlpha()
Slot to update alpha value on click on Slider.
TAttText * fAttText
text attribute object
virtual void DoAlpha()
Slot to set the alpha value.
TGFontTypeComboBox * fTypeCombo
font style combo box
virtual void DoLiveAlpha(Int_t a)
Slot to set alpha value online.
virtual Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2)
Process message.
virtual void DoAlphaField()
Slot to set the alpha value from the entry field.
virtual void DoTextAlphaColor(ULongptr_t p)
Slot connected to the color with alpha.
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
color selection widget
void ConnectSignals2Slots()
Connect signals to slots.
Text Attributes class.
Definition TAttText.h:18
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
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
The TGFontTypeComboBox is user callable and it creates a combobox for selecting the font.
Definition TGComboBox.h:178
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
Definition TGFrame.h:80
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:683
Concrete class for horizontal slider.
Definition TGSlider.h:119
ROOT GUI Window base class.
Definition TGWindow.h:23
Base frame for implementing GUI - a service class.
Definition TGedFrame.h:27
Mother of all ROOT objects.
Definition TObject.h:41