Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 // //
17 // TAxisEditor //
18 // //
19 // Implements GUI for axis attributes. //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #include "TGedFrame.h"
24 
25 class TAxis;
26 class TGLabel;
27 class TGComboBox;
28 class TGNumberEntry;
29 class TGTextEntry;
30 class TGCheckButton;
31 class TGColorSelect;
32 class TGFontTypeComboBox;
33 
34 
35 class TAxisEditor : public TGedFrame {
36 
37 protected:
38  TAxis *fAxis; // axis object
39  TGColorSelect *fAxisColor; // color selection widget
40  TGCheckButton *fLogAxis; // logarithmic check box
41  TGNumberEntry *fTickLength; // tick length number entry
42  TGNumberEntry *fDiv1; // primary axis division number entry
43  TGNumberEntry *fDiv2; // secondary axis division number entry
44  TGNumberEntry *fDiv3; // tertiary axis division number entry
45  TGCheckButton *fOptimize; // tick optimization check box
46  TGCheckButton *fTicksBoth; // check box setting ticks on both axis sides
47  TGCheckButton *fMoreLog; // more logarithmic labels check box
48  Int_t fTicksFlag; // positive/negative ticks' flag
49  TGTextEntry *fTitle; // axis title input field
50  TGColorSelect *fTitleColor; // color selection widget
51  TGFontTypeComboBox *fTitleFont; // title font combo box
52  Int_t fTitlePrec; // font precision level
53  TGNumberEntry *fTitleSize; // title size number entry
54  TGNumberEntry *fTitleOffset; // title offset number entry
55  TGCheckButton *fCentered; // check button for centered title
56  TGCheckButton *fRotated; // check button for rotated title
57  TGColorSelect *fLabelColor; // color selection widget
58  TGFontTypeComboBox *fLabelFont; // label font combo box
59  Int_t fLabelPrec; // font precision level
60  TGNumberEntry *fLabelSize; // label size number entry
61  TGNumberEntry *fLabelOffset; // label offset number entry
62  TGCheckButton *fNoExponent; // check box for No exponent choice
63  TGCheckButton *fDecimal; // decimal part check box
64 
65  virtual void ConnectSignals2Slots();
66 
67 public:
68  TAxisEditor(const TGWindow *p = 0,
69  Int_t width = 140, Int_t height = 30,
70  UInt_t options = kChildFrame,
71  Pixel_t back = GetDefaultFrameBackground());
72  virtual ~TAxisEditor();
73  virtual void SetModel(TObject* obj);
74  // slots related to axis attributes
75  virtual void DoTickLength();
76  virtual void DoAxisColor(Pixel_t color);
77  virtual void DoTicks();
78  virtual void DoDivisions();
79  virtual void DoLogAxis();
80  virtual void DoMoreLog();
81  // slots related to axis title attributes
82  virtual void DoTitleColor(Pixel_t color);
83  virtual void DoTitle(const char *text);
84  virtual void DoTitleSize();
85  virtual void DoTitleFont(Int_t font);
86  virtual void DoTitleOffset();
87  virtual void DoTitleCentered();
88  virtual void DoTitleRotated();
89  // slots related to axis labels attributes
90  virtual void DoLabelColor(Pixel_t color);
91  virtual void DoLabelSize();
92  virtual void DoLabelFont(Int_t font);
93  virtual void DoLabelOffset();
94  virtual void DoNoExponent();
95  virtual void DoDecimal(Bool_t on);
96 
97  ClassDef(TAxisEditor,0) // axis editor
98 };
99 
100 #endif