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

Method init

src/PrefsDialog.cpp:49–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void PrefsDialog::init()
50{
51 setupUi(this);
52
53 connect(buttonBox, &QDialogButtonBox::clicked, this, &PrefsDialog::buttonClicked);
54
55 connect(binPathList, &QListWidget::itemSelectionChanged, this, &PrefsDialog::updatePathButtons);
56 connect(pathUp, &QToolButton::clicked, this, &PrefsDialog::movePathUp);
57 connect(pathDown, &QToolButton::clicked, this, &PrefsDialog::movePathDown);
58 connect(pathAdd, &QToolButton::clicked, this, &PrefsDialog::addPath);
59 connect(pathRemove, &QToolButton::clicked, this, &PrefsDialog::removePath);
60
61 connect(toolList, &QListWidget::itemSelectionChanged, this, &PrefsDialog::updateToolButtons);
62 connect(toolList, &QListWidget::itemDoubleClicked, this, &PrefsDialog::editTool);
63 connect(toolUp, &QToolButton::clicked, this, &PrefsDialog::moveToolUp);
64 connect(toolDown, &QToolButton::clicked, this, &PrefsDialog::moveToolDown);
65 connect(toolAdd, &QToolButton::clicked, this, &PrefsDialog::addTool);
66 connect(toolRemove, &QToolButton::clicked, this, &PrefsDialog::removeTool);
67 connect(toolEdit, &QToolButton::clicked, this, [=]() { this->editTool(); });
68
69 connect(tabWidget, &QTabWidget::currentChanged, this, &PrefsDialog::changedTabPanel);
70
71 pathsChanged = toolsChanged = false;
72}
73
74void PrefsDialog::changedTabPanel(int index)
75{

Callers

nothing calls this directly

Calls 1

editToolMethod · 0.95

Tested by

no test coverage detected