Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 
25 class TGCheckButton;
26 class TGRadioButton;
27 class TGLineWidthComboBox;
28 class TGButtonGroup;
29 class TPad;
30 
31 
32 class TPadEditor : public TGedFrame {
33 
34 protected:
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 
55 public:
56  TPadEditor(const TGWindow *p = 0,
57  Int_t width = 140, Int_t height = 30,
58  UInt_t options = kChildFrame,
59  Pixel_t back = GetDefaultFrameBackground());
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