Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
27class TGColorSelect;
28class TAttLine;
30
31class TAttLineEditor : public TGedFrame {
32
33protected:
34 TAttLine *fAttLine; // line attribute object
35 TGLineStyleComboBox *fStyleCombo; // line style combo box
36 TGLineWidthComboBox *fWidthCombo; // line width combo box
37 TGColorSelect *fColorSelect; // line color widget
38 TGHSlider *fAlpha; // fill opacity
40
41 virtual void ConnectSignals2Slots();
42
43public:
44 TAttLineEditor(const TGWindow *p = 0,
45 Int_t width = 140, Int_t height = 30,
46 UInt_t options = kChildFrame,
48 virtual ~TAttLineEditor();
49
50 virtual void SetModel(TObject* obj);
51 virtual void DoLineColor(Pixel_t color);
52 virtual void DoLineAlphaColor(ULong_t p);
53 virtual void DoLineStyle(Int_t style);
54 virtual void DoLineWidth(Int_t width);
55 virtual void DoAlpha();
56 virtual void DoAlphaField();
57 virtual void DoLiveAlpha(Int_t a);
58 virtual void GetCurAlpha();
59
60 ClassDef(TAttLineEditor,0) // GUI for editing line attributes
61};
62
63#endif
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define a(i)
Definition RSha256.hxx:99
unsigned long ULong_t
Definition RtypesCore.h:55
#define ClassDef(name, id)
Definition Rtypes.h:325
include TDocParser_001 C image html pict1_TDocParser_001 png width
virtual ~TAttLineEditor()
Destructor of line editor.
virtual void DoAlpha()
Slot to set the alpha value.
TGHSlider * fAlpha
virtual void DoLineColor(Pixel_t color)
Slot connected to the line color.
virtual void DoLineAlphaColor(ULong_t p)
Slot connected to the color with alpha.
TAttLine * fAttLine
virtual void DoLineWidth(Int_t width)
Slot connected to the line width.
virtual void GetCurAlpha()
Slot to update alpha value on click on Slider.
virtual void DoLineStyle(Int_t style)
Slot connected to the line style.
TGLineStyleComboBox * fStyleCombo
virtual void DoLiveAlpha(Int_t a)
Slot to set alpha value online.
TGColorSelect * fColorSelect
TGNumberEntryField * fAlphaField
virtual void SetModel(TObject *obj)
Pick up the used line attributes.
TGLineWidthComboBox * fWidthCombo
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void DoAlphaField()
Slot to set the alpha value from the entry field.
Line Attributes class.
Definition TAttLine.h:18
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:668
Mother of all ROOT objects.
Definition TObject.h:37
TCanvas * style()
Definition style.C:1