Logo ROOT  
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#include "TGedFrame.h"
24
25class TGCheckButton;
26class TGRadioButton;
28class TGButtonGroup;
29class TPad;
30
31
32class TPadEditor : public TGedFrame {
33
34protected:
35 TPad *fPadPointer; // TPad object
36 TGCheckButton *fEditable; // set pad editable
37 TGCheckButton *fCrosshair; // set crosshair
38 TGCheckButton *fFixedAR; // set fixed aspect ratio
39 TGCheckButton *fGridX; // set grid on X
40 TGCheckButton *fGridY; // set grid on Y
41 TGCheckButton *fLogX; // set log scale on X
42 TGCheckButton *fLogY; // set log scale on Y
43 TGCheckButton *fLogZ; // set log scale on Z
44 TGCheckButton *fTickX; // set ticks on X
45 TGCheckButton *fTickY; // set ticks on Y
46 TGRadioButton *fBmode; // set sinken pad border mode
47 TGRadioButton *fBmode0; // set no pad border
48 TGRadioButton *fBmode1; // set raised pad border mode
49 TGLayoutHints *fBmodelh; // layout hints for border mode buttons
50 TGLineWidthComboBox *fBsize; // set pad border size
51 TGButtonGroup *fBgroup; // button group of border mode
52
53 virtual void ConnectSignals2Slots();
54
55public:
56 TPadEditor(const TGWindow *p = 0,
57 Int_t width = 140, Int_t height = 30,
58 UInt_t options = kChildFrame,
60 virtual ~TPadEditor();
61
62 virtual void SetModel(TObject* obj);
63 virtual void ActivateBaseClassEditors(TClass* cl);
64
65 virtual void DoEditable(Bool_t on);
66 virtual void DoCrosshair(Bool_t on);
67 virtual void DoFixedAspectRatio(Bool_t on);
68 virtual void DoGridX(Bool_t on);
69 virtual void DoGridY(Bool_t on);
70 virtual void DoLogX(Bool_t on);
71 virtual void DoLogY(Bool_t on);
72 virtual void DoLogZ(Bool_t on);
73 virtual void DoTickX(Bool_t on);
74 virtual void DoTickY(Bool_t on);
75 virtual void DoBorderMode();
76 virtual void DoBorderSize(Int_t size);
77
78 ClassDef(TPadEditor,0) //editor of TPad objects
79};
80
81#endif
ULong_t Pixel_t
Definition: GuiTypes.h:39
int Int_t
Definition: RtypesCore.h:41
unsigned int UInt_t
Definition: RtypesCore.h:42
bool Bool_t
Definition: RtypesCore.h:59
#define ClassDef(name, id)
Definition: Rtypes.h:326
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
@ kChildFrame
Definition: TGFrame.h:57
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition: TClass.h:75
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
Mother of all ROOT objects.
Definition: TObject.h:37
virtual void ConnectSignals2Slots()
Connect signals to slots.
Definition: TPadEditor.cxx:158
TGRadioButton * fBmode0
Definition: TPadEditor.h:47
virtual void DoGridX(Bool_t on)
Slot connected to the check box 'GridX'.
Definition: TPadEditor.cxx:290
TGButtonGroup * fBgroup
Definition: TPadEditor.h:51
virtual void DoLogY(Bool_t on)
Slot connected to the check box 'LogY'.
Definition: TPadEditor.cxx:320
virtual void DoEditable(Bool_t on)
Slot connected to the check box 'Editable'.
Definition: TPadEditor.cxx:260
TGCheckButton * fLogX
Definition: TPadEditor.h:41
TGCheckButton * fFixedAR
Definition: TPadEditor.h:38
virtual void SetModel(TObject *obj)
Pick up the used fill attributes.
Definition: TPadEditor.cxx:178
TGCheckButton * fLogZ
Definition: TPadEditor.h:43
virtual void DoBorderSize(Int_t size)
Slot connected to the border size settings.
Definition: TPadEditor.cxx:380
virtual void DoCrosshair(Bool_t on)
Slot connected to the check box 'Crosshair'.
Definition: TPadEditor.cxx:270
virtual void DoTickY(Bool_t on)
Slot connected to the check box 'TickY'.
Definition: TPadEditor.cxx:350
TGCheckButton * fLogY
Definition: TPadEditor.h:42
TGLineWidthComboBox * fBsize
Definition: TPadEditor.h:50
virtual void DoBorderMode()
Slot connected to the border mode settings.
Definition: TPadEditor.cxx:360
TGCheckButton * fTickX
Definition: TPadEditor.h:44
virtual ~TPadEditor()
Destructor of fill editor.
Definition: TPadEditor.cxx:146
TGRadioButton * fBmode1
Definition: TPadEditor.h:48
TGCheckButton * fGridY
Definition: TPadEditor.h:40
TGCheckButton * fCrosshair
Definition: TPadEditor.h:37
virtual void DoFixedAspectRatio(Bool_t on)
Slot connected to the check box 'Fixed aspect ratio'.
Definition: TPadEditor.cxx:280
TPad * fPadPointer
Definition: TPadEditor.h:35
virtual void DoLogX(Bool_t on)
Slot connected to the check box 'LogX'.
Definition: TPadEditor.cxx:310
TGCheckButton * fGridX
Definition: TPadEditor.h:39
virtual void DoGridY(Bool_t on)
Slot connected to the check box 'GridY'.
Definition: TPadEditor.cxx:300
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
TGRadioButton * fBmode
Definition: TPadEditor.h:46
virtual void DoTickX(Bool_t on)
Slot connected to the check box 'TickX'.
Definition: TPadEditor.cxx:340
TGCheckButton * fEditable
Definition: TPadEditor.h:36
virtual void ActivateBaseClassEditors(TClass *cl)
Exclude TAttLineEditor from this interface.
Definition: TPadEditor.cxx:251
TGCheckButton * fTickY
Definition: TPadEditor.h:45
virtual void DoLogZ(Bool_t on)
Slot connected to the check box 'LogZ'.
Definition: TPadEditor.cxx:330
TGLayoutHints * fBmodelh
Definition: TPadEditor.h:49
The most important graphics class in the ROOT system.
Definition: TPad.h:29