<?xml version="1.0" encoding="UTF-8"?>
|
<ui version="4.0">
|
<class>DialogConfig</class>
|
<widget class="QDialog" name="DialogConfig">
|
<property name="geometry">
|
<rect>
|
<x>0</x>
|
<y>0</y>
|
<width>939</width>
|
<height>590</height>
|
</rect>
|
</property>
|
<property name="windowTitle">
|
<string>系统设置</string>
|
</property>
|
<property name="styleSheet">
|
<string notr="true">*{font:18px}</string>
|
</property>
|
<layout class="QVBoxLayout" name="verticalLayout_4">
|
<item>
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
<item>
|
<widget class="QLabel" name="label_9">
|
<property name="styleSheet">
|
<string notr="true">font:24px</string>
|
</property>
|
<property name="text">
|
<string>系统参数设置</string>
|
</property>
|
<property name="alignment">
|
<set>Qt::AlignCenter</set>
|
</property>
|
</widget>
|
</item>
|
</layout>
|
</item>
|
<item>
|
<layout class="QHBoxLayout" name="horizontalLayout" stretch="1,0,1">
|
<property name="rightMargin">
|
<number>10</number>
|
</property>
|
<item>
|
<layout class="QVBoxLayout" name="verticalLayout">
|
<property name="bottomMargin">
|
<number>10</number>
|
</property>
|
<item>
|
<widget class="QLabel" name="label">
|
<property name="text">
|
<string>连数据库接设置</string>
|
</property>
|
<property name="alignment">
|
<set>Qt::AlignCenter</set>
|
</property>
|
</widget>
|
</item>
|
<item>
|
<layout class="QGridLayout" name="gridLayout">
|
<item row="4" column="0">
|
<widget class="QLabel" name="label_6">
|
<property name="text">
|
<string>数据库登录名</string>
|
</property>
|
<property name="alignment">
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
</property>
|
</widget>
|
</item>
|
<item row="1" column="0">
|
<widget class="QLabel" name="label_3">
|
<property name="text">
|
<string>主机名</string>
|
</property>
|
<property name="alignment">
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
</property>
|
</widget>
|
</item>
|
<item row="2" column="1">
|
<widget class="QLineEdit" name="lineEdit_port"/>
|
</item>
|
<item row="0" column="1">
|
<widget class="QComboBox" name="comboBox_DB_Type">
|
<property name="currentText">
|
<string>QMYSQL</string>
|
</property>
|
<item>
|
<property name="text">
|
<string>QMYSQL</string>
|
</property>
|
</item>
|
</widget>
|
</item>
|
<item row="3" column="0">
|
<widget class="QLabel" name="label_5">
|
<property name="text">
|
<string>数据库名</string>
|
</property>
|
<property name="alignment">
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
</property>
|
</widget>
|
</item>
|
<item row="1" column="1">
|
<widget class="QLineEdit" name="lineEdit_hostname"/>
|
</item>
|
<item row="4" column="1">
|
<widget class="QLineEdit" name="lineEdit_username"/>
|
</item>
|
<item row="3" column="1">
|
<widget class="QLineEdit" name="lineEdit_dbname"/>
|
</item>
|
<item row="5" column="1">
|
<widget class="QLineEdit" name="lineEdit_password">
|
<property name="echoMode">
|
<enum>QLineEdit::Password</enum>
|
</property>
|
</widget>
|
</item>
|
<item row="0" column="0">
|
<widget class="QLabel" name="label_2">
|
<property name="text">
|
<string>数据库类型</string>
|
</property>
|
<property name="alignment">
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
</property>
|
</widget>
|
</item>
|
<item row="5" column="0">
|
<widget class="QLabel" name="label_7">
|
<property name="text">
|
<string>数据库密码</string>
|
</property>
|
<property name="alignment">
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
</property>
|
</widget>
|
</item>
|
<item row="2" column="0">
|
<widget class="QLabel" name="label_4">
|
<property name="text">
|
<string>端口</string>
|
</property>
|
<property name="alignment">
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
</property>
|
</widget>
|
</item>
|
</layout>
|
</item>
|
<item>
|
<widget class="QLabel" name="label_result">
|
<property name="text">
|
<string>TextLabel</string>
|
</property>
|
<property name="wordWrap">
|
<bool>true</bool>
|
</property>
|
</widget>
|
</item>
|
<item>
|
<layout class="QHBoxLayout" name="horizontalLayout_7">
|
<property name="bottomMargin">
|
<number>10</number>
|
</property>
|
<item>
|
<spacer name="horizontalSpacer_4">
|
<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="QPushButton" name="pushButton_TestConn">
|
<property name="text">
|
<string>测试</string>
|
</property>
|
</widget>
|
</item>
|
</layout>
|
</item>
|
</layout>
|
</item>
|
<item>
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
<property name="bottomMargin">
|
<number>10</number>
|
</property>
|
<item>
|
<widget class="QLabel" name="label_10">
|
<property name="text">
|
<string>网络链接设置</string>
|
</property>
|
<property name="alignment">
|
<set>Qt::AlignCenter</set>
|
</property>
|
</widget>
|
</item>
|
<item>
|
<layout class="QGridLayout" name="gridLayout_2">
|
<item row="1" column="0">
|
<widget class="QLabel" name="label_19">
|
<property name="text">
|
<string>地址类型</string>
|
</property>
|
<property name="alignment">
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
</property>
|
</widget>
|
</item>
|
<item row="0" column="1">
|
<widget class="QComboBox" name="comboBox_2"/>
|
</item>
|
<item row="2" column="0">
|
<widget class="QLabel" name="label_20">
|
<property name="text">
|
<string>地址</string>
|
</property>
|
<property name="alignment">
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
</property>
|
</widget>
|
</item>
|
<item row="4" column="1">
|
<widget class="QLineEdit" name="lineEdit_7"/>
|
</item>
|
<item row="0" column="0">
|
<widget class="QLabel" name="label_18">
|
<property name="text">
|
<string>连接类型</string>
|
</property>
|
<property name="alignment">
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
</property>
|
</widget>
|
</item>
|
<item row="1" column="1">
|
<widget class="QComboBox" name="comboBox_3"/>
|
</item>
|
<item row="3" column="0">
|
<widget class="QLabel" name="label_21">
|
<property name="text">
|
<string>端口</string>
|
</property>
|
<property name="alignment">
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
</property>
|
</widget>
|
</item>
|
<item row="2" column="1">
|
<widget class="QLineEdit" name="lineEdit_5"/>
|
</item>
|
<item row="3" column="1">
|
<widget class="QLineEdit" name="lineEdit_6"/>
|
</item>
|
<item row="4" column="0">
|
<widget class="QLabel" name="label_22">
|
<property name="text">
|
<string>TextLabel</string>
|
</property>
|
<property name="alignment">
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
</property>
|
</widget>
|
</item>
|
<item row="5" column="0">
|
<widget class="QLabel" name="label_23">
|
<property name="text">
|
<string>TextLabel</string>
|
</property>
|
</widget>
|
</item>
|
<item row="5" column="1">
|
<widget class="QLineEdit" name="lineEdit_8"/>
|
</item>
|
</layout>
|
</item>
|
<item>
|
<widget class="QLabel" name="label_result_network">
|
<property name="text">
|
<string>TextLabel</string>
|
</property>
|
</widget>
|
</item>
|
<item>
|
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
<item>
|
<spacer name="horizontalSpacer_3">
|
<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="QPushButton" name="pushButton_Test_Network">
|
<property name="text">
|
<string>测试</string>
|
</property>
|
</widget>
|
</item>
|
</layout>
|
</item>
|
</layout>
|
</item>
|
<item>
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<property name="bottomMargin">
|
<number>10</number>
|
</property>
|
<item>
|
<widget class="QLabel" name="label_8">
|
<property name="text">
|
<string>PLC连接设置</string>
|
</property>
|
<property name="alignment">
|
<set>Qt::AlignCenter</set>
|
</property>
|
</widget>
|
</item>
|
<item>
|
<layout class="QFormLayout" name="formLayout">
|
<property name="labelAlignment">
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
</property>
|
<item row="0" column="0">
|
<widget class="QLabel" name="label_13">
|
<property name="text">
|
<string>端口</string>
|
</property>
|
<property name="alignment">
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
</property>
|
</widget>
|
</item>
|
<item row="1" column="0">
|
<widget class="QLabel" name="label_14">
|
<property name="text">
|
<string>速率</string>
|
</property>
|
<property name="alignment">
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
</property>
|
</widget>
|
</item>
|
<item row="2" column="0">
|
<widget class="QLabel" name="label_15">
|
<property name="text">
|
<string>格式</string>
|
</property>
|
<property name="alignment">
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
</property>
|
</widget>
|
</item>
|
<item row="3" column="0">
|
<widget class="QLabel" name="label_16">
|
<property name="text">
|
<string>校验位</string>
|
</property>
|
<property name="alignment">
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
</property>
|
</widget>
|
</item>
|
<item row="4" column="0">
|
<widget class="QLabel" name="label_17">
|
<property name="text">
|
<string>TextLabel</string>
|
</property>
|
<property name="alignment">
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
</property>
|
</widget>
|
</item>
|
<item row="0" column="1">
|
<widget class="QComboBox" name="comboBox"/>
|
</item>
|
<item row="1" column="1">
|
<widget class="QLineEdit" name="lineEdit"/>
|
</item>
|
<item row="2" column="1">
|
<widget class="QLineEdit" name="lineEdit_2"/>
|
</item>
|
<item row="3" column="1">
|
<widget class="QLineEdit" name="lineEdit_3"/>
|
</item>
|
<item row="4" column="1">
|
<widget class="QLineEdit" name="lineEdit_4"/>
|
</item>
|
</layout>
|
</item>
|
<item>
|
<widget class="QLabel" name="label_result_PLC">
|
<property name="text">
|
<string>TextLabel</string>
|
</property>
|
</widget>
|
</item>
|
<item>
|
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
<item>
|
<spacer name="horizontalSpacer_2">
|
<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="QPushButton" name="pushButton_Test_PLC">
|
<property name="text">
|
<string>测试</string>
|
</property>
|
</widget>
|
</item>
|
</layout>
|
</item>
|
</layout>
|
</item>
|
</layout>
|
</item>
|
<item>
|
<layout class="QHBoxLayout" name="horizontalLayout_4"/>
|
</item>
|
<item>
|
<spacer name="verticalSpacer">
|
<property name="orientation">
|
<enum>Qt::Vertical</enum>
|
</property>
|
<property name="sizeHint" stdset="0">
|
<size>
|
<width>20</width>
|
<height>40</height>
|
</size>
|
</property>
|
</spacer>
|
</item>
|
<item>
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<item>
|
<spacer name="horizontalSpacer">
|
<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="QPushButton" name="pushButton_OK">
|
<property name="text">
|
<string>确定</string>
|
</property>
|
</widget>
|
</item>
|
<item>
|
<widget class="QPushButton" name="pushButton_CANCEL">
|
<property name="text">
|
<string>取消</string>
|
</property>
|
</widget>
|
</item>
|
</layout>
|
</item>
|
</layout>
|
</widget>
|
<resources/>
|
<connections/>
|
</ui>
|