00001 // @(#)root/ged:$Id: TArrowEditor.h 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: Ilka Antcheva 20/10/04 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TArrowEditor 00013 #define ROOT_TArrowEditor 00014 00015 ////////////////////////////////////////////////////////////////////////// 00016 // // 00017 // TArrowEditor // 00018 // // 00019 // Implements GUI for editing arrow attributes: shape, size, angle. // // 00020 // // 00021 ////////////////////////////////////////////////////////////////////////// 00022 00023 #ifndef ROOT_TGedFrame 00024 #include "TGedFrame.h" 00025 #endif 00026 00027 class TGComboBox; 00028 class TGNumberEntry; 00029 class TArrow; 00030 00031 class TArrowEditor : public TGedFrame { 00032 00033 protected: 00034 TArrow *fArrow; // arrow object 00035 TGComboBox *fOptionCombo; // arrow shapes combo box 00036 TGNumberEntry *fAngleEntry; // opening angle entry 00037 TGNumberEntry *fSizeEntry; // size entry 00038 00039 virtual void ConnectSignals2Slots(); 00040 TGComboBox *BuildOptionComboBox(TGFrame* parent, Int_t id); 00041 Int_t GetShapeEntry(Option_t *opt); 00042 00043 public: 00044 TArrowEditor(const TGWindow *p = 0, 00045 Int_t width = 140, Int_t height = 30, 00046 UInt_t options = kChildFrame, 00047 Pixel_t back = GetDefaultFrameBackground()); 00048 virtual ~TArrowEditor(); 00049 00050 virtual void SetModel(TObject* obj); 00051 virtual void DoAngle(); 00052 virtual void DoOption(Int_t id); 00053 virtual void DoSize(); 00054 00055 ClassDef(TArrowEditor,0) // GUI for editing arrow attributes 00056 }; 00057 00058 #endif