forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TGuiBldHintsEditor.h
80 lines (60 loc) · 2.87 KB
/
TGuiBldHintsEditor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// @(#)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