Logo ROOT   6.14/05
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 #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();
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
image html pict1_TGaxis_012 png width
Define new text attributes for the label number "labNum".
Definition: TGaxis.cxx:2551
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
#define ClassDef(name, id)
Definition: Rtypes.h:320
ULong_t Pixel_t
Definition: GuiTypes.h:39
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.
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:37
virtual void DoSize()
Slot connected to the arrow size.
Draw all kinds of Arrows.
Definition: TArrow.h:29
TGNumberEntry * fSizeEntry
Definition: TArrowEditor.h:37