Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TAttLineEditor.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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_TAttLineEditor
0013 #define ROOT_TAttLineEditor
0014 
0015 
0016 #include "TGedFrame.h"
0017 
0018 class TGLineStyleComboBox;
0019 class TGLineWidthComboBox;
0020 class TGColorSelect;
0021 class TAttLine;
0022 class TGNumberEntryField;
0023 
0024 class TAttLineEditor : public TGedFrame {
0025 
0026 protected:
0027    TAttLine             *fAttLine;          ///< line attribute object
0028    TGLineStyleComboBox  *fStyleCombo;       ///< line style combo box
0029    TGLineWidthComboBox  *fWidthCombo;       ///< line width combo box
0030    TGColorSelect        *fColorSelect;      ///< line color widget
0031    TGHSlider            *fAlpha;            ///< fill opacity
0032    TGNumberEntryField   *fAlphaField;
0033 
0034    virtual void   ConnectSignals2Slots();
0035 
0036 public:
0037    TAttLineEditor(const TGWindow *p = nullptr,
0038                   Int_t width = 140, Int_t height = 30,
0039                   UInt_t options = kChildFrame,
0040                   Pixel_t back = GetDefaultFrameBackground());
0041    ~TAttLineEditor() override;
0042 
0043    void   SetModel(TObject* obj) override;
0044    virtual void   DoLineColor(Pixel_t color);
0045    virtual void   DoLineAlphaColor(ULongptr_t p);
0046    virtual void   DoLineStyle(Int_t style);
0047    virtual void   DoLineWidth(Int_t width);
0048    virtual void   DoAlpha();
0049    virtual void   DoAlphaField();
0050    virtual void   DoLiveAlpha(Int_t a);
0051    virtual void   GetCurAlpha();
0052 
0053    ClassDefOverride(TAttLineEditor,0)  // GUI for editing line attributes
0054 };
0055 
0056 #endif