ROOT  6.06/09
Reference Guide
TAttLineEditor.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_TAttLineEditor
13 #define ROOT_TAttLineEditor
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TAttLineEditor //
18 // //
19 // Implements GUI for editing line attributes. // //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #ifndef ROOT_TGedFrame
24 #include "TGedFrame.h"
25 #endif
26 
27 #include "TGSlider.h"
28 
31 class TGColorSelect;
32 class TAttLine;
33 class TGNumberEntryField;
34 
35 class TAttLineEditor : public TGedFrame {
36 
37 protected:
38  TAttLine *fAttLine; // line attribute object
39  TGLineStyleComboBox *fStyleCombo; // line style combo box
40  TGLineWidthComboBox *fWidthCombo; // line width combo box
41  TGColorSelect *fColorSelect; // line color widget
42  TGHSlider *fAlpha; // fill opacity
44 
45  virtual void ConnectSignals2Slots();
46 
47 public:
48  TAttLineEditor(const TGWindow *p = 0,
49  Int_t width = 140, Int_t height = 30,
50  UInt_t options = kChildFrame,
52  virtual ~TAttLineEditor();
53 
54  virtual void SetModel(TObject* obj);
55  virtual void DoLineColor(Pixel_t color);
56  virtual void DoLineAlphaColor(ULong_t p);
57  virtual void DoLineStyle(Int_t style);
58  virtual void DoLineWidth(Int_t width);
59  virtual void DoAlpha();
60  virtual void DoAlphaField();
61  virtual void DoLiveAlpha(Int_t a);
62  virtual void GetCurAlpha();
63 
64  ClassDef(TAttLineEditor,0) // GUI for editing line attributes
65 };
66 
67 #endif
TGLineStyleComboBox * fStyleCombo
virtual void DoAlphaField()
Slot to set the alpha value from the entry field.
int Int_t
Definition: RtypesCore.h:41
TArc * a
Definition: textangle.C:12
virtual ~TAttLineEditor()
Destructor of line editor.
virtual void DoLineWidth(Int_t width)
Slot connected to the line width.
ULong_t Pixel_t
Definition: GuiTypes.h:41
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
TGColorSelect * fColorSelect
ClassDef(TGedFrame, 0)
virtual void SetModel(TObject *obj)
Pick up the used line attributes.
virtual void DoLineColor(Pixel_t color)
Slot connected to the line color.
unsigned int UInt_t
Definition: RtypesCore.h:42
TGLineWidthComboBox * fWidthCombo
virtual void DoLineAlphaColor(ULong_t p)
Slot connected to the color with alpha.
unsigned long ULong_t
Definition: RtypesCore.h:51
TCanvas * style()
Definition: style.C:1
virtual void DoAlpha()
Slot to set the alpha value.
TGNumberEntryField * fAlphaField
Mother of all ROOT objects.
Definition: TObject.h:58
TAttLine * fAttLine
virtual void GetCurAlpha()
Slot to update alpha value on click on Slider.
virtual void DoLineStyle(Int_t style)
Slot connected to the line style.
TGHSlider * fAlpha
TObject * obj
virtual void ConnectSignals2Slots()
Connect signals to slots.
Line Attributes class.
Definition: TAttLine.h:32
virtual void DoLiveAlpha(Int_t a)
Slot to set alpha value online.
TAttLineEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())