Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TAxisEditor.h
Go to the documentation of this file.
1// @(#)root/ged:$Id$
2// Author: Ilka Antcheva 11/05/04
3
4/*************************************************************************
5 * Copyright (C) 1995-2002, 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_TAxisEditor
13#define ROOT_TAxisEditor
14
15
16#include "TGedFrame.h"
17
18class TAxis;
19class TGLabel;
20class TGComboBox;
21class TGNumberEntry;
22class TGTextEntry;
23class TGCheckButton;
24class TGColorSelect;
26
27
28class TAxisEditor : public TGedFrame {
29
30protected:
31 TAxis *fAxis; ///< axis object
32 TGColorSelect *fAxisColor; ///< color selection widget
33 TGCheckButton *fLogAxis; ///< logarithmic check box
34 TGNumberEntry *fTickLength; ///< tick length number entry
35 TGNumberEntry *fDiv1; ///< primary axis division number entry
36 TGNumberEntry *fDiv2; ///< secondary axis division number entry
37 TGNumberEntry *fDiv3; ///< tertiary axis division number entry
38 TGCheckButton *fOptimize; ///< tick optimization check box
39 TGCheckButton *fTicksBoth; ///< check box setting ticks on both axis sides
40 TGCheckButton *fMoreLog; ///< more logarithmic labels check box
41 Int_t fTicksFlag; ///< positive/negative ticks' flag
42 TGTextEntry *fTitle; ///< axis title input field
43 TGColorSelect *fTitleColor; ///< color selection widget
44 TGFontTypeComboBox *fTitleFont; ///< title font combo box
45 Int_t fTitlePrec; ///< font precision level
46 TGNumberEntry *fTitleSize; ///< title size number entry
47 TGNumberEntry *fTitleOffset; ///< title offset number entry
48 TGCheckButton *fCentered; ///< check button for centered title
49 TGCheckButton *fRotated; ///< check button for rotated title
50 TGColorSelect *fLabelColor; ///< color selection widget
51 TGFontTypeComboBox *fLabelFont; ///< label font combo box
52 Int_t fLabelPrec; ///< font precision level
53 TGNumberEntry *fLabelSize; ///< label size number entry
54 TGNumberEntry *fLabelOffset; ///< label offset number entry
55 TGCheckButton *fNoExponent; ///< check box for No exponent choice
56 TGCheckButton *fDecimal; ///< decimal part check box
57
58 virtual void ConnectSignals2Slots();
59
60public:
61 TAxisEditor(const TGWindow *p = nullptr,
62 Int_t width = 140, Int_t height = 30,
63 UInt_t options = kChildFrame,
65 virtual ~TAxisEditor();
66 virtual void SetModel(TObject* obj);
67 // slots related to axis attributes
68 virtual void DoTickLength();
69 virtual void DoAxisColor(Pixel_t color);
70 virtual void DoTicks();
71 virtual void DoDivisions();
72 virtual void DoLogAxis();
73 virtual void DoMoreLog();
74 // slots related to axis title attributes
75 virtual void DoTitleColor(Pixel_t color);
76 virtual void DoTitle(const char *text);
77 virtual void DoTitleSize();
78 virtual void DoTitleFont(Int_t font);
79 virtual void DoTitleOffset();
80 virtual void DoTitleCentered();
81 virtual void DoTitleRotated();
82 // slots related to axis labels attributes
83 virtual void DoLabelColor(Pixel_t color);
84 virtual void DoLabelSize();
85 virtual void DoLabelFont(Int_t font);
86 virtual void DoLabelOffset();
87 virtual void DoNoExponent();
88 virtual void DoDecimal(Bool_t on);
89
90 ClassDef(TAxisEditor,0) // axis editor
91};
92
93#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 TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
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
Option_t Option_t TPoint TPoint const char text
Implements GUI for axis attributes.
Definition TAxisEditor.h:28
TGCheckButton * fRotated
check button for rotated title
Definition TAxisEditor.h:49
virtual void DoLabelColor(Pixel_t color)
Slot connected to the label color.
virtual void DoTitleColor(Pixel_t color)
Slot connected to the title color.
TGColorSelect * fTitleColor
color selection widget
Definition TAxisEditor.h:43
virtual void DoAxisColor(Pixel_t color)
Slot connected to the axis color.
virtual void DoTitleCentered()
Slot connected to centered title option.
TGCheckButton * fMoreLog
more logarithmic labels check box
Definition TAxisEditor.h:40
TGNumberEntry * fDiv2
secondary axis division number entry
Definition TAxisEditor.h:36
TGColorSelect * fAxisColor
color selection widget
Definition TAxisEditor.h:32
Int_t fLabelPrec
font precision level
Definition TAxisEditor.h:52
Int_t fTicksFlag
positive/negative ticks' flag
Definition TAxisEditor.h:41
virtual void DoTitleOffset()
Slot connected to the title offset.
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void DoTicks()
Slot connected to the ticks draw settings.
virtual void DoTitleFont(Int_t font)
Slot connected to the title font.
TGTextEntry * fTitle
axis title input field
Definition TAxisEditor.h:42
TGCheckButton * fNoExponent
check box for No exponent choice
Definition TAxisEditor.h:55
TGFontTypeComboBox * fTitleFont
title font combo box
Definition TAxisEditor.h:44
TGCheckButton * fLogAxis
logarithmic check box
Definition TAxisEditor.h:33
virtual ~TAxisEditor()
Destructor of axis editor.
Int_t fTitlePrec
font precision level
Definition TAxisEditor.h:45
virtual void DoTitle(const char *text)
Slot connected to the axis color.
virtual void DoDecimal(Bool_t on)
Slot connected to the decimal part setting.
TGNumberEntry * fTickLength
tick length number entry
Definition TAxisEditor.h:34
virtual void DoTitleSize()
Slot connected to the title font size.
TGNumberEntry * fTitleOffset
title offset number entry
Definition TAxisEditor.h:47
virtual void DoLabelOffset()
Slot connected to the label offset.
TGNumberEntry * fDiv1
primary axis division number entry
Definition TAxisEditor.h:35
TGNumberEntry * fTitleSize
title size number entry
Definition TAxisEditor.h:46
TGColorSelect * fLabelColor
color selection widget
Definition TAxisEditor.h:50
virtual void DoTickLength()
Slot connected to the tick length settings.
TGCheckButton * fTicksBoth
check box setting ticks on both axis sides
Definition TAxisEditor.h:39
virtual void DoTitleRotated()
Slot connected to the title rotation.
TGNumberEntry * fLabelOffset
label offset number entry
Definition TAxisEditor.h:54
TGCheckButton * fOptimize
tick optimization check box
Definition TAxisEditor.h:38
virtual void DoLogAxis()
Slot for Log scale setting.
TGCheckButton * fCentered
check button for centered title
Definition TAxisEditor.h:48
virtual void DoNoExponent()
Slot connected to the labels' exponent flag.
TGCheckButton * fDecimal
decimal part check box
Definition TAxisEditor.h:56
virtual void DoDivisions()
Slot connected to the number of divisions.
virtual void DoLabelFont(Int_t font)
Slot connected to the label font.
TGNumberEntry * fDiv3
tertiary axis division number entry
Definition TAxisEditor.h:37
virtual void DoMoreLog()
Slot connected to more Log labels flag.
TGNumberEntry * fLabelSize
label size number entry
Definition TAxisEditor.h:53
virtual void DoLabelSize()
Slot connected to the label size.
virtual void SetModel(TObject *obj)
Pick up the used values of axis attributes.
TAxis * fAxis
axis object
Definition TAxisEditor.h:31
TGFontTypeComboBox * fLabelFont
label font combo box
Definition TAxisEditor.h:51
Class to manage histogram axis.
Definition TAxis.h:30
Selects different options.
Definition TGButton.h:264
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
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
The TGFontTypeComboBox is user callable and it creates a combobox for selecting the font.
Definition TGComboBox.h:178
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:683
This class handles GUI labels.
Definition TGLabel.h:24
TGNumberEntry is a number entry input widget with up/down buttons.
A TGTextEntry is a one line text input widget.
Definition TGTextEntry.h:24
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