Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-15 09:56:50

0001 // @(#)root/ged:$Id$
0002 // Author: Ilka  Antcheva 11/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_TAttMarkerEditor
0013 #define ROOT_TAttMarkerEditor
0014 
0015 
0016 #include "TGedFrame.h"
0017 
0018 class TGNumberEntry;
0019 class TGColorSelect;
0020 class TGedMarkerSelect;
0021 class TAttMarker;
0022 class TGNumberEntryField;
0023 
0024 class TAttMarkerEditor : public TGedFrame {
0025 
0026 protected:
0027    TAttMarker          *fAttMarker;       ///< marker attribute object
0028    TGNumberEntry       *fMarkerSize;      ///< marker size combo box
0029    TGColorSelect       *fColorSelect;     ///< marker color
0030    TGedMarkerSelect    *fMarkerType;      ///< marker type
0031    Bool_t              fSizeForText;      ///< true if "text" draw option uses marker size
0032    TGHSlider           *fAlpha;           ///< fill opacity
0033    TGNumberEntryField  *fAlphaField;
0034 
0035    virtual void        ConnectSignals2Slots();
0036 
0037 public:
0038    TAttMarkerEditor(const TGWindow *p = nullptr,
0039                     Int_t width = 140, Int_t height = 30,
0040                     UInt_t options = kChildFrame,
0041                     Pixel_t back = GetDefaultFrameBackground());
0042    ~TAttMarkerEditor() override;
0043 
0044    void     SetModel(TObject* obj) override;
0045    virtual void     DoMarkerColor(Pixel_t color);
0046    virtual void     DoMarkerAlphaColor(ULongptr_t p);
0047    virtual void     DoMarkerSize();
0048    virtual void     DoMarkerStyle(Style_t style);
0049    virtual void     DoAlpha();
0050    virtual void     DoAlphaField();
0051    virtual void     DoLiveAlpha(Int_t a);
0052    virtual void     GetCurAlpha();
0053 
0054    ClassDefOverride(TAttMarkerEditor,0)  // GUI for editing marker attributes
0055 };
0056 
0057 #endif