// @(#)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 #include "TGedFrame.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 = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground()); ~TAttLineEditor() override; void SetModel(TObject* obj) override; virtual void DoLineColor(Pixel_t color); virtual void DoLineAlphaColor(ULongptr_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(); ClassDefOverride(TAttLineEditor,0) // GUI for editing line attributes }; #endif