PowerMaster/ui/dpConfigurationDialog.ui

931 lines
22 KiB
Plaintext
Raw Normal View History

2025-01-14 18:39:52 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>dpConfigurationDialog</class>
<widget class="QDialog" name="dpConfigurationDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>569</width>
<height>505</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QWidget" name="contentWidget" native="true">
<property name="styleSheet">
<string notr="true">QWidget #contentWidget
{
border:1px solid rgb(76,88,105);
background-color:rgba(36,43,50,250);
}
QLabel
{
font: 12pt &quot;黑体&quot;;
color: rgb(250, 250, 250);
2025-01-14 18:39:52 +08:00
}
QRadioButton
{
spacing:8px;
font: 12pt &quot;黑体&quot;;
color: rgb(250, 250, 250);
}
QRadioButton::indicator
{
width:36px;
height:20px;
}
QRadioButton::indicator:unchecked
{
image: url(:/images/ico_switch_off.png);
}
QRadioButton::indicator:checked
{
image: url(:/images/ico_switch_on.png);
}
2025-01-14 18:39:52 +08:00
QLineEdit
{
font: 12pt &quot;黑体&quot;;
color: rgb(250, 250, 250);
2025-01-14 18:39:52 +08:00
border:1px solid rgb(200,200,200);
background:transparent;
}
QLineEdit:focus
{
border:1px solid rgb(67,160,249);
}
2025-07-14 15:02:29 +08:00
QComboBox
{
font: 11pt &quot;黑体&quot;;
color: rgb(250, 250, 250);
background-color: rgb(54, 62, 74);
border: 0px;
border-radius: 0px;
}
QComboBox:hover
{
background-color: rgb(72, 83, 99);
}
QComboBox::drop-down
{
border:0px;
}
QComboBox::down-arrow
{
margin-right:10px;
width:14px;
border-image: url(:/images/down-arrow.png);
}
QComboBox QAbstractItemView
{
outline: 0px; /*去除选中虚线框 */
border:0px;
background-color:rgba(25,25,25,220);
2025-07-14 15:02:29 +08:00
}
QComboBox QAbstractItemView::item:hover
{
background-color: rgb(43, 102, 158);
}
QComboBox QAbstractItemView::item:selected
{
color: rgb(250, 250, 250);
background-color: rgba(43, 102, 158, 80);
2025-07-14 15:02:29 +08:00
}
2025-01-14 18:39:52 +08:00
QTreeView
{
padding:6px;
2025-01-14 18:39:52 +08:00
font: 12pt &quot;黑体&quot;;
color: rgb(250, 250, 250);
border:0px;
border-top:1px solid rgb(200,200,200);
border-bottom:1px solid rgb(200,200,200);
background-color:rgba(25,25,25,200);
}
QTreeView::branch
{
image:none;
}
QTreeView::item
{
height:25px;
}
2025-01-22 15:40:50 +08:00
QTreeView::item:disabled {
color: rgb(50, 50, 50);
}
2025-01-14 18:39:52 +08:00
QTreeView::item:selected {
color: rgb(250, 250, 250);
2025-01-22 15:40:50 +08:00
background-color: rgba(67,160,249, 15);
2025-01-14 18:39:52 +08:00
border:0px;
}
QTreeView::item:hover {
2025-01-22 15:40:50 +08:00
background-color: rgba(67,160,249, 15);
2025-01-14 18:39:52 +08:00
border:0px;
}
QTreeView::branch:has-children:!has-siblings:closed,
QTreeView::branch:closed:has-children:has-siblings {
2025-07-07 14:37:26 +08:00
image: url(:/images/branch_closed.png);
2025-01-14 18:39:52 +08:00
}
QTreeView::branch:open:has-children:!has-siblings,
QTreeView::branch:open:has-children:has-siblings {
2025-07-07 14:37:26 +08:00
image: url(:/images/branch_open.png);
2025-01-14 18:39:52 +08:00
}
QTableView
{
padding:6px;
2025-01-14 18:39:52 +08:00
font: 12pt &quot;黑体&quot;;
color: rgb(250, 250, 250);
border:0px;
border-top:1px solid rgb(200,200,200);
border-bottom:1px solid rgb(200,200,200);
background-color:rgba(25,25,25,200);
}
QTableView::item
{
height:25px;
}
QTableView::item:selected {
color: rgb(250, 250, 250);
background-color: rgba(67,160,249, 15);
2025-01-14 18:39:52 +08:00
border:0px;
}
QTableView::item:hover {
background-color: rgba(67,160,249, 15);
2025-01-14 18:39:52 +08:00
border:0px;
}
QListView
{
padding:6px;
2025-01-14 18:39:52 +08:00
font: 12pt &quot;黑体&quot;;
color: rgb(250, 250, 250);
border:0px;
border-top:1px solid rgb(200,200,200);
border-bottom:1px solid rgb(200,200,200);
background-color:rgba(25,25,25,200);
}
QListView::item
{
height:25px;
}
QListView::item:selected {
color: rgb(250, 250, 250);
background-color: transparent;
border:0px;
}
QListView::item:hover {
background-color: rgba(67,160,249, 30);
border:0px;
2025-07-14 15:02:29 +08:00
}</string>
2025-01-14 18:39:52 +08:00
</property>
<widget class="QLabel" name="labeWindowlTitle">
<property name="geometry">
<rect>
<x>25</x>
<y>25</y>
<width>521</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(250, 250, 250);
font: 700 13pt &quot;微软雅黑&quot;;
2025-07-07 14:37:26 +08:00
border:0.5px solid rgb(250,250,250);
2025-01-14 18:39:52 +08:00
border-left:0px;
border-top:0px;
border-right:0px;</string>
</property>
<property name="text">
<string>配置面板</string>
</property>
</widget>
<widget class="QWidget" name="tabBar" native="true">
<property name="geometry">
<rect>
<x>25</x>
<y>65</y>
<width>521</width>
<height>46</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">QWidget #tabBar
{
background-color: rgb(54, 62, 74);
border-bottom:1px solid rgb(200,200,200);
}</string>
</property>
<widget class="QPushButton" name="tabDataSource">
<property name="geometry">
<rect>
<x>110</x>
<y>16</y>
<width>75</width>
<height>30</height>
</rect>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
color: rgb(250, 250, 250);
font: 700 12pt &quot;黑体&quot;;
border:0px;
background-color:transparent;
}
QPushButton:hover
{
}
QPushButton:pressed
{
}</string>
</property>
<property name="text">
<string>数据源</string>
</property>
</widget>
<widget class="QPushButton" name="tabDisplaySetting">
<property name="geometry">
<rect>
<x>185</x>
<y>16</y>
<width>100</width>
<height>30</height>
</rect>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
color: rgb(250, 250, 250);
font: 700 12pt &quot;黑体&quot;;
border:0px;
background-color:transparent;
}
QPushButton:hover
{
}
QPushButton:pressed
{
}</string>
</property>
<property name="text">
2025-07-14 15:02:29 +08:00
<string>其它配置</string>
2025-01-14 18:39:52 +08:00
</property>
</widget>
<widget class="QPushButton" name="tabDataType">
<property name="geometry">
<rect>
<x>10</x>
<y>16</y>
<width>100</width>
<height>30</height>
</rect>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
color: rgb(250, 250, 250);
font: 700 12pt &quot;黑体&quot;;
border:1px solid rgb(200,200,200);
border-bottom:0px;
background-color:rgba(36,43,50, 250);
}
QPushButton:hover
{
}
QPushButton:pressed
{
}</string>
</property>
<property name="text">
<string>数据类型</string>
</property>
</widget>
</widget>
<widget class="QStackedWidget" name="stackedWidget">
<property name="geometry">
<rect>
<x>25</x>
<y>110</y>
2025-01-14 18:39:52 +08:00
<width>521</width>
<height>331</height>
</rect>
</property>
<property name="currentIndex">
2025-07-14 15:02:29 +08:00
<number>2</number>
2025-01-14 18:39:52 +08:00
</property>
<widget class="QWidget" name="pageDataType">
<property name="styleSheet">
<string notr="true">QWidget #pageDataType
{
background-color:transparent;
}</string>
</property>
<widget class="QLineEdit" name="dataTypeSearch">
<property name="geometry">
<rect>
<x>0</x>
<y>10</y>
<width>251</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
</widget>
<widget class="QTableView" name="typeSelectedList">
2025-01-14 18:39:52 +08:00
<property name="geometry">
<rect>
<x>270</x>
2025-01-14 18:39:52 +08:00
<y>55</y>
<width>251</width>
<height>261</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::FocusPolicy::NoFocus</enum>
</property>
<property name="showGrid">
<bool>false</bool>
</property>
<attribute name="horizontalHeaderVisible">
<bool>false</bool>
</attribute>
<attribute name="horizontalHeaderHighlightSections">
<bool>false</bool>
</attribute>
<attribute name="verticalHeaderVisible">
<bool>false</bool>
</attribute>
<attribute name="verticalHeaderDefaultSectionSize">
<number>25</number>
</attribute>
<attribute name="verticalHeaderHighlightSections">
<bool>false</bool>
</attribute>
2025-01-14 18:39:52 +08:00
</widget>
<widget class="QListView" name="typeSourceList">
2025-01-14 18:39:52 +08:00
<property name="geometry">
<rect>
<x>0</x>
2025-01-14 18:39:52 +08:00
<y>55</y>
<width>251</width>
<height>261</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::FocusPolicy::NoFocus</enum>
</property>
</widget>
<widget class="QPushButton" name="btnReomve_type">
<property name="geometry">
<rect>
<x>495</x>
<y>30</y>
<width>24</width>
<height>24</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
border-image: url(:/images/btn_remove_hover.png);
}
QPushButton:hover
{
border-image: url(:/images/btn_remove_default.png);
}
QPushButton:pressed
{
border-image: url(:/images/btn_remove_hover.png);
}</string>
</property>
<property name="text">
<string/>
</property>
2025-01-14 18:39:52 +08:00
</widget>
</widget>
<widget class="QWidget" name="pageDataSource">
<property name="styleSheet">
<string notr="true">QWidget #pageDataSource
{
background-color:transparent;
}</string>
</property>
<widget class="QLineEdit" name="dataSourceSearch">
<property name="geometry">
<rect>
<x>0</x>
<y>10</y>
<width>251</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
</widget>
<widget class="QTreeView" name="dataSourceList">
<property name="geometry">
<rect>
<x>0</x>
<y>55</y>
<width>251</width>
<height>261</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::FocusPolicy::NoFocus</enum>
</property>
2025-01-22 15:40:50 +08:00
<attribute name="headerVisible">
<bool>false</bool>
</attribute>
2025-01-14 18:39:52 +08:00
</widget>
<widget class="QTableView" name="dataSelectedList">
<property name="geometry">
<rect>
<x>270</x>
<y>55</y>
<width>251</width>
<height>261</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::FocusPolicy::NoFocus</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectionBehavior::SelectRows</enum>
</property>
<property name="showGrid">
<bool>false</bool>
</property>
2025-01-22 15:40:50 +08:00
<attribute name="horizontalHeaderVisible">
<bool>false</bool>
</attribute>
<attribute name="horizontalHeaderDefaultSectionSize">
2025-01-22 15:40:50 +08:00
<number>100</number>
</attribute>
<attribute name="horizontalHeaderHighlightSections">
<bool>false</bool>
</attribute>
<attribute name="verticalHeaderVisible">
<bool>false</bool>
</attribute>
<attribute name="verticalHeaderDefaultSectionSize">
<number>25</number>
</attribute>
<attribute name="verticalHeaderHighlightSections">
<bool>false</bool>
</attribute>
<attribute name="verticalHeaderShowSortIndicator" stdset="0">
<bool>false</bool>
</attribute>
</widget>
<widget class="QPushButton" name="btnReomve_source">
<property name="geometry">
<rect>
<x>495</x>
<y>30</y>
<width>24</width>
<height>24</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
border-image: url(:/images/btn_remove_hover.png);
}
QPushButton:hover
{
border-image: url(:/images/btn_remove_default.png);
}
QPushButton:pressed
{
border-image: url(:/images/btn_remove_hover.png);
}</string>
</property>
<property name="text">
<string/>
</property>
2025-01-14 18:39:52 +08:00
</widget>
</widget>
<widget class="QWidget" name="pageSettings">
2025-01-14 18:39:52 +08:00
<property name="styleSheet">
<string notr="true">QWidget #pageSettings
2025-01-14 18:39:52 +08:00
{
background-color:transparent;
}
QLineEdit
{
font: 11pt &quot;黑体&quot;;
background-color: rgb(24, 32, 38);
}
</string>
2025-01-14 18:39:52 +08:00
</property>
<widget class="QLabel" name="setting_Server">
<property name="geometry">
<rect>
<x>0</x>
<y>10</y>
<width>101</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>数据服务</string>
</property>
</widget>
<widget class="QLabel" name="label_serviceIP">
<property name="geometry">
<rect>
<x>31</x>
<y>40</y>
<width>71</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>服务地址:</string>
</property>
</widget>
<widget class="QLineEdit" name="serviceIP">
<property name="geometry">
<rect>
<x>110</x>
<y>40</y>
<width>201</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_serviicePort">
<property name="geometry">
<rect>
<x>30</x>
<y>70</y>
<width>81</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>服务端口:</string>
</property>
</widget>
<widget class="QLineEdit" name="servicePort">
<property name="geometry">
<rect>
<x>110</x>
<y>70</y>
<width>61</width>
<height>21</height>
</rect>
</property>
</widget>
2025-07-14 15:02:29 +08:00
<widget class="QStackedWidget" name="specialSettings">
<property name="geometry">
<rect>
<x>0</x>
2025-09-01 19:57:02 +08:00
<y>155</y>
2025-07-14 15:02:29 +08:00
<width>521</width>
2025-09-01 19:57:02 +08:00
<height>121</height>
2025-07-14 15:02:29 +08:00
</rect>
</property>
<property name="currentIndex">
<number>1</number>
2025-07-14 15:02:29 +08:00
</property>
2025-09-01 19:57:02 +08:00
<widget class="QWidget" name="axisCfg">
2025-07-14 15:02:29 +08:00
<property name="styleSheet">
2025-09-01 19:57:02 +08:00
<string notr="true">QWidget #axisCfg
2025-07-14 15:02:29 +08:00
{
background-color:transparent;
}</string>
</property>
<widget class="QLabel" name="label_axisObject">
2025-07-14 15:02:29 +08:00
<property name="geometry">
<rect>
<x>0</x>
<y>35</y>
<width>71</width>
2025-07-14 15:02:29 +08:00
<height>21</height>
</rect>
</property>
<property name="text">
<string>Y轴配置</string>
2025-07-14 15:02:29 +08:00
</property>
</widget>
<widget class="QComboBox" name="axisObject">
2025-07-14 15:02:29 +08:00
<property name="geometry">
<rect>
<x>70</x>
<y>35</y>
2025-07-14 15:02:29 +08:00
<width>91</width>
<height>22</height>
</rect>
</property>
<item>
<property name="text">
<string>电压</string>
</property>
</item>
<item>
<property name="text">
<string>电流</string>
</property>
</item>
<item>
<property name="text">
<string>功率</string>
</property>
</item>
</widget>
<widget class="QLabel" name="label_axisName">
<property name="geometry">
<rect>
<x>30</x>
<y>70</y>
2025-07-14 15:02:29 +08:00
<width>41</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>名称:</string>
</property>
</widget>
<widget class="QLineEdit" name="axisName">
<property name="geometry">
<rect>
<x>80</x>
<y>70</y>
2025-07-14 15:02:29 +08:00
<width>71</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_axisUnit">
<property name="geometry">
<rect>
<x>190</x>
<y>70</y>
2025-07-14 15:02:29 +08:00
<width>41</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>单位:</string>
</property>
</widget>
<widget class="QLineEdit" name="axisUnit">
<property name="geometry">
<rect>
<x>240</x>
<y>70</y>
<width>71</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QComboBox" name="axisArrangement">
<property name="geometry">
<rect>
<x>70</x>
<y>0</y>
<width>91</width>
<height>22</height>
</rect>
</property>
<item>
<property name="text">
<string>左右交替</string>
</property>
</item>
<item>
<property name="text">
<string>靠右排列</string>
</property>
</item>
</widget>
<widget class="QLabel" name="label_axisArrangement">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
2025-07-14 15:02:29 +08:00
<width>71</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>Y轴排列</string>
</property>
2025-07-14 15:02:29 +08:00
</widget>
</widget>
2025-09-01 19:57:02 +08:00
<widget class="QWidget" name="barsCfg">
<property name="styleSheet">
<string notr="true">QWidget #barsCfg
{
background-color:transparent;
}</string>
</property>
<widget class="QComboBox" name="barOrientation">
<property name="geometry">
<rect>
<x>80</x>
<y>0</y>
2025-09-01 19:57:02 +08:00
<width>91</width>
<height>22</height>
</rect>
</property>
<item>
<property name="text">
<string>垂直方向</string>
2025-09-01 19:57:02 +08:00
</property>
</item>
<item>
<property name="text">
<string>水平方向</string>
2025-09-01 19:57:02 +08:00
</property>
</item>
</widget>
<widget class="QLabel" name="label_barOrientation">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
2025-09-01 19:57:02 +08:00
<width>71</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>图形朝向:</string>
</property>
</widget>
<widget class="QRadioButton" name="radioBtn_groupByType">
2025-09-01 19:57:02 +08:00
<property name="geometry">
<rect>
<x>0</x>
<y>30</y>
2025-09-01 19:57:02 +08:00
<width>161</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string>按类型分组</string>
</property>
</widget>
</widget>
2025-07-14 15:02:29 +08:00
</widget>
2025-08-25 15:10:02 +08:00
<widget class="QRadioButton" name="radioBtn_showLegend">
<property name="geometry">
<rect>
<x>0</x>
2025-09-01 19:57:02 +08:00
<y>110</y>
<width>161</width>
2025-08-25 15:10:02 +08:00
<height>31</height>
</rect>
</property>
<property name="text">
<string>显示图例</string>
</property>
<property name="autoExclusive">
<bool>false</bool>
</property>
2025-08-25 15:10:02 +08:00
</widget>
2025-01-14 18:39:52 +08:00
</widget>
</widget>
<widget class="QPushButton" name="btnCancle">
<property name="geometry">
<rect>
<x>470</x>
<y>460</y>
<width>71</width>
<height>26</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
color: rgb(250, 250, 250);
font: 700 12pt &quot;微软雅黑&quot;;
border:1px solid rgb(200,200,200);
border-radius:2px;
background-color:rgb(24,32,38);
}
QPushButton:hover
{
background-color:rgb(8,11,13);
}
QPushButton:pressed
{
background-color:rgb(24,32,38);
}</string>
</property>
<property name="text">
<string>取消</string>
</property>
<property name="flat">
<bool>false</bool>
</property>
</widget>
<widget class="QPushButton" name="btnConfirm">
2025-01-22 15:40:50 +08:00
<property name="enabled">
<bool>true</bool>
</property>
2025-01-14 18:39:52 +08:00
<property name="geometry">
<rect>
2025-01-22 15:40:50 +08:00
<x>385</x>
2025-01-14 18:39:52 +08:00
<y>460</y>
<width>71</width>
<height>26</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
color: rgb(250, 250, 250);
font: 700 12pt &quot;微软雅黑&quot;;
border:0px;
border-radius:2px;
background-color:rgb(67,160,249);
}
QPushButton:hover
{
background-color:rgb(55,131,204);
}
QPushButton:pressed
{
background-color:rgb(67,160,249);
2025-01-22 15:40:50 +08:00
}
QPushButton:disabled
{
background-color: rgb(60, 60, 60);
2025-01-14 18:39:52 +08:00
}</string>
</property>
<property name="text">
<string>确认</string>
</property>
<property name="flat">
<bool>false</bool>
</property>
</widget>
2025-01-22 15:40:50 +08:00
<widget class="QLabel" name="errorTip">
<property name="geometry">
<rect>
<x>350</x>
<y>461</y>
<width>24</width>
<height>24</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">QLabel
{
border-image: url(:/images/icon_error.png);
}
</string>
</property>
<property name="text">
<string/>
</property>
</widget>
2025-01-14 18:39:52 +08:00
</widget>
</item>
</layout>
</widget>
<resources>
<include location="../resource/PowerMaster.qrc"/>
</resources>
2025-01-14 18:39:52 +08:00
<connections/>
</ui>