// @(#)root/ged:$Id$
// Author: Ilka  Antcheva 10/05/04

/*************************************************************************
 * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TAttLineEditor
#define ROOT_TAttLineEditor

//////////////////////////////////////////////////////////////////////////
//                                                                      //
//  TAttLineEditor                                                      //
//                                                                      //
//  Implements GUI for editing line attributes.                         //                                             //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TGedFrame
#include "TGedFrame.h"
#endif

#include "TGSlider.h"

class TGLineStyleComboBox;
class TGLineWidthComboBox;
class TGColorSelect;
class TAttLine;
class TGNumberEntryField;

class TAttLineEditor : public TGedFrame {

protected:
   TAttLine             *fAttLine;          // line attribute object
   TGLineStyleComboBox  *fStyleCombo;       // line style combo box
   TGLineWidthComboBox  *fWidthCombo;       // line width combo box
   TGColorSelect        *fColorSelect;      // line color widget
   TGHSlider            *fAlpha;            // fill opacity
   TGNumberEntryField   *fAlphaField;

   virtual void   ConnectSignals2Slots();

public:
   TAttLineEditor(const TGWindow *p = 0,
                  Int_t width = 140, Int_t height = 30,
                  UInt_t options = kChildFrame,
                  Pixel_t back = GetDefaultFrameBackground());
   virtual ~TAttLineEditor();

   virtual void   SetModel(TObject* obj);
   virtual void   DoLineColor(Pixel_t color);
   virtual void   DoLineAlphaColor(ULong_t p);
   virtual void   DoLineStyle(Int_t style);
   virtual void   DoLineWidth(Int_t width);
   virtual void   DoAlpha();
   virtual void   DoAlphaField();
   virtual void   DoLiveAlpha(Int_t a);
   virtual void   GetCurAlpha();

   ClassDef(TAttLineEditor,0)  // GUI for editing line attributes
};

#endif
 TAttLineEditor.h:1
 TAttLineEditor.h:2
 TAttLineEditor.h:3
 TAttLineEditor.h:4
 TAttLineEditor.h:5
 TAttLineEditor.h:6
 TAttLineEditor.h:7
 TAttLineEditor.h:8
 TAttLineEditor.h:9
 TAttLineEditor.h:10
 TAttLineEditor.h:11
 TAttLineEditor.h:12
 TAttLineEditor.h:13
 TAttLineEditor.h:14
 TAttLineEditor.h:15
 TAttLineEditor.h:16
 TAttLineEditor.h:17
 TAttLineEditor.h:18
 TAttLineEditor.h:19
 TAttLineEditor.h:20
 TAttLineEditor.h:21
 TAttLineEditor.h:22
 TAttLineEditor.h:23
 TAttLineEditor.h:24
 TAttLineEditor.h:25
 TAttLineEditor.h:26
 TAttLineEditor.h:27
 TAttLineEditor.h:28
 TAttLineEditor.h:29
 TAttLineEditor.h:30
 TAttLineEditor.h:31
 TAttLineEditor.h:32
 TAttLineEditor.h:33
 TAttLineEditor.h:34
 TAttLineEditor.h:35
 TAttLineEditor.h:36
 TAttLineEditor.h:37
 TAttLineEditor.h:38
 TAttLineEditor.h:39
 TAttLineEditor.h:40
 TAttLineEditor.h:41
 TAttLineEditor.h:42
 TAttLineEditor.h:43
 TAttLineEditor.h:44
 TAttLineEditor.h:45
 TAttLineEditor.h:46
 TAttLineEditor.h:47
 TAttLineEditor.h:48
 TAttLineEditor.h:49
 TAttLineEditor.h:50
 TAttLineEditor.h:51
 TAttLineEditor.h:52
 TAttLineEditor.h:53
 TAttLineEditor.h:54
 TAttLineEditor.h:55
 TAttLineEditor.h:56
 TAttLineEditor.h:57
 TAttLineEditor.h:58
 TAttLineEditor.h:59
 TAttLineEditor.h:60
 TAttLineEditor.h:61
 TAttLineEditor.h:62
 TAttLineEditor.h:63
 TAttLineEditor.h:64
 TAttLineEditor.h:65
 TAttLineEditor.h:66
 TAttLineEditor.h:67