ROOT  6.06/09
Reference Guide
TPadEditor.h
Go to the documentation of this file.
1 // @(#)root/ged:$Id$
2 // Author: Ilka Antcheva 24/06/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_TPadEditor
13 #define ROOT_TPadEditor
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TPadEditor //
18 // //
19 // Editor of pad/canvas objects. //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #ifndef ROOT_TGedFrame
24 #include "TGedFrame.h"
25 #endif
26 
27 class TGCheckButton;
28 class TGRadioButton;
30 class TGButtonGroup;
31 class TPad;
32 
33 
34 class TPadEditor : public TGedFrame {
35 
36 protected:
37  TPad *fPadPointer; // TPad object
38  TGCheckButton *fEditable; // set pad editable
39  TGCheckButton *fCrosshair; // set crosshair
40  TGCheckButton *fFixedAR; // set fixed aspect ratio
41  TGCheckButton *fGridX; // set grid on X
42  TGCheckButton *fGridY; // set grid on Y
43  TGCheckButton *fLogX; // set log scale on X
44  TGCheckButton *fLogY; // set log scale on Y
45  TGCheckButton *fLogZ; // set log scale on Z
46  TGCheckButton *fTickX; // set ticks on X
47  TGCheckButton *fTickY; // set ticks on Y
48  TGRadioButton *fBmode; // set sinken pad border mode
49  TGRadioButton *fBmode0; // set no pad border
50  TGRadioButton *fBmode1; // set raised pad border mode
51  TGLayoutHints *fBmodelh; // layout hints for border mode buttons
52  TGLineWidthComboBox *fBsize; // set pad border size
53  TGButtonGroup *fBgroup; // button group of border mode
54 
55  virtual void ConnectSignals2Slots();
56 
57 public:
58  TPadEditor(const TGWindow *p = 0,
59  Int_t width = 140, Int_t height = 30,
60  UInt_t options = kChildFrame,
62  virtual ~TPadEditor();
63 
64  virtual void SetModel(TObject* obj);
65  virtual void ActivateBaseClassEditors(TClass* cl);
66 
67  virtual void DoEditable(Bool_t on);
68  virtual void DoCrosshair(Bool_t on);
69  virtual void DoFixedAspectRatio(Bool_t on);
70  virtual void DoGridX(Bool_t on);
71  virtual void DoGridY(Bool_t on);
72  virtual void DoLogX(Bool_t on);
73  virtual void DoLogY(Bool_t on);
74  virtual void DoLogZ(Bool_t on);
75  virtual void DoTickX(Bool_t on);
76  virtual void DoTickY(Bool_t on);
77  virtual void DoBorderMode();
78  virtual void DoBorderSize(Int_t size);
79 
80  ClassDef(TPadEditor,0) //editor of TPad objects
81 };
82 
83 #endif
virtual void DoCrosshair(Bool_t on)
Slot connected to the check box 'Crosshair'.
Definition: TPadEditor.cxx:270
virtual void DoFixedAspectRatio(Bool_t on)
Slot connected to the check box 'Fixed aspect ratio'.
Definition: TPadEditor.cxx:280
virtual void ActivateBaseClassEditors(TClass *cl)
Exclude TAttLineEditor from this interface.
Definition: TPadEditor.cxx:251
TGCheckButton * fLogY
Definition: TPadEditor.h:44
TGCheckButton * fGridX
Definition: TPadEditor.h:41
virtual void ConnectSignals2Slots()
Connect signals to slots.
Definition: TPadEditor.cxx:158
TGCheckButton * fTickY
Definition: TPadEditor.h:47
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
virtual void DoGridX(Bool_t on)
Slot connected to the check box 'GridX'.
Definition: TPadEditor.cxx:290
TGCheckButton * fTickX
Definition: TPadEditor.h:46
TPadEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of TPad editor GUI.
Definition: TPadEditor.cxx:63
ULong_t Pixel_t
Definition: GuiTypes.h:41
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
virtual void DoBorderMode()
Slot connected to the border mode settings.
Definition: TPadEditor.cxx:360
TGCheckButton * fEditable
Definition: TPadEditor.h:38
virtual void DoLogX(Bool_t on)
Slot connected to the check box 'LogX'.
Definition: TPadEditor.cxx:310
ClassDef(TGedFrame, 0)
TGCheckButton * fLogX
Definition: TPadEditor.h:43
virtual ~TPadEditor()
Destructor of fill editor.
Definition: TPadEditor.cxx:146
virtual void DoEditable(Bool_t on)
Slot connected to the check box 'Editable'.
Definition: TPadEditor.cxx:260
TGCheckButton * fLogZ
Definition: TPadEditor.h:45
virtual void DoGridY(Bool_t on)
Slot connected to the check box 'GridY'.
Definition: TPadEditor.cxx:300
unsigned int UInt_t
Definition: RtypesCore.h:42
The most important graphics class in the ROOT system.
Definition: TPad.h:46
The ROOT global object gROOT contains a list of all defined classes.
Definition: TClass.h:81
TGRadioButton * fBmode1
Definition: TPadEditor.h:50
virtual void DoLogY(Bool_t on)
Slot connected to the check box 'LogY'.
Definition: TPadEditor.cxx:320
TPad * fPadPointer
Definition: TPadEditor.h:37
TGLineWidthComboBox * fBsize
Definition: TPadEditor.h:52
virtual void DoTickX(Bool_t on)
Slot connected to the check box 'TickX'.
Definition: TPadEditor.cxx:340
TGLayoutHints * fBmodelh
Definition: TPadEditor.h:51
TGCheckButton * fGridY
Definition: TPadEditor.h:42
Mother of all ROOT objects.
Definition: TObject.h:58
TGButtonGroup * fBgroup
Definition: TPadEditor.h:53
TGRadioButton * fBmode
Definition: TPadEditor.h:48
virtual void SetModel(TObject *obj)
Pick up the used fill attributes.
Definition: TPadEditor.cxx:178
virtual void DoTickY(Bool_t on)
Slot connected to the check box 'TickY'.
Definition: TPadEditor.cxx:350
TGCheckButton * fCrosshair
Definition: TPadEditor.h:39
virtual void DoBorderSize(Int_t size)
Slot connected to the border size settings.
Definition: TPadEditor.cxx:380
TGRadioButton * fBmode0
Definition: TPadEditor.h:49
TObject * obj
virtual void DoLogZ(Bool_t on)
Slot connected to the check box 'LogZ'.
Definition: TPadEditor.cxx:330
TGCheckButton * fFixedAR
Definition: TPadEditor.h:40