Logo ROOT  
Reference Guide
Go to the documentation of this file.
1// @(#)root/ged:$Id$
2// Author: Ilka Antcheva 20/10/04
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 *************************************************************************/
12#ifndef ROOT_TArrowEditor
13#define ROOT_TArrowEditor
16#include "GuiTypes.h"
17#include "TGedFrame.h"
18#include "TGFrame.h"
20class TGComboBox;
21class TGNumberEntry;
22class TArrow;
24class TArrowEditor : public TGedFrame {
27 TArrow *fArrow; ///< arrow object
28 TGComboBox *fOptionCombo; ///< arrow shapes combo box
29 TGNumberEntry *fAngleEntry; ///< opening angle entry
30 TGNumberEntry *fSizeEntry; ///< size entry
32 virtual void ConnectSignals2Slots();
37 TArrowEditor(const TGWindow *p = nullptr,
38 Int_t width = 140, Int_t height = 30,
39 UInt_t options = kChildFrame,
41 virtual ~TArrowEditor();
43 virtual void SetModel(TObject* obj);
44 virtual void DoAngle();
45 virtual void DoOption(Int_t id);
46 virtual void DoSize();
48 ClassDef(TArrowEditor,0) // GUI for editing arrow attributes
@ kChildFrame
Definition: GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition: GuiTypes.h:40
const char Option_t
Definition: RtypesCore.h:66
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t width
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Implements user interface for editing of arrow attributes: shape, size, angle.
Definition: TArrowEditor.h:24
virtual void ConnectSignals2Slots()
Connect signals to slots.
TArrow * fArrow
arrow object
Definition: TArrowEditor.h:27
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
size entry
Definition: TArrowEditor.h:30
virtual ~TArrowEditor()
Destructor of arrow editor.
TArrowEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of arrow GUI.
virtual void DoSize()
Slot connected to the arrow size.
TGNumberEntry * fAngleEntry
opening angle entry
Definition: TArrowEditor.h:29
TGComboBox * BuildOptionComboBox(TGFrame *parent, Int_t id)
Arrow shape combobox.
virtual void SetModel(TObject *obj)
Pick up the used arrow attributes.
TGComboBox * fOptionCombo
arrow shapes combo box
Definition: TArrowEditor.h:28
virtual void DoAngle()
Slot connected to the arrow opening angle setting.
Draw all kinds of Arrows.
Definition: TArrow.h:29
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
Definition: TGComboBox.h:47
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
Definition: TGFrame.h:80
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:683
TGNumberEntry is a number entry input widget with up/down buttons.
ROOT GUI Window base class.
Definition: TGWindow.h:23
Base frame for implementing GUI - a service class.
Definition: TGedFrame.h:27
ClassDef(TGedFrame, 0)
Mother of all ROOT objects.
Definition: TObject.h:41