From d35448c396c91346966770e4e414dc11eae2c6ac Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Mon, 7 Apr 2014 10:54:13 +0800 Subject: merge SSH{1,2} to SSH. The code for SSH1 and SSH2 have no difference, and FQTerm can check the SSH protocol version the server is using, so merge them. --- src/ui/addrdialog.cpp | 11 -- src/ui/addrdialog.ui | 9 +- src/ui/quickdialog.ui | 122 ++++++++++---------- src/ui/sitemanager.ui | 312 +++++++++++++++++++++++++------------------------- 4 files changed, 215 insertions(+), 239 deletions(-) (limited to 'src/ui') diff --git a/src/ui/addrdialog.cpp b/src/ui/addrdialog.cpp index 79e62a8..ab4f174 100644 --- a/src/ui/addrdialog.cpp +++ b/src/ui/addrdialog.cpp @@ -270,17 +270,6 @@ void addrDialog::onProtocol(int n) { ui_.sshAutoLoginGroup->setChecked(false); break; case 1: -#if defined(_NO_SSH_COMPILED) - QMessageBox::warning(this, "sorry", - "SSH support is not compiled, check your OpenSSL and try to recompile FQTerm"); - ui_.protocolComboBox->setCurrentItem(0); -#else - ui_.telnetAutoLoginGroup->setEnabled(false); - ui_.telnetAutoLoginGroup->setChecked(false); - ui_.sshAutoLoginGroup->setEnabled(true); - ui_.sshAutoLoginGroup->setChecked(param_.isAutoLogin_); -#endif - break; case 2: #if defined(_NO_SSH_COMPILED) QMessageBox::warning(this, "sorry", diff --git a/src/ui/addrdialog.ui b/src/ui/addrdialog.ui index e5dc40b..d706078 100644 --- a/src/ui/addrdialog.ui +++ b/src/ui/addrdialog.ui @@ -7,7 +7,7 @@ 0 0 493 - 383 + 413 @@ -108,12 +108,7 @@ - SSH1 - - - - - SSH2 + SSH diff --git a/src/ui/quickdialog.ui b/src/ui/quickdialog.ui index 867596d..dafb87b 100644 --- a/src/ui/quickdialog.ui +++ b/src/ui/quickdialog.ui @@ -1,71 +1,72 @@ - + + quickDialog - - + + 0 0 394 - 117 + 123 - - + + 0 0 - + Quick Login - - - + + + - - + + QFrame::NoFrame - + QFrame::Plain - + Host Name - - - + + + 0 0 - + true - + QComboBox::NoInsert - + true - - + + Delete - - + + - + @@ -74,28 +75,28 @@ - - - + + + Qt::Horizontal - - + + - - + + Advanced - + Qt::Horizontal - + 40 20 @@ -104,74 +105,69 @@ - - + + Connect - - + + Close - - + + - - - + + + 0 0 - + Protocol - + - + Telnet - - SSH1 - - - - - SSH2 + + SSH - - + + Port - - + + false - - + + 0 0 - + 23 @@ -180,7 +176,7 @@ - + historyComboBox deletePushButton @@ -197,11 +193,11 @@ portEdit setEnabled(bool) - + 151 54 - + 203 54 diff --git a/src/ui/sitemanager.ui b/src/ui/sitemanager.ui index 9b085ed..d4b2162 100644 --- a/src/ui/sitemanager.ui +++ b/src/ui/sitemanager.ui @@ -1,7 +1,8 @@ - + + siteManager - - + + 0 0 @@ -9,198 +10,193 @@ 495 - + Address Book - - - - - + + + + + - - - + + + &Up - - - + + + &Down - - - + + + - - - - + + + + Site Name - - + + - - - + + + Address - - + + - - - + + + Protocol - - + + - + Telnet - - SSH1 - - - - - SSH2 + + SSH - - - + + + Port - - - + + + false - + - - - + + + Host Type - - + + - + BBS - + *NIX - - - - + + + + 0 0 - + Use Proxy - - - + + + false - + Setting... - - - + + + Auto Login - - - + + + false - - + + 0 0 - + Setting... - - - + + + Font Preview - - - + + + true - + Font Previewer - + Qt::RichText - + Qt::AlignCenter - - + + - + Qt::Horizontal - + 55 25 @@ -209,18 +205,18 @@ - - + + &Reset - + Qt::Horizontal - + 54 25 @@ -229,20 +225,20 @@ - - + + A&dvance - + - + Qt::Vertical - + 20 40 @@ -253,21 +249,21 @@ - - + + - - + + &New - + Qt::Horizontal - + 40 20 @@ -276,18 +272,18 @@ - - + + &Delete - + Qt::Horizontal - + 40 20 @@ -296,18 +292,18 @@ - - + + C&onnect - + Qt::Horizontal - + 40 20 @@ -316,18 +312,18 @@ - - + + &Save - + Qt::Horizontal - + 40 20 @@ -336,8 +332,8 @@ - - + + &Close @@ -345,8 +341,8 @@ - - + + 9 553 @@ -354,18 +350,18 @@ 0 - + 16777215 0 - + - - + + 120 553 @@ -373,18 +369,18 @@ 0 - + 16777215 0 - + - - + + 156 553 @@ -392,18 +388,18 @@ 0 - + 16777215 0 - + - - + + 240 553 @@ -411,18 +407,18 @@ 0 - + 16777215 0 - + - - + + 410 553 @@ -430,18 +426,18 @@ 0 - + 16777215 0 - + - - + + 369 553 @@ -449,18 +445,18 @@ 0 - + 16777215 0 - + - - + + 46 553 @@ -468,18 +464,18 @@ 0 - + 16777215 0 - + - - + + 82 553 @@ -487,18 +483,18 @@ 0 - + 16777215 0 - + - - + + 315 553 @@ -506,13 +502,13 @@ 0 - + 16777215 0 - + @@ -547,11 +543,11 @@ portEdit setEnabled(bool) - + 372 81 - + 477 83 @@ -563,11 +559,11 @@ proxyButton setEnabled(bool) - + 235 141 - + 285 126 @@ -579,11 +575,11 @@ autoLoginButton setEnabled(bool) - + 232 155 - + 361 172 -- cgit v1.2.3