#include <klocalizedstring.h>

/********************************************************************************
** Form generated from reading UI file 'networkpref.ui'
**
** Created by: Qt User Interface Compiler version 5.9.4
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/

#ifndef UI_NETWORKPREF_H
#define UI_NETWORKPREF_H

#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>

QT_BEGIN_NAMESPACE

class Ui_NetworkPref
{
public:
    QVBoxLayout *verticalLayout_2;
    QGroupBox *groupBox;
    QGridLayout *gridLayout;
    QLabel *label;
    QSpinBox *kcfg_port;
    QLabel *label_2;
    QSpinBox *kcfg_udpTrackerPort;
    QLabel *label_3;
    QSpinBox *kcfg_maxConnections;
    QLabel *label_4;
    QSpinBox *kcfg_maxTotalConnections;
    QLabel *label_6;
    QSpinBox *kcfg_maxDownloadRate;
    QLabel *label_5;
    QSpinBox *kcfg_maxUploadRate;
    QGroupBox *groupBox_2;
    QVBoxLayout *verticalLayout;
    QGridLayout *gridLayout1;
    QLabel *label_7;
    QSpinBox *kcfg_dscp;
    QLabel *label_8;
    QSpinBox *kcfg_maxConnectingSockets;
    QLabel *label_9;
    QComboBox *combo_networkInterface;
    QCheckBox *kcfg_utpEnabled;
    QCheckBox *kcfg_onlyUseUtp;
    QHBoxLayout *horizontalLayout_2;
    QLabel *label_10;
    QComboBox *kcfg_primaryTransportProtocol;
    QSpacerItem *horizontalSpacer_2;
    QHBoxLayout *horizontalLayout;
    QSpacerItem *horizontalSpacer;
    QPushButton *m_recommended_settings;
    QSpacerItem *spacerItem;

    void setupUi(QWidget *NetworkPref)
    {
        if (NetworkPref->objectName().isEmpty())
            NetworkPref->setObjectName(QStringLiteral("NetworkPref"));
        NetworkPref->resize(501, 495);
        verticalLayout_2 = new QVBoxLayout(NetworkPref);
        verticalLayout_2->setObjectName(QStringLiteral("verticalLayout_2"));
        groupBox = new QGroupBox(NetworkPref);
        groupBox->setObjectName(QStringLiteral("groupBox"));
        gridLayout = new QGridLayout(groupBox);
        gridLayout->setObjectName(QStringLiteral("gridLayout"));
        label = new QLabel(groupBox);
        label->setObjectName(QStringLiteral("label"));

        gridLayout->addWidget(label, 0, 0, 1, 1);

        kcfg_port = new QSpinBox(groupBox);
        kcfg_port->setObjectName(QStringLiteral("kcfg_port"));
        kcfg_port->setMinimum(1);
        kcfg_port->setMaximum(65535);
        kcfg_port->setValue(3000);

        gridLayout->addWidget(kcfg_port, 0, 1, 1, 1);

        label_2 = new QLabel(groupBox);
        label_2->setObjectName(QStringLiteral("label_2"));

        gridLayout->addWidget(label_2, 1, 0, 1, 1);

        kcfg_udpTrackerPort = new QSpinBox(groupBox);
        kcfg_udpTrackerPort->setObjectName(QStringLiteral("kcfg_udpTrackerPort"));
        kcfg_udpTrackerPort->setMinimum(1);
        kcfg_udpTrackerPort->setMaximum(65536);
        kcfg_udpTrackerPort->setValue(4000);

        gridLayout->addWidget(kcfg_udpTrackerPort, 1, 1, 1, 1);

        label_3 = new QLabel(groupBox);
        label_3->setObjectName(QStringLiteral("label_3"));

        gridLayout->addWidget(label_3, 2, 0, 1, 1);

        kcfg_maxConnections = new QSpinBox(groupBox);
        kcfg_maxConnections->setObjectName(QStringLiteral("kcfg_maxConnections"));
        kcfg_maxConnections->setMaximum(99999);

        gridLayout->addWidget(kcfg_maxConnections, 2, 1, 1, 1);

        label_4 = new QLabel(groupBox);
        label_4->setObjectName(QStringLiteral("label_4"));

        gridLayout->addWidget(label_4, 3, 0, 1, 1);

        kcfg_maxTotalConnections = new QSpinBox(groupBox);
        kcfg_maxTotalConnections->setObjectName(QStringLiteral("kcfg_maxTotalConnections"));
        kcfg_maxTotalConnections->setMaximum(99999);

        gridLayout->addWidget(kcfg_maxTotalConnections, 3, 1, 1, 1);

        label_6 = new QLabel(groupBox);
        label_6->setObjectName(QStringLiteral("label_6"));

        gridLayout->addWidget(label_6, 4, 0, 1, 1);

        kcfg_maxDownloadRate = new QSpinBox(groupBox);
        kcfg_maxDownloadRate->setObjectName(QStringLiteral("kcfg_maxDownloadRate"));
        kcfg_maxDownloadRate->setMaximum(6500000);

        gridLayout->addWidget(kcfg_maxDownloadRate, 4, 1, 1, 1);

        label_5 = new QLabel(groupBox);
        label_5->setObjectName(QStringLiteral("label_5"));

        gridLayout->addWidget(label_5, 5, 0, 1, 1);

        kcfg_maxUploadRate = new QSpinBox(groupBox);
        kcfg_maxUploadRate->setObjectName(QStringLiteral("kcfg_maxUploadRate"));
        kcfg_maxUploadRate->setMaximum(6500000);

        gridLayout->addWidget(kcfg_maxUploadRate, 5, 1, 1, 1);


        verticalLayout_2->addWidget(groupBox);

        groupBox_2 = new QGroupBox(NetworkPref);
        groupBox_2->setObjectName(QStringLiteral("groupBox_2"));
        verticalLayout = new QVBoxLayout(groupBox_2);
        verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
        gridLayout1 = new QGridLayout();
        gridLayout1->setObjectName(QStringLiteral("gridLayout1"));
        label_7 = new QLabel(groupBox_2);
        label_7->setObjectName(QStringLiteral("label_7"));

        gridLayout1->addWidget(label_7, 0, 0, 1, 1);

        kcfg_dscp = new QSpinBox(groupBox_2);
        kcfg_dscp->setObjectName(QStringLiteral("kcfg_dscp"));
        kcfg_dscp->setMaximum(63);

        gridLayout1->addWidget(kcfg_dscp, 0, 1, 1, 1);

        label_8 = new QLabel(groupBox_2);
        label_8->setObjectName(QStringLiteral("label_8"));

        gridLayout1->addWidget(label_8, 1, 0, 1, 1);

        kcfg_maxConnectingSockets = new QSpinBox(groupBox_2);
        kcfg_maxConnectingSockets->setObjectName(QStringLiteral("kcfg_maxConnectingSockets"));
        kcfg_maxConnectingSockets->setMinimum(10);
        kcfg_maxConnectingSockets->setMaximum(200);
        kcfg_maxConnectingSockets->setValue(50);

        gridLayout1->addWidget(kcfg_maxConnectingSockets, 1, 1, 1, 1);

        label_9 = new QLabel(groupBox_2);
        label_9->setObjectName(QStringLiteral("label_9"));

        gridLayout1->addWidget(label_9, 2, 0, 1, 1);

        combo_networkInterface = new QComboBox(groupBox_2);
        combo_networkInterface->setObjectName(QStringLiteral("combo_networkInterface"));
        QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(combo_networkInterface->sizePolicy().hasHeightForWidth());
        combo_networkInterface->setSizePolicy(sizePolicy);

        gridLayout1->addWidget(combo_networkInterface, 2, 1, 1, 1);


        verticalLayout->addLayout(gridLayout1);

        kcfg_utpEnabled = new QCheckBox(groupBox_2);
        kcfg_utpEnabled->setObjectName(QStringLiteral("kcfg_utpEnabled"));

        verticalLayout->addWidget(kcfg_utpEnabled);

        kcfg_onlyUseUtp = new QCheckBox(groupBox_2);
        kcfg_onlyUseUtp->setObjectName(QStringLiteral("kcfg_onlyUseUtp"));

        verticalLayout->addWidget(kcfg_onlyUseUtp);

        horizontalLayout_2 = new QHBoxLayout();
        horizontalLayout_2->setObjectName(QStringLiteral("horizontalLayout_2"));
        label_10 = new QLabel(groupBox_2);
        label_10->setObjectName(QStringLiteral("label_10"));

        horizontalLayout_2->addWidget(label_10);

        kcfg_primaryTransportProtocol = new QComboBox(groupBox_2);
        kcfg_primaryTransportProtocol->setObjectName(QStringLiteral("kcfg_primaryTransportProtocol"));

        horizontalLayout_2->addWidget(kcfg_primaryTransportProtocol);

        horizontalSpacer_2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);

        horizontalLayout_2->addItem(horizontalSpacer_2);


        verticalLayout->addLayout(horizontalLayout_2);


        verticalLayout_2->addWidget(groupBox_2);

        horizontalLayout = new QHBoxLayout();
        horizontalLayout->setObjectName(QStringLiteral("horizontalLayout"));
        horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);

        horizontalLayout->addItem(horizontalSpacer);

        m_recommended_settings = new QPushButton(NetworkPref);
        m_recommended_settings->setObjectName(QStringLiteral("m_recommended_settings"));

        horizontalLayout->addWidget(m_recommended_settings);


        verticalLayout_2->addLayout(horizontalLayout);

        spacerItem = new QSpacerItem(493, 41, QSizePolicy::Minimum, QSizePolicy::Expanding);

        verticalLayout_2->addItem(spacerItem);


        retranslateUi(NetworkPref);

        QMetaObject::connectSlotsByName(NetworkPref);
    } // setupUi

    void retranslateUi(QWidget *NetworkPref)
    {
        groupBox->setTitle(tr2i18n("Ports && Limits", Q_NULLPTR));
        label->setText(tr2i18n("Port:", Q_NULLPTR));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_port->setToolTip(tr2i18n("<p>Port used for the bittorrent protocol.</p>\n"
"<p><span style=\" font-weight:600;\">Attention:</span> If you are behind a router, this port needs to be forwarded to accept incoming connections. The UPnP plugin can do this for you.</p>", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
        label_2->setText(tr2i18n("UDP tracker port:", Q_NULLPTR));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_udpTrackerPort->setToolTip(tr2i18n("<p>Port used for the UDP tracker protocol.</p>\n"
"<p><span style=\" font-weight:600;\">Attention:</span> If you are behind a router, this port needs to be forwarded. The UPnP plugin can do this for you.</p>", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
        label_3->setText(tr2i18n("Maximum connections per torrent:", Q_NULLPTR));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_maxConnections->setToolTip(tr2i18n("The maximum number of connections allowed per torrent.", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
        kcfg_maxConnections->setSpecialValueText(tr2i18n("No limit", Q_NULLPTR));
        label_4->setText(tr2i18n("Global connection limit:", Q_NULLPTR));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_maxTotalConnections->setToolTip(tr2i18n("The global connection limit for all torrents combined.", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
        kcfg_maxTotalConnections->setSpecialValueText(tr2i18n("No limit", Q_NULLPTR));
        label_6->setText(tr2i18n("Maximum download speed:", Q_NULLPTR));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_maxDownloadRate->setToolTip(tr2i18n("The maximum download speed in KiB/s.", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
        kcfg_maxDownloadRate->setSpecialValueText(tr2i18n("No limit", Q_NULLPTR));
        kcfg_maxDownloadRate->setSuffix(tr2i18n(" KiB/s", Q_NULLPTR));
        label_5->setText(tr2i18n("Maximum upload speed:", Q_NULLPTR));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_maxUploadRate->setToolTip(tr2i18n("The maximum upload speed in KiB/s", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
        kcfg_maxUploadRate->setSpecialValueText(tr2i18n("No limit", Q_NULLPTR));
        kcfg_maxUploadRate->setSuffix(tr2i18n(" KiB/s", Q_NULLPTR));
        groupBox_2->setTitle(tr2i18n("Advanced", Q_NULLPTR));
        label_7->setText(tr2i18n("DSCP value for IP packets:", Q_NULLPTR));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_dscp->setToolTip(tr2i18n("This value will be filled in the DSCP field of all the IP packets sent for the bittorrent protocol.", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
        label_8->setText(tr2i18n("Maximum number of connection setups:", Q_NULLPTR));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_maxConnectingSockets->setToolTip(tr2i18n("<p>The maximum number of outgoing connections ktorrent will try to setup simultaneously.</p>\n"
"<p>If you are having trouble with ktorrent blocking other internet traffic, try setting this number a bit lower.</p>", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
        label_9->setText(tr2i18n("Network interface:", Q_NULLPTR));
#ifndef UI_QT_NO_TOOLTIP
        combo_networkInterface->setToolTip(tr2i18n("<p>Which network interface to listen on for incoming connections.</p>\n"
"<p><span style=\"font-weight:600;\">Note: </span>Requires a restart to take effect.</p>", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_TOOLTIP
        kcfg_utpEnabled->setToolTip(tr2i18n("The \302\265Torrent transport protocol runs over UDP and is optimized to not interfere with other traffic, while still using up all unused bandwidth.", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
        kcfg_utpEnabled->setText(tr2i18n("Use the \302\265Torrent transport protocol (\302\265TP)", Q_NULLPTR));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_onlyUseUtp->setToolTip(tr2i18n("Don't use TCP for bittorrent connections, only use the \302\265TP protocol. This can lead to slower speeds, seeing that not all bittorrent clients support \302\265TP.", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
        kcfg_onlyUseUtp->setText(tr2i18n("Only use \302\265TP", Q_NULLPTR));
        label_10->setText(tr2i18n("Primary transport protocol:", Q_NULLPTR));
        kcfg_primaryTransportProtocol->clear();
        kcfg_primaryTransportProtocol->insertItems(0, QStringList()
         << tr2i18n("TCP", Q_NULLPTR)
         << tr2i18n("\302\265TP", Q_NULLPTR)
        );
#ifndef UI_QT_NO_TOOLTIP
        kcfg_primaryTransportProtocol->setToolTip(tr2i18n("The primary transport protocol to use, when attempting to setup a connection with a peer, this protocol is chosen first.", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_TOOLTIP
        m_recommended_settings->setToolTip(tr2i18n("Let KTorrent calculate the recommended settings based upon the bandwidth you have available.", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
        m_recommended_settings->setText(tr2i18n("Recommended Settings...", Q_NULLPTR));
        Q_UNUSED(NetworkPref);
    } // retranslateUi

};

namespace Ui {
    class NetworkPref: public Ui_NetworkPref {};
} // namespace Ui

QT_END_NAMESPACE

#endif // NETWORKPREF_H

