Logo ROOT  
Reference Guide
TAttFillEditor.h
Go to the documentation of this file.
1// @(#)root/ged:$Id$
2// Author: Ilka Antcheva 10/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_TAttFillEditor
13#define ROOT_TAttFillEditor
14
15//////////////////////////////////////////////////////////////////////////
16// //
17// TAttFillEditor //
18// //
19// Implements GUI for editing fill attributes. // //
20// //
21//////////////////////////////////////////////////////////////////////////
22
23#include "TGedFrame.h"
24
25#include "TGSlider.h"
26
27class TGColorSelect;
29class TAttFill;
31
32class TAttFillEditor : public TGedFrame {
33
34protected:
35 TAttFill *fAttFill; // fill attribute object
36 TGColorSelect *fColorSelect; // fill color widget
37 TGedPatternSelect *fPatternSelect; // fill pattern widget
38 TGHSlider *fAlpha; // fill opacity
40
41 virtual void ConnectSignals2Slots();
42
43public:
44 TAttFillEditor(const TGWindow *p = 0,
45 Int_t width = 140, Int_t height = 30,
46 UInt_t options = kChildFrame,
48 virtual ~TAttFillEditor();
49
50 virtual void SetModel(TObject* obj);
51 virtual void DoFillColor(Pixel_t color);
52 virtual void DoFillAlphaColor(ULong_t p);
53 virtual void DoFillPattern(Style_t color);
54 virtual void DoAlpha();
55 virtual void DoAlphaField();
56 virtual void DoLiveAlpha(Int_t a);
57 virtual void GetCurAlpha();
58
59 ClassDef(TAttFillEditor,0) //GUI for editing fill attributes
60};
61
62#endif
ULong_t Pixel_t
Definition: GuiTypes.h:39
int Int_t
Definition: RtypesCore.h:41
unsigned int UInt_t
Definition: RtypesCore.h:42
unsigned long ULong_t
Definition: RtypesCore.h:51
short Style_t
Definition: RtypesCore.h:76
#define ClassDef(name, id)
Definition: Rtypes.h:326
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
@ kChildFrame
Definition: TGFrame.h:57
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void GetCurAlpha()
Slot to update alpha value on click on Slider.
TGNumberEntryField * fAlphaField
virtual void DoFillColor(Pixel_t color)
Slot connected to the fill area color.
virtual void DoFillPattern(Style_t color)
Slot connected to the fill area pattern.
TAttFillEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of fill attributes GUI.
TGColorSelect * fColorSelect
virtual void DoFillAlphaColor(ULong_t p)
Slot connected to the fill area color with alpha.
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.
TAttFill * fAttFill
TGHSlider * fAlpha
virtual void DoAlpha()
Slot to set the alpha value.
virtual void SetModel(TObject *obj)
Pick up the used fill attributes.
TGedPatternSelect * fPatternSelect
virtual ~TAttFillEditor()
Destructor of fill editor.
Fill Area Attributes class.
Definition: TAttFill.h:19
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
Mother of all ROOT objects.
Definition: TObject.h:37
auto * a
Definition: textangle.C:12