Files
EZ4Connect/settingwindow/settingwindow.ui
2025-10-07 20:01:31 +08:00

871 lines
27 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>SettingWindow</class>
<widget class="QDialog" name="SettingWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>514</width>
<height>519</height>
</rect>
</property>
<property name="windowTitle">
<string>设置</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="locale">
<locale language="Chinese" country="China"/>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="generalTab">
<attribute name="title">
<string>通用</string>
</attribute>
<layout class="QGridLayout">
<item row="7" column="0">
<spacer name="commonTabVerticalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>444</width>
<height>108</height>
</size>
</property>
</spacer>
</item>
<item row="3" column="0" rowspan="2">
<widget class="QGroupBox" name="profileGroup">
<property name="title">
<string>配置文件</string>
</property>
<layout class="QGridLayout" name="gridLayout_5">
<item row="1" column="1">
<widget class="QPushButton" name="exportPushButton">
<property name="text">
<string>导出</string>
</property>
</widget>
</item>
<item row="0" column="0" colspan="3">
<widget class="QLabel" name="configVersionLabel">
<property name="text">
<string>当前配置文件版本:?
程序配置文件版本:?</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QPushButton" name="resetDefaultPushButton">
<property name="text">
<string>恢复默认</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="importPushButton">
<property name="text">
<string>导入</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="1" column="0">
<widget class="QGroupBox" name="commonGroup">
<property name="title">
<string>常规</string>
</property>
<layout class="QGridLayout" name="gridLayout_7">
<item row="2" column="2">
<widget class="QCheckBox" name="checkUpdateAfterStartCheckBox">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QCheckBox" name="autoStartCheckBox">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="zjuConnectTabLabel7">
<property name="text">
<string>自动重连(秒)</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="commonTabLable4">
<property name="text">
<string>开机自启动</string>
</property>
</widget>
</item>
<item row="4" column="2">
<widget class="QCheckBox" name="autoReconnectCheckBox">
<property name="text">
<string/>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item row="0" column="1" rowspan="4">
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item row="6" column="1" colspan="2">
<widget class="QLineEdit" name="systemProxyBypassLineEdit">
<property name="placeholderText">
<string>与操作系统有关,一般用半角分号;进行分隔</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="commonTabLable5">
<property name="text">
<string>自动连接</string>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="zjuConnectTabLabel11">
<property name="text">
<string>系统代理排除</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="commonTabLable6">
<property name="text">
<string>自动检查更新</string>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QCheckBox" name="autoSetProxyCheckBox">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QCheckBox" name="connectAfterStartCheckBox">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="commonTabLable4_2">
<property name="text">
<string>自动设置系统代理</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QSpinBox" name="reconnectTimeSpinBox">
<property name="enabled">
<bool>false</bool>
</property>
<property name="maximum">
<number>86400</number>
</property>
<property name="value">
<number>1</number>
</property>
</widget>
</item>
<item row="7" column="0">
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Policy::Preferred</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>120</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="loginTab">
<attribute name="title">
<string>登录</string>
</attribute>
<layout class="QGridLayout">
<item row="2" column="0">
<widget class="QGroupBox" name="authInfoGroupBox">
<property name="title">
<string>认证信息aTrust</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="2" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>认证方式</string>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QRadioButton" name="casRadioButton">
<property name="text">
<string>单点认证</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QRadioButton" name="pswRadioButton">
<property name="text">
<string>密码</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="1" colspan="2">
<widget class="QLineEdit" name="loginDomainLineEdit">
<property name="text">
<string/>
</property>
<property name="placeholderText">
<string>可自动获取,默认 local</string>
</property>
</widget>
</item>
<item row="0" column="0" colspan="3">
<widget class="QPushButton" name="authSelectPushButton">
<property name="text">
<string>获取认证方式</string>
</property>
</widget>
</item>
<item row="4" column="0">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Policy::Preferred</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>120</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>登录域</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>单点认证地址</string>
</property>
</widget>
</item>
<item row="3" column="1" colspan="2">
<widget class="QLineEdit" name="casLoginUrlLineEdit">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string/>
</property>
<property name="placeholderText">
<string>可自动获取,仅用于单点登录</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="1" column="0">
<widget class="QGroupBox" name="protocolGroupBox">
<property name="title">
<string>协议</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QRadioButton" name="atrustRadioButton">
<property name="text">
<string>aTrust</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="easyconnectRadioButton">
<property name="text">
<string>EasyConnect</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="4" column="0">
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="3" column="0">
<widget class="QGroupBox" name="credentialGroup">
<property name="title">
<string>保存的信息</string>
</property>
<layout class="QGridLayout" name="gridLayout_6">
<item row="3" column="2">
<widget class="QLineEdit" name="totpSecretLineEdit">
<property name="echoMode">
<enum>QLineEdit::EchoMode::Password</enum>
</property>
<property name="placeholderText">
<string>可选,以通过 TOTP 验证器</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="commonTabLable2">
<property name="text">
<string>账号</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QLineEdit" name="passwordLineEdit">
<property name="echoMode">
<enum>QLineEdit::EchoMode::Password</enum>
</property>
<property name="placeholderText">
<string>VPN 密码</string>
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QCheckBox" name="passwordVisibleCheckBox">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="0" column="2" colspan="2">
<widget class="QLineEdit" name="usernameLineEdit">
<property name="placeholderText">
<string>VPN 账号</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="zjuConnectTabLabel6_2">
<property name="text">
<string>TOTP 密钥</string>
</property>
</widget>
</item>
<item row="4" column="0">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Policy::Preferred</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>120</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item row="3" column="3">
<widget class="QCheckBox" name="totpSecretVisibleCheckBox">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="commonTabLable3">
<property name="text">
<string>密码</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="zjuConnectTab">
<attribute name="title">
<string>核心</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_3">
<item row="15" column="0" colspan="4">
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="1">
<widget class="QCheckBox" name="keepAliveCheckBox">
<property name="text">
<string>定时保活</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QCheckBox" name="disableServerConfigCheckBox">
<property name="text">
<string>忽略服务器配置</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QCheckBox" name="tunCheckBox">
<property name="text">
<string>TUN 模式</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QCheckBox" name="outsideAccessCheckBox">
<property name="text">
<string>允许外部访问</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="skipDomainResourceCheckBox">
<property name="text">
<string>忽略域名资源</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QCheckBox" name="proxyAllCheckBox">
<property name="text">
<string>代理全部流量</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QCheckBox" name="routeCheckBox">
<property name="toolTip">
<string>TUN 模式下有效</string>
</property>
<property name="text">
<string>设置路由TUN</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QCheckBox" name="multiLineCheckBox">
<property name="text">
<string>自动选择线路</string>
</property>
<property name="autoExclusive">
<bool>false</bool>
</property>
<property name="tristate">
<bool>false</bool>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QCheckBox" name="dnsHijackCheckBox">
<property name="toolTip">
<string>TUN 模式下有效</string>
</property>
<property name="text">
<string>DNS 劫持TUN</string>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QCheckBox" name="debugCheckBox">
<property name="text">
<string>核心调试</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QCheckBox" name="zjuDefaultCheckBox">
<property name="text">
<string>ZJU 默认配置</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QCheckBox" name="disableDNSCheckBox">
<property name="text">
<string>禁用内部 DNS</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="serverAddressLineEdit">
<property name="text">
<string>trust.hitsz.edu.cn</string>
</property>
</widget>
</item>
<item row="7" column="1" colspan="3">
<widget class="QSpinBox" name="httpPortSpinBox">
<property name="maximum">
<number>65535</number>
</property>
<property name="value">
<number>11081</number>
</property>
</widget>
</item>
<item row="14" column="0" colspan="4">
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="zjuConnectTabLabel8">
<property name="text">
<string>DNS 服务器</string>
</property>
</widget>
</item>
<item row="8" column="1" colspan="3">
<widget class="QLineEdit" name="shadowsocksUrlLineEdit">
<property name="placeholderText">
<string>不填则不启用格式ss://chiper:password@server:port</string>
</property>
</widget>
</item>
<item row="3" column="2" colspan="2">
<widget class="QCheckBox" name="dnsAutoCheckBox">
<property name="text">
<string>自动</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="zjuConnectTabLabel9">
<property name="text">
<string>备用 DNS</string>
</property>
</widget>
</item>
<item row="19" column="0" colspan="4">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="5" column="1" colspan="3">
<widget class="QSpinBox" name="dnsTTLSpinBox">
<property name="maximum">
<number>2147483647</number>
</property>
<property name="value">
<number>3600</number>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="zjuConnectTabLabel5">
<property name="text">
<string>SOCKS5 代理端口</string>
</property>
</widget>
</item>
<item row="0" column="3">
<widget class="QSpinBox" name="serverPortSpinBox">
<property name="maximum">
<number>65535</number>
</property>
<property name="value">
<number>443</number>
</property>
</widget>
</item>
<item row="8" column="0">
<widget class="QLabel" name="zjuConnectTabLabel10">
<property name="text">
<string>Shadowsocks 服务器</string>
</property>
</widget>
</item>
<item row="6" column="1" colspan="3">
<widget class="QSpinBox" name="socks5PortSpinBox">
<property name="maximum">
<number>65535</number>
</property>
<property name="value">
<number>11080</number>
</property>
</widget>
</item>
<item row="7" column="0">
<widget class="QLabel" name="zjuConnectTabLabel6">
<property name="text">
<string>HTTP 代理端口</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="zjuConnectTabLabel1">
<property name="text">
<string>服务器地址</string>
</property>
</widget>
</item>
<item row="10" column="1" colspan="3">
<widget class="QLineEdit" name="dialDirectProxyLineEdit">
<property name="placeholderText">
<string>直连情况下走的代理支持socks://... 或 http://...</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLineEdit" name="dnsLineEdit">
<property name="placeholderText">
<string>勾选自动,否则不应留空</string>
</property>
</widget>
</item>
<item row="18" column="0" colspan="4">
<widget class="QPushButton" name="portForwardingPushButton">
<property name="text">
<string>其他设置(端口转发、自定义参数等)</string>
</property>
</widget>
</item>
<item row="10" column="0">
<widget class="QLabel" name="zjuConnectTabLabel6_3">
<property name="text">
<string>直连代理</string>
</property>
</widget>
</item>
<item row="4" column="1" colspan="3">
<widget class="QLineEdit" name="secondaryDnsLineEdit">
<property name="placeholderText">
<string>不填则采用系统 DNS ,使用 DNS 劫持必须填写</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QLabel" name="label">
<property name="text">
<string>:</string>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="zjuConnectTabLabel9_2">
<property name="text">
<string>DNS TTL</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::StandardButton::Apply|QDialogButtonBox::StandardButton::Cancel|QDialogButtonBox::StandardButton::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<tabstops>
<tabstop>tabWidget</tabstop>
<tabstop>usernameLineEdit</tabstop>
<tabstop>passwordLineEdit</tabstop>
<tabstop>serverAddressLineEdit</tabstop>
<tabstop>serverPortSpinBox</tabstop>
<tabstop>dnsLineEdit</tabstop>
<tabstop>secondaryDnsLineEdit</tabstop>
<tabstop>socks5PortSpinBox</tabstop>
<tabstop>httpPortSpinBox</tabstop>
<tabstop>multiLineCheckBox</tabstop>
<tabstop>keepAliveCheckBox</tabstop>
<tabstop>outsideAccessCheckBox</tabstop>
<tabstop>portForwardingPushButton</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>SettingWindow</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>239</x>
<y>374</y>
</hint>
<hint type="destinationlabel">
<x>242</x>
<y>197</y>
</hint>
</hints>
</connection>
<connection>
<sender>atrustRadioButton</sender>
<signal>toggled(bool)</signal>
<receiver>authInfoGroupBox</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>255</x>
<y>72</y>
</hint>
<hint type="destinationlabel">
<x>256</x>
<y>186</y>
</hint>
</hints>
</connection>
<connection>
<sender>casRadioButton</sender>
<signal>toggled(bool)</signal>
<receiver>casLoginUrlLineEdit</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>397</x>
<y>221</y>
</hint>
<hint type="destinationlabel">
<x>327</x>
<y>247</y>
</hint>
</hints>
</connection>
<connection>
<sender>dnsAutoCheckBox</sender>
<signal>toggled(bool)</signal>
<receiver>dnsLineEdit</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>445</x>
<y>85</y>
</hint>
<hint type="destinationlabel">
<x>282</x>
<y>85</y>
</hint>
</hints>
</connection>
<connection>
<sender>tunCheckBox</sender>
<signal>toggled(bool)</signal>
<receiver>routeCheckBox</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>108</x>
<y>379</y>
</hint>
<hint type="destinationlabel">
<x>256</x>
<y>379</y>
</hint>
</hints>
</connection>
<connection>
<sender>tunCheckBox</sender>
<signal>toggled(bool)</signal>
<receiver>dnsHijackCheckBox</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>108</x>
<y>379</y>
</hint>
<hint type="destinationlabel">
<x>405</x>
<y>379</y>
</hint>
</hints>
</connection>
<connection>
<sender>autoReconnectCheckBox</sender>
<signal>toggled(bool)</signal>
<receiver>reconnectTimeSpinBox</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>463</x>
<y>173</y>
</hint>
<hint type="destinationlabel">
<x>311</x>
<y>173</y>
</hint>
</hints>
</connection>
</connections>
</ui>