ROOT
v6-34
Reference Guide
Loading...
Searching...
No Matches
TRootControlBar.h
Go to the documentation of this file.
1
// @(#)root/gui:$Id$
2
// Author: Fons Rademakers 22/02/98
3
4
/*************************************************************************
5
* Copyright (C) 1995-2021, 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_TRootControlBar
13
#define ROOT_TRootControlBar
14
15
16
#include "
TControlBarImp.h
"
17
#include "
TGFrame.h
"
18
19
class
TControlBar
;
20
class
TList
;
21
22
23
class
TRootControlBar
:
public
TGMainFrame
,
public
TControlBarImp
{
24
25
private
:
26
TList
*
fWidgets
;
///< list of TGTextButton or TGPictureButtons
27
TGLayoutHints
*
fL1
;
///< button layout hints
28
UInt_t
fBwidth
;
///< button width in pixels
29
30
public
:
31
TRootControlBar
(
TControlBar
*
c
=
nullptr
,
const
char
*title =
"ROOT Control Bar"
,
32
Int_t
x
= -999,
Int_t
y
= -999);
33
~TRootControlBar
()
override
;
34
35
void
Create
()
override
;
36
void
Hide
()
override
;
37
void
Show
()
override
;
38
39
TList
*
GetWidgets
()
const
{
return
fWidgets
; }
40
41
// overridden from TGMainFrame
42
void
CloseWindow
()
override
;
43
Bool_t
ProcessMessage
(
Longptr_t
msg,
Longptr_t
parm1,
Longptr_t
parm2)
override
;
44
void
ReallyDelete
()
override
;
45
void
SetButtonState
(
const
char
*label,
Int_t
state = 0)
override
;
46
void
SetButtonWidth
(
UInt_t
width
)
override
;
47
void
SetFont
(
const
char
*fontName)
override
;
48
void
SetTextColor
(
const
char
*colorName)
override
;
49
50
ClassDefOverride
(
TRootControlBar
,0)
//ROOT native GUI implementation of TControlBar
51
};
52
53
#endif
c
#define c(i)
Definition
RSha256.hxx:101
Bool_t
bool Bool_t
Definition
RtypesCore.h:63
Int_t
int Int_t
Definition
RtypesCore.h:45
Longptr_t
long Longptr_t
Definition
RtypesCore.h:75
UInt_t
unsigned int UInt_t
Definition
RtypesCore.h:46
ClassDefOverride
#define ClassDefOverride(name, id)
Definition
Rtypes.h:346
TControlBarImp.h
TGFrame.h
width
Option_t Option_t width
Definition
TGWin32VirtualXProxy.cxx:56
TControlBarImp
ABC describing GUI independent control bar.
Definition
TControlBarImp.h:30
TControlBar
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
Definition
TControlBar.h:26
TGLayoutHints
This class describes layout hints used by the layout classes.
Definition
TGLayout.h:50
TGMainFrame
Defines top level windows that interact with the system Window Manager.
Definition
TGFrame.h:397
TList
A doubly linked list.
Definition
TList.h:38
TRootControlBar
This class provides an interface to the GUI dependent functions of the TControlBar class.
Definition
TRootControlBar.h:23
TRootControlBar::GetWidgets
TList * GetWidgets() const
Definition
TRootControlBar.h:39
TRootControlBar::Show
void Show() override
Show controlbar. If not yet created create it first.
Definition
TRootControlBar.cxx:122
TRootControlBar::SetFont
void SetFont(const char *fontName) override
sets new font for control bar buttons
Definition
TRootControlBar.cxx:170
TRootControlBar::ProcessMessage
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override
Handle controlbar button messages.
Definition
TRootControlBar.cxx:140
TRootControlBar::SetTextColor
void SetTextColor(const char *colorName) override
sets text color for control bar buttons, e.g.: root > .x tutorials/demos.C root > bar->SetTextColor("...
Definition
TRootControlBar.cxx:229
TRootControlBar::ReallyDelete
void ReallyDelete() override
Really delete the control bar and the this GUI.
Definition
TRootControlBar.cxx:154
TRootControlBar::fBwidth
UInt_t fBwidth
button width in pixels
Definition
TRootControlBar.h:28
TRootControlBar::CloseWindow
void CloseWindow() override
Called when closed via window manager action.
Definition
TRootControlBar.cxx:162
TRootControlBar::SetButtonWidth
void SetButtonWidth(UInt_t width) override
Set button width in pixels.
Definition
TRootControlBar.cxx:251
TRootControlBar::SetButtonState
void SetButtonState(const char *label, Int_t state=0) override
sets new font for control bar buttons
Definition
TRootControlBar.cxx:187
TRootControlBar::Hide
void Hide() override
Hide controlbar.
Definition
TRootControlBar.cxx:132
TRootControlBar::fWidgets
TList * fWidgets
list of TGTextButton or TGPictureButtons
Definition
TRootControlBar.h:26
TRootControlBar::Create
void Create() override
Create the control bar.
Definition
TRootControlBar.cxx:68
TRootControlBar::~TRootControlBar
~TRootControlBar() override
Delete the control bar implementation.
Definition
TRootControlBar.cxx:58
TRootControlBar::fL1
TGLayoutHints * fL1
button layout hints
Definition
TRootControlBar.h:27
int
unsigned int
y
Double_t y[n]
Definition
legend1.C:17
x
Double_t x[n]
Definition
legend1.C:17
gui
gui
inc
TRootControlBar.h
ROOT v6-34 - Reference Guide Generated on Sun Dec 15 2024 03:23:45 (GVA Time) using Doxygen 1.9.8