16 #ifndef ROOT7_TMenuItem 17 #define ROOT7_TMenuItem 25 namespace Experimental {
44 TMenuItem(
const std::string &
name,
const std::string &title) : fName(name), fTitle(title), fExec() {}
51 void SetExec(
const std::string &exec) { fExec = exec; }
62 bool fChecked =
false;
69 :
TMenuItem(name, title), fChecked(checked)
92 TMenuArgument(
const std::string &
name,
const std::string &title,
const std::string &typname,
93 const std::string &dflt =
"")
94 : fName(name), fTitle(title), fTypeName(typname), fDefault(dflt)
98 void SetDefault(
const std::string &dflt) { fDefault = dflt; }
132 void AddMenuItem(
const std::string &
name,
const std::string &title,
const std::string &exec)
139 void AddChkMenuItem(
const std::string &
name,
const std::string &title,
bool checked,
const std::string &toggle)
146 unsigned Size()
const {
return fItems.size(); }
150 void PopulateObjectMenu(
void *obj,
TClass *cl);
152 std::string ProduceJSON();
Namespace for new ROOT classes and functions.
The ROOT global object gROOT contains a list of all defined classes.
void Add(THist< DIMENSIONS, PRECISION_TO, STAT_TO... > &to, const THist< DIMENSIONS, PRECISION_FROM, STAT_FROM... > &from)
Add two histograms.