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

Method initPathAndToolLists

src/PrefsDialog.cpp:435–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433}
434
435void PrefsDialog::initPathAndToolLists()
436{
437 binPathList->clear();
438 toolList->clear();
439 binPathList->addItems(TWApp::instance()->getPrefsBinaryPaths());
440 engineList = TWApp::instance()->getEngineList();
441 foreach (Engine e, engineList) {
442 toolList->addItem(e.name());
443 defaultTool->addItem(e.name());
444 if (e.name() == TWApp::instance()->getDefaultEngine().name())
445 defaultTool->setCurrentIndex(defaultTool->count() - 1);
446 }
447 if (binPathList->count() > 0)
448 binPathList->setCurrentItem(binPathList->item(0));
449 if (toolList->count() > 0)
450 toolList->setCurrentItem(toolList->item(0));
451 updatePathButtons();
452 updateToolButtons();
453}
454
455const int kSystemLocaleIndex = 0;
456const int kEnglishLocaleIndex = 1;

Callers 1

doPrefsDialogMethod · 0.80

Calls 4

addItemsMethod · 0.80
getPrefsBinaryPathsMethod · 0.80
clearMethod · 0.45
getEngineListMethod · 0.45

Tested by

no test coverage detected