22#include "RConfigure.h"
142 {
"folder", { 0, 0 } },
145 {
"slink", { 0, 0 } },
146 {
"histo", { 0, 0 } },
147 {
"object", { 0, 0 } }
156 {
"",
"",
kFALSE, -1, 0 },
161 {
"",
"",
kFALSE, -1, 0 },
165 {
"",
"",
kFALSE, -1, 0 },
167 {
"",
"",
kFALSE, -1, 0 },
200 if (
cur->fItem->GetUserData() == obj) {
212 if (
cur->fItem == item) {
299 TGFileItem(
p,
bpic, 0,
spic, 0,
name, 0, 0, 0, 0, 0,
viewMode)
315 if (obj->
IsA()->HasDefaultConstructor()) {
344 const char *
GetTitle()
const override{
return "ListView Container"; }
373 if (!
First())
return;
492 if (obj->
IsA()->InheritsFrom(
"TGeoVolume")) {
508 im->Scale(
im->GetWidth()/2,
im->GetHeight()/2);
547 li->Clear(
"nodelete");
569 if ((
TString(
robj->GetClassName()) ==
"TSystemFile") ||
570 (
TString(
robj->GetClassName()) ==
"TSystemDirectory"))
611 fi->SetUserData(obj);
618 data.fData = (
void *)str.Data();
619 data.fDataLength = str.Length()+1;
643 if (
f->GetUserData() == obj) {
667 fi->SetUserData(obj);
690 el2->fFrame->DestroyWindow();
734 obj =
lnk->GetObject();
762 fi->SetUserData(obj);
791 if (
name.IsNull())
return 0;
825 while ((obj=next())) {
827 idx = str.Index(
name,0,cmp);
1106 dropt_entry->SetToolTipText(
"Object Draw Option", 300);
1109 lb->Resize(
lb->GetWidth(), 120);
1207 int parts[] = { 26, 74 };
1241 printf(
"\n You are using the old ROOT browser! A new version is available. To use it:\n");
1242 printf(
" Select the \"New Browser\" entry from the \"File\" menu in the browser, or change\n");
1243 printf(
" \"Browser.Name:\" from \"TRootBrowserLite\" to \"TRootBrowser\" in system.rootrc\n\n");
1245 Connect(
fLt,
"Checked(TObject*, Bool_t)",
"TRootBrowserLite",
1246 this,
"Checked(TObject *,Bool_t)");
1304 if (
f->GetUserData() == obj) {
1305 f->SetCheckedEntry(
check);
1312 if (
name[0] ==
'.' && ((
name[1] ==
'\0') || (
name[1] ==
'.' &&
name[2] ==
'\0')))
1336 if (
f->GetUserData() == obj) {
1337 f->SetCheckedEntry(
check);
1359 if (
f->GetUserData() == obj) {
1360 f->SetCheckedEntry(
check);
1383 if (
f->GetUserData() == obj) {
1433 if (
name[0] ==
'.' &&
name[1] ==
'.')
1434 Info(
"AddToTree",
"up one level %s",
name);
1453 if (
tobj && (
tobj->InheritsFrom(
"TRemoteObject") ||
1454 tobj->InheritsFrom(
"TApplicationRemote"))) {
1548 if (
lbe->GetText()->GetString() == opt) {
1593 fmt =
"%d Object%s, %d selected.";
1595 fmt =
"%d Object%s.";
1606 char *
p, path[1024];
1610 while (*
p && *(
p+1) ==
'/') ++
p;
1620 while (*
p && *(
p+1) ==
'/') ++
p;
1664 if (
act[0] ==
'!') {
1712 path =
sf->GetName();
1727 if (!
img->IsValid()) {
1744 w = (
w < 54) ? 54 :
w;
1745 h = (
h < 54) ? 54 :
h;
1749 img->DrawBox(0, 0,
w,
h,
"#ffff00", 1);
1752 img->Scale(
w/3,
h/3);
1799 new TBrowser(
"Browser",
"ROOT Object Browser");
1807 gROOT->MakeDefCanvas();
1821 if (
fi.fMultipleSelection &&
fi.fFileNamesList) {
1823 TIter next(
fi.fFileNamesList);
1825 new TFile(
el->GetString(),
"update");
1828 else if (
fi.fFilename) {
1829 new TFile(
fi.fFilename,
"update");
1902 printf(
"Currently the browser always shows all cycles\n");
2029 const char *
dirname =
e->GetPath()->GetString();
2070 if (
obj2->InheritsFrom(
"TTree")) {
2136 if (
itm->GetUserData() ==
obj2)
break;
2137 itm =
itm->GetNextSibling();
2173 Error(
"ProcessMessage",
"do not support non TObject (like %s) yet",
2178 if (
obj2 &&
obj2->InheritsFrom(
"TTree")) {
2252 if (
strcmp(((
TKey*)obj)->GetClassName(),
"TDirectoryFile") == 0) {
2442 TString::Format(
"((TApplicationServer *)gApplication)->BrowseFile(\"%s\");",
2471 if (
topobj &&
topobj->InheritsFrom(
"TApplicationRemote")) {
2518 gROOT->GetListOfBrowsables()->Remove(old);
2520 gROOT->GetListOfBrowsables()->Add(obj);
2569 Emit(
"Checked(TObject*,Bool_t)", args);
2584 if (obj->
IsA()->GetMethodWithPrototype(
"Browse",
"TBrowser*"))
2603 TKey *key =
dynamic_cast<TKey*
>(obj);
2612 if (t ==
".")
goto out;
2642 while (
itm && (
itm->GetUserData() != obj)) {
2643 itm =
itm->GetNextSibling();
2656 if (
tobj && (
tobj->InheritsFrom(
"TRemoteObject") ||
2657 tobj->InheritsFrom(
"TApplicationRemote"))) {
2669 if (
itm)
itm->SetUserData(obj);
2680 if (
itm)
itm->SetUserData(obj);
2779 if (!prev) prev =
curr;
2912 for (i = 2; i <= 5; ++i)
2919 buttons[0]->Connect(
"Clicked()",
"TRootBrowserLite",
this,
2921 buttons[1]->Connect(
"Clicked()",
"TRootBrowserLite",
this,
2923 buttons[2]->Connect(
"Clicked()",
"TRootBrowserLite",
this,
2925 buttons[5]->Connect(
"Clicked()",
"TRootBrowserLite",
this,
2981 for (
int i = 0; i <
len; i++) {
2983 if (((
c < 32) || (
c > 126)) && (
c !=
'\t') && (
c !=
'\r') && (
c !=
'\n')) {
3025 const int bufferSize = 1024;
3026 char buffer[bufferSize];
3035 int sz =
fread(buffer, 1, bufferSize, fd);
3053 fTextEdit,
"Search(char *,Bool_t,Bool_t)");
3057 savbtn->Connect(
"Released()",
"TGTextEdit",
fTextEdit,
"SaveFile(=0,kTRUE)");
3136 bt1->Connect(
"Pressed()",
"TRootBrowserLite",
this,
"ExecMacro()");
3137 bt2->Connect(
"Pressed()",
"TRootBrowserLite",
this,
"InterruptMacro()");
const Mask_t kKeyMod1Mask
typically the Alt key
EMouseButton
Button names.
R__EXTERN const char gHelpObjects[]
R__EXTERN const char gHelpPullDownMenus[]
R__EXTERN const char gHelpRemote[]
R__EXTERN const char gHelpAbout[]
R__EXTERN const char gHelpGraphicsEditor[]
R__EXTERN const char gHelpCanvas[]
R__EXTERN const char gHelpBrowserLite[]
R__EXTERN const char gHelpPostscript[]
R__EXTERN TApplication * gApplication
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Info(const char *location, const char *msgfmt,...)
Use this function for informational messages.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
R__EXTERN TGDNDManager * gDNDManager
static unsigned int total
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void input
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void SetIconPixmap
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t UChar_t len
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void SetWMPosition
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize MapSubwindows
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t SetWMSizeHints
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
static Bool_t isBinary(const char *str, int len)
test
static ToolBarData_t gToolBarData[]
static const char * gOpenTypes[]
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
R__EXTERN TSystem * gSystem
virtual Longptr_t ProcessLine(const char *line, Bool_t sync=kFALSE, Int_t *error=nullptr)
Process a single command line, either a C++ statement or an interpreter command starting with a "....
virtual void Terminate(Int_t status=0)
Terminate the application by call TSystem::Exit() unless application has been told to return from Run...
TApplication * GetAppRemote() const
virtual const char * ApplicationName() const
ABC describing GUI independent browser implementation protocol.
TBrowser * fBrowser
TBrowser associated with this implementation.
Using a TBrowser one can browse all ROOT objects.
void SetDrawOption(Option_t *option="") override
Set drawing option for object.
void SetRefreshFlag(Bool_t flag)
TContextMenu * GetContextMenu() const
Bool_t GetRefreshFlag() const
void SetBrowserImp(TBrowserImp *i)
The concrete implementation of TBuffer for writing/reading to/from a ROOT file or socket.
void WriteObject(const TObject *obj, Bool_t cacheReuse=kTRUE) override
Write object to I/O buffer.
TClass instances represent classes, structs and namespaces in the ROOT type system.
Bool_t IsTObject() const
Return kTRUE is the class inherits from TObject.
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
const char * GetName() const override
Return name of this collection.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
The color creation and management class.
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb",...
ULong_t GetPixel() const
Return pixel value corresponding to this color.
Drag and drop data container.
Atom_t fDataType
Data type description.
Int_t fDataLength
Length of data.
Describe directory structure in memory.
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
virtual void SetValue(const char *name, const char *value, EEnvLevel level=kEnvChange, const char *type=nullptr)
Set the value of a resource or create a new resource.
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
A frame containing two scrollbars (a horizontal and a vertical) and a viewport.
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
TGMimeTypes * GetMimeTypeList() const
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
TGPicturePool * GetPicturePool() const
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
virtual TGLBEntry * GetSelectedEntry() const
virtual TGTextEntry * GetTextEntry() const
virtual void AddEntry(TGString *s, Int_t id)
virtual TGListBox * GetListBox() const
virtual void Select(Int_t id, Bool_t emit=kTRUE)
Make the selected item visible in the combo box window and emit signals according to the second param...
virtual Int_t GetNumberOfEntries() const
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
UInt_t GetDefaultWidth() const override
void MapSubwindows() override
Map all sub windows that are part of the composite frame.
UInt_t GetDefaultHeight() const override
TGCompositeFrame(const TGCompositeFrame &)=delete
void Layout() override
Layout the elements of the composite frame.
virtual void ShowFrame(TGFrame *f)
Show sub frame.
TList * fList
container of frame elements
virtual void RemoveFrame(TGFrame *f)
Remove frame from composite frame.
void SetEditDisabled(UInt_t on=1) override
Set edit disable flag for this frame and subframes.
virtual void HideFrame(TGFrame *f)
Hide sub frame.
virtual void Associate(const TGWindow *w)
virtual void ClearViewPort()
Clear view port and redraw full content.
const TGWindow * fMsgWindow
window handling container messages
virtual TGFrameElement * FindFrame(Int_t x, Int_t y, Bool_t exclude=kTRUE)
Find frame located int container at position x,y.
virtual void AdjustPosition()
Move content to position of highlighted/activated frame.
virtual const TGFrame * GetNextSelected(void **current)
Return the next selected item.
virtual void Search(Bool_t close=kTRUE)
Invokes search dialog. Looks for item with the entered name.
Bool_t fLastDir
direction of last search
virtual Int_t NumSelected() const
virtual void SetVsbPosition(Int_t newPos)
Set position of vertical scrollbar.
Int_t fSelected
number of selected items
virtual void SetHsbPosition(Int_t newPos)
set new hor. position
TString fLastName
the name of object of last search
virtual Int_t NumItems() const
virtual void * FindItem(const TString &name, Bool_t direction=kTRUE, Bool_t caseSensitive=kTRUE, Bool_t subString=kFALSE)
Bool_t fLastCase
case sensitivity of last search
void RemoveAll() override
Remove all items from the container.
virtual TGPosition GetPagePosition() const
Returns page position.
TGFrameElement * fLastActiveEl
last active item
Bool_t IsDragging() const
Bool_t EndDrag()
End dragging.
This is a combo box that is used in the File Selection dialog box.
virtual void Update(const char *path)
Update file system combo box.
const TGPicture * fFolder_s
big folder icon
TViewUpdateTimer * fRefresh
refresh timer
void StopRefreshTimer()
stop refresh timer
const TGPicture * fDoc_t
small document icon
virtual void Sort(EFSSortMode sortType)
Sort file system list view container according to sortType.
const TGPicture * fDoc_s
big document icon
virtual TGFileItem * AddFile(const char *name, const TGPicture *pic=nullptr, const TGPicture *lpic=nullptr)
Add file in container.
virtual TGFileItem * AddRemoteFile(TObject *obj, const TGPicture *ipic=nullptr, const TGPicture *ilpic=nullptr)
Add remote file in container.
const TGPicture * fFolder_t
small folder icon
EFSSortMode fSortType
sorting mode of contents
This class creates a file selection dialog.
TBufferFile * fBuf
buffer used for Drag and Drop
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0) override
Move and/or resize the frame.
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
void MapWindow() override
map window
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual void DeleteWindow()
Delete window.
void SetDNDSource(Bool_t onoff)
void UnmapWindow() override
unmap window
virtual void SendMessage(const TGWindow *w, Longptr_t msg, Longptr_t parm1, Longptr_t parm2)
Send message (i.e.
static Pixel_t fgWhitePixel
A horizontal 3D line is a line that typically separates a toolbar from the menubar.
A composite frame that layout their children in horizontal way.
A Composite frame that contains a list of TGLBEnties.
TGListView * fListView
listview which contains this container
virtual void AddItem(TGLVEntry *item)
void ActivateItem(TGFrameElement *el) override
Select/activate item.
EListViewMode GetViewMode() const
TGString ** fSubnames
sub names of item (details)
FontStruct_t fFontStruct
text font
Int_t * fCtw
width of sub names
void SetUserData(void *userData)
This class handles GUI labels.
virtual void SetText(TGString *newText)
Set new text in label.
This class describes layout hints used by the layout classes.
A listbox is a box, possibly with scrollbar, containing entries.
TGListTreeItem * GetFirstChild() const
void Rename(const char *new_name)
virtual Bool_t IsActive() const =0
virtual const char * GetText() const =0
TGListTreeItem * GetNextSibling() const
TGListTreeItem * GetParent() const
virtual void SetTipText(const char *)
virtual Bool_t IsOpen() const
virtual void * GetUserData() const =0
virtual void SetUserData(void *, Bool_t=kFALSE)
A list tree is a widget that can contain a number of items arranged in a tree structure.
TGListTreeItem * FindItemByObj(TGListTreeItem *item, void *ptr)
Find item with fUserData == ptr.
void ClearHighlighted()
Un highlight items.
void AddItem(TGListTreeItem *parent, TGListTreeItem *item)
Add given item to list tree.
void CheckItem(TGListTreeItem *item, Bool_t check=kTRUE)
Set check button state for the node 'item'.
void SetAutoTips(Bool_t on=kTRUE)
void SetCheckBox(TGListTreeItem *item, Bool_t on=kTRUE)
Set check button state for the node 'item'.
void OpenItem(TGListTreeItem *item)
Open item in list tree (i.e. show child items).
TGListTreeItem * GetSelected() const
Int_t RecursiveDeleteItem(TGListTreeItem *item, void *userData)
Delete item with fUserData == ptr.
Int_t DeleteItem(TGListTreeItem *item)
Delete item from list tree.
TGListTreeItem * GetFirstItem() const
TGListTreeItem * FindChildByName(TGListTreeItem *item, const char *name)
Find child of item by name.
void AdjustPosition(TGListTreeItem *item)
Move content to position of item.
void HighlightItem(TGListTreeItem *item)
Highlight item.
TGListTreeItem * FindItemByPathname(const char *path)
Find item by pathname.
TGListTreeItem * FindChildByData(TGListTreeItem *item, void *userData)
Find child of item by userData.
void SetToolTipItem(TGListTreeItem *item, const char *string)
Set tooltip text for this item.
void GetPathnameFromItem(TGListTreeItem *item, char *path, Int_t depth=0)
Get pathname from item.
A list view is a widget that can contain a number of items arranged in a grid or list.
virtual void AdjustHeaders()
virtual void SetHeader(const char *s, Int_t hmode, Int_t cmode, Int_t idx)
Set header button idx [0-fNColumns>, hmode is the x text alignmode (ETextJustification) for the heade...
void Layout() override
Layout list view components (container and contents of container).
virtual void SetIncrements(Int_t hInc, Int_t vInc)
Set horizontal and vertical scrollbar increments.
EListViewMode GetViewMode() const
TGTextButton ** GetHeaderButtons()
virtual void SetViewMode(EListViewMode viewMode)
Set list view mode.
virtual void SetHeaders(Int_t ncolumns)
Set number of headers, i.e.
virtual void SetDefaultHeaders()
Default headers are: Name, Attributes, Size, Owner, Group, Modified.
virtual void LayoutHeader(TGFrame *head)
Layout list view components (container and contents of container).
virtual const char * GetHeader(Int_t idx) const
Returns name of header idx.
Defines top level windows that interact with the system Window Manager.
Atom_t * fDNDTypeList
handles DND types
virtual void SendCloseMessage()
Send close message to self.
void SetClassHints(const char *className, const char *resourceName)
Set the windows class and resource name.
void SetIconName(const char *name)
Set window icon name. This is typically done via the window manager.
void SetWindowName(const char *name=nullptr) override
Set window name. This is typically done via the window manager.
Bool_t HandleKey(Event_t *event) override
Handle keyboard events.
void AddType(const char *type, const char *pat, const char *icon, const char *sicon, const char *action)
Add a mime type to the list of mime types.
const TGPicture * GetIcon(const char *filename, Bool_t small_icon)
Return icon belonging to mime type of filename.
Bool_t GetAction(const char *filename, char *action)
Return in action the mime action string belonging to filename.
TGClient * fClient
Connection to display server.
Handle_t fId
X11/Win32 Window identifier.
const TGPicture * GetPicture(const char *name)
Get a picture from the picture pool.
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
Pixmap_t GetPicture() const
static TGSearchDialog *& SearchDialog()
Return global search dialog.
Provides a StatusBar widget.
virtual void SetText(TGString *text, Int_t partidx=0)
Set text in partition partidx in status bar.
virtual void SetParts(Int_t npart)
Divide the status bar in npart equal sized parts.
TGString wraps a TString and adds some graphics routines like drawing, size of string on screen depen...
virtual void SetString(const char *s)
const char * GetString() const
Yield an action as soon as it is clicked.
A TGTextEdit is a specialization of TGTextView.
virtual Bool_t SaveFile(const char *fname, Bool_t saveas=kFALSE)
Save file.
Bool_t Search(const char *string, Bool_t direction=kTRUE, Bool_t caseSensitive=kFALSE) override
Search for string in the specified direction.
A TGTextEntry is a one line text input widget.
Text string listbox entries.
virtual Bool_t LoadFile(const char *fname, long startpos=0, long length=-1)
Load a file in the text view widget.
virtual void SetReadOnly(Bool_t on=kTRUE)
A composite frame that layout their children in vertical way.
void SetBackgroundColor(Pixel_t) override
Set background color of the canvas frame.
ROOT GUI Window base class.
@ kEditDisable
disable edit of this window
virtual void DestroyWindow()
destroy window
const TGWindow * GetParent() const
static TGuiBuilder * Instance()
return an instance of TGuiBuilder object
THashTable implements a hash table to store TObject's.
void Add(TObject *obj) override
Add object to the hash table.
TObject * FindObject(const char *name) const override
Find object using its name.
void Delete(Option_t *option="") override
Remove all objects from the table AND delete all heap based objects.
TIconBoxThumb(const char *name, const TGPicture *spic, const TGPicture *pic)
const char * GetName() const override
Returns name of object.
ULong_t Hash() const override
Return hash value for this object.
An abstract interface to image processing library.
static TImage * Create()
Create an image.
Utility class for browsing TMapFile objects.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual const char * GetClassName() const
TClass * IsA() const override
Short_t GetCycle() const
Return cycle number associated to this key.
TObject * After(const TObject *obj) const override
Returns the object after object obj.
TObject * Before(const TObject *obj) const override
Returns the object before object obj.
void Add(TObject *obj) override
TObject * Remove(TObject *obj) override
Remove object from the list.
TObject * Last() const override
Return the last object in the list. Returns 0 when list is empty.
TObject * First() const override
Return the first object in the list. Returns 0 when list is empty.
virtual TObjLink * FirstLink() const
void Delete(Option_t *option="") override
Remove all objects from the list AND delete all heap based objects.
const char * GetName() const override
Returns name of object.
Wrapper around a TObject so it can be stored in a TList.
Collectable string class.
Mother of all ROOT objects.
virtual Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
virtual const char * GetName() const
Returns name of object.
virtual void Browse(TBrowser *b)
Browse object. May be overridden for another default action.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
virtual const char * GetIconName() const
Returns mime type name of object.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual char * GetObjectInfo(Int_t px, Int_t py) const
Returns string containing info about the object at position (px,py).
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual const char * GetTitle() const
Returns title of object.
virtual TClass * IsA() const
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
static const TString & GetBinDir()
Get the binary directory in the installation. Static utility function.
The TRemoteObject class provides protocol for browsing ROOT objects from a remote ROOT session.
TRootBrowserCursorSwitcher(TGWindow *w1, TGWindow *w2)
~TRootBrowserCursorSwitcher()
void Print(Option_t *) const override
This method must be overridden when a class wants to print itself.
TRootBrowserHistoryCursor(TGListTreeItem *item)
void DeleteItem(TGListTreeItem *item)
void RecursiveRemove(TObject *obj) override
Remove object from this collection and recursively remove the object from all other objects (and coll...
This class creates a ROOT object browser (looking like Windows Explorer).
TGCompositeFrame * fTreeHdr
TGPopupMenu * fOptionMenu
friend class TRootIconBox
Bool_t HistoryBackward()
go to the past
void SetStatusText(const char *txt, Int_t col) override
Set text in column col in status bar.
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override
Handle menu and other command generated by the user.
void SetViewMode(Int_t new_mode, Bool_t force=kFALSE)
Set iconbox's view mode and update menu and toolbar buttons accordingly.
void Refresh(Bool_t force=kFALSE) override
Refresh the browser contents.
TGLayoutHints * fMenuBarHelpLayout
void ListTreeHighlight(TGListTreeItem *item)
Open tree item and list in iconbox its contents.
TGFileContainer * GetIconBox() const
returns pointer to fIconBox object
void SetSortMode(Int_t new_mode)
Set iconbox's sort mode and update menu radio buttons accordingly.
void ClearHistory()
clear navigation history
~TRootBrowserLite() override
Browser destructor.
TGListTreeItem * fListLevel
current TGListTree level
TGLayoutHints * fExpandLayout
void RecursiveRemove(TObject *obj) override
Recursively remove object from browser.
void BrowseTextFile(const char *file)
browse text file
Option_t * GetDrawOption() const override
returns drawing option
void ReallyDelete() override
Really delete the browser and the this GUI.
virtual void DoubleClicked(TObject *obj)
Emits signal when double clicking on icon.
TGLayoutHints * fComboLayout
void Chdir(TGListTreeItem *item)
Make object associated with item the current directory.
void ExecMacro()
executed browsed text macro
TGComboBox * fDrawOption
drawing option entry
virtual void ShowToolBar(Bool_t show=kTRUE)
Show or hide toolbar.
void HighlightListLevel()
helper method to track history
Bool_t HistoryForward()
go to the future
static TBrowserImp * NewBrowser(TBrowser *b=nullptr, const char *title="ROOT Browser", UInt_t width=800, UInt_t height=500, Option_t *opt="")
Interface method to the old browser.
TGLayoutHints * fMenuBarLayout
virtual void AddToTree(TObject *obj, const char *name, Int_t check=-1)
Add items to the current TGListTree of the browser.
const TGPicture * fIconPic
icon picture
void AddToHistory(TGListTreeItem *item)
helper method to track history
TGLayoutHints * fBarLayout
void BrowseObj(TObject *obj) override
Browse object.
Bool_t fTreeLock
true when we want to lock TGListTree
virtual void Checked(TObject *obj, Bool_t check)
Emits signal when double clicking on icon.
void DisplayTotal(Int_t total, Int_t selected)
Display in statusbar total number of objects and number of selected objects in IconBox.
void CloseWindow() override
In case window is closed via WM we get here.
Int_t fSortMode
current IconBox sort mode
void IconBoxAction(TObject *obj)
Default action when double clicking on icon.
TGLayoutHints * fMenuBarItemLayout
void HideTextEdit()
hide text edit
TGStatusBar * GetStatusBar() const
void DisplayDirectory()
Display current directory in second label, fLbl2.
void ShowMacroButtons(Bool_t show=kTRUE)
show/hide macro buttons
virtual void AddToBox(TObject *obj, const char *name)
Add items to the iconbox of the browser.
virtual void ShowStatusBar(Bool_t show=kTRUE)
Show or hide statusbar.
TRootBrowserLite(const TRootBrowserLite &)=delete
void Search()
starts serach dialog
TList * fHistory
history of browsing
void CheckObjectItem(TObject *obj, Bool_t check=kFALSE) override
Check / uncheck the TGListTreeItem corresponding to this object and add a checkmark on TGLVEntry if c...
Bool_t HandleKey(Event_t *event) override
handle keys
TObject * fHistoryCursor
current history position
Int_t fViewMode
current IconBox view mode
virtual void SetDefaults(const char *iconStyle=nullptr, const char *sortBy=nullptr)
Set defaults depending on settings in the user's .rootrc.
TGFSComboBox * fFSComboBox
void InterruptMacro()
interrupt browsed macro execution
void SetDrawOption(Option_t *option="") override
sets drawing option
TGCompositeFrame * fListHdr
void UpdateDrawOption()
add new draw option to the "history"
TGTextEdit * fTextEdit
contents of browsed text file
void CreateBrowser(const char *name)
Create the actual browser.
void ToSystemDirectory(const char *dirname)
display directory
void ExecuteDefaultAction(TObject *obj) override
Execute default action for selected object (action is specified in the $HOME/.root....
void AddCheckBox(TObject *obj, Bool_t check=kFALSE) override
Add a checkbox in the TGListTreeItem corresponding to obj and a checkmark on TGLVEntry if check = kTR...
void Add(TObject *obj, const char *name=nullptr, Int_t check=-1) override
Add items to the browser.
void DeleteListTreeItem(TGListTreeItem *item)
delete list tree item, remove it from history
TGHorizontal3DLine * fToolBarSep
void RemoveCheckBox(TObject *obj) override
Remove checkbox from TGListTree and checkmark from TGListView.
A TRootHelpDialog is used to display help text (or any text in a dialog window).
friend class TRootIconList
~TRootIconBox() override
destructor
TGFrameElement * FindFrame(Int_t x, Int_t y, Bool_t exclude=kTRUE) override
Find frame located int container at position x,y.
const TGPicture * fSmallCachedPic
void RemoveGarbage()
delete all TRootIconLists from garbage
void SetGroupSize(Int_t siz)
Bool_t WasGrouped() const
const TGPicture * fLargeCachedPic
void AddObjItem(const char *name, TObject *obj, TClass *cl)
Add object to iconbox.
TRootIconBox(TRootBrowserLite *browser, TGListView *lv, UInt_t options=kSunkenFrame, ULong_t back=GetDefaultFrameBackground())
Create iconbox containing ROOT objects in browser.
Int_t GetGroupSize() const
TRootObjItem * fCurrentItem
void Refresh()
Sort icons, and send message to browser with number of objects in box.
void GetObjPictures(const TGPicture **pic, const TGPicture **spic, TObject *obj, const char *name)
Retrieve icons associated with class "name".
void * FindItem(const TString &name, Bool_t direction=kTRUE, Bool_t caseSensitive=kTRUE, Bool_t beginWith=kFALSE) override
Find a frame which assosiated object has a name containing a "name" string.
TRootIconList * fCurrentList
TRootBrowserLite * fBrowser
void SetObjHeaders()
Set list box headers used to display detailed object iformation.
void RemoveAll() override
Remove all items from icon box.
void UpdateName()
composite name
void Browse(TBrowser *b) override
browse icon list
TRootIconList(TRootIconBox *box=nullptr)
constructor
const char * GetTitle() const override
Returns title of object.
Bool_t IsFolder() const override
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
const TGPicture * GetPicture() const
~TRootIconList() override
destructor
TRootObjItem(const TGWindow *p, const TGPicture *bpic, const TGPicture *spic, TGString *name, TObject *obj, TClass *cl, EListViewMode viewMode=kLVSmallIcons)
Create an icon box item.
TDNDData * GetDNDData(Atom_t) override
Bool_t HandleDNDFinished() override
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
const char * Data() const
TString & Prepend(const char *cs)
UInt_t Hash(ECaseCompare cmp=kExact) const
Return hash value.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Describes an Operating System directory for the browser.
A TSystemFile describes an operating system file.
virtual char * ConcatFileName(const char *dir, const char *name)
Concatenate a directory and a file name. User must delete returned string.
virtual Int_t Exec(const char *shellcmd)
Execute a command.
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
virtual const char * UnixPathName(const char *unixpathname)
Convert from a local pathname to a Unix pathname.
virtual Bool_t IsAbsoluteFileName(const char *dir)
Return true if dir is an absolute pathname.
virtual const char * WorkingDirectory()
Return working directory.
virtual TString GetDirName(const char *pathname)
Return the directory name in pathname.
virtual int Unlink(const char *name)
Unlink, i.e.
virtual const char * TempDirectory() const
Return a user configured or systemwide directory to create temporary files in.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
const char * fPicnamePrefix
const TGPicture * fIcon[2]
EGEventType fType
of event (see EGEventType)
UInt_t fState
key or button mask