ROOT  6.06/09
Reference Guide
TGuiBldHintsEditor.h
Go to the documentation of this file.
1 // @(#)root/guibuilder:$Id$
2 // Author: Valeriy Onuchin 12/09/04
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TGuiBldHintsEditor
13 #define ROOT_TGuiBldHintsEditor
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TGuiBldHintsEditor - layout hints editor //
19 // //
20 //////////////////////////////////////////////////////////////////////////
21 
22 
23 #ifndef ROOT_TGButton
24 #include "TGButton.h"
25 #endif
26 
27 
28 class TGuiBldHintsButton;
29 class TGNumberEntry;
30 class TGuiBldEditor;
31 class TGuiBldNameFrame;
33 class TRootGuiBuilder;
34 
35 //////////////////////////////////////////////////////////////////////////
37 
38 private:
39  TGuiBldEditor *fEditor; // pointer to main editor
40  TGuiBldNameFrame *fNameFrame; // frame name
41  TGuiBldHintsManager *fHintsManager; // manager of subframes layout
42  TGGroupFrame *fHintsFrame; // frame with layout hints
43  TGGroupFrame *fPaddingFrame; // frame with padding
44 
45  void SetMatrixSep();
46 
47 public:
48 
49  TGCheckButton *fCbLeft; // button activating left hint
50  TGCheckButton *fCbRight; // button activating right hint
51  TGCheckButton *fCbTop; // button activating top hint
52  TGCheckButton *fCbBottom; // button activating bottom hint
53  TGCheckButton *fCbExpandX; // button activating expand X hint
54  TGCheckButton *fCbExpandY; // button activating expand Y hint
55  TGCheckButton *fCbCenterX; // button activating center X hint
56  TGCheckButton *fCbCenterY; // button activating center Y hint
57 
58  TGNumberEntry *fPadTop; // top side padding
59  TGNumberEntry *fPadBottom; // bottom side padding
60  TGNumberEntry *fPadLeft; // left side padding
61  TGNumberEntry *fPadRight; // right side padding
62 
63  TGCheckButton *fLayButton; // enable/disable layout
64 
66 
67 public:
69  virtual ~TGuiBldHintsEditor() {}
70 
71  void ChangeSelected(TGFrame *);
72  void LayoutSubframes(Bool_t on = kTRUE);
73  void MatrixLayout();
74  void SetPosition();
75  void UpdateState();
76 
77  ClassDef(TGuiBldHintsEditor,0) // layout hints editor
78 };
79 
80 #endif
TGCheckButton * fCbBottom
TGCheckButton * fLayButton
TGNumberEntry * fPadBottom
TGGroupFrame * fHintsFrame
void ChangeSelected(TGFrame *)
Change selected.
void MatrixLayout()
Apply matrix layout.
TGGroupFrame * fPaddingFrame
bool Bool_t
Definition: RtypesCore.h:59
TGNumberEntry * fPadTop
#define ClassDef(name, id)
Definition: Rtypes.h:254
TGuiBldHintsEditor(const TGWindow *p, TGuiBldEditor *e)
ctor.
void LayoutSubframes(Bool_t on=kTRUE)
Layout subframes.
TGuiBldHintsManager(const TGWindow *p, TGuiBldEditor *editor, TGuiBldHintsEditor *hints)
Constructor.
TGCheckButton * fCbExpandX
TGNumberEntry * fPadLeft
void SetMatrixSep()
Set matrix layout separator.
void SetPosition()
Set the position of selected frame when adjusted by the right panel input.
TGuiBldEditor * fEditor
TGNumberEntry * fPadRight
void UpdateState()
Update state.
TRootGuiBuilder * fBuilder
TGuiBldHintsManager * fHintsManager
TGCheckButton * fCbTop
TGCheckButton * fCbCenterX
TGuiBldNameFrame * fNameFrame
const Bool_t kTRUE
Definition: Rtypes.h:91
TGCheckButton * fCbExpandY
TGCheckButton * fCbCenterY
TGCheckButton * fCbRight
TGCheckButton * fCbLeft