Files
qelectrotech-source-mirror/sources/TerminalStrip/ui/terminalstripeditorwindow.ui
T
Kellermorph 3e2ad8c4bd Terminal strip: create the strips from the free terminals' labels
Add an automatic import which groups the free terminals of a project
by the part of their label before the first colon ("X1:2" goes to the
strip "X1"), creates the strips missing and sorts the terminals in
natural order, as one undoable step.

The import runs when the terminal block manager opens on a project and
can be run again from a new toolbar action. It only adds : the strips
already known keep their terminals and their order, and terminals
without label are left free.
2026-10-19 10:47:17 +02:00

118 lines
3.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>TerminalStripEditorWindow</class>
<widget class="QMainWindow" name="TerminalStripEditorWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1364</width>
<height>868</height>
</rect>
</property>
<property name="windowTitle">
<string>Terminal manager</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QStackedWidget" name="m_stacked_widget"/>
</item>
<item>
<widget class="QDialogButtonBox" name="m_button_box">
<property name="standardButtons">
<set>QDialogButtonBox::Apply|QDialogButtonBox::Reset</set>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1364</width>
<height>23</height>
</rect>
</property>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<widget class="QToolBar" name="m_tool_bar">
<property name="windowTitle">
<string>toolBar</string>
</property>
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
<addaction name="m_add_terminal_strip"/>
<addaction name="m_remove_terminal"/>
<addaction name="m_reload"/>
<addaction name="m_import_free_terminals"/>
<addaction name="m_regroup_terminals"/>
</widget>
<action name="m_add_terminal_strip">
<property name="icon">
<iconset theme="list-add"/>
</property>
<property name="text">
<string>Add a terminal block</string>
</property>
<property name="toolTip">
<string>Add a terminal strip to the project</string>
</property>
</action>
<action name="m_remove_terminal">
<property name="icon">
<iconset theme="list-remove"/>
</property>
<property name="text">
<string>Remove terminal block</string>
</property>
<property name="toolTip">
<string>Delete terminal strip from project</string>
</property>
</action>
<action name="m_reload">
<property name="icon">
<iconset theme="view-refresh"/>
</property>
<property name="text">
<string>Reload</string>
</property>
<property name="toolTip">
<string>Reload the terminals</string>
</property>
</action>
<action name="m_import_free_terminals">
<property name="icon">
<iconset theme="list-add"/>
</property>
<property name="text">
<string>Assign free terminals</string>
</property>
<property name="toolTip">
<string>Add the free terminals to the terminal strips named after their labels ("X1:2" goes to the strip "X1"), creating the strips when needed. Terminals already assigned to a strip are never touched. Asks for confirmation.</string>
</property>
</action>
<action name="m_regroup_terminals">
<property name="icon">
<iconset theme="start"/>
</property>
<property name="text">
<string>Re-group all terminals</string>
</property>
<property name="toolTip">
<string>Assign the free terminals and also move every terminal whose label prefix or plant and location no longer match its strip. Existing strips are never re-sorted. Asks for confirmation.</string>
</property>
</action>
</widget>
<resources>
<include location="../../../qelectrotech.qrc"/>
</resources>
<connections/>
</ui>