// @(#)root/ged:$Id$
// Author: Ilka  Antcheva 20/10/04

/*************************************************************************
 * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TArrowEditor
#define ROOT_TArrowEditor

//////////////////////////////////////////////////////////////////////////
//                                                                      //
//  TArrowEditor                                                        //
//                                                                      //
//  Implements GUI for editing arrow attributes: shape, size, angle.    //                                             //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TGedFrame
#include "TGedFrame.h"
#endif

class TGComboBox;
class TGNumberEntry;
class TArrow;

class TArrowEditor : public TGedFrame {

protected:
   TArrow               *fArrow;            // arrow object
   TGComboBox           *fOptionCombo;      // arrow shapes combo box
   TGNumberEntry        *fAngleEntry;       // opening angle entry
   TGNumberEntry        *fSizeEntry;        // size entry

   virtual void   ConnectSignals2Slots();
   TGComboBox    *BuildOptionComboBox(TGFrame* parent, Int_t id);
   Int_t          GetShapeEntry(Option_t *opt);

public:
   TArrowEditor(const TGWindow *p = 0,
                Int_t width = 140, Int_t height = 30,
                UInt_t options = kChildFrame,
                Pixel_t back = GetDefaultFrameBackground());
   virtual ~TArrowEditor();

   virtual void   SetModel(TObject* obj);
   virtual void   DoAngle();
   virtual void   DoOption(Int_t id);
   virtual void   DoSize();

   ClassDef(TArrowEditor,0)  // GUI for editing arrow attributes
};

#endif
 TArrowEditor.h:1
 TArrowEditor.h:2
 TArrowEditor.h:3
 TArrowEditor.h:4
 TArrowEditor.h:5
 TArrowEditor.h:6
 TArrowEditor.h:7
 TArrowEditor.h:8
 TArrowEditor.h:9
 TArrowEditor.h:10
 TArrowEditor.h:11
 TArrowEditor.h:12
 TArrowEditor.h:13
 TArrowEditor.h:14
 TArrowEditor.h:15
 TArrowEditor.h:16
 TArrowEditor.h:17
 TArrowEditor.h:18
 TArrowEditor.h:19
 TArrowEditor.h:20
 TArrowEditor.h:21
 TArrowEditor.h:22
 TArrowEditor.h:23
 TArrowEditor.h:24
 TArrowEditor.h:25
 TArrowEditor.h:26
 TArrowEditor.h:27
 TArrowEditor.h:28
 TArrowEditor.h:29
 TArrowEditor.h:30
 TArrowEditor.h:31
 TArrowEditor.h:32
 TArrowEditor.h:33
 TArrowEditor.h:34
 TArrowEditor.h:35
 TArrowEditor.h:36
 TArrowEditor.h:37
 TArrowEditor.h:38
 TArrowEditor.h:39
 TArrowEditor.h:40
 TArrowEditor.h:41
 TArrowEditor.h:42
 TArrowEditor.h:43
 TArrowEditor.h:44
 TArrowEditor.h:45
 TArrowEditor.h:46
 TArrowEditor.h:47
 TArrowEditor.h:48
 TArrowEditor.h:49
 TArrowEditor.h:50
 TArrowEditor.h:51
 TArrowEditor.h:52
 TArrowEditor.h:53
 TArrowEditor.h:54
 TArrowEditor.h:55
 TArrowEditor.h:56
 TArrowEditor.h:57
 TArrowEditor.h:58