Logo ROOT   6.14/05
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 
27 class TGColorSelect;
28 class TGedPatternSelect;
29 class TAttFill;
30 class TGNumberEntryField;
31 
32 class TAttFillEditor : public TGedFrame {
33 
34 protected:
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 
43 public:
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
short Style_t
Definition: RtypesCore.h:76
image html pict1_TGaxis_012 png width
Define new text attributes for the label number "labNum".
Definition: TGaxis.cxx:2551
TGHSlider * fAlpha
int Int_t
Definition: RtypesCore.h:41
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:19
#define ClassDef(name, id)
Definition: Rtypes.h:320
ULong_t Pixel_t
Definition: GuiTypes.h:39
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
auto * a
Definition: textangle.C:12
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:37
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.
TGNumberEntryField * fAlphaField