mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-11 14:44:15 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user