ROOT  6.06/09
Reference Guide
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 #ifndef ROOT_TGedFrame
24 #include "TGedFrame.h"
25 #endif
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();
42 
43 public:
44  TArrowEditor(const TGWindow *p = 0,
45  Int_t width = 140, Int_t height = 30,
46  UInt_t options = kChildFrame,
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
TGNumberEntry * fAngleEntry
Definition: TArrowEditor.h:36
Int_t GetShapeEntry(Option_t *opt)
Return shape entry according to the arrow draw option.
TGComboBox * fOptionCombo
Definition: TArrowEditor.h:35
const char Option_t
Definition: RtypesCore.h:62
virtual void DoOption(Int_t id)
Slot connected to the arrow shape setting.
virtual void SetModel(TObject *obj)
Pick up the used arrow attributes.
int Int_t
Definition: RtypesCore.h:41
TArrow * fArrow
Definition: TArrowEditor.h:34
ULong_t Pixel_t
Definition: GuiTypes.h:41
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
virtual ~TArrowEditor()
Destructor of arrow editor.
TArrowEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of arrow GUI.
TGComboBox * BuildOptionComboBox(TGFrame *parent, Int_t id)
Arrow shape combobox.
ClassDef(TGedFrame, 0)
virtual void DoAngle()
Slot connected to the arrow opening angle setting.
unsigned int UInt_t
Definition: RtypesCore.h:42
virtual void ConnectSignals2Slots()
Connect signals to slots.
Mother of all ROOT objects.
Definition: TObject.h:58
virtual void DoSize()
Slot connected to the arrow size.
Draw all kinds of Arrows.
Definition: TArrow.h:35
TObject * obj
TGNumberEntry * fSizeEntry
Definition: TArrowEditor.h:37