ROOT
v6-20
Reference Guide
TGuiBldEditor.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_TGuiBldEditor
13
#define ROOT_TGuiBldEditor
14
15
16
//////////////////////////////////////////////////////////////////////////
17
// //
18
// TGuiBldEditor //
19
// //
20
//////////////////////////////////////////////////////////////////////////
21
22
23
#include "
TGFrame.h
"
24
25
#include "
TGNumberEntry.h
"
26
27
class
TGuiBldHintsEditor
;
28
class
TGuiBldNameFrame
;
29
class
TGuiBldBorderFrame;
30
class
TGuiBldGeometryFrame
;
31
class
TGuiBldDragManager
;
32
class
TGTab
;
33
class
TGButton
;
34
class
TGLabel
;
35
class
TGGroupFrame
;
36
class
TGCompositeFrame
;
37
38
//////////////////////////////////////////////////////////////////////////
39
class
TGuiBldEditor
:
public
TGVerticalFrame
{
40
41
friend
class
TGuiBldDragManager
;
42
43
private
:
44
TGFrame
*
fSelected
;
// editted frame
45
TGuiBldNameFrame
*
fNameFrame
;
// frame name
46
TGuiBldHintsEditor
*
fHintsFrame
;
// frame hints
47
TGuiBldBorderFrame *
fBorderFrame
;
// frame border
48
TGuiBldGeometryFrame
*
fGeomFrame
;
// frame geom
49
TGGroupFrame
*
fPositionFrame
;
// X,Y coordinates
50
TGuiBldDragManager
*
fManager
;
// main manager
51
Bool_t
fEmbedded
;
// kTRUE when it is inside guibuilder
52
TGTab
*
fTab
;
// tab frame
53
TGCompositeFrame
*
fTablay
;
// layout tab frame
54
Int_t
fLayoutId
;
// the id of layout tab
55
TGTextButton
*
fLayoutButton
;
// button to enable/disable layout
56
TGLabel
*
fLayoutLabel
;
// saying if layout is enabled
57
TGNumberEntry
*
fXpos
;
// X position
58
TGNumberEntry
*
fYpos
;
// Y position
59
60
public
:
61
TGuiBldEditor
(
const
TGWindow
*p = 0);
62
virtual
~TGuiBldEditor
();
63
64
Int_t
GetXPos
()
const
{
return
fXpos
->
GetIntNumber
(); }
65
Int_t
GetYPos
()
const
{
return
fYpos
->
GetIntNumber
(); }
66
void
SetXPos
(
Int_t
pos) {
fXpos
->
SetIntNumber
(pos); }
67
void
SetYPos
(
Int_t
pos) {
fYpos
->
SetIntNumber
(pos); }
68
69
TGFrame
*
GetSelected
()
const
{
return
fSelected
; }
70
Bool_t
IsEmbedded
()
const
{
return
fEmbedded
; }
71
void
SetEmbedded
(
Bool_t
e
=
kTRUE
) {
fEmbedded
=
e
; }
72
void
Hide
();
73
void
UpdateBorder
(
Int_t
);
74
void
UpdateBackground
(
Pixel_t
col);
75
void
UpdateForeground
(
Pixel_t
col);
76
void
Reset
();
77
TGuiBldHintsEditor
*
GetHintsEditor
()
const
{
return
fHintsFrame
; }
78
79
void
RemoveFrame
(
TGFrame
*);
80
void
TabSelected
(
Int_t
id
);
81
void
UpdateSelected
(
TGFrame
* = 0);
//*SIGNAL*
82
void
ChangeSelected
(
TGFrame
*);
//*SIGNAL*
83
void
SwitchLayout
();
84
85
ClassDef
(
TGuiBldEditor
,0)
// frame property editor
86
};
87
88
#endif
Pixel_t
ULong_t Pixel_t
Definition:
GuiTypes.h:39
e
#define e(i)
Definition:
RSha256.hxx:103
Int_t
int Int_t
Definition:
RtypesCore.h:41
Bool_t
bool Bool_t
Definition:
RtypesCore.h:59
kTRUE
const Bool_t kTRUE
Definition:
RtypesCore.h:87
ClassDef
#define ClassDef(name, id)
Definition:
Rtypes.h:326
TGFrame.h
TGNumberEntry.h
TGButton
Definition:
TGButton.h:68
TGCompositeFrame
Definition:
TGFrame.h:346
TGFrame
Definition:
TGFrame.h:127
TGGroupFrame
Definition:
TGFrame.h:609
TGLabel
Definition:
TGLabel.h:32
TGNumberEntry
Definition:
TGNumberEntry.h:157
TGNumberEntry::SetIntNumber
virtual void SetIntNumber(Long_t val)
Definition:
TGNumberEntry.h:189
TGNumberEntry::GetIntNumber
virtual Long_t GetIntNumber() const
Definition:
TGNumberEntry.h:209
TGTab
Definition:
TGTab.h:62
TGTextButton
Definition:
TGButton.h:142
TGVerticalFrame
Definition:
TGFrame.h:434
TGWindow
Definition:
TGWindow.h:32
TGuiBldDragManager
Definition:
TGuiBldDragManager.h:58
TGuiBldEditor
Definition:
TGuiBldEditor.h:39
TGuiBldEditor::ChangeSelected
void ChangeSelected(TGFrame *)
Change selected frame.
Definition:
TGuiBldEditor.cxx:320
TGuiBldEditor::fHintsFrame
TGuiBldHintsEditor * fHintsFrame
Definition:
TGuiBldEditor.h:46
TGuiBldEditor::fNameFrame
TGuiBldNameFrame * fNameFrame
Definition:
TGuiBldEditor.h:45
TGuiBldEditor::SetXPos
void SetXPos(Int_t pos)
Definition:
TGuiBldEditor.h:66
TGuiBldEditor::RemoveFrame
void RemoveFrame(TGFrame *)
Remove a frame.
Definition:
TGuiBldEditor.cxx:294
TGuiBldEditor::Reset
void Reset()
Reset the editor.
Definition:
TGuiBldEditor.cxx:484
TGuiBldEditor::SetYPos
void SetYPos(Int_t pos)
Definition:
TGuiBldEditor.h:67
TGuiBldEditor::~TGuiBldEditor
virtual ~TGuiBldEditor()
Destructor.
Definition:
TGuiBldEditor.cxx:287
TGuiBldEditor::GetSelected
TGFrame * GetSelected() const
Definition:
TGuiBldEditor.h:69
TGuiBldEditor::fLayoutButton
TGTextButton * fLayoutButton
Definition:
TGuiBldEditor.h:55
TGuiBldEditor::SetEmbedded
void SetEmbedded(Bool_t e=kTRUE)
Definition:
TGuiBldEditor.h:71
TGuiBldEditor::fEmbedded
Bool_t fEmbedded
Definition:
TGuiBldEditor.h:51
TGuiBldEditor::fManager
TGuiBldDragManager * fManager
Definition:
TGuiBldEditor.h:50
TGuiBldEditor::fSelected
TGFrame * fSelected
Definition:
TGuiBldEditor.h:44
TGuiBldEditor::fXpos
TGNumberEntry * fXpos
Definition:
TGuiBldEditor.h:57
TGuiBldEditor::fGeomFrame
TGuiBldGeometryFrame * fGeomFrame
Definition:
TGuiBldEditor.h:48
TGuiBldEditor::fLayoutId
Int_t fLayoutId
Definition:
TGuiBldEditor.h:54
TGuiBldEditor::fLayoutLabel
TGLabel * fLayoutLabel
Definition:
TGuiBldEditor.h:56
TGuiBldEditor::UpdateSelected
void UpdateSelected(TGFrame *=0)
Update selected frame.
Definition:
TGuiBldEditor.cxx:419
TGuiBldEditor::TabSelected
void TabSelected(Int_t id)
Handle selected.
Definition:
TGuiBldEditor.cxx:302
TGuiBldEditor::fYpos
TGNumberEntry * fYpos
Definition:
TGuiBldEditor.h:58
TGuiBldEditor::SwitchLayout
void SwitchLayout()
Popup dialog to set layout of editted frame off.
Definition:
TGuiBldEditor.cxx:499
TGuiBldEditor::TGuiBldEditor
TGuiBldEditor(const TGWindow *p=0)
Constructor.
Definition:
TGuiBldEditor.cxx:139
TGuiBldEditor::Hide
void Hide()
Hide editor.
Definition:
TGuiBldEditor.cxx:312
TGuiBldEditor::fTab
TGTab * fTab
Definition:
TGuiBldEditor.h:52
TGuiBldEditor::UpdateForeground
void UpdateForeground(Pixel_t col)
Update foreground.
Definition:
TGuiBldEditor.cxx:473
TGuiBldEditor::fTablay
TGCompositeFrame * fTablay
Definition:
TGuiBldEditor.h:53
TGuiBldEditor::GetXPos
Int_t GetXPos() const
Definition:
TGuiBldEditor.h:64
TGuiBldEditor::GetYPos
Int_t GetYPos() const
Definition:
TGuiBldEditor.h:65
TGuiBldEditor::IsEmbedded
Bool_t IsEmbedded() const
Definition:
TGuiBldEditor.h:70
TGuiBldEditor::fPositionFrame
TGGroupFrame * fPositionFrame
Definition:
TGuiBldEditor.h:49
TGuiBldEditor::GetHintsEditor
TGuiBldHintsEditor * GetHintsEditor() const
Definition:
TGuiBldEditor.h:77
TGuiBldEditor::UpdateBorder
void UpdateBorder(Int_t)
Update border of selected frame.
Definition:
TGuiBldEditor.cxx:427
TGuiBldEditor::UpdateBackground
void UpdateBackground(Pixel_t col)
Update background.
Definition:
TGuiBldEditor.cxx:462
TGuiBldEditor::fBorderFrame
TGuiBldBorderFrame * fBorderFrame
Definition:
TGuiBldEditor.h:47
TGuiBldGeometryFrame
Definition:
TGuiBldGeometryFrame.h:34
TGuiBldHintsEditor
Definition:
TGuiBldHintsEditor.h:34
TGuiBldNameFrame
Definition:
TGuiBldNameFrame.h:39
gui
guibuilder
inc
TGuiBldEditor.h
ROOT v6-20 - Reference Guide Generated on Fri Apr 1 2022 00:21:11 (GVA Time) using Doxygen 1.9.4