Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // @(#)root/ged:$Id$
0002 // Author: Ilka  Antcheva, Otto Schaile 15/12/04
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2004, 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_TCurlyLineEditor
0013 #define ROOT_TCurlyLineEditor
0014 
0015 
0016 #include "TGedFrame.h"
0017 
0018 class TGNumberEntry;
0019 class TGCheckButton;
0020 class TCurlyLine;
0021 
0022 class TCurlyLineEditor : public TGedFrame {
0023 
0024 protected:
0025    TCurlyLine           *fCurlyLine;            ///< CurlyLineobject
0026    TGNumberEntry        *fStartXEntry;          ///< start  x entry
0027    TGNumberEntry        *fEndXEntry;            ///< end  x entry
0028    TGNumberEntry        *fStartYEntry;          ///< start  y entry
0029    TGNumberEntry        *fEndYEntry;            ///< end  y entry
0030    TGNumberEntry        *fAmplitudeEntry;       ///< ampl entry
0031    TGNumberEntry        *fWaveLengthEntry;      ///< wavelength entry
0032    TGCheckButton        *fIsWavy;               ///< toggle wavy / curly
0033    TGCompositeFrame     *fStartXFrame;
0034 
0035    virtual void   ConnectSignals2Slots();
0036 
0037 public:
0038    TCurlyLineEditor(const TGWindow *p = nullptr,
0039                 Int_t width = 140, Int_t height = 30,
0040                 UInt_t options = kChildFrame,
0041                 Pixel_t back = GetDefaultFrameBackground());
0042    ~TCurlyLineEditor() override;
0043 
0044    void   SetModel(TObject* obj) override;
0045    void   ActivateBaseClassEditors(TClass* cl) override;
0046    virtual void   DoStartXY();
0047    virtual void   DoEndXY();
0048    virtual void   DoAmplitude();
0049    virtual void   DoWaveLength();
0050    virtual void   DoWavy();
0051 
0052    ClassDefOverride(TCurlyLineEditor,0)  // GUI for editing arrow attributes
0053 };
0054 
0055 #endif