MCPcopy Create free account
hub / github.com/ErrorFlynn/ytdlp-interface / item_from_value

Method item_from_value

ytdlp-interface/widgets.cpp:397–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395
396
397nana::listbox::item_proxy Listbox::item_from_value(std::wstring val)
398{
399 const auto this_thread_id {std::this_thread::get_id()};
400 if(this_thread_id == main_thread_id)
401 {
402 for(size_t cat {0}; cat < size_categ(); cat++)
403 for(auto item : listbox::at(cat))
404 if(item.value<lbqval_t>() == val)
405 return item;
406 }
407 else if(!g_exiting)
408 {
409 auto item {empty_item};
410 SendMessage(hwnd_parent, WM_LBQ_URL2ITEM, reinterpret_cast<WPARAM>(&val), reinterpret_cast<LPARAM>(&item));
411 return item;
412 }
413 return empty_item;
414}
415
416
417nana::listbox::cat_proxy Listbox::at(size_type pos)

Callers 12

showMethod · 0.80
GUIMethod · 0.80
process_queue_itemMethod · 0.80
add_urlMethod · 0.80
start_next_urlsMethod · 0.80
browse_for_filenameMethod · 0.80
queue_pop_menuMethod · 0.80
queue_remove_itemsMethod · 0.80
queue_remove_itemMethod · 0.80
make_formMethod · 0.80
make_message_handlersMethod · 0.80
fm_formatsMethod · 0.80

Calls 1

atFunction · 0.85

Tested by

no test coverage detected