ROOT
master
Reference Guide
Loading...
Searching...
No Matches
TPieSliceEditor.h
Go to the documentation of this file.
1
// Author: Guido Volpi 05/18/2008
2
3
/*************************************************************************
4
* Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *
5
* All rights reserved. *
6
* *
7
* For the licensing terms see $ROOTSYS/LICENSE. *
8
* For the list of contributors see $ROOTSYS/README/CREDITS. *
9
*************************************************************************/
10
11
12
#ifndef ROOT_TPieSliceEditor
13
#define ROOT_TPieSliceEditor
14
#include "
TGedFrame.h
"
15
16
class
TPieSlice
;
17
class
TGTextEntry
;
18
class
TGNumberEntry
;
19
20
class
TPieSliceEditor
:
public
TGedFrame
{
21
22
private
:
23
TPieSlice
*
fPieSlice
;
24
25
protected
:
26
TGTextEntry
*
fTitle
;
///< Slice label
27
TGNumberEntry
*
fValue
;
///< Value of the slice
28
TGNumberEntry
*
fOffset
;
///< Grafical offset in the radial direction
29
30
void
ConnectSignals2Slots
();
31
32
public
:
33
TPieSliceEditor
(
const
TGWindow
*
p
=
nullptr
,
34
Int_t
width
= 140,
Int_t
height
= 30,
35
UInt_t
options =
kChildFrame
,
36
Pixel_t
back =
GetDefaultFrameBackground
());
37
~TPieSliceEditor
()
override
;
38
39
void
SetModel
(
TObject
*)
override
;
40
41
void
DoTitle
(
const
char
*);
42
void
DoValue
();
43
void
DoOffset
();
44
45
ClassDefOverride
(
TPieSliceEditor
,0)
// piechart' slice editor
46
};
47
48
#endif
// ROOT_TPieSliceEditor
49
kChildFrame
@ kChildFrame
Definition
GuiTypes.h:379
Pixel_t
ULong_t Pixel_t
Pixel value.
Definition
GuiTypes.h:40
ClassDefOverride
#define ClassDefOverride(name, id)
Definition
Rtypes.h:346
p
winID h TVirtualViewer3D TVirtualGLPainter p
Definition
TGWin32VirtualGLProxy.cxx:51
width
Option_t Option_t width
Definition
TGWin32VirtualXProxy.cxx:56
height
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Definition
TGWin32VirtualXProxy.cxx:164
TGedFrame.h
TGFrame::GetDefaultFrameBackground
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition
TGFrame.cxx:683
TGNumberEntry
TGNumberEntry is a number entry input widget with up/down buttons.
Definition
TGNumberEntry.h:148
TGTextEntry
A TGTextEntry is a one line text input widget.
Definition
TGTextEntry.h:24
TGWindow
ROOT GUI Window base class.
Definition
TGWindow.h:23
TGedFrame
Base frame for implementing GUI - a service class.
Definition
TGedFrame.h:27
TObject
Mother of all ROOT objects.
Definition
TObject.h:41
TPieSliceEditor
Editor for changing pie-chart's slice attributes.
Definition
TPieSliceEditor.h:20
TPieSliceEditor::ConnectSignals2Slots
void ConnectSignals2Slots()
Connect signals to slots.
Definition
TPieSliceEditor.cxx:99
TPieSliceEditor::SetModel
void SetModel(TObject *) override
Set model.
Definition
TPieSliceEditor.cxx:82
TPieSliceEditor::DoTitle
void DoTitle(const char *)
Slot for setting the graph title.
Definition
TPieSliceEditor.cxx:112
TPieSliceEditor::fOffset
TGNumberEntry * fOffset
Grafical offset in the radial direction.
Definition
TPieSliceEditor.h:28
TPieSliceEditor::fValue
TGNumberEntry * fValue
Value of the slice.
Definition
TPieSliceEditor.h:27
TPieSliceEditor::DoValue
void DoValue()
Slot for setting the graph title.
Definition
TPieSliceEditor.cxx:123
TPieSliceEditor::fPieSlice
TPieSlice * fPieSlice
Definition
TPieSliceEditor.h:23
TPieSliceEditor::~TPieSliceEditor
~TPieSliceEditor() override
TPieSliceEditor destructor.
Definition
TPieSliceEditor.cxx:74
TPieSliceEditor::fTitle
TGTextEntry * fTitle
Slice label.
Definition
TPieSliceEditor.h:26
TPieSliceEditor::DoOffset
void DoOffset()
Slot for setting the graph title.
Definition
TPieSliceEditor.cxx:135
TPieSlice
A slice of a piechart, see the TPie class.
Definition
TPieSlice.h:18
int
unsigned int
gui
ged
inc
TPieSliceEditor.h
ROOT master - Reference Guide Generated on Sat Nov 16 2024 09:38:01 (GVA Time) using Doxygen 1.9.8