MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / addSeparatorActions

Method addSeparatorActions

src/modlistcontextmenu.cpp:381–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379}
380
381void ModListContextMenu::addSeparatorActions(ModInfo::Ptr mod)
382{
383 addCategoryContextMenus(mod);
384 addSeparator();
385
386 addAction(tr("Rename Separator..."), [=]() {
387 m_actions.renameMod(m_index);
388 });
389 addAction(tr("Remove Separator..."), [=]() {
390 m_actions.removeMods(m_selected);
391 });
392 addSeparator();
393
394 if (m_view->sortColumn() == ModList::COL_PRIORITY) {
395 addSendToContextMenu();
396 addSeparator();
397 }
398 addAction(tr("Select Color..."), [=]() {
399 m_actions.setColor(m_selected, m_index);
400 });
401
402 if (mod->color().isValid()) {
403 addAction(tr("Reset Color"), [=]() {
404 m_actions.resetColor(m_selected);
405 });
406 }
407
408 addSeparator();
409}
410
411void ModListContextMenu::addForeignActions(ModInfo::Ptr mod)
412{

Callers

nothing calls this directly

Calls 7

removeModsMethod · 0.80
resetColorMethod · 0.80
renameModMethod · 0.45
sortColumnMethod · 0.45
setColorMethod · 0.45
isValidMethod · 0.45
colorMethod · 0.45

Tested by

no test coverage detected