ROOT logo
// @(#)root/ged:$Id: TArrowEditor.cxx 20882 2007-11-19 11:31:26Z rdm $
// 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.             *
 *************************************************************************/

#include "TArrowEditor.h"
#include "TGComboBox.h"
#include "TGLabel.h"
#include "TGNumberEntry.h"
#include "TArrow.h"

ClassImp(TArrowEditor)

enum EArrowWid {
   kARROW_ANG,
   kARROW_OPT,
   kARROW_SIZ
};

//______________________________________________________________________________
/* Begin_Html
<center><h2>Implements user interface for editing of arrow attributes: 
shape, size, angle.</h2></center>
The picture below shows this interface.
End_Html 
Begin_Macro(GUI)
{
   gROOT->ProcessLine(".x $ROOTSYS/tutorials/graphics/arrow.C");
   c1->SetBorderMode(0);
   c1->ToggleEditor();
   c1->Selected(c1,TArrow,1);
   TRootCanvas *r = (TRootCanvas*)c1->GetCanvasImp();
   r->SetWindowSize(700,500);
   return r->GetMainFrame();
}