Redesign main window with text boxes to copy host name or ip

This commit is contained in:
2023-01-03 11:08:32 +01:00
parent 0a7eb43d94
commit 375df9eaba
3 changed files with 103 additions and 49 deletions

View File

@@ -7,71 +7,105 @@
<rect>
<x>0</x>
<y>0</y>
<width>318</width>
<height>273</height>
<width>353</width>
<height>299</height>
</rect>
</property>
<property name="windowTitle">
<string>RevPi Python PLC Commander</string>
<string notr="true">RevPi Commander</string>
</property>
<property name="windowIcon">
<iconset resource="ressources.qrc">
<normaloff>:/main/ico/revpipycontrol.ico</normaloff>:/main/ico/revpipycontrol.ico</iconset>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QGridLayout" name="gl">
<item row="0" column="0">
<widget class="QLineEdit" name="txt_connection">
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="hzl_connection">
<item>
<widget class="QLineEdit" name="txt_host">
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="text">
<string notr="true"/>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="txt_connection">
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="text">
<string notr="true"/>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="0">
<item>
<widget class="QPushButton" name="btn_plc_start">
<property name="text">
<string>PLC &amp;start</string>
</property>
</widget>
</item>
<item row="2" column="0">
<item>
<widget class="QPushButton" name="btn_plc_stop">
<property name="text">
<string>PLC s&amp;top</string>
</property>
</widget>
</item>
<item row="3" column="0">
<item>
<widget class="QPushButton" name="btn_plc_restart">
<property name="text">
<string>PLC restart</string>
</property>
</widget>
</item>
<item row="4" column="0">
<item>
<widget class="QPushButton" name="btn_plc_logs">
<property name="text">
<string>PLC &amp;logs</string>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLineEdit" name="txt_status">
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<item>
<layout class="QHBoxLayout" name="hzl_status">
<item>
<widget class="QLabel" name="lbl_status">
<property name="text">
<string>Status:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="txt_status">
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="text">
<string notr="true"/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item row="6" column="0">
<item>
<widget class="QPushButton" name="btn_plc_debug">
<property name="minimumSize">
<size>
@@ -94,8 +128,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>318</width>
<height>22</height>
<width>353</width>
<height>24</height>
</rect>
</property>
<widget class="QMenu" name="men_file">