Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TCurlyLineEditor.h
Go to the documentation of this file.
1// @(#)root/ged:$Id$
2// Author: Ilka Antcheva, Otto Schaile 15/12/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_TCurlyLineEditor
13#define ROOT_TCurlyLineEditor
14
15
16#include "TGedFrame.h"
17
18class TGNumberEntry;
19class TGCheckButton;
20class TCurlyLine;
21
23
24protected:
25 TCurlyLine *fCurlyLine; ///< CurlyLineobject
26 TGNumberEntry *fStartXEntry; ///< start x entry
27 TGNumberEntry *fEndXEntry; ///< end x entry
28 TGNumberEntry *fStartYEntry; ///< start y entry
29 TGNumberEntry *fEndYEntry; ///< end y entry
31 TGNumberEntry *fWaveLengthEntry; ///< wavelength entry
32 TGCheckButton *fIsWavy; ///< toggle wavy / curly
34
35 virtual void ConnectSignals2Slots();
36
37public:
38 TCurlyLineEditor(const TGWindow *p = nullptr,
39 Int_t width = 140, Int_t height = 30,
40 UInt_t options = kChildFrame,
42 virtual ~TCurlyLineEditor();
43
44 virtual void SetModel(TObject* obj);
45 virtual void ActivateBaseClassEditors(TClass* cl);
46 virtual void DoStartXY();
47 virtual void DoEndXY();
48 virtual void DoAmplitude();
49 virtual void DoWaveLength();
50 virtual void DoWavy();
51
52 ClassDef(TCurlyLineEditor,0) // GUI for editing arrow attributes
53};
54
55#endif
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define ClassDef(name, id)
Definition Rtypes.h:337
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
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition TClass.h:81
Implements GUI for editing CurlyLine attributes: shape, size, angle.
TGCompositeFrame * fStartXFrame
TGNumberEntry * fAmplitudeEntry
ampl entry
virtual void DoWavy()
Slot connected to the wavy / curly setting.
TGNumberEntry * fWaveLengthEntry
wavelength entry
TGNumberEntry * fStartXEntry
start x entry
virtual void DoAmplitude()
Slot connected to the amplitude setting.
virtual void DoWaveLength()
Slot connected to the wavelength setting.
TGNumberEntry * fEndYEntry
end y entry
virtual void ActivateBaseClassEditors(TClass *cl)
Exclude TAttFillEditor.
virtual void DoStartXY()
Slot connected to the CurlyLine StartPoint.
virtual ~TCurlyLineEditor()
Destructor of CurlyLine editor.
TGCheckButton * fIsWavy
toggle wavy / curly
TGNumberEntry * fEndXEntry
end x entry
virtual void ConnectSignals2Slots()
Connect signals to slots.
TCurlyLine * fCurlyLine
CurlyLineobject.
virtual void SetModel(TObject *obj)
Pick up the used curly line attributes.
virtual void DoEndXY()
Slot connected to the CurlyLine End.
TGNumberEntry * fStartYEntry
start y entry
Implements curly or wavy polylines used to draw Feynman diagrams.
Definition TCurlyLine.h:19
Selects different options.
Definition TGButton.h:264
The base class for composite widgets (menu bars, list boxes, etc.).
Definition TGFrame.h:287
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