#include <kdialog.h>
#include <klocale.h>

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

#ifndef UI_BTPREF_H
#define UI_BTPREF_H

#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QCheckBox>
#include <QtGui/QGroupBox>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QLineEdit>
#include <QtGui/QSpacerItem>
#include <QtGui/QVBoxLayout>
#include <QtGui/QWidget>
#include "knuminput.h"

QT_BEGIN_NAMESPACE

class Ui_BTPref
{
public:
    QVBoxLayout *verticalLayout_2;
    QGroupBox *dhtGroupBox;
    QVBoxLayout *vboxLayout;
    QCheckBox *kcfg_dhtSupport;
    QHBoxLayout *hboxLayout;
    QLabel *label_4;
    KIntSpinBox *kcfg_dhtPort;
    QCheckBox *kcfg_pexEnabled;
    QCheckBox *kcfg_webseedsEnabled;
    QCheckBox *kcfg_checkWhenFinished;
    QGroupBox *groupBox_4;
    QVBoxLayout *vboxLayout1;
    QCheckBox *kcfg_useEncryption;
    QCheckBox *kcfg_allowUnencryptedConnections;
    QGroupBox *groupBox;
    QVBoxLayout *verticalLayout;
    QCheckBox *kcfg_useCustomIP;
    QHBoxLayout *horizontalLayout;
    QLabel *label;
    QLineEdit *kcfg_customIP;
    QSpacerItem *spacerItem;

