Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 #include "TGedFrame.h"
24 
25 #include "TGSlider.h"
26 
27 class TGLineStyleComboBox;
28 class TGLineWidthComboBox;
29 class TGColorSelect;
30 class TAttLine;
31 class TGNumberEntryField;
32 
33 class TAttLineEditor : public TGedFrame {
34 
35 protected:
36  TAttLine *fAttLine; // line attribute object
37  TGLineStyleComboBox *fStyleCombo; // line style combo box
38  TGLineWidthComboBox *fWidthCombo; // line width combo box
39  TGColorSelect *fColorSelect; // line color widget
40  TGHSlider *fAlpha; // fill opacity
41  TGNumberEntryField *fAlphaField;
42 
43  virtual void ConnectSignals2Slots();
44 
45 public:
46  TAttLineEditor(const TGWindow *p = 0,
47  Int_t width = 140, Int_t height = 30,
48  UInt_t options = kChildFrame,
49  Pixel_t back = GetDefaultFrameBackground());
50  virtual ~TAttLineEditor();
51 
52  virtual void SetModel(TObject* obj);
53  virtual void DoLineColor(Pixel_t color);
54  virtual void DoLineAlphaColor(ULong_t p);
55  virtual void DoLineStyle(Int_t style);
56  virtual void DoLineWidth(Int_t width);
57  virtual void DoAlpha();
58  virtual void DoAlphaField();
59  virtual void DoLiveAlpha(Int_t a);
60  virtual void GetCurAlpha();
61 
62  ClassDef(TAttLineEditor,0) // GUI for editing line attributes
63 };
64 
65 #endif