Logo ROOT  
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#include "TGedFrame.h"
24
25#include "TGSlider.h"
26
29class TGColorSelect;
30class TAttLine;
32
33class TAttLineEditor : public TGedFrame {
34
35protected:
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
42
43 virtual void ConnectSignals2Slots();
44
45public:
46 TAttLineEditor(const TGWindow *p = 0,
47 Int_t width = 140, Int_t height = 30,
48 UInt_t options = kChildFrame,
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
ULong_t Pixel_t
Definition: GuiTypes.h:39
int Int_t
Definition: RtypesCore.h:41
unsigned int UInt_t
Definition: RtypesCore.h:42
unsigned long ULong_t
Definition: RtypesCore.h:51
#define ClassDef(name, id)
Definition: Rtypes.h:326
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
@ kChildFrame
Definition: TGFrame.h:57
virtual ~TAttLineEditor()
Destructor of line editor.
TAttLineEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of line attributes GUI.
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:665
Mother of all ROOT objects.
Definition: TObject.h:37
TCanvas * style()
Definition: style.C:1
auto * a
Definition: textangle.C:12