Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:12:12

0001 // @(#)root/ged:$Id$
0002 // Author: Ilka  Antcheva 24/04/06
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2006, 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_TLineEditor
0013 #define ROOT_TLineEditor
0014 
0015 
0016 #include "TGedFrame.h"
0017 
0018 class TGNumberEntry;
0019 class TGCheckButton;
0020 class TLine;
0021 
0022 class TLineEditor : public TGedFrame {
0023 
0024 protected:
0025    TLine           *fLine;         ///< line object
0026    TGNumberEntry   *fStartPointX;  ///< start point x coordinate
0027    TGNumberEntry   *fStartPointY;  ///< start point y coordinate
0028    TGNumberEntry   *fEndPointX;    ///< end point x coordinate
0029    TGNumberEntry   *fEndPointY;    ///< end point y coordinate
0030    TGCheckButton   *fVertical;     ///< set the line vertical
0031    TGCheckButton   *fHorizontal;   ///< set the line horizontal
0032 
0033    virtual void   ConnectSignals2Slots();
0034 
0035 public:
0036    TLineEditor(const TGWindow *p = nullptr,
0037                Int_t width = 140, Int_t height = 30,
0038                UInt_t options = kChildFrame,
0039                Pixel_t back = GetDefaultFrameBackground());
0040    ~TLineEditor() override;
0041 
0042    void   SetModel(TObject* obj) override;
0043    virtual void   DoStartPoint();
0044    virtual void   DoEndPoint();
0045    virtual void   DoLineVertical();
0046    virtual void   DoLineHorizontal();
0047 
0048    ClassDefOverride(TLineEditor,0)  // GUI for editing Line attributes
0049 };
0050 
0051 #endif