Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files 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 #include "TGedFrame.h"
24 
25 #include "TGSlider.h"
26 
27 class TGNumberEntry;
28 class TGColorSelect;
29 class TGedMarkerSelect;
30 class TAttMarker;
31 class TGNumberEntryField;
32 
33 class TAttMarkerEditor : public TGedFrame {
34 
35 protected:
36  TAttMarker *fAttMarker; // marker attribute object
37  TGNumberEntry *fMarkerSize; // marker size combo box
38  TGColorSelect *fColorSelect; // marker color
39  TGedMarkerSelect *fMarkerType; // marker type
40  Bool_t fSizeForText; // true if "text" draw option uses marker size
41  TGHSlider *fAlpha; // fill opacity
42  TGNumberEntryField *fAlphaField;
43 
44  virtual void ConnectSignals2Slots();
45 
46 public:
47  TAttMarkerEditor(const TGWindow *p = 0,
48  Int_t width = 140, Int_t height = 30,
49  UInt_t options = kChildFrame,
50  Pixel_t back = GetDefaultFrameBackground());
51  virtual ~TAttMarkerEditor();
52 
53  virtual void SetModel(TObject* obj);
54  virtual void DoMarkerColor(Pixel_t color);
55  virtual void DoMarkerAlphaColor(ULong_t p);
56  virtual void DoMarkerSize();
57  virtual void DoMarkerStyle(Style_t style);
58  virtual void DoAlpha();
59  virtual void DoAlphaField();
60  virtual void DoLiveAlpha(Int_t a);
61  virtual void GetCurAlpha();
62 
63  ClassDef(TAttMarkerEditor,0) // GUI for editing marker attributes
64 };
65 
66 #endif