From e13dc5222d7b1ecc4985f4fc447e159eba3321a8 Mon Sep 17 00:00:00 2001 From: CHN-STUDENT Date: Wed, 20 Dec 2017 02:17:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DTAB=E8=81=9A=E7=84=A6?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E4=BF=AE=E5=A4=8D=E5=8F=B3=E9=94=AE?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E9=80=89=E4=B8=AD=E9=AB=98=E4=BA=AE=EF=BC=8C?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=9C=A8=E5=85=B3=E4=BA=8E=E9=87=8C=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E6=89=93=E5=BC=80=E9=93=BE=E6=8E=A5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- srun-3k-ui/mainwindow.cpp | 7 +- srun-3k-ui/mainwindow.h | 2 +- srun-3k-ui/mainwindow.ui | 169 ++++++++++++++++++++++++++++++-------- 3 files changed, 141 insertions(+), 37 deletions(-) diff --git a/srun-3k-ui/mainwindow.cpp b/srun-3k-ui/mainwindow.cpp index 9b5f3b4..5bfbe12 100644 --- a/srun-3k-ui/mainwindow.cpp +++ b/srun-3k-ui/mainwindow.cpp @@ -76,6 +76,7 @@ void MainWindow::Start(void) AdvancedButton->setStyleSheet("QPushButton {border-image: url(:/titleButtons/advanced);}" "QPushButton:hover {border-image: url(:/titleButtons/advanced_hover);}" "QPushButton:pressed {border-image: url(:/titleButtons/advanced_pressed);}"); + connect(ui->About_show, SIGNAL(anchorClicked(const QUrl&)),this, SLOT(anchorClickedSlot(const QUrl&))); AboutButton->hide();//在获取公告前隐藏这两个按钮 AdvancedButton->hide(); QString serverconfig=QCoreApplication::applicationDirPath()+"/server.json"; @@ -257,8 +258,6 @@ void MainWindow::GET_INFO_Finished(QNetworkReply *reply) {//如果检测不在线 state=0; ui->stackedWidget->setCurrentIndex(2); - setTabOrder(ui->NAME_INPUT,ui->PASSWD_INPUT); - setTabOrder(ui->PASSWD_INPUT,ui->NAME_INPUT); if(ui->AUTO_LOGIN->isChecked()) { QTimer::singleShot(3000,[this](){ui->LoginButton->click();}); @@ -779,3 +778,7 @@ void MainWindow::on_ShowServerMessage_clicked() ui->stackedWidget->setCurrentIndex(1); } +void MainWindow::anchorClickedSlot(const QUrl &url) +{ + QDesktopServices::openUrl(url); +} diff --git a/srun-3k-ui/mainwindow.h b/srun-3k-ui/mainwindow.h index 9f0c244..0f31765 100644 --- a/srun-3k-ui/mainwindow.h +++ b/srun-3k-ui/mainwindow.h @@ -41,7 +41,7 @@ private slots: // void GET_ACID_Finished(QNetworkReply*); void GET_INFO_Finished(QNetworkReply*); - + void anchorClickedSlot(const QUrl &); void TimeSlot(); // void AutoJumpTimeSlot(); void on_LogoutButton_clicked(); diff --git a/srun-3k-ui/mainwindow.ui b/srun-3k-ui/mainwindow.ui index 0508287..e99d665 100644 --- a/srun-3k-ui/mainwindow.ui +++ b/srun-3k-ui/mainwindow.ui @@ -32,7 +32,7 @@ 校园网登录器 - background:#F6F6F3 + false @@ -160,11 +160,19 @@ background:#ca0000; - background: #FFF; + QTextBrowser{ + background: #FFF; border: 0; border: 1px solid #D9D9D6; + line-height: 40px; - color: #000; + color: #000; +} +QMenu{background-color:white;} +QMenu::item {padding: 2px 25px 2px 25px;border: 1px solid transparent ;} +QMenu::item:selected:enabled {border-color:#91c9f7;background: #91c9f7;} +QMenu::separator {height: 2px;background: rgb (168, 216, 235);margin-left: 25px;} +QMenu::indicator {width: 13px;height: 13px;} <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -295,7 +303,12 @@ QLineEdit:focus{   box-shadow:0 0 8px rgba(93,149,242,.105);   -moz-box-shadow:0 0 8px rgba(93,149,242,.5);   -webkit-box-shadow:0 0 8px rgba(93,149,242,3) -} +} +QMenu{background-color:white;} +QMenu::item {padding: 2px 25px 2px 25px;border: 1px solid transparent ;} +QMenu::item:selected:enabled {border-color:#91c9f7;background: #91c9f7;} +QMenu::separator {height: 2px;background: rgb (168, 216, 235);margin-left: 25px;} +QMenu::indicator {width: 13px;height: 13px;} QLineEdit::Password @@ -333,7 +346,12 @@ QLineEdit:focus{   box-shadow:0 0 8px rgba(93,149,242,.105);   -moz-box-shadow:0 0 8px rgba(93,149,242,.5);   -webkit-box-shadow:0 0 8px rgba(93,149,242,3) -} +} +QMenu{background-color:white;} +QMenu::item {padding: 2px 25px 2px 25px;border: 1px solid transparent ;} +QMenu::item:selected:enabled {border-color:#91c9f7;background: #91c9f7;} +QMenu::separator {height: 2px;background: rgb (168, 216, 235);margin-left: 25px;} +QMenu::indicator {width: 13px;height: 13px;} 用户名 @@ -738,8 +756,13 @@ background:#0b4a73; - border: 1px solid #D9D9D6; - background: #fff + QLineEdit{border: 1px solid #D9D9D6; + background: #fff;} +QMenu{background-color:white;} +QMenu::item {padding: 2px 25px 2px 25px;border: 1px solid transparent ;} +QMenu::item:selected:enabled {border-color:#91c9f7;background: #91c9f7;} +QMenu::separator {height: 2px;background: rgb (168, 216, 235);margin-left: 25px;} +QMenu::indicator {width: 13px;height: 13px;} http://172.16.154.130 @@ -755,8 +778,13 @@ background:#0b4a73; - border: 1px solid #D9D9D6; - background: #fff + QLineEdit{border: 1px solid #D9D9D6; + background: #fff;} +QMenu{background-color:white;} +QMenu::item {padding: 2px 25px 2px 25px;border: 1px solid transparent ;} +QMenu::item:selected:enabled {border-color:#91c9f7;background: #91c9f7;} +QMenu::separator {height: 2px;background: rgb (168, 216, 235);margin-left: 25px;} +QMenu::indicator {width: 13px;height: 13px;} http://172.16.154.130 @@ -772,8 +800,13 @@ background:#0b4a73; - border: 1px solid #D9D9D6; - background: #fff + QLineEdit{border: 1px solid #D9D9D6; + background: #fff;} +QMenu{background-color:white;} +QMenu::item {padding: 2px 25px 2px 25px;border: 1px solid transparent ;} +QMenu::item:selected:enabled {border-color:#91c9f7;background: #91c9f7;} +QMenu::separator {height: 2px;background: rgb (168, 216, 235);margin-left: 25px;} +QMenu::indicator {width: 13px;height: 13px;} 02:00:00:00:00:00 @@ -828,8 +861,13 @@ background:#0b4a73; - border: 1px solid #D9D9D6; - background: #fff + QSpinBox{border: 1px solid #D9D9D6; + background: #fff} +QMenu{background-color:white;} +QMenu::item {padding: 2px 25px 2px 25px;border: 1px solid transparent ;} +QMenu::item:selected:enabled {border-color:#91c9f7;background: #91c9f7;} +QMenu::separator {height: 2px;background: rgb (168, 216, 235);margin-left: 25px;} +QMenu::indicator {width: 13px;height: 13px;} 65535 @@ -874,8 +912,13 @@ background:#0b4a73; - border: 1px solid #D9D9D6; - background: #fff + QSpinBox{border: 1px solid #D9D9D6; + background: #fff} +QMenu{background-color:white;} +QMenu::item {padding: 2px 25px 2px 25px;border: 1px solid transparent ;} +QMenu::item:selected:enabled {border-color:#91c9f7;background: #91c9f7;} +QMenu::separator {height: 2px;background: rgb (168, 216, 235);margin-left: 25px;} +QMenu::indicator {width: 13px;height: 13px;} 65535 @@ -920,8 +963,13 @@ background:#0b4a73; - border: 1px solid #D9D9D6; - background: #fff + QSpinBox{border: 1px solid #D9D9D6; + background: #fff} +QMenu{background-color:white;} +QMenu::item {padding: 2px 25px 2px 25px;border: 1px solid transparent ;} +QMenu::item:selected:enabled {border-color:#91c9f7;background: #91c9f7;} +QMenu::separator {height: 2px;background: rgb (168, 216, 235);margin-left: 25px;} +QMenu::indicator {width: 13px;height: 13px;} 10 @@ -940,8 +988,13 @@ background:#0b4a73; - border: 1px solid #D9D9D6; - background: #fff + QSpinBox{border: 1px solid #D9D9D6; + background: #fff} +QMenu{background-color:white;} +QMenu::item {padding: 2px 25px 2px 25px;border: 1px solid transparent ;} +QMenu::item:selected:enabled {border-color:#91c9f7;background: #91c9f7;} +QMenu::separator {height: 2px;background: rgb (168, 216, 235);margin-left: 25px;} +QMenu::indicator {width: 13px;height: 13px;} 1 @@ -963,8 +1016,13 @@ background:#0b4a73; - border: 1px solid #D9D9D6; - background: #fff + QSpinBox{border: 1px solid #D9D9D6; + background: #fff} +QMenu{background-color:white;} +QMenu::item {padding: 2px 25px 2px 25px;border: 1px solid transparent ;} +QMenu::item:selected:enabled {border-color:#91c9f7;background: #91c9f7;} +QMenu::separator {height: 2px;background: rgb (168, 216, 235);margin-left: 25px;} +QMenu::indicator {width: 13px;height: 13px;} 1 @@ -980,8 +1038,13 @@ background:#0b4a73; - border: 1px solid #D9D9D6; - background: #fff + QSpinBox{border: 1px solid #D9D9D6; + background: #fff} +QMenu{background-color:white;} +QMenu::item {padding: 2px 25px 2px 25px;border: 1px solid transparent ;} +QMenu::item:selected:enabled {border-color:#91c9f7;background: #91c9f7;} +QMenu::separator {height: 2px;background: rgb (168, 216, 235);margin-left: 25px;} +QMenu::indicator {width: 13px;height: 13px;} 1 @@ -1119,19 +1182,26 @@ background:#0b4a73; - background: #FFF; + QTextBrowser{ + background: #FFF; border: 0; border: 1px solid #D9D9D6; line-height: 40px; - color: #000; + color: #000; +} +QMenu{background-color:white;} +QMenu::item {padding: 2px 25px 2px 25px;border: 1px solid transparent ;} +QMenu::item:selected:enabled {border-color:#91c9f7;background: #91c9f7;} +QMenu::separator {height: 2px;background: rgb (168, 216, 235);margin-left: 25px;} +QMenu::indicator {width: 13px;height: 13px;} <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'SimSun'; font-size:9pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">校园网登录器 V1.03.3</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">校园网登录器 V1.03.3.1</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">By CHN-STUDENT</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Copyright(C) 2017</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">-----------------------</p> @@ -1151,12 +1221,12 @@ p, li { white-space: pre-wrap; } <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">2.代码不合理等问题。</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">3.TAB聚焦切换输入存在问题。</p> -<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">4.其他问题。</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">3.其他问题。</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">-----------------------</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">更新日志:</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">V1.03.3.1修复TAB聚焦问题,修复右键菜单选中高亮,支持在关于里直接打开链接。</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">V1.03.3修复开机自启无法读取配置文件的BUG。(感谢 Noisky 大佬)</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">V1.03.2密码加密存储,修复V1.02.3的自动登陆功能失效。</p> @@ -1178,7 +1248,7 @@ p, li { white-space: pre-wrap; } <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">2.界面跳转可能存在问题。</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">如果您有好的解决方案或反馈建议请发送邮件到;<br /></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">CHN-STUDENT@OUTLOOK.COM</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="mailto:CHN-STUDENT@OUTLOOK.COM"><span style=" text-decoration: underline; color:#0000ff;">CHN-STUDENT@OUTLOOK.COM</span></a></p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">-----------------------</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">感谢:(以下排名不分先后)</p> @@ -1196,13 +1266,13 @@ p, li { white-space: pre-wrap; } <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">以及帮助过我的那些人们。</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">-----------------------</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">项目地址:</p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">https://github.com/CHN-STUDENT/SRUN-3K-UI</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="https://github.com/CHN-STUDENT/SRUN-3K-UI"><span style=" text-decoration: underline; color:#0000ff;">https://github.com/CHN-STUDENT/SRUN-3K-UI</span></a></p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Wiki:</p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">https://github.com/zeng-xs/srun3k-client/wiki/Developer-Guide</p> -<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="https://github.com/zengxss/srun3k-client/wiki/Developer-Guide"><span style=" text-decoration: underline; color:#0000ff;">https://github.com/zengxss/srun3k-client/wiki/Developer-Guide</span></a></p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; text-decoration: underline; color:#0000ff;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">安卓和IOS手机版客户端下载:</p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">https://ffis.me/jiaowu/srun.html</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="https://ffis.me/jiaowu/srun.html"><span style=" text-decoration: underline; color:#0000ff;">https://ffis.me/jiaowu/srun.html</span></a></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">-----------------------</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">本程序仅供学习和交流研究使用。</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> @@ -1212,6 +1282,9 @@ p, li { white-space: pre-wrap; } <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">我会努力让程序改进,完善功能,变得更好。</p></body></html> + + false + @@ -1253,6 +1326,34 @@ background:#0b4a73; + + NAME_INPUT + PASSWD_INPUT + AUTO_LOGIN + AUTO_START + Message_show + LoginButton + RetryButton + Enter + SERVICE + LogoutButton + SERVICE_2 + ShowServerMessage + advanced_save + login_server + service_server + mac + login_port + service_port + acid + type + drop + pop + setdefaults + advanced_back + About_show + Enter_2 +