Logo ROOT  
Reference Guide
TRootBrowser.h
Go to the documentation of this file.
1 // @(#)root/gui:$Id: 7cf312b9bc9940a03d7c0cee95eea0085dc9898c $
2 // Author: Bertrand Bellenot 26/09/2007
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_TRootBrowser
13 #define ROOT_TRootBrowser
14 
15 #include "TGFrame.h"
16 
17 #include "TBrowserImp.h"
18 
19 class TGLayoutHints;
20 class TGTab;
21 class TGMenuBar;
22 class TGPopupMenu;
23 class TGStatusBar;
24 class TGVSplitter;
25 class TGHSplitter;
26 
27 
28 /** \class TBrowserPlugin
29  \ingroup guiwidgets
30 
31 Helper class used to manage plugins (command or macro to be executed).
32 */
33 
34 
35 class TBrowserPlugin : public TNamed
36 {
37 public:
38  Int_t fTab{0}; ///< Tab number
39  Int_t fSubTab{0}; ///< Tab element number
40  TString fCommand; ///< Command to be executed
41 
42  TBrowserPlugin(const char *name, const char *cmd = "", Int_t tab = 1,
43  Int_t sub = -1) : TNamed(name, cmd), fTab(tab),
44  fSubTab(sub), fCommand(cmd) { }
45  virtual ~TBrowserPlugin() {}
46 
47  void SetTab(Int_t tab) { fTab = tab; }
48  void SetSubTab(Int_t sub) { fSubTab = sub; }
49  void SetCommand(const char *cmd) { fCommand = cmd; }
50 
51  ClassDef(TBrowserPlugin, 0) // basic plugin description class
52 };
53 
54 class TRootBrowser : public TGMainFrame, public TBrowserImp {
55  TRootBrowser(const TRootBrowser&) = delete;
56  TRootBrowser& operator=(const TRootBrowser&) = delete;
57 
58 protected:
59 
60  TGLayoutHints *fLH0, *fLH1, *fLH2, *fLH3; ///< Layout hints, part 1
61  TGLayoutHints *fLH4, *fLH5, *fLH6, *fLH7; ///< Layout hints, part 2
62  TGTab *fTabLeft; ///< Left Tab
63  TGTab *fTabRight; ///< Right Tab
64  TGTab *fTabBottom; ///< Bottom Tab
65  TGTab *fEditTab; ///< Tab in "Edit" mode
66  Int_t fEditPos; ///< Id of tab in "Edit" mode
67  Int_t fEditSubPos; ///< Id of subtab in "Edit" mode
68  TGVerticalFrame *fVf; ///< Vertical frame
69  TGHorizontalFrame *fHf; ///< Horizontal frame
70  TGHorizontalFrame *fH1; ///< Horizontal frame
71  TGHorizontalFrame *fH2; ///< Horizontal frame
72  TGVerticalFrame *fV1; ///< Vertical frame
73  TGVerticalFrame *fV2; ///< Vertical frame
74  TGVSplitter *fVSplitter; ///< Vertical splitter
75  TGHSplitter *fHSplitter; ///< Horizontal splitter
76  TGCompositeFrame *fEditFrame; ///< Frame in "Edit" mode
77  TGHorizontalFrame *fTopMenuFrame; ///< Top menu frame
78  TGHorizontalFrame *fPreMenuFrame; ///< First (owned) menu frame
79  TGHorizontalFrame *fMenuFrame; ///< Shared menu frame
80  TGHorizontalFrame *fToolbarFrame; ///< Toolbar frame
81  TGMenuBar *fMenuBar; ///< Main (owned) menu bar
82  TGPopupMenu *fMenuFile; ///< "File" popup menu
83  TGPopupMenu *fMenuExecPlugin; ///< "Exec Plugin" popup menu
84  TGPopupMenu *fMenuHelp; ///< "Browser Help" popup menu
85  TGCompositeFrame *fActMenuBar; ///< Actual (active) menu bar
86  TBrowserImp *fActBrowser; ///< Actual (active) browser imp
87  TList fBrowsers; ///< List of (sub)browsers
88  TList fPlugins; ///< List of plugins
89  TGStatusBar *fStatusBar; ///< Status bar
90  Int_t fNbInitPlugins; ///< Number of initial plugins (from .rootrc)
91  Int_t fNbTab[3]; ///< Number of tab elements (for each Tab)
92  Int_t fCrTab[3]; ///< Actual (active) tab elements (for each Tab)
93  Int_t fPid; ///< Current process id
94  Bool_t fShowCloseTab; ///< kTRUE to show close icon on tab elements
95  const TGPicture *fIconPic; ///< icon picture
96 
97 public:
99  kBrowse = 11011,
117  kQuitRoot
118  };
119 
122  };
123 
124  TRootBrowser(TBrowser *b = nullptr, const char *name = "ROOT Browser", UInt_t width = 800, UInt_t height = 500, Option_t *opt = "", Bool_t initshow = kTRUE);
125  TRootBrowser(TBrowser *b, const char *name, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t *opt = "", Bool_t initshow = kTRUE);
126  virtual ~TRootBrowser();
127 
128  void InitPlugins(Option_t *opt="");
129 
130  void CreateBrowser(const char *name);
131  void CloneBrowser();
132  void CloseWindow() override;
133  virtual void CloseTab(Int_t id);
134  void CloseTabs() override;
135  void DoTab(Int_t id);
136  void EventInfo(Int_t event, Int_t px, Int_t py, TObject *selected);
137  TGFrame *GetActFrame() const { return (TGFrame *)fEditFrame; }
139  TGStatusBar *GetStatusBar() const { return fStatusBar; }
140  TGTab *GetTabLeft() const { return fTabLeft; }
141  TGTab *GetTabRight() const { return fTabRight; }
142  TGTab *GetTabBottom() const { return fTabBottom; }
143  TGTab *GetTab(Int_t pos) const;
144  void SetTab(Int_t pos = kRight, Int_t subpos = -1);
145  void SetTabTitle(const char *title, Int_t pos = kRight, Int_t subpos = -1);
146  void HandleMenu(Int_t id);
147  void RecursiveReparent(TGPopupMenu *popup);
148  void RemoveTab(Int_t pos, Int_t subpos);
150  void ShowMenu(TGCompositeFrame *menu);
151  void StartEmbedding(Int_t pos = kRight, Int_t subpos = -1) override;
152  void StopEmbedding(const char *name = nullptr) override { StopEmbedding(name, 0); }
153  void StopEmbedding(const char *name, TGLayoutHints *layout);
154  void SwitchMenus(TGCompositeFrame *from);
155 
156  void BrowseObj(TObject *obj) override; //*SIGNAL*
157  void ExecuteDefaultAction(TObject *obj) override; //*SIGNAL*
158  virtual void DoubleClicked(TObject *obj); //*SIGNAL*
159  virtual void Checked(TObject *obj, Bool_t check); //*SIGNAL*
160 
161  void Add(TObject *obj, const char *name = nullptr, Int_t check = -1) override;
162  void RecursiveRemove(TObject *obj) override;
163  void Refresh(Bool_t force = kFALSE) override;
164  void Show() override { MapRaised(); }
165  Option_t *GetDrawOption() const override;
166  TGMainFrame *GetMainFrame() const override { return (TGMainFrame *)this; }
167 
168  Long_t ExecPlugin(const char *name = nullptr, const char *fname = nullptr,
169  const char *cmd = nullptr, Int_t pos = kRight,
170  Int_t subpos = -1) override;
171  void SetStatusText(const char *txt, Int_t col) override;
172  Bool_t HandleKey(Event_t *event) override;
173 
174  virtual void ShowCloseTab(Bool_t show) { fShowCloseTab = show; }
175  virtual Bool_t IsCloseTabShown() const { return fShowCloseTab; }
176  Bool_t IsWebGUI();
177 
178  // overridden from TGMainFrame
179  void ReallyDelete() override;
180 
181  static TBrowserImp *NewBrowser(TBrowser *b = nullptr, const char *title = "ROOT Browser", UInt_t width = 800, UInt_t height = 500, Option_t *opt = "");
182  static TBrowserImp *NewBrowser(TBrowser *b, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t *opt = "");
183 
184  ClassDefOverride(TRootBrowser, 0) // New ROOT Browser
185 };
186 
187 #endif
TRootBrowser::fMenuFrame
TGHorizontalFrame * fMenuFrame
Shared menu frame.
Definition: TRootBrowser.h:79
TRootBrowser::kExecPluginMacro
@ kExecPluginMacro
Definition: TRootBrowser.h:113
TRootBrowser::fNbInitPlugins
Int_t fNbInitPlugins
Number of initial plugins (from .rootrc)
Definition: TRootBrowser.h:90
TRootBrowser::GetTab
TGTab * GetTab(Int_t pos) const
Returns the TGTab at position pos.
Definition: TRootBrowser.cxx:602
TBrowser
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:37
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:100
TRootBrowser::fLH4
TGLayoutHints * fLH4
Definition: TRootBrowser.h:61
TGMainFrame
Defines top level windows that interact with the system Window Manager.
Definition: TGFrame.h:398
TRootBrowser::operator=
TRootBrowser & operator=(const TRootBrowser &)=delete
TRootBrowser::kOpenFile
@ kOpenFile
Definition: TRootBrowser.h:100
TGPicture
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
Definition: TGPicture.h:25
TRootBrowser::kHelpOnRemote
@ kHelpOnRemote
Definition: TRootBrowser.h:109
TRootBrowser::TRootBrowser
TRootBrowser(const TRootBrowser &)=delete
TBrowserPlugin::SetTab
void SetTab(Int_t tab)
Definition: TRootBrowser.h:47
Option_t
const char Option_t
Definition: RtypesCore.h:66
TRootBrowser::kNewCanvas
@ kNewCanvas
Definition: TRootBrowser.h:111
TRootBrowser::Add
void Add(TObject *obj, const char *name=nullptr, Int_t check=-1) override
Add items to the actual browser.
Definition: TRootBrowser.cxx:357
TBrowserPlugin::fTab
Int_t fTab
Tab number.
Definition: TRootBrowser.h:38
TRootBrowser::CloseTab
virtual void CloseTab(Int_t id)
Remove tab element id from right tab.
Definition: TRootBrowser.cxx:398
TRootBrowser::CloseWindow
void CloseWindow() override
Called when window is closed via the window manager.
Definition: TRootBrowser.cxx:508
TRootBrowser::kHelpOnBrowser
@ kHelpOnBrowser
Definition: TRootBrowser.h:103
TRootBrowser::CreateBrowser
void CreateBrowser(const char *name)
Definition: TRootBrowser.cxx:164
TRootBrowser::Show
void Show() override
Definition: TRootBrowser.h:164
TRootBrowser::kHelpOnObjects
@ kHelpOnObjects
Definition: TRootBrowser.h:107
TBrowserPlugin::SetCommand
void SetCommand(const char *cmd)
Definition: TRootBrowser.h:49
TRootBrowser::kHelpAbout
@ kHelpAbout
Definition: TRootBrowser.h:102
TRootBrowser::fLH7
TGLayoutHints * fLH7
Layout hints, part 2.
Definition: TRootBrowser.h:61
TRootBrowser::Checked
virtual void Checked(TObject *obj, Bool_t check)
Emits signal when double clicking on icon.
Definition: TRootBrowser.cxx:1246
TRootBrowser::kHelpOnMenus
@ kHelpOnMenus
Definition: TRootBrowser.h:105
TRootBrowser::fEditPos
Int_t fEditPos
Id of tab in "Edit" mode.
Definition: TRootBrowser.h:66
width
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
TRootBrowser::kHelpOnCanvas
@ kHelpOnCanvas
Definition: TRootBrowser.h:104
TRootBrowser::kExecPluginCmd
@ kExecPluginCmd
Definition: TRootBrowser.h:114
TRootBrowser::fBrowsers
TList fBrowsers
List of (sub)browsers.
Definition: TRootBrowser.h:87
TRootBrowser::~TRootBrowser
virtual ~TRootBrowser()
Clean up all widgets, frames and layouthints that were used.
Definition: TRootBrowser.cxx:318
Int_t
int Int_t
Definition: RtypesCore.h:45
event
Definition: triangle.c:553
TRootBrowser::fTabRight
TGTab * fTabRight
Right Tab.
Definition: TRootBrowser.h:63
x
Double_t x[n]
Definition: legend1.C:17
TRootBrowser::CloseTabs
void CloseTabs() override
Properly close the mainframes embedded in the different tabs.
Definition: TRootBrowser.cxx:406
TRootBrowser::fMenuFile
TGPopupMenu * fMenuFile
"File" popup menu
Definition: TRootBrowser.h:82
TRootBrowser::ShowMenu
void ShowMenu(TGCompositeFrame *menu)
Show the selected frame's menu and hide previous one.
Definition: TRootBrowser.cxx:1075
TRootBrowser::DoTab
void DoTab(Int_t id)
Handle Tab navigation.
Definition: TRootBrowser.cxx:519
TRootBrowser::fPreMenuFrame
TGHorizontalFrame * fPreMenuFrame
First (owned) menu frame.
Definition: TRootBrowser.h:78
TRootBrowser::fHf
TGHorizontalFrame * fHf
Horizontal frame.
Definition: TRootBrowser.h:69
TGHorizontalFrame
A composite frame that layout their children in horizontal way.
Definition: TGFrame.h:386
TRootBrowser::fEditSubPos
Int_t fEditSubPos
Id of subtab in "Edit" mode.
Definition: TRootBrowser.h:67
TRootBrowser::GetTabBottom
TGTab * GetTabBottom() const
Definition: TRootBrowser.h:142
TString
Basic string class.
Definition: TString.h:136
TRootBrowser::fVSplitter
TGVSplitter * fVSplitter
Vertical splitter.
Definition: TRootBrowser.h:74
ClassDefOverride
#define ClassDefOverride(name, id)
Definition: Rtypes.h:329
TGFrame
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
Definition: TGFrame.h:80
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
TRootBrowser::kRight
@ kRight
Definition: TRootBrowser.h:121
TBrowserPlugin::fSubTab
Int_t fSubTab
Tab element number.
Definition: TRootBrowser.h:39
b
#define b(i)
Definition: RSha256.hxx:100
TRootBrowser::kBottom
@ kBottom
Definition: TRootBrowser.h:121
bool
TRootBrowser::kBrowse
@ kBrowse
Definition: TRootBrowser.h:99
TRootBrowser::fLH1
TGLayoutHints * fLH1
Definition: TRootBrowser.h:60
TRootBrowser::GetActFrame
TGFrame * GetActFrame() const
Definition: TRootBrowser.h:137
TBrowserImp.h
TGStatusBar
Provides a StatusBar widget.
Definition: TGStatusBar.h:21
TRootBrowser::EInsertPosition
EInsertPosition
Definition: TRootBrowser.h:120
TRootBrowser::fMenuExecPlugin
TGPopupMenu * fMenuExecPlugin
"Exec Plugin" popup menu
Definition: TRootBrowser.h:83
TRootBrowser::fPlugins
TList fPlugins
List of plugins.
Definition: TRootBrowser.h:88
TRootBrowser::ShowCloseTab
virtual void ShowCloseTab(Bool_t show)
Definition: TRootBrowser.h:174
TRootBrowser::fLH2
TGLayoutHints * fLH2
Definition: TRootBrowser.h:60
TBrowserPlugin
Helper class used to manage plugins (command or macro to be executed).
Definition: TRootBrowser.h:36
TRootBrowser::fCrTab
Int_t fCrTab[3]
Actual (active) tab elements (for each Tab)
Definition: TRootBrowser.h:92
TRootBrowser::SwitchMenus
void SwitchMenus(TGCompositeFrame *from)
Move the menu from original frame to our TGMenuFrame, or display the menu associated to the current t...
Definition: TRootBrowser.cxx:1170
TRootBrowser::kClone
@ kClone
Definition: TRootBrowser.h:101
TRootBrowser::fMenuBar
TGMenuBar * fMenuBar
Main (owned) menu bar.
Definition: TRootBrowser.h:81
TRootBrowser::GetTabLeft
TGTab * GetTabLeft() const
Definition: TRootBrowser.h:140
TRootBrowser::DoubleClicked
virtual void DoubleClicked(TObject *obj)
Emits signal when double clicking on icon.
Definition: TRootBrowser.cxx:1238
TRootBrowser::GetToolbarFrame
TGFrame * GetToolbarFrame() const
Definition: TRootBrowser.h:138
TBrowserImp
ABC describing GUI independent browser implementation protocol.
Definition: TBrowserImp.h:29
TRootBrowser::fActBrowser
TBrowserImp * fActBrowser
Actual (active) browser imp.
Definition: TRootBrowser.h:86
TRootBrowser::fH2
TGHorizontalFrame * fH2
Horizontal frame.
Definition: TRootBrowser.h:71
TRootBrowser::IsWebGUI
Bool_t IsWebGUI()
Check if the GUI factory is set to use the Web GUI.
Definition: TRootBrowser.cxx:922
TRootBrowser::EventInfo
void EventInfo(Int_t event, Int_t px, Int_t py, TObject *selected)
Display a tooltip with infos about the primitive below the cursor.
Definition: TRootBrowser.cxx:530
TRootBrowser::kCloseTab
@ kCloseTab
Definition: TRootBrowser.h:115
TRootBrowser::kNewHtml
@ kNewHtml
Definition: TRootBrowser.h:112
TRootBrowser::BrowseObj
void BrowseObj(TObject *obj) override
Browse object.
Definition: TRootBrowser.cxx:370
TGVerticalFrame
A composite frame that layout their children in vertical way.
Definition: TGFrame.h:375
TRootBrowser::fTabLeft
TGTab * fTabLeft
Left Tab.
Definition: TRootBrowser.h:62
TNamed
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:101
TRootBrowser::fNbTab
Int_t fNbTab[3]
Number of tab elements (for each Tab)
Definition: TRootBrowser.h:91
TRootBrowser::IsCloseTabShown
virtual Bool_t IsCloseTabShown() const
Definition: TRootBrowser.h:175
TGFrame.h
Long_t
long Long_t
Definition: RtypesCore.h:54
TBrowserPlugin::SetSubTab
void SetSubTab(Int_t sub)
Definition: TRootBrowser.h:48
TGLayoutHints
This class describes layout hints used by the layout classes.
Definition: TGLayout.h:50
TRootBrowser::fV1
TGVerticalFrame * fV1
Vertical frame.
Definition: TRootBrowser.h:72
TRootBrowser::GetDrawOption
Option_t * GetDrawOption() const override
Returns drawing option.
Definition: TRootBrowser.cxx:592
TRootBrowser::Refresh
void Refresh(Bool_t force=kFALSE) override
Refresh the actual browser contents.
Definition: TRootBrowser.cxx:964
TRootBrowser::ExecuteDefaultAction
void ExecuteDefaultAction(TObject *obj) override
Emits signal "ExecuteDefaultAction(TObject*)".
Definition: TRootBrowser.cxx:1259
TRootBrowser::fV2
TGVerticalFrame * fV2
Vertical frame.
Definition: TRootBrowser.h:73
TGFrame::MapRaised
virtual void MapRaised()
map raised
Definition: TGFrame.h:205
TGTab
A tab widget contains a set of composite frames each with a little tab with a name (like a set of fol...
Definition: TGTab.h:46
TRootBrowser::RecursiveRemove
void RecursiveRemove(TObject *obj) override
Recursively remove object from browser.
Definition: TRootBrowser.cxx:940
TRootBrowser::fLH0
TGLayoutHints * fLH0
Definition: TRootBrowser.h:60
TRootBrowser::fLH3
TGLayoutHints * fLH3
Layout hints, part 1.
Definition: TRootBrowser.h:60
UInt_t
unsigned int UInt_t
Definition: RtypesCore.h:46
TRootBrowser::GetTabRight
TGTab * GetTabRight() const
Definition: TRootBrowser.h:141
TRootBrowser::fVf
TGVerticalFrame * fVf
Vertical frame.
Definition: TRootBrowser.h:68
y
Double_t y[n]
Definition: legend1.C:17
TRootBrowser::ENewBrowserMessages
ENewBrowserMessages
Definition: TRootBrowser.h:98
TRootBrowser::fHSplitter
TGHSplitter * fHSplitter
Horizontal splitter.
Definition: TRootBrowser.h:75
TRootBrowser::fTopMenuFrame
TGHorizontalFrame * fTopMenuFrame
Top menu frame.
Definition: TRootBrowser.h:77
TRootBrowser::CloneBrowser
void CloneBrowser()
Clone the browser.
Definition: TRootBrowser.cxx:381
TRootBrowser::fTabBottom
TGTab * fTabBottom
Bottom Tab.
Definition: TRootBrowser.h:64
TRootBrowser::kNewEditor
@ kNewEditor
Definition: TRootBrowser.h:110
TRootBrowser::fStatusBar
TGStatusBar * fStatusBar
Status bar.
Definition: TRootBrowser.h:89
TRootBrowser::fShowCloseTab
Bool_t fShowCloseTab
kTRUE to show close icon on tab elements
Definition: TRootBrowser.h:94
TRootBrowser::ExecPlugin
Long_t ExecPlugin(const char *name=nullptr, const char *fname=nullptr, const char *cmd=nullptr, Int_t pos=kRight, Int_t subpos=-1) override
Execute a macro and embed the created frame in the tab "pos" and tab element "subpos".
Definition: TRootBrowser.cxx:555
TRootBrowser::SetActBrowser
void SetActBrowser(TBrowserImp *b)
Definition: TRootBrowser.h:149
TRootBrowser::NewBrowser
static TBrowserImp * NewBrowser(TBrowser *b=nullptr, const char *title="ROOT Browser", UInt_t width=800, UInt_t height=500, Option_t *opt="")
static constructor returning TBrowserImp, as needed by the plugin mechanism.
Definition: TRootBrowser.cxx:1269
TBrowserPlugin::TBrowserPlugin
TBrowserPlugin(const char *name, const char *cmd="", Int_t tab=1, Int_t sub=-1)
Definition: TRootBrowser.h:42
TRootBrowser::StopEmbedding
void StopEmbedding(const char *name=nullptr) override
Definition: TRootBrowser.h:152
TGHSplitter
Definition: TGSplitter.h:90
TBrowserPlugin::~TBrowserPlugin
virtual ~TBrowserPlugin()
Definition: TRootBrowser.h:45
TRootBrowser::fMenuHelp
TGPopupMenu * fMenuHelp
"Browser Help" popup menu
Definition: TRootBrowser.h:84
TBrowserPlugin::fCommand
TString fCommand
Command to be executed.
Definition: TRootBrowser.h:40
TRootBrowser::SetStatusText
void SetStatusText(const char *txt, Int_t col) override
Set text in column col in status bar.
Definition: TRootBrowser.cxx:1067
TRootBrowser::HandleMenu
void HandleMenu(Int_t id)
Handle menu entries events.
Definition: TRootBrowser.cxx:679
TRootBrowser::SetTab
void SetTab(Int_t pos=kRight, Int_t subpos=-1)
Switch to Tab "subpos" in TGTab "pos".
Definition: TRootBrowser.cxx:1031
TRootBrowser::SetTabTitle
void SetTabTitle(const char *title, Int_t pos=kRight, Int_t subpos=-1)
Set text "title" of Tab "subpos" in TGTab "pos".
Definition: TRootBrowser.cxx:1047
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
TRootBrowser::fLH5
TGLayoutHints * fLH5
Definition: TRootBrowser.h:61
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TGPopupMenu
This class creates a popup menu object.
Definition: TGMenu.h:110
Event_t
Event structure.
Definition: GuiTypes.h:174
name
char name[80]
Definition: TGX11.cxx:110
TRootBrowser::kHelpOnPS
@ kHelpOnPS
Definition: TRootBrowser.h:108
TRootBrowser::GetMainFrame
TGMainFrame * GetMainFrame() const override
Definition: TRootBrowser.h:166
TRootBrowser::fH1
TGHorizontalFrame * fH1
Horizontal frame.
Definition: TRootBrowser.h:70
TRootBrowser::InitPlugins
void InitPlugins(Option_t *opt="")
Initialize default plugins.
Definition: TRootBrowser.cxx:846
TRootBrowser::GetStatusBar
TGStatusBar * GetStatusBar() const
Definition: TRootBrowser.h:139
TRootBrowser::fToolbarFrame
TGHorizontalFrame * fToolbarFrame
Toolbar frame.
Definition: TRootBrowser.h:80
TRootBrowser::RecursiveReparent
void RecursiveReparent(TGPopupMenu *popup)
Recursively reparent TGPopupMenu to gClient->GetDefaultRoot().
Definition: TRootBrowser.cxx:949
TRootBrowser::StartEmbedding
void StartEmbedding(Int_t pos=kRight, Int_t subpos=-1) override
Start embedding external frame in the tab "pos" and tab element "subpos".
Definition: TRootBrowser.cxx:1104
TGMenuBar
The TGMenu.h header contains all different menu classes.
Definition: TGMenu.h:282
TRootBrowser::fPid
Int_t fPid
Current process id.
Definition: TRootBrowser.h:93
TRootBrowser::ReallyDelete
void ReallyDelete() override
Really delete the browser and the this GUI.
Definition: TRootBrowser.cxx:931
TGVSplitter
Definition: TGSplitter.h:53
TRootBrowser::kLeft
@ kLeft
Definition: TRootBrowser.h:121
TRootBrowser::fEditTab
TGTab * fEditTab
Tab in "Edit" mode.
Definition: TRootBrowser.h:65
TGCompositeFrame
The base class for composite widgets (menu bars, list boxes, etc.).
Definition: TGFrame.h:287
TRootBrowser::kHelpOnGraphicsEd
@ kHelpOnGraphicsEd
Definition: TRootBrowser.h:106
TRootBrowser::kCloseWindow
@ kCloseWindow
Definition: TRootBrowser.h:116
TRootBrowser::fEditFrame
TGCompositeFrame * fEditFrame
Frame in "Edit" mode.
Definition: TRootBrowser.h:76
TRootBrowser::fIconPic
const TGPicture * fIconPic
icon picture
Definition: TRootBrowser.h:95
TRootBrowser::RemoveTab
void RemoveTab(Int_t pos, Int_t subpos)
Remove tab element "subpos" from tab "pos".
Definition: TRootBrowser.cxx:973
TList
A doubly linked list.
Definition: TList.h:44
TRootBrowser::kQuitRoot
@ kQuitRoot
Definition: TRootBrowser.h:117
TRootBrowser::fActMenuBar
TGCompositeFrame * fActMenuBar
Actual (active) menu bar.
Definition: TRootBrowser.h:85
int
TRootBrowser::fLH6
TGLayoutHints * fLH6
Definition: TRootBrowser.h:61
TRootBrowser::HandleKey
Bool_t HandleKey(Event_t *event) override
Handle keyboard events.
Definition: TRootBrowser.cxx:615
TRootBrowser
This class creates a ROOT object browser, constituted by three main tabs.
Definition: TRootBrowser.h:54