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

/********************************************************************************
** Form generated from reading UI file 'advancedpref.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_ADVANCEDPREF_H
#define UI_ADVANCEDPREF_H

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

QT_BEGIN_NAMESPACE

class Ui_AdvancedPref
{
public:
    QVBoxLayout *verticalLayout_2;
    QGroupBox *kcfg_diskPrealloc;
    QVBoxLayout *vboxLayout;
    QCheckBox *kcfg_fullDiskPrealloc;
    QGroupBox *groupBox_3;
    QHBoxLayout *hboxLayout;
    QGridLayout *gridLayout;
    QLabel *label_5;
    QSpinBox *kcfg_guiUpdateInterval;
    QLabel *label_6;
    QSpinBox *kcfg_cpuUsage;
    QSpacerItem *spacerItem;
    QGroupBox *groupBox;
    QVBoxLayout *verticalLayout;
    QHBoxLayout *horizontalLayout;
    QGridLayout *gridLayout1;
    QLabel *label;
    QComboBox *kcfg_eta;
    QLabel *label_2;
    QSpinBox *kcfg_previewSizeAudio;
    QLabel *label_3;
    QSpinBox *kcfg_previewSizeVideo;
    QSpacerItem *spacerItem1;
    QCheckBox *kcfg_useQHttpAnnounce;
    QCheckBox *kcfg_lookUpHostnameOfPeers;
    QSpacerItem *spacerItem2;

    void setupUi(QWidget *AdvancedPref)
    {
        if (AdvancedPref->objectName().isEmpty())
            AdvancedPref->setObjectName(QString::fromUtf8("AdvancedPref"));
        AdvancedPref->resize(583, 371);
        verticalLayout_2 = new QVBoxLayout(AdvancedPref);
        verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
        kcfg_diskPrealloc = new QGroupBox(AdvancedPref);
        kcfg_diskPrealloc->setObjectName(QString::fromUtf8("kcfg_diskPrealloc"));
        kcfg_diskPrealloc->setCheckable(true);
        kcfg_diskPrealloc->setChecked(false);
        vboxLayout = new QVBoxLayout(kcfg_diskPrealloc);
        vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
        kcfg_fullDiskPrealloc = new QCheckBox(kcfg_diskPrealloc);
        kcfg_fullDiskPrealloc->setObjectName(QString::fromUtf8("kcfg_fullDiskPrealloc"));

        vboxLayout->addWidget(kcfg_fullDiskPrealloc);


        verticalLayout_2->addWidget(kcfg_diskPrealloc);

        groupBox_3 = new QGroupBox(AdvancedPref);
        groupBox_3->setObjectName(QString::fromUtf8("groupBox_3"));
        hboxLayout = new QHBoxLayout(groupBox_3);
        hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
        gridLayout = new QGridLayout();
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        label_5 = new QLabel(groupBox_3);
        label_5->setObjectName(QString::fromUtf8("label_5"));

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

        kcfg_guiUpdateInterval = new QSpinBox(groupBox_3);
        kcfg_guiUpdateInterval->setObjectName(QString::fromUtf8("kcfg_guiUpdateInterval"));
        kcfg_guiUpdateInterval->setMinimumSize(QSize(100, 0));
        kcfg_guiUpdateInterval->setMinimum(500);
        kcfg_guiUpdateInterval->setMaximum(5000);
        kcfg_guiUpdateInterval->setValue(1000);

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

        label_6 = new QLabel(groupBox_3);
        label_6->setObjectName(QString::fromUtf8("label_6"));

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

        kcfg_cpuUsage = new QSpinBox(groupBox_3);
        kcfg_cpuUsage->setObjectName(QString::fromUtf8("kcfg_cpuUsage"));
        kcfg_cpuUsage->setMinimum(1);
        kcfg_cpuUsage->setMaximum(250);
        kcfg_cpuUsage->setValue(50);

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


        hboxLayout->addLayout(gridLayout);

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

        hboxLayout->addItem(spacerItem);


        verticalLayout_2->addWidget(groupBox_3);

        groupBox = new QGroupBox(AdvancedPref);
        groupBox->setObjectName(QString::fromUtf8("groupBox"));
        verticalLayout = new QVBoxLayout(groupBox);
        verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
        horizontalLayout = new QHBoxLayout();
        horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
        gridLayout1 = new QGridLayout();
        gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
        label = new QLabel(groupBox);
        label->setObjectName(QString::fromUtf8("label"));

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

        kcfg_eta = new QComboBox(groupBox);
        kcfg_eta->setObjectName(QString::fromUtf8("kcfg_eta"));

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

        label_2 = new QLabel(groupBox);
        label_2->setObjectName(QString::fromUtf8("label_2"));

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

        kcfg_previewSizeAudio = new QSpinBox(groupBox);
        kcfg_previewSizeAudio->setObjectName(QString::fromUtf8("kcfg_previewSizeAudio"));
        kcfg_previewSizeAudio->setMinimum(16);
        kcfg_previewSizeAudio->setMaximum(100000000);

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

        label_3 = new QLabel(groupBox);
        label_3->setObjectName(QString::fromUtf8("label_3"));

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

        kcfg_previewSizeVideo = new QSpinBox(groupBox);
        kcfg_previewSizeVideo->setObjectName(QString::fromUtf8("kcfg_previewSizeVideo"));
        kcfg_previewSizeVideo->setMinimum(16);
        kcfg_previewSizeVideo->setMaximum(100000000);

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


        horizontalLayout->addLayout(gridLayout1);

        spacerItem1 = new QSpacerItem(111, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);

        horizontalLayout->addItem(spacerItem1);


        verticalLayout->addLayout(horizontalLayout);

        kcfg_useQHttpAnnounce = new QCheckBox(groupBox);
        kcfg_useQHttpAnnounce->setObjectName(QString::fromUtf8("kcfg_useQHttpAnnounce"));

        verticalLayout->addWidget(kcfg_useQHttpAnnounce);

        kcfg_lookUpHostnameOfPeers = new QCheckBox(groupBox);
        kcfg_lookUpHostnameOfPeers->setObjectName(QString::fromUtf8("kcfg_lookUpHostnameOfPeers"));

        verticalLayout->addWidget(kcfg_lookUpHostnameOfPeers);


        verticalLayout_2->addWidget(groupBox);

        spacerItem2 = new QSpacerItem(575, 20, QSizePolicy::Minimum, QSizePolicy::Expanding);

        verticalLayout_2->addItem(spacerItem2);


        retranslateUi(AdvancedPref);

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

    void retranslateUi(QWidget *AdvancedPref)
    {
#ifndef UI_QT_NO_TOOLTIP
        kcfg_diskPrealloc->setToolTip(tr2i18n("Whether or not diskspace should be reserved before starting to download a torrent.", 0));
#endif // QT_NO_TOOLTIP
        kcfg_diskPrealloc->setTitle(tr2i18n("Reserve disk space before starting a torrent", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_fullDiskPrealloc->setToolTip(tr2i18n("Instead of doing a quick reservation, do a full reservation. This is slower than the quick way, but avoids fragmentation on the disk.", 0));
#endif // QT_NO_TOOLTIP
        kcfg_fullDiskPrealloc->setText(tr2i18n("Fully reserve disk space (avoids fragmentation)", 0));
        groupBox_3->setTitle(tr2i18n("Performance", 0));
        label_5->setText(tr2i18n("GUI update interval:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_guiUpdateInterval->setToolTip(tr2i18n("<p>The interval in milliseconds between GUI updates.</p>\n"
"<p><span style=\" font-weight:600;\">Note: </span>Increasing this will decrease CPU usage.</p>", 0));
#endif // QT_NO_TOOLTIP
        kcfg_guiUpdateInterval->setSuffix(tr2i18n(" ms", 0));
        label_6->setText(tr2i18n("Network sleep interval:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_cpuUsage->setToolTip(tr2i18n("<p>Amount of time the network threads will sleep when they are speed limited. This has absolutely no effect when there are no speed limits.</p>\n"
"<p><span style=\" font-weight:600;\">Note:</span> The lower this is the more CPU is used. Setting it high can lead to lower speeds in high bandwith situations. </p>\n"
"<p>For example on an 100 Mbit LAN, if you set a limit of 3000 KiB/s, you might not actually reach this speed when this value is too high. Without a limit you can easily get above 3000 KiB/s on a LAN.</p>", 0));
#endif // QT_NO_TOOLTIP
        kcfg_cpuUsage->setSuffix(tr2i18n(" ms", 0));
        groupBox->setTitle(tr2i18n("Miscellaneous", 0));
        label->setText(tr2i18n("Time estimation algorithm:", 0));
        kcfg_eta->clear();
        kcfg_eta->insertItems(0, QStringList()
         << tr2i18n("KTorrent", 0)
         << tr2i18n("Current speed", 0)
         << tr2i18n("Average speed", 0)
         << tr2i18n("Window of X", 0)
         << tr2i18n("Moving average", 0)
        );
#ifndef UI_QT_NO_TOOLTIP
        kcfg_eta->setToolTip(tr2i18n("<p>Select which algorithm to use for estimating the time left :</p>\n"
"<p><span style=\" font-weight:600;\">KTorrent:</span> Mix of other algorithms, we use the one which fits best in the current situation.</p>\n"
"<p><span style=\" font-weight:600;\">Current speed:</span> Bytes left to download / current speed</p>\n"
"<p><span style=\" font-weight:600;\">Average speed: </span>Bytes left to download / average speed</p>\n"
"<p><span style=\" font-weight:600;\">Window of X:</span> Average of the last X samples (X = 20)</p>\n"
"<p><span style=\" font-weight:600;\">Moving average:</span>  Moving average of the last 20 samples</p>", 0));
#endif // QT_NO_TOOLTIP
        label_2->setText(tr2i18n("Preview size for audio files:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_previewSizeAudio->setToolTip(tr2i18n("<p>The amount of data at the beginning and end of an audio file, which will be prioritized for previewing.</p>", 0));
#endif // QT_NO_TOOLTIP
        kcfg_previewSizeAudio->setSuffix(tr2i18n(" KiB", 0));
        label_3->setText(tr2i18n("Preview size for video files:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_previewSizeVideo->setToolTip(tr2i18n("<p>The amount of data at the beginning and end of a video file, which will be prioritized for previewing.</p>", 0));
#endif // QT_NO_TOOLTIP
        kcfg_previewSizeVideo->setSuffix(tr2i18n(" KiB", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_useQHttpAnnounce->setToolTip(tr2i18n("Disables the use of KDE's KIO library for tracker announces.\n"
"\n"
"This is experimental and should only be used if you are getting a lot of connection to host broken errors.", 0));
#endif // QT_NO_TOOLTIP
        kcfg_useQHttpAnnounce->setText(tr2i18n("Do not use KIO for tracker announces", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_lookUpHostnameOfPeers->setToolTip(tr2i18n("Resolve the hostname of each peer. This will result in the hostname of a peer being displayed instead of the IP address. \n"
"\n"
"It can be disabled if you do not like the additional network traffic it generates", 0));
#endif // QT_NO_TOOLTIP
        kcfg_lookUpHostnameOfPeers->setText(tr2i18n("Resolve hostnames of peers", 0));
        Q_UNUSED(AdvancedPref);
    } // retranslateUi

};

namespace Ui {
    class AdvancedPref: public Ui_AdvancedPref {};
} // namespace Ui

QT_END_NAMESPACE

#endif // ADVANCEDPREF_H

