mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-17 19:34:13 +02:00
5cbc1c4b8d
Terminal block elements can now define, in the element properties dialog (Terminal block element group): - the section in mm2 (combo box with the usual sections, editable) - the width / manufacturer reference (Weidmuller, Phoenix Contact, WAGO, ABB Entrelec), filtered by the selected section - the color, using the palette of the terminal strip (editable, accepts a name, #rrggbb or #rrggbb/#rrggbb) Values are stored in the element informations (terminal_section, terminal_width, terminal_color) with the dot as decimal separator, the keys already read by RealTerminal. An empty value removes the key. The sections and the manufacturer widths move from terminalstripmodel.cpp to the new header-only terminalcatalog.h, shared by the terminal strip editor and the element editor.
392 lines
12 KiB
XML
392 lines
12 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>ElementPropertiesEditorWidget</class>
|
|
<widget class="QDialog" name="ElementPropertiesEditorWidget">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>527</width>
|
|
<height>492</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Element Property</string>
|
|
</property>
|
|
<property name="sizeGripEnabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<widget class="QTabWidget" name="tabWidget">
|
|
<property name="currentIndex">
|
|
<number>0</number>
|
|
</property>
|
|
<widget class="QWidget" name="Type">
|
|
<attribute name="title">
|
|
<string>Type</string>
|
|
</attribute>
|
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<item>
|
|
<widget class="QLabel" name="label">
|
|
<property name="text">
|
|
<string>Base type:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QComboBox" name="m_base_type_cb"/>
|
|
</item>
|
|
<item>
|
|
<spacer name="verticalSpacer_2">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="m_exclude_from_bom_cb">
|
|
<property name="styleSheet">
|
|
<string>margin: 5px; font-weight: bold;</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Exclude from the bill of materials</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QGroupBox" name="m_slave_gb">
|
|
<property name="title">
|
|
<string>Slave element</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
|
<item>
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
<item row="3" column="1">
|
|
<widget class="QSpinBox" name="m_number_ctc">
|
|
<property name="minimum">
|
|
<number>1</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0">
|
|
<widget class="QLabel" name="label_4">
|
|
<property name="text">
|
|
<string>Switch number represented</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="label_3">
|
|
<property name="text">
|
|
<string>Type of switch</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="label_2">
|
|
<property name="text">
|
|
<string>switch state</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QComboBox" name="m_state_cb"/>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<widget class="QComboBox" name="m_type_cb"/>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QGroupBox" name="m_master_gb">
|
|
<property name="title">
|
|
<string>Master element</string>
|
|
</property>
|
|
<layout class="QGridLayout" name="gridLayout_3">
|
|
<item row="0" column="0" colspan="2">
|
|
<layout class="QHBoxLayout" name="type_concret_layout">
|
|
<item>
|
|
<widget class="QLabel" name="label_5">
|
|
<property name="text">
|
|
<string>concrete type</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="type_concret_spacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>40</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<widget class="QComboBox" name="m_master_type_cb"/>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QCheckBox" name="max_slaves_checkbox">
|
|
<property name="text">
|
|
<string>Set the maximum number of slaves</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QSpinBox" name="max_slaves_spinbox">
|
|
<property name="enabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="minimum">
|
|
<number>1</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QCheckBox" name="m_slave_groups_checkbox">
|
|
<property name="text">
|
|
<string>Define the slave elements</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0" colspan="2">
|
|
<widget class="QTableWidget" name="m_slave_groups_table">
|
|
<property name="enabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>150</height>
|
|
</size>
|
|
</property>
|
|
<property name="selectionMode">
|
|
<enum>QAbstractItemView::SingleSelection</enum>
|
|
</property>
|
|
<property name="selectionBehavior">
|
|
<enum>QAbstractItemView::SelectRows</enum>
|
|
</property>
|
|
<property name="columnCount">
|
|
<number>4</number>
|
|
</property>
|
|
<column>
|
|
<property name="text">
|
|
<string>Type</string>
|
|
</property>
|
|
</column>
|
|
<column>
|
|
<property name="text">
|
|
<string>Contact</string>
|
|
</property>
|
|
</column>
|
|
<column>
|
|
<property name="text">
|
|
<string>No. of contacts</string>
|
|
</property>
|
|
</column>
|
|
<column>
|
|
<property name="text">
|
|
<string>No. of terminals</string>
|
|
</property>
|
|
</column>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QGroupBox" name="m_terminal_gb">
|
|
<property name="title">
|
|
<string>Terminal block element</string>
|
|
</property>
|
|
<layout class="QGridLayout" name="gridLayout_2">
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="label_6">
|
|
<property name="text">
|
|
<string>Type</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="label_7">
|
|
<property name="text">
|
|
<string>Function</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="QComboBox" name="m_terminal_type_cb"/>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QComboBox" name="m_terminal_func_cb"/>
|
|
</item>
|
|
<item row="2" column="0" colspan="2">
|
|
<widget class="QCheckBox" name="m_auto_num_locked_cb">
|
|
<property name="styleSheet">
|
|
<string>margin: 5px; font-weight: bold;</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Lock automatic numbering</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0" colspan="2">
|
|
<widget class="QCheckBox" name="m_potential_isolating_cb">
|
|
<property name="styleSheet">
|
|
<string>margin: 5px; font-weight: bold;</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Function separation</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="0">
|
|
<widget class="QLabel" name="label_terminal_section">
|
|
<property name="text">
|
|
<string>Section (mm²)</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="1">
|
|
<widget class="QComboBox" name="m_terminal_section_cb">
|
|
<property name="editable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="insertPolicy">
|
|
<enum>QComboBox::NoInsert</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="0">
|
|
<widget class="QLabel" name="label_terminal_width">
|
|
<property name="text">
|
|
<string>Width / manufacturer</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="1">
|
|
<widget class="QComboBox" name="m_terminal_width_cb">
|
|
<property name="editable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="insertPolicy">
|
|
<enum>QComboBox::NoInsert</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="6" column="0">
|
|
<widget class="QLabel" name="label_terminal_color">
|
|
<property name="text">
|
|
<string>Color</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="6" column="1">
|
|
<widget class="QComboBox" name="m_terminal_color_cb">
|
|
<property name="editable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="insertPolicy">
|
|
<enum>QComboBox::NoInsert</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QWidget" name="Informations">
|
|
<attribute name="title">
|
|
<string>Informations</string>
|
|
</attribute>
|
|
<layout class="QVBoxLayout" name="verticalLayout_4">
|
|
<item>
|
|
<widget class="QTreeWidget" name="m_tree">
|
|
<attribute name="headerDefaultSectionSize">
|
|
<number>150</number>
|
|
</attribute>
|
|
<column>
|
|
<property name="text">
|
|
<string>Name</string>
|
|
</property>
|
|
</column>
|
|
<column>
|
|
<property name="text">
|
|
<string>Values</string>
|
|
</property>
|
|
</column>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QDialogButtonBox" name="m_buttonBox">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="standardButtons">
|
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<resources/>
|
|
<connections>
|
|
<connection>
|
|
<sender>m_buttonBox</sender>
|
|
<signal>accepted()</signal>
|
|
<receiver>ElementPropertiesEditorWidget</receiver>
|
|
<slot>accept()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>248</x>
|
|
<y>254</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>157</x>
|
|
<y>274</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>m_buttonBox</sender>
|
|
<signal>rejected()</signal>
|
|
<receiver>ElementPropertiesEditorWidget</receiver>
|
|
<slot>reject()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>316</x>
|
|
<y>260</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>286</x>
|
|
<y>274</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
</ui>
|