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

/********************************************************************************
** Form generated from reading UI file 'grouppolicydlg.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_GROUPPOLICYDLG_H
#define UI_GROUPPOLICYDLG_H

#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QCheckBox>
#include <QtGui/QDoubleSpinBox>
#include <QtGui/QFrame>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QSpinBox>
#include <QtGui/QVBoxLayout>
#include <QtGui/QWidget>
#include "kurlrequester.h"

QT_BEGIN_NAMESPACE

class Ui_GroupPolicyDlg
{
public:
    QVBoxLayout *verticalLayout;
    QCheckBox *m_default_location_enabled;
    KUrlRequester *m_default_location;
    QCheckBox *m_default_move_on_completion_enabled;
    KUrlRequester *m_default_move_on_completion_location;
    QGroupBox *groupBox;
    QVBoxLayout *vboxLayout;
    QGridLayout *gridLayout;
    QLabel *label;
    QSpinBox *m_max_download_rate;
    QLabel *label_2;
    QSpinBox *m_max_upload_rate;
    QLabel *label_3;
    QDoubleSpinBox *m_max_seed_time;
    QLabel *label_4;
    QDoubleSpinBox *m_max_share_ratio;
    QCheckBox *m_only_new;
    QFrame *line;

    void setupUi(QWidget *GroupPolicyDlg)
    {
        if (GroupPolicyDlg->objectName().isEmpty())
            GroupPolicyDlg->setObjectName(QString::fromUtf8("GroupPolicyDlg"));
        GroupPolicyDlg->resize(446, 307);
        verticalLayout = new QVBoxLayout(GroupPolicyDlg);
        verticalLayout->setContentsMargins(0, 0, 0, 0);
        verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
        m_default_location_enabled = new QCheckBox(GroupPolicyDlg);
        m_default_location_enabled->setObjectName(QString::fromUtf8("m_default_location_enabled"));

        verticalLayout->addWidget(m_default_location_enabled);

        m_default_location = new KUrlRequester(GroupPolicyDlg);
        m_default_location->setObjectName(QString::fromUtf8("m_default_location"));

        verticalLayout->addWidget(m_default_location);

        m_default_move_on_completion_enabled = new QCheckBox(GroupPolicyDlg);
        m_default_move_on_completion_enabled->setObjectName(QString::fromUtf8("m_default_move_on_completion_enabled"));

        verticalLayout->addWidget(m_default_move_on_completion_enabled);

        m_default_move_on_completion_location = new KUrlRequester(GroupPolicyDlg);
        m_default_move_on_completion_location->setObjectName(QString::fromUtf8("m_default_move_on_completion_location"));

        verticalLayout->addWidget(m_default_move_on_completion_location);

        groupBox = new QGroupBox(GroupPolicyDlg);
        groupBox->setObjectName(QString::fromUtf8("groupBox"));
        vboxLayout = new QVBoxLayout(groupBox);
        vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
        gridLayout = new QGridLayout();
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        label = new QLabel(groupBox);
        label->setObjectName(QString::fromUtf8("label"));

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

        m_max_download_rate = new QSpinBox(groupBox);
        m_max_download_rate->setObjectName(QString::fromUtf8("m_max_download_rate"));
        m_max_download_rate->setMaximum(10000000);

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

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

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

        m_max_upload_rate = new QSpinBox(groupBox);
        m_max_upload_rate->setObjectName(QString::fromUtf8("m_max_upload_rate"));
        m_max_upload_rate->setMaximum(10000000);

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

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

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

        m_max_seed_time = new QDoubleSpinBox(groupBox);
        m_max_seed_time->setObjectName(QString::fromUtf8("m_max_seed_time"));
        m_max_seed_time->setMaximum(1e+07);
        m_max_seed_time->setSingleStep(0.01);

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

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

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

        m_max_share_ratio = new QDoubleSpinBox(groupBox);
        m_max_share_ratio->setObjectName(QString::fromUtf8("m_max_share_ratio"));
        m_max_share_ratio->setMaximum(1e+07);
        m_max_share_ratio->setSingleStep(0.01);

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


        vboxLayout->addLayout(gridLayout);

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

        vboxLayout->addWidget(m_only_new);


        verticalLayout->addWidget(groupBox);

        line = new QFrame(GroupPolicyDlg);
        line->setObjectName(QString::fromUtf8("line"));
        line->setFrameShape(QFrame::HLine);
        line->setFrameShadow(QFrame::Sunken);

        verticalLayout->addWidget(line);


        retranslateUi(GroupPolicyDlg);
        QObject::connect(m_default_location_enabled, SIGNAL(toggled(bool)), m_default_location, SLOT(setEnabled(bool)));
        QObject::connect(m_default_move_on_completion_enabled, SIGNAL(toggled(bool)), m_default_move_on_completion_location, SLOT(setEnabled(bool)));

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

    void retranslateUi(QWidget *GroupPolicyDlg)
    {
        GroupPolicyDlg->setWindowTitle(tr2i18n("Dialog", 0));
#ifndef UI_QT_NO_TOOLTIP
        m_default_location_enabled->setToolTip(tr2i18n("Default save location for torrents from this group. <br/><br/>This is only used in the file selection dialog, when you change the group, the download location in the dialog will be set to this. You can still override it, if you want to.", 0));
#endif // QT_NO_TOOLTIP
        m_default_location_enabled->setText(tr2i18n("Default save location:", 0));
#ifndef UI_QT_NO_TOOLTIP
        m_default_location->setToolTip(tr2i18n("Default save location for torrents from this group. <br/><br/>This is only used in the file selection dialog, when you change the group, the download location in the dialog will be set to this. You can still override it, if you want to.", 0));
#endif // QT_NO_TOOLTIP
        m_default_move_on_completion_enabled->setText(tr2i18n("Default move when completed location:", 0));
#ifndef UI_QT_NO_TOOLTIP
        m_default_move_on_completion_location->setToolTip(tr2i18n("Default move on completion location for torrents from this group. <br/><br/>This is only used in the file selection dialog, when you change the group, the move when completed location in the dialog will be set to this. You can still override it, if you want to.", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_TOOLTIP
        groupBox->setToolTip(tr2i18n("Default settings for torrents which are added to the group.", 0));
#endif // QT_NO_TOOLTIP
        groupBox->setTitle(tr2i18n("Torrent Limits", 0));
        label->setText(tr2i18n("Maximum download rate:", 0));
        m_max_download_rate->setSpecialValueText(tr2i18n("No limit", 0));
        m_max_download_rate->setSuffix(tr2i18n(" KiB/s", 0));
        label_2->setText(tr2i18n("Maximum upload rate:", 0));
        m_max_upload_rate->setSpecialValueText(tr2i18n("No limit", 0));
        m_max_upload_rate->setSuffix(tr2i18n(" KiB/s", 0));
        label_3->setText(tr2i18n("Maximum seed time:", 0));
        m_max_seed_time->setSpecialValueText(tr2i18n("No limit", 0));
        m_max_seed_time->setSuffix(tr2i18n(" Hours", 0));
        label_4->setText(tr2i18n("Maximum share ratio:", 0));
        m_max_share_ratio->setSpecialValueText(tr2i18n("No limit", 0));
#ifndef UI_QT_NO_TOOLTIP
        m_only_new->setToolTip(tr2i18n("When this is enabled, these settings will only be applied when a torrent is added to the group in the file selection dialog or the torrent creation dialog.<p>\n"
"If this is not enabled, the settings will always be applied when you add a torrent to this group. ", 0));
#endif // QT_NO_TOOLTIP
        m_only_new->setText(tr2i18n("Apply settings only for newly opened or created torrents", 0));
    } // retranslateUi

};

namespace Ui {
    class GroupPolicyDlg: public Ui_GroupPolicyDlg {};
} // namespace Ui

QT_END_NAMESPACE

#endif // GROUPPOLICYDLG_H

