// @(#)root/guibuilder:$Id$
// Author: Valeriy Onuchin   12/09/04

/*************************************************************************
 * Copyright (C) 1995-2004, 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_TGuiBldHintsEditor
#define ROOT_TGuiBldHintsEditor


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TGuiBldHintsEditor - layout hints editor                             //
//                                                                      //
//////////////////////////////////////////////////////////////////////////


#ifndef ROOT_TGButton
#include "TGButton.h"
#endif


class TGuiBldHintsButton;
class TGNumberEntry;
class TGuiBldEditor;
class TGuiBldNameFrame;
class TGuiBldHintsManager;
class TRootGuiBuilder;

//////////////////////////////////////////////////////////////////////////
class TGuiBldHintsEditor : public TGVerticalFrame {

private:
   TGuiBldEditor        *fEditor;         // pointer to main editor
   TGuiBldNameFrame     *fNameFrame;      // frame name
   TGuiBldHintsManager  *fHintsManager;   // manager of subframes layout
   TGGroupFrame         *fHintsFrame;     // frame with layout hints
   TGGroupFrame         *fPaddingFrame;   // frame with padding

   void                 SetMatrixSep();

public:

   TGCheckButton *fCbLeft;       // button activating left hint
   TGCheckButton *fCbRight;      // button activating right hint
   TGCheckButton *fCbTop;        // button activating top hint
   TGCheckButton *fCbBottom;     // button activating bottom hint
   TGCheckButton *fCbExpandX;    // button activating expand X hint
   TGCheckButton *fCbExpandY;    // button activating expand Y hint
   TGCheckButton *fCbCenterX;    // button activating center X hint
   TGCheckButton *fCbCenterY;    // button activating center Y hint

   TGNumberEntry  *fPadTop;      // top side padding
   TGNumberEntry  *fPadBottom;   // bottom side padding
   TGNumberEntry  *fPadLeft;     // left side padding
   TGNumberEntry  *fPadRight;    // right side padding

   TGCheckButton  *fLayButton;   // enable/disable layout

   TRootGuiBuilder *fBuilder;

public:
   TGuiBldHintsEditor(const TGWindow *p, TGuiBldEditor *e);
   virtual ~TGuiBldHintsEditor() {}

   void     ChangeSelected(TGFrame *);
   void     LayoutSubframes(Bool_t on = kTRUE);
   void     MatrixLayout();
   void     SetPosition();
   void     UpdateState();

   ClassDef(TGuiBldHintsEditor,0) // layout hints editor
};

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