00001 // @(#)root/guibuilder:$Id: TGuiBldHintsEditor.h 30063 2009-09-08 12:15:59Z bellenot $ 00002 // Author: Valeriy Onuchin 12/09/04 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2004, 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_TGuiBldHintsEditor 00013 #define ROOT_TGuiBldHintsEditor 00014 00015 00016 ////////////////////////////////////////////////////////////////////////// 00017 // // 00018 // TGuiBldHintsEditor - layout hints editor // 00019 // // 00020 ////////////////////////////////////////////////////////////////////////// 00021 00022 00023 #ifndef ROOT_TGButton 00024 #include "TGButton.h" 00025 #endif 00026 00027 00028 class TGuiBldHintsButton; 00029 class TGNumberEntry; 00030 class TGuiBldEditor; 00031 class TGuiBldNameFrame; 00032 class TGuiBldHintsManager; 00033 class TRootGuiBuilder; 00034 00035 ////////////////////////////////////////////////////////////////////////// 00036 class TGuiBldHintsEditor : public TGVerticalFrame { 00037 00038 private: 00039 TGuiBldEditor *fEditor; // pointer to main editor 00040 TGuiBldNameFrame *fNameFrame; // frame name 00041 TGuiBldHintsManager *fHintsManager; // manager of subframes layout 00042 TGGroupFrame *fHintsFrame; // frame with layout hints 00043 TGGroupFrame *fPaddingFrame; // frame with padding 00044 00045 void SetMatrixSep(); 00046 00047 public: 00048 00049 TGCheckButton *fCbLeft; // button activating left hint 00050 TGCheckButton *fCbRight; // button activating right hint 00051 TGCheckButton *fCbTop; // button activating top hint 00052 TGCheckButton *fCbBottom; // button activating bottom hint 00053 TGCheckButton *fCbExpandX; // button activating expand X hint 00054 TGCheckButton *fCbExpandY; // button activating expand Y hint 00055 TGCheckButton *fCbCenterX; // button activating center X hint 00056 TGCheckButton *fCbCenterY; // button activating center Y hint 00057 00058 TGNumberEntry *fPadTop; // top side padding 00059 TGNumberEntry *fPadBottom; // bottom side padding 00060 TGNumberEntry *fPadLeft; // left side padding 00061 TGNumberEntry *fPadRight; // right side padding 00062 00063 TGCheckButton *fLayButton; // enable/disable layout 00064 00065 TRootGuiBuilder *fBuilder; 00066 00067 public: 00068 TGuiBldHintsEditor(const TGWindow *p, TGuiBldEditor *e); 00069 virtual ~TGuiBldHintsEditor() {} 00070 00071 void ChangeSelected(TGFrame *); 00072 void LayoutSubframes(Bool_t on = kTRUE); 00073 void MatrixLayout(); 00074 void SetPosition(); 00075 void UpdateState(); 00076 00077 ClassDef(TGuiBldHintsEditor,0) // layout hints editor 00078 }; 00079 00080 #endif