Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TArrowEditor.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 20/10/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_TArrowEditor
0013 #define ROOT_TArrowEditor
0014 
0015 
0016 #include "GuiTypes.h"
0017 #include "TGedFrame.h"
0018 #include "TGFrame.h"
0019 
0020 class TGComboBox;
0021 class TGNumberEntry;
0022 class TArrow;
0023 
0024 class TArrowEditor : public TGedFrame {
0025 
0026 protected:
0027    TArrow               *fArrow;            ///< arrow object
0028    TGComboBox           *fOptionCombo;      ///< arrow shapes combo box
0029    TGNumberEntry        *fAngleEntry;       ///< opening angle entry
0030    TGNumberEntry        *fSizeEntry;        ///< size entry
0031 
0032    virtual void   ConnectSignals2Slots();
0033    TGComboBox    *BuildOptionComboBox(TGFrame* parent, Int_t id);
0034    Int_t          GetShapeEntry(Option_t *opt);
0035 
0036 public:
0037    TArrowEditor(const TGWindow *p = nullptr,
0038                 Int_t width = 140, Int_t height = 30,
0039                 UInt_t options = kChildFrame,
0040                 Pixel_t back = GetDefaultFrameBackground());
0041    ~TArrowEditor() override;
0042 
0043    void   SetModel(TObject* obj) override;
0044    virtual void   DoAngle();
0045    virtual void   DoOption(Int_t id);
0046    virtual void   DoSize();
0047 
0048    ClassDefOverride(TArrowEditor,0)  // GUI for editing arrow attributes
0049 };
0050 
0051 #endif