Logo ROOT  
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
TGuiBldHintsEditor::fCbTop
TGCheckButton * fCbTop
Definition: TGuiBldHintsEditor.h:49
TGuiBldHintsEditor::LayoutSubframes
void LayoutSubframes(Bool_t on=kTRUE)
Layout subframes.
Definition: TGuiBldHintsEditor.cxx:476
TGuiBldNameFrame
Definition: TGuiBldNameFrame.h:39
TGuiBldHintsEditor::fCbCenterX
TGCheckButton * fCbCenterX
Definition: TGuiBldHintsEditor.h:53
TGWindow
Definition: TGWindow.h:31
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
e
#define e(i)
Definition: RSha256.hxx:103
TGuiBldHintsEditor::fNameFrame
TGuiBldNameFrame * fNameFrame
Definition: TGuiBldHintsEditor.h:38
TGuiBldHintsEditor::fCbExpandX
TGCheckButton * fCbExpandX
Definition: TGuiBldHintsEditor.h:51
TGuiBldHintsEditor::fCbCenterY
TGCheckButton * fCbCenterY
Definition: TGuiBldHintsEditor.h:54
TGuiBldHintsEditor::SetMatrixSep
void SetMatrixSep()
Set matrix layout separator.
Definition: TGuiBldHintsEditor.cxx:537
TGuiBldHintsEditor::SetPosition
void SetPosition()
Set the position of selected frame when adjusted by the right panel input.
Definition: TGuiBldHintsEditor.cxx:445
TGuiBldHintsEditor::fBuilder
TRootGuiBuilder * fBuilder
Definition: TGuiBldHintsEditor.h:63
TGuiBldHintsEditor::fHintsManager
TGuiBldHintsManager * fHintsManager
Definition: TGuiBldHintsEditor.h:39
TGuiBldHintsEditor::UpdateState
void UpdateState()
Update state.
Definition: TGuiBldHintsEditor.cxx:342
TRootGuiBuilder
Definition: TRootGuiBuilder.h:65
TGuiBldHintsEditor::MatrixLayout
void MatrixLayout()
Apply matrix layout.
Definition: TGuiBldHintsEditor.cxx:585
TGFrame
Definition: TGFrame.h:105
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
TGuiBldHintsEditor::fPaddingFrame
TGGroupFrame * fPaddingFrame
Definition: TGuiBldHintsEditor.h:41
TGuiBldHintsEditor::fCbRight
TGCheckButton * fCbRight
Definition: TGuiBldHintsEditor.h:48
TGCheckButton
Definition: TGButton.h:264
TGuiBldHintsEditor::fCbLeft
TGCheckButton * fCbLeft
Definition: TGuiBldHintsEditor.h:47
TGuiBldHintsEditor::fPadLeft
TGNumberEntry * fPadLeft
Definition: TGuiBldHintsEditor.h:58
TGuiBldHintsEditor::fCbExpandY
TGCheckButton * fCbExpandY
Definition: TGuiBldHintsEditor.h:52
TGuiBldHintsEditor::fCbBottom
TGCheckButton * fCbBottom
Definition: TGuiBldHintsEditor.h:50
TGVerticalFrame
Definition: TGFrame.h:412
TGuiBldHintsEditor::fPadRight
TGNumberEntry * fPadRight
Definition: TGuiBldHintsEditor.h:59
TGGroupFrame
Definition: TGFrame.h:587
TGuiBldHintsEditor::fHintsFrame
TGGroupFrame * fHintsFrame
Definition: TGuiBldHintsEditor.h:40
TGuiBldHintsEditor::fLayButton
TGCheckButton * fLayButton
Definition: TGuiBldHintsEditor.h:61
TGuiBldHintsButton
Definition: TGuiBldHintsButton.h:27
TGuiBldHintsEditor::fPadBottom
TGNumberEntry * fPadBottom
Definition: TGuiBldHintsEditor.h:57
TGuiBldHintsEditor::~TGuiBldHintsEditor
virtual ~TGuiBldHintsEditor()
Definition: TGuiBldHintsEditor.h:67
TGuiBldHintsEditor::TGuiBldHintsEditor
TGuiBldHintsEditor(const TGWindow *p, TGuiBldEditor *e)
ctor.
Definition: TGuiBldHintsEditor.cxx:162
TGuiBldEditor
Definition: TGuiBldEditor.h:39
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TGButton.h
TGuiBldHintsEditor::fPadTop
TGNumberEntry * fPadTop
Definition: TGuiBldHintsEditor.h:56
TGNumberEntry
Definition: TGNumberEntry.h:157
TGuiBldHintsEditor
Definition: TGuiBldHintsEditor.h:34
TGuiBldHintsEditor::ChangeSelected
void ChangeSelected(TGFrame *)
Change selected.
Definition: TGuiBldHintsEditor.cxx:296
TGuiBldHintsEditor::fEditor
TGuiBldEditor * fEditor
Definition: TGuiBldHintsEditor.h:37