mirror of
https://github.com/naruxde/revpicommander.git
synced 2025-11-08 16:43:53 +01:00
Add icons to commander main window for start, stop and so on
This commit is contained in:
5
src/revpicommander/ui/__init__.py
Normal file
5
src/revpicommander/ui/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""Package of compiled Qt ui files."""
|
||||
__author__ = "Sven Sager"
|
||||
__copyright__ = "Copyright (C) 2023 Sven Sager"
|
||||
__license__ = "GPLv3"
|
||||
File diff suppressed because it is too large
Load Diff
@@ -39,15 +39,27 @@ class Ui_win_revpicommander(object):
|
||||
self.hzl_connection.addWidget(self.txt_connection)
|
||||
self.gl.addLayout(self.hzl_connection)
|
||||
self.btn_plc_start = QtWidgets.QPushButton(self.centralwidget)
|
||||
icon1 = QtGui.QIcon()
|
||||
icon1.addPixmap(QtGui.QPixmap(":/action/ico/system-run.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.btn_plc_start.setIcon(icon1)
|
||||
self.btn_plc_start.setObjectName("btn_plc_start")
|
||||
self.gl.addWidget(self.btn_plc_start)
|
||||
self.btn_plc_stop = QtWidgets.QPushButton(self.centralwidget)
|
||||
icon2 = QtGui.QIcon()
|
||||
icon2.addPixmap(QtGui.QPixmap(":/action/ico/process-stop.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.btn_plc_stop.setIcon(icon2)
|
||||
self.btn_plc_stop.setObjectName("btn_plc_stop")
|
||||
self.gl.addWidget(self.btn_plc_stop)
|
||||
self.btn_plc_restart = QtWidgets.QPushButton(self.centralwidget)
|
||||
icon3 = QtGui.QIcon()
|
||||
icon3.addPixmap(QtGui.QPixmap(":/action/ico/view-refresh.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.btn_plc_restart.setIcon(icon3)
|
||||
self.btn_plc_restart.setObjectName("btn_plc_restart")
|
||||
self.gl.addWidget(self.btn_plc_restart)
|
||||
self.btn_plc_logs = QtWidgets.QPushButton(self.centralwidget)
|
||||
icon4 = QtGui.QIcon()
|
||||
icon4.addPixmap(QtGui.QPixmap(":/action/ico/applications-utilities.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.btn_plc_logs.setIcon(icon4)
|
||||
self.btn_plc_logs.setObjectName("btn_plc_logs")
|
||||
self.gl.addWidget(self.btn_plc_logs)
|
||||
self.hzl_status = QtWidgets.QHBoxLayout()
|
||||
@@ -65,6 +77,9 @@ class Ui_win_revpicommander(object):
|
||||
self.gl.addLayout(self.hzl_status)
|
||||
self.btn_plc_debug = QtWidgets.QPushButton(self.centralwidget)
|
||||
self.btn_plc_debug.setMinimumSize(QtCore.QSize(300, 0))
|
||||
icon5 = QtGui.QIcon()
|
||||
icon5.addPixmap(QtGui.QPixmap(":/action/ico/edit-find.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.btn_plc_debug.setIcon(icon5)
|
||||
self.btn_plc_debug.setCheckable(True)
|
||||
self.btn_plc_debug.setObjectName("btn_plc_debug")
|
||||
self.gl.addWidget(self.btn_plc_debug)
|
||||
|
||||
BIN
ui_dev/ico/applications-utilities.ico
Executable file
BIN
ui_dev/ico/applications-utilities.ico
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
BIN
ui_dev/ico/edit-find.ico
Executable file
BIN
ui_dev/ico/edit-find.ico
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
BIN
ui_dev/ico/process-stop.ico
Executable file
BIN
ui_dev/ico/process-stop.ico
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
BIN
ui_dev/ico/system-run.ico
Executable file
BIN
ui_dev/ico/system-run.ico
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
BIN
ui_dev/ico/system-search.ico
Executable file
BIN
ui_dev/ico/system-search.ico
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
BIN
ui_dev/ico/view-refresh.ico
Executable file
BIN
ui_dev/ico/view-refresh.ico
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
@@ -9,6 +9,12 @@
|
||||
<file>ico/file-python.ico</file>
|
||||
</qresource>
|
||||
<qresource prefix="action">
|
||||
<file>ico/applications-utilities.ico</file>
|
||||
<file>ico/edit-find.ico</file>
|
||||
<file>ico/process-stop.ico</file>
|
||||
<file>ico/system-run.ico</file>
|
||||
<file>ico/system-search.ico</file>
|
||||
<file>ico/view-refresh.ico</file>
|
||||
<file>ico/arrow-left.ico</file>
|
||||
<file>ico/arrow-right.ico</file>
|
||||
<file>ico/folder-open.ico</file>
|
||||
|
||||
@@ -55,6 +55,10 @@
|
||||
<property name="text">
|
||||
<string>PLC &start</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="ressources.qrc">
|
||||
<normaloff>:/action/ico/system-run.ico</normaloff>:/action/ico/system-run.ico</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
@@ -62,6 +66,10 @@
|
||||
<property name="text">
|
||||
<string>PLC s&top</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="ressources.qrc">
|
||||
<normaloff>:/action/ico/process-stop.ico</normaloff>:/action/ico/process-stop.ico</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
@@ -69,6 +77,10 @@
|
||||
<property name="text">
|
||||
<string>PLC restart</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="ressources.qrc">
|
||||
<normaloff>:/action/ico/view-refresh.ico</normaloff>:/action/ico/view-refresh.ico</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
@@ -76,6 +88,10 @@
|
||||
<property name="text">
|
||||
<string>PLC &logs</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="ressources.qrc">
|
||||
<normaloff>:/action/ico/applications-utilities.ico</normaloff>:/action/ico/applications-utilities.ico</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
@@ -116,6 +132,10 @@
|
||||
<property name="text">
|
||||
<string>PLC watch &mode</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="ressources.qrc">
|
||||
<normaloff>:/action/ico/edit-find.ico</normaloff>:/action/ico/edit-find.ico</iconset>
|
||||
</property>
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user