Logo ROOT   6.14/05
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 #include "TGButton.h"
24 
25 
26 class TGuiBldHintsButton;
27 class TGNumberEntry;
28 class TGuiBldEditor;
29 class TGuiBldNameFrame;
30 class TGuiBldHintsManager;
31 class TRootGuiBuilder;
32 
33 //////////////////////////////////////////////////////////////////////////
35 
36 private:
37  TGuiBldEditor *fEditor; // pointer to main editor
38  TGuiBldNameFrame *fNameFrame; // frame name
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 
45 public:
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 
65 public:
67  virtual ~TGuiBldHintsEditor() {}
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
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:320
TGuiBldHintsEditor(const TGWindow *p, TGuiBldEditor *e)
ctor.
void LayoutSubframes(Bool_t on=kTRUE)
Layout subframes.
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
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
Definition: TRolke.cxx:630
void UpdateState()
Update state.
TRootGuiBuilder * fBuilder
TGuiBldHintsManager * fHintsManager
TGCheckButton * fCbTop
TGCheckButton * fCbCenterX
TGuiBldNameFrame * fNameFrame
TGCheckButton * fCbExpandY
const Bool_t kTRUE
Definition: RtypesCore.h:87
TGCheckButton * fCbCenterY
TGCheckButton * fCbRight
TGCheckButton * fCbLeft