Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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#include "GuiTypes.h"
17#include "TGedFrame.h"
18#include "TGFrame.h"
19
20class TGComboBox;
21class TGNumberEntry;
22class TArrow;
23
24class TArrowEditor : public TGedFrame {
25
26protected:
27 TArrow *fArrow; ///< arrow object
28 TGComboBox *fOptionCombo; ///< arrow shapes combo box
29 TGNumberEntry *fAngleEntry; ///< opening angle entry
30 TGNumberEntry *fSizeEntry; ///< size entry
31
32 virtual void ConnectSignals2Slots();
35
36public:
37 TArrowEditor(const TGWindow *p = nullptr,
38 Int_t width = 140, Int_t height = 30,
39 UInt_t options = kChildFrame,
41 ~TArrowEditor() override;
42
43 void SetModel(TObject* obj) override;
44 virtual void DoAngle();
45 virtual void DoOption(Int_t id);
46 virtual void DoSize();
47
48 ClassDefOverride(TArrowEditor,0) // GUI for editing arrow attributes
49};
50
51#endif
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
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.
virtual void ConnectSignals2Slots()
Connect signals to slots.
TArrow * fArrow
arrow object
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
virtual void DoSize()
Slot connected to the arrow size.
TGNumberEntry * fAngleEntry
opening angle entry
TGComboBox * BuildOptionComboBox(TGFrame *parent, Int_t id)
Arrow shape combobox.
TGComboBox * fOptionCombo
arrow shapes combo box
void SetModel(TObject *obj) override
Pick up the used arrow attributes.
~TArrowEditor() override
Destructor of arrow editor.
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
Mother of all ROOT objects.
Definition TObject.h:41