Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TArrowEditor.h
Go to the documentation of this file.
1 // @(#)root/ged:$Id$
2 // Author: Ilka Antcheva 20/10/04
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TArrowEditor
13 #define ROOT_TArrowEditor
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TArrowEditor //
18 // //
19 // Implements GUI for editing arrow attributes: shape, size, angle. // //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #include "GuiTypes.h"
24 #include "TGedFrame.h"
25 #include "TGFrame.h"
26 
27 class TGComboBox;
28 class TGNumberEntry;
29 class TArrow;
30 
31 class TArrowEditor : public TGedFrame {
32 
33 protected:
34  TArrow *fArrow; // arrow object
35  TGComboBox *fOptionCombo; // arrow shapes combo box
36  TGNumberEntry *fAngleEntry; // opening angle entry
37  TGNumberEntry *fSizeEntry; // size entry
38 
39  virtual void ConnectSignals2Slots();
40  TGComboBox *BuildOptionComboBox(TGFrame* parent, Int_t id);
41  Int_t GetShapeEntry(Option_t *opt);
42 
43 public:
44  TArrowEditor(const TGWindow *p = 0,
45  Int_t width = 140, Int_t height = 30,
46  UInt_t options = kChildFrame,
47  Pixel_t back = GetDefaultFrameBackground());
48  virtual ~TArrowEditor();
49 
50  virtual void SetModel(TObject* obj);
51  virtual void DoAngle();
52  virtual void DoOption(Int_t id);
53  virtual void DoSize();
54 
55  ClassDef(TArrowEditor,0) // GUI for editing arrow attributes
56 };
57 
58 #endif