From 9e246c9670a23be77af01b18a8e1870a799ef0d0 Mon Sep 17 00:00:00 2001 From: Phenom Date: Tue, 25 Apr 2017 18:39:30 +0200 Subject: [PATCH] Add warning about relays bandwidth. --- retroshare-gui/src/gui/settings/RelayPage.cpp | 4 +- retroshare-gui/src/gui/settings/RelayPage.ui | 98 +++++++++++-------- retroshare-gui/src/gui/settings/ServerPage.ui | 17 +++- 3 files changed, 77 insertions(+), 42 deletions(-) diff --git a/retroshare-gui/src/gui/settings/RelayPage.cpp b/retroshare-gui/src/gui/settings/RelayPage.cpp index d26550c8b..2927d2ea5 100644 --- a/retroshare-gui/src/gui/settings/RelayPage.cpp +++ b/retroshare-gui/src/gui/settings/RelayPage.cpp @@ -209,7 +209,7 @@ void RelayPage::updateEnabled() if (ui.enableCheckBox->isChecked()) { - ui.groupBox->setEnabled(true); + ui.relayOptionGBox->setEnabled(true); if (ui.serverCheckBox->isChecked()) { std::cerr << "RelayPage::updateEnabled() Both Enabled" << std::endl; @@ -224,7 +224,7 @@ void RelayPage::updateEnabled() else { std::cerr << "RelayPage::updateEnabled() Both Disabled" << std::endl; - ui.groupBox->setEnabled(false); + ui.relayOptionGBox->setEnabled(false); ui.serverGroupBox->setEnabled(false); } diff --git a/retroshare-gui/src/gui/settings/RelayPage.ui b/retroshare-gui/src/gui/settings/RelayPage.ui index f753b0c49..d5df50626 100644 --- a/retroshare-gui/src/gui/settings/RelayPage.ui +++ b/retroshare-gui/src/gui/settings/RelayPage.ui @@ -10,9 +10,9 @@ 546 - + - + @@ -21,7 +21,7 @@ - + Qt::Horizontal @@ -41,7 +41,7 @@ - + Qt::Horizontal @@ -56,14 +56,14 @@ - + true Relay options - + 0 @@ -80,7 +80,7 @@ 0 - + Qt::Horizontal @@ -93,14 +93,14 @@ - + Number - + Qt::Horizontal @@ -113,28 +113,28 @@ - + Bandwidth per link - + Qt::Vertical - + Total Bandwidth - + Friends @@ -154,7 +154,7 @@ - + x @@ -184,7 +184,7 @@ - + Friends of Friends @@ -198,7 +198,7 @@ - + x @@ -228,7 +228,7 @@ - + General @@ -242,7 +242,7 @@ - + x @@ -272,12 +272,19 @@ - + Qt::Horizontal + + + + Total: + + + @@ -288,15 +295,8 @@ - - - - Total: - - - - + Qt::Horizontal @@ -318,6 +318,26 @@ + + + + + 0 + 0 + + + + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); + + + + Warning: This bandwidth adds up to the max bandwidth. + + + @@ -326,7 +346,17 @@ Relay Server Setup - + + + + + HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH + + + + + + @@ -347,16 +377,6 @@ - - - - HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH - - - - - - @@ -377,7 +397,7 @@ - + Qt::Vertical diff --git a/retroshare-gui/src/gui/settings/ServerPage.ui b/retroshare-gui/src/gui/settings/ServerPage.ui index a0f16a62b..921e5b7df 100755 --- a/retroshare-gui/src/gui/settings/ServerPage.ui +++ b/retroshare-gui/src/gui/settings/ServerPage.ui @@ -26,7 +26,7 @@ - 2 + 0 @@ -418,6 +418,21 @@ + + + + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); + + + + WARNING: +These values don't take into account the Relays. + + +