ROOT logo
// @(#)root/ged:$Id: TPadEditor.h 20882 2007-11-19 11:31:26Z rdm $
// Author: Ilka  Antcheva 24/06/04

/*************************************************************************
 * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TPadEditor
#define ROOT_TPadEditor

//////////////////////////////////////////////////////////////////////////
//                                                                      //
//  TPadEditor                                                          //
//                                                                      //
//  Editor of pad/canvas objects.                                       //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TGedFrame
#include "TGedFrame.h"
#endif 

class TGCheckButton;
class TGRadioButton;
class TGLineWidthComboBox;
class TGButtonGroup;
class TPad;


class TPadEditor : public TGedFrame {

protected:
   TPad                *fPadPointer;       // TPad object
   TGCheckButton       *fEditable;         // set pad editable
   TGCheckButton       *fCrosshair;        // set crosshair   
   TGCheckButton       *fFixedAR;          // set fixed aspect ratio
   TGCheckButton       *fGridX;            // set grid on X
   TGCheckButton       *fGridY;            // set grid on Y
   TGCheckButton       *fLogX;             // set log scale on X
   TGCheckButton       *fLogY;             // set log scale on Y
   TGCheckButton       *fLogZ;             // set log scale on Z
   TGCheckButton       *fTickX;            // set ticks on X
   TGCheckButton       *fTickY;            // set ticks on Y
   TGRadioButton       *fBmode;            // set sinken pad border mode
   TGRadioButton       *fBmode0;           // set no pad border
   TGRadioButton       *fBmode1;           // set raised pad border mode
   TGLayoutHints       *fBmodelh;          // layout hints for border mode buttons
   TGLineWidthComboBox *fBsize;            // set pad border size
   TGButtonGroup       *fBgroup;           // button group of border mode
      
   virtual void ConnectSignals2Slots();
 
public:
   TPadEditor(const TGWindow *p = 0, 
              Int_t width = 140, Int_t height = 30,
              UInt_t options = kChildFrame,
              Pixel_t back = GetDefaultFrameBackground());
   virtual ~TPadEditor(); 

   virtual void   SetModel(TObject* obj);
   virtual void   ActivateBaseClassEditors(TClass* cl);

   virtual void   DoEditable(Bool_t on);
   virtual void   DoCrosshair(Bool_t on);
   virtual void   DoFixedAspectRatio(Bool_t on);
   virtual void   DoGridX(Bool_t on);
   virtual void   DoGridY(Bool_t on);
   virtual void   DoLogX(Bool_t on);
   virtual void   DoLogY(Bool_t on);
   virtual void   DoLogZ(Bool_t on);
   virtual void   DoTickX(Bool_t on);
   virtual void   DoTickY(Bool_t on);
   virtual void   DoBorderMode();
   virtual void   DoBorderSize(Int_t size);
           
   ClassDef(TPadEditor,0)  //editor of TPad objects
};

#endif
 TPadEditor.h:1
 TPadEditor.h:2
 TPadEditor.h:3
 TPadEditor.h:4
 TPadEditor.h:5
 TPadEditor.h:6
 TPadEditor.h:7
 TPadEditor.h:8
 TPadEditor.h:9
 TPadEditor.h:10
 TPadEditor.h:11
 TPadEditor.h:12
 TPadEditor.h:13
 TPadEditor.h:14
 TPadEditor.h:15
 TPadEditor.h:16
 TPadEditor.h:17
 TPadEditor.h:18
 TPadEditor.h:19
 TPadEditor.h:20
 TPadEditor.h:21
 TPadEditor.h:22
 TPadEditor.h:23
 TPadEditor.h:24
 TPadEditor.h:25
 TPadEditor.h:26
 TPadEditor.h:27
 TPadEditor.h:28
 TPadEditor.h:29
 TPadEditor.h:30
 TPadEditor.h:31
 TPadEditor.h:32
 TPadEditor.h:33
 TPadEditor.h:34
 TPadEditor.h:35
 TPadEditor.h:36
 TPadEditor.h:37
 TPadEditor.h:38
 TPadEditor.h:39
 TPadEditor.h:40
 TPadEditor.h:41
 TPadEditor.h:42
 TPadEditor.h:43
 TPadEditor.h:44
 TPadEditor.h:45
 TPadEditor.h:46
 TPadEditor.h:47
 TPadEditor.h:48
 TPadEditor.h:49
 TPadEditor.h:50
 TPadEditor.h:51
 TPadEditor.h:52
 TPadEditor.h:53
 TPadEditor.h:54
 TPadEditor.h:55
 TPadEditor.h:56
 TPadEditor.h:57
 TPadEditor.h:58
 TPadEditor.h:59
 TPadEditor.h:60
 TPadEditor.h:61
 TPadEditor.h:62
 TPadEditor.h:63
 TPadEditor.h:64
 TPadEditor.h:65
 TPadEditor.h:66
 TPadEditor.h:67
 TPadEditor.h:68
 TPadEditor.h:69
 TPadEditor.h:70
 TPadEditor.h:71
 TPadEditor.h:72
 TPadEditor.h:73
 TPadEditor.h:74
 TPadEditor.h:75
 TPadEditor.h:76
 TPadEditor.h:77
 TPadEditor.h:78
 TPadEditor.h:79
 TPadEditor.h:80
 TPadEditor.h:81
 TPadEditor.h:82
 TPadEditor.h:83