    void setupUi(QWidget *BTPref)
    {
        if (BTPref->objectName().isEmpty())
            BTPref->setObjectName(QString::fromUtf8("BTPref"));
        BTPref->resize(628, 477);
        verticalLayout_2 = new QVBoxLayout(BTPref);
        verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
        dhtGroupBox = new QGroupBox(BTPref);
        dhtGroupBox->setObjectName(QString::fromUtf8("dhtGroupBox"));
        vboxLayout = new QVBoxLayout(dhtGroupBox);
        vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
        kcfg_dhtSupport = new QCheckBox(dhtGroupBox);
        kcfg_dhtSupport->setObjectName(QString::fromUtf8("kcfg_dhtSupport"));

        vboxLayout->addWidget(kcfg_dhtSupport);

        hboxLayout = new QHBoxLayout();
        hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
        label_4 = new QLabel(dhtGroupBox);
        label_4->setObjectName(QString::fromUtf8("label_4"));

        hboxLayout->addWidget(label_4);

        kcfg_dhtPort = new KIntSpinBox(dhtGroupBox);
        kcfg_dhtPort->setObjectName(QString::fromUtf8("kcfg_dhtPort"));
        kcfg_dhtPort->setMinimum(1);
        kcfg_dhtPort->setMaximum(65535);
        kcfg_dhtPort->setValue(4444);

        hboxLayout->addWidget(kcfg_dhtPort);


        vboxLayout->addLayout(hboxLayout);

        kcfg_pexEnabled = new QCheckBox(dhtGroupBox);
        kcfg_pexEnabled->setObjectName(QString::fromUtf8("kcfg_pexEnabled"));

        vboxLayout->addWidget(kcfg_pexEnabled);

        kcfg_webseedsEnabled = new QCheckBox(dhtGroupBox);
        kcfg_webseedsEnabled->setObjectName(QString::fromUtf8("kcfg_webseedsEnabled"));

        vboxLayout->addWidget(kcfg_webseedsEnabled);

        kcfg_checkWhenFinished = new QCheckBox(dhtGroupBox);
        kcfg_checkWhenFinished->setObjectName(QString::fromUtf8("kcfg_checkWhenFinished"));

        vboxLayout->addWidget(kcfg_checkWhenFinished);


        verticalLayout_2->addWidget(dhtGroupBox);

        groupBox_4 = new QGroupBox(BTPref);
        groupBox_4->setObjectName(QString::fromUtf8("groupBox_4"));
        vboxLayout1 = new QVBoxLayout(groupBox_4);
        vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1"));
        kcfg_useEncryption = new QCheckBox(groupBox_4);
        kcfg_useEncryption->setObjectName(QString::fromUtf8("kcfg_useEncryption"));

        vboxLayout1->addWidget(kcfg_useEncryption);

        kcfg_allowUnencryptedConnections = new QCheckBox(groupBox_4);
        kcfg_allowUnencryptedConnections->setObjectName(QString::fromUtf8("kcfg_allowUnencryptedConnections"));

        vboxLayout1->addWidget(kcfg_allowUnencryptedConnections);


        verticalLayout_2->addWidget(groupBox_4);

        groupBox = new QGroupBox(BTPref);
        groupBox->setObjectName(QString::fromUtf8("groupBox"));
        verticalLayout = new QVBoxLayout(groupBox);
        verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
        kcfg_useCustomIP = new QCheckBox(groupBox);
        kcfg_useCustomIP->setObjectName(QString::fromUtf8("kcfg_useCustomIP"));

        verticalLayout->addWidget(kcfg_useCustomIP);

        horizontalLayout = new QHBoxLayout();
        horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
        label = new QLabel(groupBox);
        label->setObjectName(QString::fromUtf8("label"));

        horizontalLayout->addWidget(label);

        kcfg_customIP = new QLineEdit(groupBox);
        kcfg_customIP->setObjectName(QString::fromUtf8("kcfg_customIP"));

        horizontalLayout->addWidget(kcfg_customIP);


        verticalLayout->addLayout(horizontalLayout);


        verticalLayout_2->addWidget(groupBox);

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

        verticalLayout_2->addItem(spacerItem);


        retranslateUi(BTPref);
        QObject::connect(kcfg_dhtSupport, SIGNAL(toggled(bool)), kcfg_dhtPort, SLOT(setEnabled(bool)));
        QObject::connect(kcfg_useEncryption, SIGNAL(toggled(bool)), kcfg_allowUnencryptedConnections, SLOT(setEnabled(bool)));
        QObject::connect(kcfg_useCustomIP, SIGNAL(toggled(bool)), kcfg_customIP, SLOT(setEnabled(bool)));

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

    void retranslateUi(QWidget *BTPref)
    {
        dhtGroupBox->setTitle(tr2i18n("Features", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_dhtSupport->setToolTip(tr2i18n("DHT is a trackerless protocol to find peers sharing the same torrents as you do.", 0));
#endif // QT_NO_TOOLTIP
        kcfg_dhtSupport->setText(tr2i18n("Use DHT to get additional peers", 0));
        label_4->setText(tr2i18n("UDP port for DHT communications:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_dhtPort->setToolTip(tr2i18n("<p>UDP port to use for the DHT 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 DHT requests. The UPnP plugin can do this for you.</p>", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_TOOLTIP
        kcfg_pexEnabled->setToolTip(tr2i18n("Whether or not to use \302\265Torrent compatible peer exchange.", 0));
#endif // QT_NO_TOOLTIP
        kcfg_pexEnabled->setText(tr2i18n("Use peer exchange", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_webseedsEnabled->setToolTip(tr2i18n("Enable or disable the use of webseeds when they are present in a torrent.", 0));
#endif // QT_NO_TOOLTIP
        kcfg_webseedsEnabled->setText(tr2i18n("Use webseeds", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_checkWhenFinished->setToolTip(tr2i18n("When a torrent has finished downloading, do a full data check on the torrent.", 0));
#endif // QT_NO_TOOLTIP
        kcfg_checkWhenFinished->setText(tr2i18n("Check data when download is finished", 0));
        groupBox_4->setTitle(tr2i18n("Encryption", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_useEncryption->setToolTip(tr2i18n("<p>Protocol encryption is useful when your ISP is slowing down bittorrent connections. </p>\n"
"<p>The encryption will prevent your bittorrent traffic to be flagged as bittorrent traffic, and so the ISP will not slow it down.</p>", 0));
#endif // QT_NO_TOOLTIP
        kcfg_useEncryption->setText(tr2i18n("Use protocol encryption", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_allowUnencryptedConnections->setToolTip(tr2i18n("Not all clients support encryption, and some people have encryption disabled. If you want to connect to those peers, you need to have this option enabled.", 0));
#endif // QT_NO_TOOLTIP
        kcfg_allowUnencryptedConnections->setText(tr2i18n("Allow unencrypted connections", 0));
        groupBox->setTitle(tr2i18n("Tracker", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_useCustomIP->setToolTip(tr2i18n("Instead of allowing the tracker to determine your IP address, tell the tracker which IP address to use. Use this when you are behind a proxy.", 0));
#endif // QT_NO_TOOLTIP
        kcfg_useCustomIP->setText(tr2i18n("Send the tracker a custom IP address or hostname", 0));
        label->setText(tr2i18n("Custom IP address or hostname:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_customIP->setToolTip(tr2i18n("Custom IP address or hostname to send to the tracker. Hostnames will be resolved at runtime and the resolved IP address will be sent to the tracker.", 0));
#endif // QT_NO_TOOLTIP
        Q_UNUSED(BTPref);
    } // retranslateUi

};

namespace Ui {
    class BTPref: public Ui_BTPref {};
} // namespace Ui

QT_END_NAMESPACE

#endif // BTPREF_H

