469 lines
13 KiB
XML
469 lines
13 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<ui version="4.0">
|
||
<class>ConnInfoEditDialog</class>
|
||
<widget class="QDialog" name="ConnInfoEditDialog">
|
||
<property name="geometry">
|
||
<rect>
|
||
<x>0</x>
|
||
<y>0</y>
|
||
<width>431</width>
|
||
<height>422</height>
|
||
</rect>
|
||
</property>
|
||
<property name="windowTitle">
|
||
<string>会话编辑</string>
|
||
</property>
|
||
<property name="windowIcon">
|
||
<iconset resource="../resource/PowerModeler.qrc">
|
||
<normaloff>:/img/images/icon_disconnect.png</normaloff>:/img/images/icon_disconnect.png</iconset>
|
||
</property>
|
||
<layout class="QVBoxLayout" name="verticalLayout">
|
||
<item>
|
||
<widget class="QTabWidget" name="tabWidget">
|
||
<property name="styleSheet">
|
||
<string notr="true"/>
|
||
</property>
|
||
<property name="currentIndex">
|
||
<number>0</number>
|
||
</property>
|
||
<property name="tabsClosable">
|
||
<bool>false</bool>
|
||
</property>
|
||
<property name="tabBarAutoHide">
|
||
<bool>true</bool>
|
||
</property>
|
||
<widget class="QWidget" name="tab">
|
||
<attribute name="icon">
|
||
<iconset resource="../resource/PowerModeler.qrc">
|
||
<normaloff>:/img/images/icon_setting.png</normaloff>:/img/images/icon_setting.png</iconset>
|
||
</attribute>
|
||
<attribute name="title">
|
||
<string>配置</string>
|
||
</attribute>
|
||
<layout class="QGridLayout" name="gridLayout">
|
||
<property name="leftMargin">
|
||
<number>18</number>
|
||
</property>
|
||
<property name="topMargin">
|
||
<number>10</number>
|
||
</property>
|
||
<property name="rightMargin">
|
||
<number>18</number>
|
||
</property>
|
||
<property name="bottomMargin">
|
||
<number>0</number>
|
||
</property>
|
||
<property name="horizontalSpacing">
|
||
<number>0</number>
|
||
</property>
|
||
<property name="verticalSpacing">
|
||
<number>10</number>
|
||
</property>
|
||
<item row="1" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_connection">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>16777215</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="maxLength">
|
||
<number>30</number>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="6" column="0">
|
||
<widget class="QLabel" name="label_userName">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>91</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>91</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="text">
|
||
<string>用户名:</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="5" column="0">
|
||
<widget class="QLabel" name="label_port">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>91</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>91</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="text">
|
||
<string>端口号:</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_hostName">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>16777215</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="maxLength">
|
||
<number>30</number>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="7" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_password">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>16777215</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="maxLength">
|
||
<number>30</number>
|
||
</property>
|
||
<property name="echoMode">
|
||
<enum>QLineEdit::EchoMode::Password</enum>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="5" column="1">
|
||
<widget class="QWidget" name="widget" native="true">
|
||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||
<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="QLineEdit" name="lineEdit_port">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>51</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>51</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="text">
|
||
<string>5432</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QLabel" name="label_error">
|
||
<property name="styleSheet">
|
||
<string notr="true">color: rgb(255, 0, 0);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string/>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignmentFlag::AlignCenter</set>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
</item>
|
||
<item row="10" column="0">
|
||
<widget class="QLabel" name="label_dbComment">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>91</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>91</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="text">
|
||
<string>备注:</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="0">
|
||
<widget class="QLabel" name="label_hostName">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>106</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>106</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="text">
|
||
<string>主机名/IP地址:</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="0">
|
||
<widget class="QLabel" name="label_connection">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>91</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>91</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="text">
|
||
<string>链接名称:</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="7" column="0">
|
||
<widget class="QLabel" name="label_password">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>91</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>91</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="text">
|
||
<string>密码:</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="10" column="1">
|
||
<widget class="QPlainTextEdit" name="plainTextEdit">
|
||
<property name="styleSheet">
|
||
<string notr="true"/>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="6" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_userName">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>16777215</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="maxLength">
|
||
<number>30</number>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="0">
|
||
<widget class="QLabel" name="label_dbType">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>91</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>91</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="text">
|
||
<string>数据库类型:</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="1">
|
||
<widget class="QComboBox" name="comboBox_dbType">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>26</height>
|
||
</size>
|
||
</property>
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>16777215</width>
|
||
<height>26</height>
|
||
</size>
|
||
</property>
|
||
<item>
|
||
<property name="text">
|
||
<string>PostgreSQL</string>
|
||
</property>
|
||
<property name="icon">
|
||
<iconset resource="../resource/PowerModeler.qrc">
|
||
<normaloff>:/img/images/icon_postgresql.png</normaloff>:/img/images/icon_postgresql.png</iconset>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>MySQL</string>
|
||
</property>
|
||
<property name="icon">
|
||
<iconset resource="../resource/PowerModeler.qrc">
|
||
<normaloff>:/img/images/icon_mysql.png</normaloff>:/img/images/icon_mysql.png</iconset>
|
||
</property>
|
||
</item>
|
||
</widget>
|
||
</item>
|
||
<item row="8" column="0">
|
||
<widget class="QLabel" name="label_dbName">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>91</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>91</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="text">
|
||
<string>数据库名称:</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="8" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_dbName">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>16777215</width>
|
||
<height>21</height>
|
||
</size>
|
||
</property>
|
||
<property name="maxLength">
|
||
<number>30</number>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||
<item>
|
||
<spacer name="horizontalSpacer">
|
||
<property name="orientation">
|
||
<enum>Qt::Orientation::Horizontal</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>40</width>
|
||
<height>20</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
<item>
|
||
<widget class="QPushButton" name="btnSave">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>86</width>
|
||
<height>31</height>
|
||
</size>
|
||
</property>
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>86</width>
|
||
<height>31</height>
|
||
</size>
|
||
</property>
|
||
<property name="text">
|
||
<string>保存</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QPushButton" name="btnCancle">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>86</width>
|
||
<height>31</height>
|
||
</size>
|
||
</property>
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>86</width>
|
||
<height>31</height>
|
||
</size>
|
||
</property>
|
||
<property name="text">
|
||
<string>取消</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
<resources>
|
||
<include location="../resource/PowerModeler.qrc"/>
|
||
</resources>
|
||
<connections/>
|
||
</ui>
|