TPadEditor.h

Go to the documentation of this file.
00001 // @(#)root/ged:$Id: TPadEditor.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Ilka  Antcheva 24/06/04
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TPadEditor
00013 #define ROOT_TPadEditor
00014 
00015 //////////////////////////////////////////////////////////////////////////
00016 //                                                                      //
00017 //  TPadEditor                                                          //
00018 //                                                                      //
00019 //  Editor of pad/canvas objects.                                       //
00020 //                                                                      //
00021 //////////////////////////////////////////////////////////////////////////
00022 
00023 #ifndef ROOT_TGedFrame
00024 #include "TGedFrame.h"
00025 #endif 
00026 
00027 class TGCheckButton;
00028 class TGRadioButton;
00029 class TGLineWidthComboBox;
00030 class TGButtonGroup;
00031 class TPad;
00032 
00033 
00034 class TPadEditor : public TGedFrame {
00035 
00036 protected:
00037    TPad                *fPadPointer;       // TPad object
00038    TGCheckButton       *fEditable;         // set pad editable
00039    TGCheckButton       *fCrosshair;        // set crosshair   
00040    TGCheckButton       *fFixedAR;          // set fixed aspect ratio
00041    TGCheckButton       *fGridX;            // set grid on X
00042    TGCheckButton       *fGridY;            // set grid on Y
00043    TGCheckButton       *fLogX;             // set log scale on X
00044    TGCheckButton       *fLogY;             // set log scale on Y
00045    TGCheckButton       *fLogZ;             // set log scale on Z
00046    TGCheckButton       *fTickX;            // set ticks on X
00047    TGCheckButton       *fTickY;            // set ticks on Y
00048    TGRadioButton       *fBmode;            // set sinken pad border mode
00049    TGRadioButton       *fBmode0;           // set no pad border
00050    TGRadioButton       *fBmode1;           // set raised pad border mode
00051    TGLayoutHints       *fBmodelh;          // layout hints for border mode buttons
00052    TGLineWidthComboBox *fBsize;            // set pad border size
00053    TGButtonGroup       *fBgroup;           // button group of border mode
00054       
00055    virtual void ConnectSignals2Slots();
00056  
00057 public:
00058    TPadEditor(const TGWindow *p = 0, 
00059               Int_t width = 140, Int_t height = 30,
00060               UInt_t options = kChildFrame,
00061               Pixel_t back = GetDefaultFrameBackground());
00062    virtual ~TPadEditor(); 
00063 
00064    virtual void   SetModel(TObject* obj);
00065    virtual void   ActivateBaseClassEditors(TClass* cl);
00066 
00067    virtual void   DoEditable(Bool_t on);
00068    virtual void   DoCrosshair(Bool_t on);
00069    virtual void   DoFixedAspectRatio(Bool_t on);
00070    virtual void   DoGridX(Bool_t on);
00071    virtual void   DoGridY(Bool_t on);
00072    virtual void   DoLogX(Bool_t on);
00073    virtual void   DoLogY(Bool_t on);
00074    virtual void   DoLogZ(Bool_t on);
00075    virtual void   DoTickX(Bool_t on);
00076    virtual void   DoTickY(Bool_t on);
00077    virtual void   DoBorderMode();
00078    virtual void   DoBorderSize(Int_t size);
00079            
00080    ClassDef(TPadEditor,0)  //editor of TPad objects
00081 };
00082 
00083 #endif

Generated on Tue Jul 5 14:19:26 2011 for ROOT_528-00b_version by  doxygen 1.5.1