ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TAttMarkerEditor.h
Go to the documentation of this file.
1 // @(#)root/ged:$Id$
2 // Author: Ilka Antcheva 11/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_TAttMarkerEditor
13 #define ROOT_TAttMarkerEditor
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TAttMarkerEditor //
18 // //
19 // Implements GUI for editing marker attributes. //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #ifndef ROOT_TGedFrame
24 #include "TGedFrame.h"
25 #endif
26 
27 #include "TGSlider.h"
28 
29 class TGNumberEntry;
30 class TGColorSelect;
31 class TGedMarkerSelect;
32 class TAttMarker;
33 class TGNumberEntryField;
34 
35 class TAttMarkerEditor : public TGedFrame {
36 
37 protected:
38  TAttMarker *fAttMarker; // marker attribute object
39  TGNumberEntry *fMarkerSize; // marker size combo box
40  TGColorSelect *fColorSelect; // marker color
41  TGedMarkerSelect *fMarkerType; // marker type
42  Bool_t fSizeForText; // true if "text" draw option uses marker size
43  TGHSlider *fAlpha; // fill opacity
45 
46  virtual void ConnectSignals2Slots();
47 
48 public:
49  TAttMarkerEditor(const TGWindow *p = 0,
50  Int_t width = 140, Int_t height = 30,
51  UInt_t options = kChildFrame,
53  virtual ~TAttMarkerEditor();
54 
55  virtual void SetModel(TObject* obj);
56  virtual void DoMarkerColor(Pixel_t color);
57  virtual void DoMarkerAlphaColor(ULong_t p);
58  virtual void DoMarkerSize();
59  virtual void DoMarkerStyle(Style_t style);
60  virtual void DoAlpha();
61  virtual void DoAlphaField();
62  virtual void DoLiveAlpha(Int_t a);
63  virtual void GetCurAlpha();
64 
65  ClassDef(TAttMarkerEditor,0) // GUI for editing marker attributes
66 };
67 
68 #endif
short Style_t
Definition: RtypesCore.h:76
TAttMarker * fAttMarker
virtual ~TAttMarkerEditor()
Destructor of marker editor.
virtual void DoMarkerAlphaColor(ULong_t p)
Slot connected to the color with alpha.
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
TArc * a
Definition: textangle.C:12
Marker Attributes class.
Definition: TAttMarker.h:32
TGHSlider * fAlpha
ULong_t Pixel_t
Definition: GuiTypes.h:41
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
TGedMarkerSelect * fMarkerType
virtual void DoMarkerColor(Pixel_t color)
Slot connected to the marker color.
ClassDef(TGedFrame, 0)
virtual void DoAlpha()
Slot to set the alpha value.
TGNumberEntryField * fAlphaField
unsigned int UInt_t
Definition: RtypesCore.h:42
virtual void GetCurAlpha()
Slot to update alpha value on click on Slider.
TGNumberEntry * fMarkerSize
virtual void SetModel(TObject *obj)
Pick up the values of used marker attributes.
unsigned long ULong_t
Definition: RtypesCore.h:51
TCanvas * style()
Definition: style.C:1
virtual void DoMarkerSize()
Slot connected to the marker size.
virtual void ConnectSignals2Slots()
Connect signals to slots.
Mother of all ROOT objects.
Definition: TObject.h:58
virtual void DoLiveAlpha(Int_t a)
Slot to set alpha value online.
virtual void DoAlphaField()
Slot to set the alpha value from the entry field.
TGColorSelect * fColorSelect
virtual void DoMarkerStyle(Style_t style)
Slot connected to the marker type.
TAttMarkerEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of marker attributes GUI.
TObject * obj