Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:30

0001 // @(#)root/ged:$Id$
0002 // Author: Ilka  Antcheva 10/05/04
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TAttFillEditor
0013 #define ROOT_TAttFillEditor
0014 
0015 
0016 #include "TGedFrame.h"
0017 
0018 class TGColorSelect;
0019 class TGedPatternSelect;
0020 class TAttFill;
0021 class TGNumberEntryField;
0022 
0023 class TAttFillEditor : public TGedFrame {
0024 
0025 protected:
0026    TAttFill            *fAttFill;          ///< fill attribute object
0027    TGColorSelect       *fColorSelect;      ///< fill color widget
0028    TGedPatternSelect   *fPatternSelect;    ///< fill pattern widget
0029    TGHSlider           *fAlpha;            ///< fill opacity
0030    TGNumberEntryField  *fAlphaField;
0031 
0032    virtual void ConnectSignals2Slots();
0033 
0034 public:
0035    TAttFillEditor(const TGWindow *p = nullptr,
0036                   Int_t width = 140, Int_t height = 30,
0037                   UInt_t options = kChildFrame,
0038                   Pixel_t back = GetDefaultFrameBackground());
0039    ~TAttFillEditor() override;
0040 
0041    void   SetModel(TObject* obj) override;
0042    virtual void   DoFillColor(Pixel_t color);
0043    virtual void   DoFillAlphaColor(ULongptr_t p);
0044    virtual void   DoFillPattern(Style_t color);
0045    virtual void   DoAlpha();
0046    virtual void   DoAlphaField();
0047    virtual void   DoLiveAlpha(Int_t a);
0048    virtual void   GetCurAlpha();
0049 
0050    ClassDefOverride(TAttFillEditor,0)  //GUI for editing fill attributes
0051 };
0052 
0053 #endif