9#ifndef ROOT7_RMenuItems
10#define ROOT7_RMenuItems
21namespace Experimental {
113 const std::string &dflt =
"")
161 std::vector<std::unique_ptr<Detail::RMenuItem>>
fItems;
165 RMenuItems(
const std::string &_id,
const std::string &_specifier)
178 void Add(std::unique_ptr<Detail::RMenuItem> &&item) {
fItems.emplace_back(std::move(item)); }
180 void AddMenuItem(
const std::string &
name,
const std::string &title,
const std::string &exec,
const TClass *cl =
nullptr)
182 auto item = std::make_unique<Detail::RMenuItem>(
name, title);
184 if (cl) item->SetClassName(cl->GetName());
185 Add(std::move(item));
188 void AddChkMenuItem(
const std::string &
name,
const std::string &title,
bool checked,
const std::string &toggle,
const TClass *cl =
nullptr)
190 auto item = std::make_unique<Detail::RCheckedMenuItem>(
name, title, checked);
191 item->SetExec(toggle);
192 if (cl) item->SetClassName(cl->GetName());
193 Add(std::move(item));
212 std::unique_ptr<RDrawableReply>
Process()
override;
Base class for replies on RDrawableRequest.
Base class for requests which can be submitted from the clients.
TClass instances represent classes, structs and namespaces in the ROOT type system.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...