mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-02 03:16:18 -05:00
changed net status gui
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1753 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
04ecbc5514
commit
b8be372c4d
@ -797,64 +797,50 @@ void NetworkDialog::updateNetworkStatus()
|
||||
if(config.netUpnpOk)
|
||||
{
|
||||
ui.iconlabel_upnp->setPixmap(QPixmap::QPixmap(":/images/ledon1.png"));
|
||||
ui.textlabel_upnp->setText(tr("UPnP active"));
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.iconlabel_upnp->setPixmap(QPixmap::QPixmap(":/images/ledoff1.png"));
|
||||
ui.textlabel_upnp->setText(tr("UPnP inactive"));
|
||||
}
|
||||
|
||||
if(config.netDhtOk)
|
||||
{
|
||||
ui.iconlabel_dht->setPixmap(QPixmap::QPixmap(":/images/ledon1.png"));
|
||||
ui.textlabel_dht->setText(tr("DHT active"));
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.iconlabel_dht->setPixmap(QPixmap::QPixmap(":/images/ledoff1.png"));
|
||||
ui.textlabel_dht->setText(tr("DHT inactive"));
|
||||
}
|
||||
|
||||
if(config.netExtOk)
|
||||
{
|
||||
ui.iconlabel_ext->setPixmap(QPixmap::QPixmap(":/images/ledon1.png"));
|
||||
ui.textlabel_ext->setText(tr("Stabile External IP Address"));
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.iconlabel_ext->setPixmap(QPixmap::QPixmap(":/images/ledoff1.png"));
|
||||
ui.textlabel_ext->setText(tr("Not Found External IP Address"));
|
||||
}
|
||||
|
||||
if(config.netUdpOk)
|
||||
{
|
||||
ui.iconlabel_udp->setPixmap(QPixmap::QPixmap(":/images/ledon1.png"));
|
||||
ui.textlabel_udp->setText(tr("UDP Port is active ( UDP Connections )"));
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.iconlabel_udp->setPixmap(QPixmap::QPixmap(":/images/ledoff1.png"));
|
||||
ui.textlabel_udp->setText(tr("UDP Port is not active"));
|
||||
}
|
||||
|
||||
if (config.netExtOk)
|
||||
{
|
||||
if (config.netUpnpOk)
|
||||
{
|
||||
ui.iconlabel_netServer->setPixmap(QPixmap::QPixmap(":/images/ledon1.png"));
|
||||
|
||||
ui.iconlabel_netUdp->setPixmap(QPixmap::QPixmap(":/images/ledoff1.png"));
|
||||
ui.iconlabel_netLimited->setPixmap(QPixmap::QPixmap(":/images/ledoff1.png"));
|
||||
ui.iconlabel_nonet->setPixmap(QPixmap::QPixmap(":/images/ledoff1.png"));
|
||||
ui.iconlabel_netUdp->setPixmap(QPixmap::QPixmap(":/images/ledon1.png"));
|
||||
ui.iconlabel_netLimited->setPixmap(QPixmap::QPixmap(":/images/ledon1.png"));
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.iconlabel_netUdp->setPixmap(QPixmap::QPixmap(":/images/ledon1.png"));
|
||||
|
||||
ui.iconlabel_netServer->setPixmap(QPixmap::QPixmap(":/images/ledoff1.png"));
|
||||
ui.iconlabel_netLimited->setPixmap(QPixmap::QPixmap(":/images/ledoff1.png"));
|
||||
ui.iconlabel_nonet->setPixmap(QPixmap::QPixmap(":/images/ledoff1.png"));
|
||||
ui.iconlabel_netLimited->setPixmap(QPixmap::QPixmap(":/images/ledon1.png"));
|
||||
}
|
||||
}
|
||||
else if (config.netOk)
|
||||
@ -862,45 +848,13 @@ void NetworkDialog::updateNetworkStatus()
|
||||
ui.iconlabel_netLimited->setPixmap(QPixmap::QPixmap(":/images/ledon1.png"));
|
||||
|
||||
ui.iconlabel_netUdp->setPixmap(QPixmap::QPixmap(":/images/ledoff1.png"));
|
||||
ui.iconlabel_netServer->setPixmap(QPixmap::QPixmap(":/images/ledoff1.png"));
|
||||
ui.iconlabel_nonet->setPixmap(QPixmap::QPixmap(":/images/ledoff1.png"));
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.iconlabel_nonet->setPixmap(QPixmap::QPixmap(":/images/ledon1.png"));
|
||||
|
||||
ui.iconlabel_netUdp->setPixmap(QPixmap::QPixmap(":/images/ledoff1.png"));
|
||||
ui.iconlabel_netServer->setPixmap(QPixmap::QPixmap(":/images/ledoff1.png"));
|
||||
ui.iconlabel_netLimited->setPixmap(QPixmap::QPixmap(":/images/ledoff1.png"));
|
||||
}
|
||||
|
||||
//ui.check_net->setChecked(config.netOk);
|
||||
/*ui.check_upnp->setChecked(config.netUpnpOk);
|
||||
ui.check_dht->setChecked(config.netDhtOk);
|
||||
ui.check_ext->setChecked(config.netExtOk);
|
||||
ui.check_udp->setChecked(config.netUdpOk);
|
||||
ui.check_tcp->setChecked(config.netTcpOk);
|
||||
|
||||
if (config.netExtOk)
|
||||
{
|
||||
if (config.netUpnpOk || config.netTcpOk)
|
||||
{
|
||||
ui.radio_netServer->setChecked(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.radio_netUdp->setChecked(true);
|
||||
}
|
||||
}
|
||||
else if (config.netOk)
|
||||
{
|
||||
ui.radio_netLimited->setChecked(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.radio_nonet->setChecked(true);
|
||||
}*/
|
||||
|
||||
rsiface->unlockData(); /* UnLock Interface */
|
||||
}
|
||||
|
||||
|
@ -183,33 +183,6 @@
|
||||
<item row="0" column="0">
|
||||
<layout class="QGridLayout">
|
||||
<item row="0" column="0">
|
||||
<layout class="QGridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="iconlabel_nonet">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16</width>
|
||||
<height>16</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap resource="images.qrc">:/images/ledoff1.png</pixmap>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLabel" name="textlabel_nonet">
|
||||
<property name="text">
|
||||
<string>No Connectivity</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<layout class="QGridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="iconlabel_netLimited">
|
||||
@ -230,13 +203,13 @@
|
||||
<item row="0" column="1">
|
||||
<widget class="QLabel" name="textlabel_netLimited">
|
||||
<property name="text">
|
||||
<string>Limited</string>
|
||||
<string>Local network</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<item row="1" column="0">
|
||||
<layout class="QGridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="iconlabel_netUdp">
|
||||
@ -257,16 +230,16 @@
|
||||
<item row="0" column="1">
|
||||
<widget class="QLabel" name="textlabel_netUdp">
|
||||
<property name="text">
|
||||
<string>UDP</string>
|
||||
<string>Internet connection</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<item row="2" column="0">
|
||||
<layout class="QGridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="iconlabel_netServer">
|
||||
<widget class="QLabel" name="iconlabel_upnp">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16</width>
|
||||
@ -282,9 +255,9 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLabel" name="textlabel_netServer">
|
||||
<widget class="QLabel" name="textlabel_upnp">
|
||||
<property name="text">
|
||||
<string>RetroShare Server</string>
|
||||
<string>UPnP</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -315,7 +288,7 @@
|
||||
<item row="0" column="1">
|
||||
<widget class="QLabel" name="textlabel_udp">
|
||||
<property name="text">
|
||||
<string>UDP Connections</string>
|
||||
<string>UDP stun external ip address</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -342,7 +315,7 @@
|
||||
<item row="0" column="1">
|
||||
<widget class="QLabel" name="textlabel_ext">
|
||||
<property name="text">
|
||||
<string>Stable External IP Address</string>
|
||||
<string>Stable external IP address</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -369,34 +342,7 @@
|
||||
<item row="0" column="1">
|
||||
<widget class="QLabel" name="textlabel_dht">
|
||||
<property name="text">
|
||||
<string>DHT OK</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<layout class="QGridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="iconlabel_upnp">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16</width>
|
||||
<height>16</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap resource="images.qrc">:/images/ledoff1.png</pixmap>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLabel" name="textlabel_upnp">
|
||||
<property name="text">
|
||||
<string>UPnP Active</string>
|
||||
<string>DHT</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -70,38 +70,38 @@ void NATStatus::getNATStatus()
|
||||
/* now the extra bit .... switch on check boxes */
|
||||
const RsConfig &config = rsiface->getConfig();
|
||||
|
||||
if(config.netUpnpOk)
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/greenled.png"));
|
||||
iconLabel->setToolTip(tr("UPNP is active."));
|
||||
}
|
||||
else
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/yellowled.png"));
|
||||
iconLabel->setToolTip(tr("UPNP NOT FOUND."));
|
||||
}
|
||||
|
||||
if(config.netExtOk)
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/greenled.png"));
|
||||
iconLabel->setToolTip(tr("Stable External IP Address"));
|
||||
}
|
||||
else
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/yellowled.png"));
|
||||
iconLabel->setToolTip(tr("Not Found External Address"));
|
||||
}
|
||||
|
||||
if(config.netUdpOk)
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/greenled.png"));
|
||||
iconLabel->setToolTip(tr("UDP Port is reachable"));
|
||||
}
|
||||
else
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/yellowled.png"));
|
||||
iconLabel->setToolTip(tr("UDP Port is not reachable"));
|
||||
}
|
||||
// if(config.netUpnpOk)
|
||||
// {
|
||||
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/greenled.png"));
|
||||
// iconLabel->setToolTip(tr("UPNP is active."));
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/yellowled.png"));
|
||||
// iconLabel->setToolTip(tr("UPNP NOT FOUND."));
|
||||
// }
|
||||
//
|
||||
// if(config.netExtOk)
|
||||
// {
|
||||
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/greenled.png"));
|
||||
// iconLabel->setToolTip(tr("Stable External IP Address"));
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/yellowled.png"));
|
||||
// iconLabel->setToolTip(tr("Not Found External Address"));
|
||||
// }
|
||||
//
|
||||
// if(config.netUdpOk)
|
||||
// {
|
||||
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/yellowled.png"));
|
||||
// iconLabel->setToolTip(tr("UDP Port is reachable"));
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// iconLabel->setPixmap(QPixmap::QPixmap(":/images/grayled.png"));
|
||||
// iconLabel->setToolTip(tr("UDP Port is not reachable"));
|
||||
// }
|
||||
|
||||
if (config.netExtOk)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user