Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TPadEditor.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/ged:$Id$
0002 // Author: Ilka  Antcheva 24/06/04
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TPadEditor
0013 #define ROOT_TPadEditor
0014 
0015 
0016 #include "TGedFrame.h"
0017 
0018 class TGCheckButton;
0019 class TGRadioButton;
0020 class TGLineWidthComboBox;
0021 class TGButtonGroup;
0022 class TPad;
0023 
0024 
0025 class TPadEditor : public TGedFrame {
0026 
0027 protected:
0028    TPad                *fPadPointer;       ///< TPad object
0029    TGCheckButton       *fEditable;         ///< set pad editable
0030    TGCheckButton       *fCrosshair;        ///< set crosshair
0031    TGCheckButton       *fFixedAR;          ///< set fixed aspect ratio
0032    TGCheckButton       *fGridX;            ///< set grid on X
0033    TGCheckButton       *fGridY;            ///< set grid on Y
0034    TGCheckButton       *fLogX;             ///< set log scale on X
0035    TGCheckButton       *fLogY;             ///< set log scale on Y
0036    TGCheckButton       *fLogZ;             ///< set log scale on Z
0037    TGCheckButton       *fTickX;            ///< set ticks on X
0038    TGCheckButton       *fTickY;            ///< set ticks on Y
0039    TGRadioButton       *fBmode;            ///< set sinken pad border mode
0040    TGRadioButton       *fBmode0;           ///< set no pad border
0041    TGRadioButton       *fBmode1;           ///< set raised pad border mode
0042    TGLayoutHints       *fBmodelh;          ///< layout hints for border mode buttons
0043    TGLineWidthComboBox *fBsize;            ///< set pad border size
0044    TGButtonGroup       *fBgroup;           ///< button group of border mode
0045 
0046    virtual void ConnectSignals2Slots();
0047 
0048 public:
0049    TPadEditor(const TGWindow *p = nullptr,
0050               Int_t width = 140, Int_t height = 30,
0051               UInt_t options = kChildFrame,
0052               Pixel_t back = GetDefaultFrameBackground());
0053    ~TPadEditor() override;
0054 
0055    void   SetModel(TObject* obj) override;
0056    void   ActivateBaseClassEditors(TClass* cl) override;
0057 
0058    virtual void   DoEditable(Bool_t on);
0059    virtual void   DoCrosshair(Bool_t on);
0060    virtual void   DoFixedAspectRatio(Bool_t on);
0061    virtual void   DoGridX(Bool_t on);
0062    virtual void   DoGridY(Bool_t on);
0063    virtual void   DoLogX(Bool_t on);
0064    virtual void   DoLogY(Bool_t on);
0065    virtual void   DoLogZ(Bool_t on);
0066    virtual void   DoTickX(Bool_t on);
0067    virtual void   DoTickY(Bool_t on);
0068    virtual void   DoBorderMode();
0069    virtual void   DoBorderSize(Int_t size);
0070 
0071    ClassDefOverride(TPadEditor,0)  //editor of TPad objects
0072 };
0073 
0074 #endif