Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:12:06

0001 // @(#)root/guibuilder:$Id$
0002 // Author: Valeriy Onuchin   12/09/04
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2004, 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_TGuiBldHintsEditor
0013 #define ROOT_TGuiBldHintsEditor
0014 
0015 
0016 #include "TGButton.h"
0017 
0018 
0019 class TGuiBldHintsButton;
0020 class TGNumberEntry;
0021 class TGuiBldEditor;
0022 class TGuiBldNameFrame;
0023 class TGuiBldHintsManager;
0024 class TRootGuiBuilder;
0025 
0026 //////////////////////////////////////////////////////////////////////////
0027 class TGuiBldHintsEditor : public TGVerticalFrame {
0028 
0029 private:
0030    TGuiBldEditor        *fEditor;         // pointer to main editor
0031    TGuiBldNameFrame     *fNameFrame;      // frame name
0032    TGuiBldHintsManager  *fHintsManager;   // manager of subframes layout
0033    TGGroupFrame         *fHintsFrame;     // frame with layout hints
0034    TGGroupFrame         *fPaddingFrame;   // frame with padding
0035 
0036    void                 SetMatrixSep();
0037 
0038 public:
0039 
0040    TGCheckButton *fCbLeft;       // button activating left hint
0041    TGCheckButton *fCbRight;      // button activating right hint
0042    TGCheckButton *fCbTop;        // button activating top hint
0043    TGCheckButton *fCbBottom;     // button activating bottom hint
0044    TGCheckButton *fCbExpandX;    // button activating expand X hint
0045    TGCheckButton *fCbExpandY;    // button activating expand Y hint
0046    TGCheckButton *fCbCenterX;    // button activating center X hint
0047    TGCheckButton *fCbCenterY;    // button activating center Y hint
0048 
0049    TGNumberEntry  *fPadTop;      // top side padding
0050    TGNumberEntry  *fPadBottom;   // bottom side padding
0051    TGNumberEntry  *fPadLeft;     // left side padding
0052    TGNumberEntry  *fPadRight;    // right side padding
0053 
0054    TGCheckButton  *fLayButton;   // enable/disable layout
0055 
0056    TRootGuiBuilder *fBuilder;
0057 
0058 public:
0059    TGuiBldHintsEditor(const TGWindow *p, TGuiBldEditor *e);
0060    ~TGuiBldHintsEditor() override {}
0061 
0062    void     ChangeSelected(TGFrame *);
0063    void     LayoutSubframes(Bool_t on = kTRUE);
0064    void     MatrixLayout();
0065    void     SetPosition();
0066    void     UpdateState();
0067 
0068    ClassDefOverride(TGuiBldHintsEditor,0) // layout hints editor
0069 };
0070 
0071 #endif