Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define ClassDef(name, id)
Definition Rtypes.h:325
include TDocParser_001 C image html pict1_TDocParser_001 png width
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition TClass.h:80
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:668
Mother of all ROOT objects.
Definition TObject.h:37
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGRadioButton * fBmode0
Definition TPadEditor.h:47
virtual void DoGridX(Bool_t on)
Slot connected to the check box 'GridX'.
TGButtonGroup * fBgroup
Definition TPadEditor.h:51
virtual void DoLogY(Bool_t on)
Slot connected to the check box 'LogY'.
virtual void DoEditable(Bool_t on)
Slot connected to the check box 'Editable'.
TGCheckButton * fLogX
Definition TPadEditor.h:41
TGCheckButton * fFixedAR
Definition TPadEditor.h:38
virtual void SetModel(TObject *obj)
Pick up the used fill attributes.
TGCheckButton * fLogZ
Definition TPadEditor.h:43
virtual void DoBorderSize(Int_t size)
Slot connected to the border size settings.
virtual void DoCrosshair(Bool_t on)
Slot connected to the check box 'Crosshair'.
virtual void DoTickY(Bool_t on)
Slot connected to the check box 'TickY'.
TGCheckButton * fLogY
Definition TPadEditor.h:42
TGLineWidthComboBox * fBsize
Definition TPadEditor.h:50
virtual void DoBorderMode()
Slot connected to the border mode settings.
TGCheckButton * fTickX
Definition TPadEditor.h:44
virtual ~TPadEditor()
Destructor of fill editor.
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'.
TPad * fPadPointer
Definition TPadEditor.h:35
virtual void DoLogX(Bool_t on)
Slot connected to the check box 'LogX'.
TGCheckButton * fGridX
Definition TPadEditor.h:39
virtual void DoGridY(Bool_t on)
Slot connected to the check box 'GridY'.
TGRadioButton * fBmode
Definition TPadEditor.h:46
virtual void DoTickX(Bool_t on)
Slot connected to the check box 'TickX'.
TGCheckButton * fEditable
Definition TPadEditor.h:36
virtual void ActivateBaseClassEditors(TClass *cl)
Exclude TAttLineEditor from this interface.
TGCheckButton * fTickY
Definition TPadEditor.h:45
virtual void DoLogZ(Bool_t on)
Slot connected to the check box 'LogZ'.
TGLayoutHints * fBmodelh
Definition TPadEditor.h:49
The most important graphics class in the ROOT system.
Definition TPad.h:26