Terminal strip: add resistor, varistor, test socket and reversed diode types

Add ElementData::TTResistor, TTVaristor, TTTestSocket and TTDiodeReversed
(xml values "resistor", "varistor", "test_socket", "diode_reversed"),
selectable in the element editor, the terminal strip editor and the free
terminal editor, and drawn in the terminal strip plan.
This commit is contained in:
Laurent Trinques
2026-10-10 16:03:47 +02:00
parent b089c5b245
commit 0fe88758aa
10 changed files with 136 additions and 1 deletions
@@ -226,6 +226,10 @@ void ElementPropertiesEditorWidget::setUpInterface()
ui->m_terminal_type_cb->addItem(tr("Diode"), ElementData::TTDiode);
ui->m_terminal_type_cb->addItem(tr("Ground"), ElementData::TTGround);
ui->m_terminal_type_cb->addItem(tr("Anti-parallel diodes"), ElementData::TTAntiParallelDiodes);
ui->m_terminal_type_cb->addItem(tr("Resistor"), ElementData::TTResistor);
ui->m_terminal_type_cb->addItem(tr("Varistor"), ElementData::TTVaristor);
ui->m_terminal_type_cb->addItem(tr("Test socket"), ElementData::TTTestSocket);
ui->m_terminal_type_cb->addItem(tr("Diode (reversed)"), ElementData::TTDiodeReversed);
ui->m_terminal_func_cb->addItem(tr("Generic"), ElementData::TFGeneric);
ui->m_terminal_func_cb->addItem(tr("Phase"), ElementData::TFPhase);