Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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#include "TGButton.h"
24
25
27class TGNumberEntry;
28class TGuiBldEditor;
30class TGuiBldHintsManager;
31class TRootGuiBuilder;
32
33//////////////////////////////////////////////////////////////////////////
35
36private:
37 TGuiBldEditor *fEditor; // pointer to main editor
39 TGuiBldHintsManager *fHintsManager; // manager of subframes layout
40 TGGroupFrame *fHintsFrame; // frame with layout hints
41 TGGroupFrame *fPaddingFrame; // frame with padding
42
43 void SetMatrixSep();
44
45public:
46
47 TGCheckButton *fCbLeft; // button activating left hint
48 TGCheckButton *fCbRight; // button activating right hint
49 TGCheckButton *fCbTop; // button activating top hint
50 TGCheckButton *fCbBottom; // button activating bottom hint
51 TGCheckButton *fCbExpandX; // button activating expand X hint
52 TGCheckButton *fCbExpandY; // button activating expand Y hint
53 TGCheckButton *fCbCenterX; // button activating center X hint
54 TGCheckButton *fCbCenterY; // button activating center Y hint
55
56 TGNumberEntry *fPadTop; // top side padding
57 TGNumberEntry *fPadBottom; // bottom side padding
58 TGNumberEntry *fPadLeft; // left side padding
59 TGNumberEntry *fPadRight; // right side padding
60
61 TGCheckButton *fLayButton; // enable/disable layout
62
64
65public:
68
69 void ChangeSelected(TGFrame *);
70 void LayoutSubframes(Bool_t on = kTRUE);
71 void MatrixLayout();
72 void SetPosition();
73 void UpdateState();
74
75 ClassDef(TGuiBldHintsEditor,0) // layout hints editor
76};
77
78#endif
#define e(i)
Definition RSha256.hxx:103
bool Bool_t
Definition RtypesCore.h:63
const Bool_t kTRUE
Definition RtypesCore.h:91
#define ClassDef(name, id)
Definition Rtypes.h:325
TGCheckButton * fCbLeft
void MatrixLayout()
Apply matrix layout.
void LayoutSubframes(Bool_t on=kTRUE)
Layout subframes.
TGCheckButton * fCbTop
TGuiBldNameFrame * fNameFrame
TGuiBldEditor * fEditor
TGCheckButton * fLayButton
TGGroupFrame * fHintsFrame
TGNumberEntry * fPadBottom
TGNumberEntry * fPadLeft
TRootGuiBuilder * fBuilder
TGuiBldHintsManager * fHintsManager
TGNumberEntry * fPadRight
void ChangeSelected(TGFrame *)
Change selected.
TGGroupFrame * fPaddingFrame
TGCheckButton * fCbExpandY
TGCheckButton * fCbRight
void SetMatrixSep()
Set matrix layout separator.
TGCheckButton * fCbCenterX
TGCheckButton * fCbExpandX
void UpdateState()
Update state.
TGCheckButton * fCbCenterY
void SetPosition()
Set the position of selected frame when adjusted by the right panel input.
TGNumberEntry * fPadTop
TGCheckButton * fCbBottom