9#ifndef ROOT7_Browsable_RItem
10#define ROOT7_Browsable_RItem
16namespace Experimental {
37 RItem(
const std::string &_name,
int _nchilds = 0,
const std::string &_icon =
"") :
name(_name),
nchilds(_nchilds),
icon(_icon) {}
48 virtual bool IsHidden()
const {
return false; }
65 fsize = std::to_string(_ksize/1024) +
"." + std::to_string((_ksize%1024)/103) +
"M";
67 fsize = std::to_string(_ksize) +
"." + std::to_string((_size%1024)/103) +
"K";
70 fsize = std::to_string(_size);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Representation of single item in the browser.
std::string name
item name
virtual bool IsHidden() const
const std::string & GetIcon() const
int nchilds
number of childs
void SetName(const std::string &_name)
RItem(const std::string &_name, int _nchilds=0, const std::string &_icon="")
bool checked
is checked, not yet used
virtual bool Compare(const RItem *b, const std::string &) const
std::string fsize
item size
std::string icon
icon associated with item
void SetMTime(const std::string &_mtime)
void SetSize(Long64_t _size)
std::string title
item title
std::string mtime
modification time
void SetTitle(const std::string &_title)
const std::string & GetName() const
virtual bool IsFolder() const
void SetSize(const std::string &_size)
const std::string & GetMTime() const
const std::string & GetSize() const
void SetExpanded(bool on=true)
const std::string & GetTitle() const
void SetIcon(const std::string &_icon)
void SetChecked(bool on=true)
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.