Logo ROOT   6.18/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
27class TGComboBox;
28class TGNumberEntry;
29class TArrow;
30
31class TArrowEditor : public TGedFrame {
32
33protected:
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
43public:
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
ULong_t Pixel_t
Definition: GuiTypes.h:39
int Int_t
Definition: RtypesCore.h:41
unsigned int UInt_t
Definition: RtypesCore.h:42
const char Option_t
Definition: RtypesCore.h:62
#define ClassDef(name, id)
Definition: Rtypes.h:326
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
@ kChildFrame
Definition: TGFrame.h:57
virtual void ConnectSignals2Slots()
Connect signals to slots.
TArrow * fArrow
Definition: TArrowEditor.h:34
Int_t GetShapeEntry(Option_t *opt)
Return shape entry according to the arrow draw option.
virtual void DoOption(Int_t id)
Slot connected to the arrow shape setting.
TGNumberEntry * fSizeEntry
Definition: TArrowEditor.h:37
virtual ~TArrowEditor()
Destructor of arrow editor.
virtual void DoSize()
Slot connected to the arrow size.
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.
TGNumberEntry * fAngleEntry
Definition: TArrowEditor.h:36
TGComboBox * BuildOptionComboBox(TGFrame *parent, Int_t id)
Arrow shape combobox.
virtual void SetModel(TObject *obj)
Pick up the used arrow attributes.
TGComboBox * fOptionCombo
Definition: TArrowEditor.h:35
virtual void DoAngle()
Slot connected to the arrow opening angle setting.
Draw all kinds of Arrows.
Definition: TArrow.h:29
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
Mother of all ROOT objects.
Definition: TObject.h:37