ROOT  6.06/09
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 #ifndef ROOT_TGedFrame
24 #include "TGedFrame.h"
25 #endif
26 
27 #include "TGSlider.h"
28 
29 class TGColorSelect;
30 class TGedPatternSelect;
31 class TAttFill;
32 class TGNumberEntryField;
33 
34 class TAttFillEditor : public TGedFrame {
35 
36 protected:
37  TAttFill *fAttFill; // fill attribute object
38  TGColorSelect *fColorSelect; // fill color widget
39  TGedPatternSelect *fPatternSelect; // fill pattern widget
40  TGHSlider *fAlpha; // fill opacity
42 
43  virtual void ConnectSignals2Slots();
44 
45 public:
46  TAttFillEditor(const TGWindow *p = 0,
47  Int_t width = 140, Int_t height = 30,
48  UInt_t options = kChildFrame,
50  virtual ~TAttFillEditor();
51 
52  virtual void SetModel(TObject* obj);
53  virtual void DoFillColor(Pixel_t color);
54  virtual void DoFillAlphaColor(ULong_t p);
55  virtual void DoFillPattern(Style_t color);
56  virtual void DoAlpha();
57  virtual void DoAlphaField();
58  virtual void DoLiveAlpha(Int_t a);
59  virtual void GetCurAlpha();
60 
61  ClassDef(TAttFillEditor,0) //GUI for editing fill attributes
62 };
63 
64 #endif
short Style_t
Definition: RtypesCore.h:76
TGHSlider * fAlpha
int Int_t
Definition: RtypesCore.h:41
TArc * a
Definition: textangle.C:12
virtual void SetModel(TObject *obj)
Pick up the used fill attributes.
virtual void DoLiveAlpha(Int_t a)
Slot to set alpha value online.
Fill Area Attributes class.
Definition: TAttFill.h:32
ULong_t Pixel_t
Definition: GuiTypes.h:41
virtual ~TAttFillEditor()
Destructor of fill editor.
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
virtual void DoFillPattern(Style_t color)
Slot connected to the fill area pattern.
virtual void DoFillColor(Pixel_t color)
Slot connected to the fill area color.
TAttFill * fAttFill
ClassDef(TGedFrame, 0)
virtual void DoAlpha()
Slot to set the alpha value.
unsigned int UInt_t
Definition: RtypesCore.h:42
virtual void DoAlphaField()
Slot to set the alpha value from the entry field.
virtual void GetCurAlpha()
Slot to update alpha value on click on Slider.
unsigned long ULong_t
Definition: RtypesCore.h:51
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.
Mother of all ROOT objects.
Definition: TObject.h:58
virtual void DoFillAlphaColor(ULong_t p)
Slot connected to the fill area color with alpha.
TGedPatternSelect * fPatternSelect
TGColorSelect * fColorSelect
virtual void ConnectSignals2Slots()
Connect signals to slots.
TObject * obj
TGNumberEntryField * fAlphaField