MCPcopy Create free account
hub / github.com/AlexandreRouma/SDRPlusPlus / registerEntry

Method registerEntry

core/src/gui/widgets/menu.cpp:10–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8}
9
10void Menu::registerEntry(std::string name, void (*drawHandler)(void* ctx), void* ctx, ModuleManager::Instance* inst) {
11 MenuItem_t item;
12 item.drawHandler = drawHandler;
13 item.ctx = ctx;
14 item.inst = inst;
15 items[name] = item;
16 if (!isInOrderList(name)) {
17 MenuOption_t opt;
18 opt.name = name;
19 opt.open = true;
20 order.push_back(opt);
21 }
22}
23
24void Menu::removeEntry(std::string name) {
25 items.erase(name);

Callers 11

initMethod · 0.80
RecorderModuleMethod · 0.80
ScannerModuleMethod · 0.80
SigctlServerModuleMethod · 0.80
DemoModuleMethod · 0.80
Falcon9DecoderModuleMethod · 0.80
RadioModuleMethod · 0.80
M17DecoderModuleMethod · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected