MCPcopy Create free account
hub / github.com/TeXworks/texworks / populateTree

Method populateTree

src/ScriptManagerWidget.cpp:87–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void ScriptManagerWidget::populateTree()
88{
89 TWScriptManager * scriptManager = TWApp::instance()->getScriptManager();
90 TWScriptList * scripts = scriptManager->getScripts();
91 TWScriptList * hooks = scriptManager->getHookScripts();
92
93 hookTree->clear();
94 standaloneTree->clear();
95
96 populateTree(hookTree, nullptr, hooks);
97 populateTree(standaloneTree, nullptr, scripts);
98
99 hookTree->expandAll();
100 standaloneTree->expandAll();
101}
102
103#define kScriptType (QTreeWidgetItem::UserType + 1)
104#define kFolderType (QTreeWidgetItem::UserType + 2)

Callers 1

refreshScriptListMethod · 0.80

Calls 10

getScriptManagerMethod · 0.80
getScriptsMethod · 0.80
getTitleMethod · 0.80
setDataMethod · 0.80
setFontMethod · 0.80
foreachFunction · 0.70
getHookScriptsMethod · 0.45
clearMethod · 0.45
getTypeMethod · 0.45
isEnabledMethod · 0.45

Tested by

no test coverage detected