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

/********************************************************************************
** Form generated from reading UI file 'qmpref.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_QMPREF_H
#define UI_QMPREF_H

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

QT_BEGIN_NAMESPACE

class Ui_QMPref
{
public:
    QVBoxLayout *verticalLayout;
    QCheckBox *kcfg_manuallyControlTorrents;
    QGroupBox *m_qm_group_box;
    QVBoxLayout *vboxLayout;
    QGridLayout *gridLayout;
    QLabel *label_11;
    KIntSpinBox *kcfg_maxDownloads;
    QLabel *label_10;
    KIntSpinBox *kcfg_maxSeeds;
    QLabel *label_12;
    QComboBox *kcfg_startDownloadsOnLowDiskSpace;
    QLabel *label_13;
    KIntSpinBox *kcfg_minDiskSpace;
    QCheckBox *kcfg_decreasePriorityOfStalledTorrents;
    QHBoxLayout *hboxLayout;
    QLabel *label;
    KIntSpinBox *kcfg_stallTimer;
    QSpacerItem *spacerItem;
    QGroupBox *groupBox_2;
    QGridLayout *gridLayout1;
    QCheckBox *kcfg_keepSeeding;
    QLabel *label_7;
    KIntSpinBox *kcfg_numUploadSlots;
    QLabel *label_8;
    QDoubleSpinBox *kcfg_maxRatio;
    QLabel *label_9;
    QDoubleSpinBox *kcfg_maxSeedTime;
    QLabel *label_2;
    QDoubleSpinBox *kcfg_greenRatio;
    QSpacerItem *spacerItem1;

    void setupUi(QWidget *QMPref)
    {
        if (QMPref->objectName().isEmpty())
            QMPref->setObjectName(QString::fromUtf8("QMPref"));
        QMPref->resize(635, 449);
        verticalLayout = new QVBoxLayout(QMPref);
        verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
        kcfg_manuallyControlTorrents = new QCheckBox(QMPref);
        kcfg_manuallyControlTorrents->setObjectName(QString::fromUtf8("kcfg_manuallyControlTorrents"));

        verticalLayout->addWidget(kcfg_manuallyControlTorrents);

        m_qm_group_box = new QGroupBox(QMPref);
        m_qm_group_box->setObjectName(QString::fromUtf8("m_qm_group_box"));
        vboxLayout = new QVBoxLayout(m_qm_group_box);
        vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
        gridLayout = new QGridLayout();
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        label_11 = new QLabel(m_qm_group_box);
        label_11->setObjectName(QString::fromUtf8("label_11"));

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

        kcfg_maxDownloads = new KIntSpinBox(m_qm_group_box);
        kcfg_maxDownloads->setObjectName(QString::fromUtf8("kcfg_maxDownloads"));
        kcfg_maxDownloads->setMaximum(99999);

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

        label_10 = new QLabel(m_qm_group_box);
        label_10->setObjectName(QString::fromUtf8("label_10"));

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

        kcfg_maxSeeds = new KIntSpinBox(m_qm_group_box);
        kcfg_maxSeeds->setObjectName(QString::fromUtf8("kcfg_maxSeeds"));
        kcfg_maxSeeds->setMaximum(99999);

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

        label_12 = new QLabel(m_qm_group_box);
        label_12->setObjectName(QString::fromUtf8("label_12"));

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

        kcfg_startDownloadsOnLowDiskSpace = new QComboBox(m_qm_group_box);
        kcfg_startDownloadsOnLowDiskSpace->setObjectName(QString::fromUtf8("kcfg_startDownloadsOnLowDiskSpace"));

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

        label_13 = new QLabel(m_qm_group_box);
        label_13->setObjectName(QString::fromUtf8("label_13"));

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

        kcfg_minDiskSpace = new KIntSpinBox(m_qm_group_box);
        kcfg_minDiskSpace->setObjectName(QString::fromUtf8("kcfg_minDiskSpace"));
        kcfg_minDiskSpace->setMinimum(1);
        kcfg_minDiskSpace->setMaximum(999999999);
        kcfg_minDiskSpace->setValue(100);

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


        vboxLayout->addLayout(gridLayout);

        kcfg_decreasePriorityOfStalledTorrents = new QCheckBox(m_qm_group_box);
        kcfg_decreasePriorityOfStalledTorrents->setObjectName(QString::fromUtf8("kcfg_decreasePriorityOfStalledTorrents"));

        vboxLayout->addWidget(kcfg_decreasePriorityOfStalledTorrents);

        hboxLayout = new QHBoxLayout();
        hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
        label = new QLabel(m_qm_group_box);
        label->setObjectName(QString::fromUtf8("label"));

        hboxLayout->addWidget(label);

        kcfg_stallTimer = new KIntSpinBox(m_qm_group_box);
        kcfg_stallTimer->setObjectName(QString::fromUtf8("kcfg_stallTimer"));
        kcfg_stallTimer->setMinimum(1);
        kcfg_stallTimer->setMaximum(1000000);
        kcfg_stallTimer->setBase(10);

        hboxLayout->addWidget(kcfg_stallTimer);

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

        hboxLayout->addItem(spacerItem);


        vboxLayout->addLayout(hboxLayout);


        verticalLayout->addWidget(m_qm_group_box);

        groupBox_2 = new QGroupBox(QMPref);
        groupBox_2->setObjectName(QString::fromUtf8("groupBox_2"));
        gridLayout1 = new QGridLayout(groupBox_2);
        gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
        kcfg_keepSeeding = new QCheckBox(groupBox_2);
        kcfg_keepSeeding->setObjectName(QString::fromUtf8("kcfg_keepSeeding"));

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

        label_7 = new QLabel(groupBox_2);
        label_7->setObjectName(QString::fromUtf8("label_7"));

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

        kcfg_numUploadSlots = new KIntSpinBox(groupBox_2);
        kcfg_numUploadSlots->setObjectName(QString::fromUtf8("kcfg_numUploadSlots"));
        kcfg_numUploadSlots->setMinimum(2);
        kcfg_numUploadSlots->setMaximum(100);
        kcfg_numUploadSlots->setValue(2);

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

        label_8 = new QLabel(groupBox_2);
        label_8->setObjectName(QString::fromUtf8("label_8"));

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

        kcfg_maxRatio = new QDoubleSpinBox(groupBox_2);
        kcfg_maxRatio->setObjectName(QString::fromUtf8("kcfg_maxRatio"));
        kcfg_maxRatio->setSingleStep(0.01);
        kcfg_maxRatio->setValue(1.5);

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

        label_9 = new QLabel(groupBox_2);
        label_9->setObjectName(QString::fromUtf8("label_9"));

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

        kcfg_maxSeedTime = new QDoubleSpinBox(groupBox_2);
        kcfg_maxSeedTime->setObjectName(QString::fromUtf8("kcfg_maxSeedTime"));
        kcfg_maxSeedTime->setMaximum(6.5e+07);
        kcfg_maxSeedTime->setSingleStep(0.05);
        kcfg_maxSeedTime->setValue(0);

        gridLayout1->addWidget(kcfg_maxSeedTime, 3, 2, 1, 1);

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

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

        kcfg_greenRatio = new QDoubleSpinBox(groupBox_2);
        kcfg_greenRatio->setObjectName(QString::fromUtf8("kcfg_greenRatio"));
        kcfg_greenRatio->setSingleStep(0.01);
        kcfg_greenRatio->setValue(1.5);

        gridLayout1->addWidget(kcfg_greenRatio, 4, 2, 1, 1);


        verticalLayout->addWidget(groupBox_2);

        spacerItem1 = new QSpacerItem(547, 31, QSizePolicy::Minimum, QSizePolicy::Expanding);

        verticalLayout->addItem(spacerItem1);


        retranslateUi(QMPref);
        QObject::connect(kcfg_decreasePriorityOfStalledTorrents, SIGNAL(toggled(bool)), kcfg_stallTimer, SLOT(setEnabled(bool)));
        QObject::connect(kcfg_manuallyControlTorrents, SIGNAL(toggled(bool)), kcfg_maxDownloads, SLOT(setDisabled(bool)));
        QObject::connect(kcfg_manuallyControlTorrents, SIGNAL(toggled(bool)), kcfg_maxSeeds, SLOT(setDisabled(bool)));
        QObject::connect(kcfg_manuallyControlTorrents, SIGNAL(toggled(bool)), kcfg_decreasePriorityOfStalledTorrents, SLOT(setDisabled(bool)));

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

    void retranslateUi(QWidget *QMPref)
    {
#ifndef UI_QT_NO_TOOLTIP
        kcfg_manuallyControlTorrents->setToolTip(tr2i18n("When enabled, the queue manager will be totally disabled, allowing you to fully control all torrents manually.", 0));
#endif // QT_NO_TOOLTIP
        kcfg_manuallyControlTorrents->setText(tr2i18n("Control torrents manually", 0));
        m_qm_group_box->setTitle(tr2i18n("Queue Manager", 0));
        label_11->setText(tr2i18n("Maximum downloads:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_maxDownloads->setToolTip(tr2i18n("The maximum number of simultaneous downloads the queue manager will run.", 0));
#endif // QT_NO_TOOLTIP
        kcfg_maxDownloads->setSpecialValueText(tr2i18n("No limit", 0));
        label_10->setText(tr2i18n("Maximum seeds:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_maxSeeds->setToolTip(tr2i18n("The maximum number of simultaneous seeds the queue manager will run.", 0));
#endif // QT_NO_TOOLTIP
        kcfg_maxSeeds->setSpecialValueText(tr2i18n("No limit", 0));
        label_12->setText(tr2i18n("When diskspace is running low:", 0));
        kcfg_startDownloadsOnLowDiskSpace->clear();
        kcfg_startDownloadsOnLowDiskSpace->insertItems(0, QStringList()
         << tr2i18n("Don't start torrents", 0)
         << tr2i18n("Ask if torrents can be started", 0)
         << tr2i18n("Start torrents", 0)
        );
#ifndef UI_QT_NO_TOOLTIP
        kcfg_startDownloadsOnLowDiskSpace->setToolTip(tr2i18n("What to do when the diskspace is running low and the queue manager wants to start a torrent.", 0));
#endif // QT_NO_TOOLTIP
        label_13->setText(tr2i18n("Stop torrents when free disk space is lower than:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_minDiskSpace->setToolTip(tr2i18n("When the free diskspace drops below this value, stop all torrents downloading.", 0));
#endif // QT_NO_TOOLTIP
        kcfg_minDiskSpace->setSuffix(tr2i18n(" MiB", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_decreasePriorityOfStalledTorrents->setToolTip(tr2i18n("<p>With this enabled, the queue manager will decrease the priority of a torrent which has been stalled for too long. </p>\n"
"<p>This will allow the queue manager to run other torrents, when a torrent is doing nothing.</p>", 0));
#endif // QT_NO_TOOLTIP
        kcfg_decreasePriorityOfStalledTorrents->setText(tr2i18n("Decrease priority of torrents which are stalled for too long", 0));
        label->setText(tr2i18n("Stalled timer:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_stallTimer->setToolTip(tr2i18n("<p>Time used for the stall timer. When a torrent is stalled longer than this, its priority will be decreased.</p>", 0));
#endif // QT_NO_TOOLTIP
        groupBox_2->setTitle(tr2i18n("Seeding", "@title:group Options regarging Seeding"));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_keepSeeding->setToolTip(tr2i18n("When a download is finished, continue seeding it. If this is disabled, the torrent will be stopped.", 0));
#endif // QT_NO_TOOLTIP
        kcfg_keepSeeding->setText(tr2i18n("Keep seeding after download is finished", 0));
        label_7->setText(tr2i18n("Number of upload slots:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_numUploadSlots->setToolTip(tr2i18n("The number of upload slots, this determines the number of peers you can upload to simultaneously for one torrent.", 0));
#endif // QT_NO_TOOLTIP
        label_8->setText(tr2i18n("Default maximum share ratio:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_maxRatio->setToolTip(tr2i18n("<p>The maximum share ratio, if this value is reached seeding will be stopped. This is only applied to newly opened torrents, existing torrents will not be affected by changing this.</p>\n"
"<p><span style=\" font-weight:600;\">Attention: </span>This is not used when downloading, only when seeding.</p>", 0));
#endif // QT_NO_TOOLTIP
        kcfg_maxRatio->setSpecialValueText(tr2i18n("No limit", 0));
        label_9->setText(tr2i18n("Default maximum seed time:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_maxSeedTime->setToolTip(tr2i18n("The maximum seed time in hours. Once you reach this time, the torrent will be stopped. This is only applied to newly opened torrents, existing torrents will not be affected by changing this.", 0));
#endif // QT_NO_TOOLTIP
        kcfg_maxSeedTime->setSpecialValueText(tr2i18n("No limit", 0));
#ifndef UI_QT_NO_TOOLTIP
        label_2->setToolTip(tr2i18n("Value at which the share ratio will be displayed with a green color. Lower ratios will be displayed in red.", 0));
#endif // QT_NO_TOOLTIP
        label_2->setText(tr2i18n("Minimum good share ratio:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_greenRatio->setToolTip(tr2i18n("Value at which the share ratio will be displayed with a green color. Lower ratios will be displayed in red.", 0));
#endif // QT_NO_TOOLTIP
        kcfg_greenRatio->setSpecialValueText(tr2i18n("No limit", 0));
        Q_UNUSED(QMPref);
    } // retranslateUi

};

namespace Ui {
    class QMPref: public Ui_QMPref {};
} // namespace Ui

QT_END_NAMESPACE

#endif // QMPREF_H

