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#include "TGedFrame.h"
17
20class TGColorSelect;
21class TAttLine;
23
24class TAttLineEditor : public TGedFrame {
25
26protected:
27 TAttLine *fAttLine; ///< line attribute object
28 TGLineStyleComboBox *fStyleCombo; ///< line style combo box
29 TGLineWidthComboBox *fWidthCombo; ///< line width combo box
30 TGColorSelect *fColorSelect; ///< line color widget
31 TGHSlider *fAlpha; ///< fill opacity
33
34 virtual void ConnectSignals2Slots();
35
36public:
37 TAttLineEditor(const TGWindow *p = nullptr,
38 Int_t width = 140, Int_t height = 30,
39 UInt_t options = kChildFrame,
41 ~TAttLineEditor() override;
42
43 void SetModel(TObject* obj) override;
44 virtual void DoLineColor(Pixel_t color);
45 virtual void DoLineAlphaColor(ULongptr_t p);
46 virtual void DoLineStyle(Int_t style);
47 virtual void DoLineWidth(Int_t width);
48 virtual void DoAlpha();
49 virtual void DoAlphaField();
50 virtual void DoLiveAlpha(Int_t a);
51 virtual void GetCurAlpha();
52
53 ClassDefOverride(TAttLineEditor,0) // GUI for editing line attributes
54};
55
56#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 ULongptr_t
Definition RtypesCore.h:83
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t width
Option_t Option_t style
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Implements GUI for editing line attributes.
void SetModel(TObject *obj) override
Pick up the used line attributes.
virtual void DoAlpha()
Slot to set the alpha value.
TGHSlider * fAlpha
fill opacity
virtual void DoLineColor(Pixel_t color)
Slot connected to the line color.
~TAttLineEditor() override
Destructor of line editor.
TAttLine * fAttLine
line attribute object
virtual void DoLineWidth(Int_t width)
Slot connected to the line width.
virtual void DoLineAlphaColor(ULongptr_t p)
Slot connected to the color with alpha.
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
line style combo box
virtual void DoLiveAlpha(Int_t a)
Slot to set alpha value online.
TGColorSelect * fColorSelect
line color widget
TGNumberEntryField * fAlphaField
TGLineWidthComboBox * fWidthCombo
line width combo box
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
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:683
Concrete class for horizontal slider.
Definition TGSlider.h:119
The TGLineStyleComboBox user callable and it creates a combobox for selecting the line style.
Definition TGComboBox.h:140
The TGLineWidthComboBox user callable and it creates a combobox for selecting the line width.
Definition TGComboBox.h:158
ROOT GUI Window base class.
Definition TGWindow.h:23
Base frame for implementing GUI - a service class.
Definition TGedFrame.h:27
Mother of all ROOT objects.
Definition TObject.h:41