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

/********************************************************************************
** Form generated from reading UI file 'edititemdlg.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_EDITITEMDLG_H
#define UI_EDITITEMDLG_H

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

QT_BEGIN_NAMESPACE

class Ui_EditItemDlg
{
public:
    QVBoxLayout *verticalLayout_3;
    QGroupBox *groupBox_2;
    QHBoxLayout *horizontalLayout_2;
    QHBoxLayout *hboxLayout;
    QLabel *label_3;
    QTimeEdit *m_from;
    QLabel *label_4;
    QTimeEdit *m_to;
    QHBoxLayout *horizontalLayout;
    QLabel *label_5;
    QComboBox *m_start_day;
    QLabel *label_10;
    QComboBox *m_end_day;
    QSpacerItem *horizontalSpacer;
    QHBoxLayout *horizontalLayout_3;
    QGroupBox *groupBox;
    QVBoxLayout *verticalLayout_2;
    QCheckBox *m_suspended;
    QGridLayout *gridLayout;
    QLabel *label;
    QSpinBox *m_download_limit;
    QLabel *label_2;
    QSpinBox *m_upload_limit;
    QCheckBox *m_screensaver_limits;
    QGridLayout *_2;
    QLabel *label_8;
    QSpinBox *m_ss_download_limit;
    QLabel *label_9;
    QSpinBox *m_ss_upload_limit;
    QGroupBox *groupBox_3;
    QVBoxLayout *verticalLayout;
    QCheckBox *m_set_connection_limits;
    QGridLayout *gridLayout1;
    QLabel *label_7;
    QSpinBox *m_max_conn_per_torrent;
    QLabel *label_6;
    QSpinBox *m_max_conn_global;
    QSpacerItem *verticalSpacer;
    QFrame *line;

    void setupUi(QWidget *EditItemDlg)
    {
        if (EditItemDlg->objectName().isEmpty())
            EditItemDlg->setObjectName(QString::fromUtf8("EditItemDlg"));
        EditItemDlg->resize(706, 279);
        verticalLayout_3 = new QVBoxLayout(EditItemDlg);
        verticalLayout_3->setContentsMargins(0, 0, 0, 0);
        verticalLayout_3->setObjectName(QString::fromUtf8("verticalLayout_3"));
        groupBox_2 = new QGroupBox(EditItemDlg);
        groupBox_2->setObjectName(QString::fromUtf8("groupBox_2"));
        horizontalLayout_2 = new QHBoxLayout(groupBox_2);
        horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
        hboxLayout = new QHBoxLayout();
        hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
        label_3 = new QLabel(groupBox_2);
        label_3->setObjectName(QString::fromUtf8("label_3"));

        hboxLayout->addWidget(label_3);

        m_from = new QTimeEdit(groupBox_2);
        m_from->setObjectName(QString::fromUtf8("m_from"));

        hboxLayout->addWidget(m_from);

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

        hboxLayout->addWidget(label_4);

        m_to = new QTimeEdit(groupBox_2);
        m_to->setObjectName(QString::fromUtf8("m_to"));

        hboxLayout->addWidget(m_to);


        horizontalLayout_2->addLayout(hboxLayout);

        horizontalLayout = new QHBoxLayout();
        horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
        label_5 = new QLabel(groupBox_2);
        label_5->setObjectName(QString::fromUtf8("label_5"));

        horizontalLayout->addWidget(label_5);

        m_start_day = new QComboBox(groupBox_2);
        m_start_day->setObjectName(QString::fromUtf8("m_start_day"));

        horizontalLayout->addWidget(m_start_day);

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

        horizontalLayout->addWidget(label_10);

        m_end_day = new QComboBox(groupBox_2);
        m_end_day->setObjectName(QString::fromUtf8("m_end_day"));

        horizontalLayout->addWidget(m_end_day);


        horizontalLayout_2->addLayout(horizontalLayout);

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

        horizontalLayout_2->addItem(horizontalSpacer);


        verticalLayout_3->addWidget(groupBox_2);

        horizontalLayout_3 = new QHBoxLayout();
        horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3"));
        groupBox = new QGroupBox(EditItemDlg);
        groupBox->setObjectName(QString::fromUtf8("groupBox"));
        verticalLayout_2 = new QVBoxLayout(groupBox);
        verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
        m_suspended = new QCheckBox(groupBox);
        m_suspended->setObjectName(QString::fromUtf8("m_suspended"));

        verticalLayout_2->addWidget(m_suspended);

        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_download_limit = new QSpinBox(groupBox);
        m_download_limit->setObjectName(QString::fromUtf8("m_download_limit"));
        m_download_limit->setMaximum(10000000);

        gridLayout->addWidget(m_download_limit, 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_upload_limit = new QSpinBox(groupBox);
        m_upload_limit->setObjectName(QString::fromUtf8("m_upload_limit"));
        m_upload_limit->setMaximum(10000000);

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


        verticalLayout_2->addLayout(gridLayout);

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

        verticalLayout_2->addWidget(m_screensaver_limits);

        _2 = new QGridLayout();
        _2->setObjectName(QString::fromUtf8("_2"));
        label_8 = new QLabel(groupBox);
        label_8->setObjectName(QString::fromUtf8("label_8"));

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

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

        _2->addWidget(m_ss_download_limit, 0, 1, 1, 1);

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

        _2->addWidget(label_9, 1, 0, 1, 1);

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

        _2->addWidget(m_ss_upload_limit, 1, 1, 1, 1);


        verticalLayout_2->addLayout(_2);


        horizontalLayout_3->addWidget(groupBox);

        groupBox_3 = new QGroupBox(EditItemDlg);
        groupBox_3->setObjectName(QString::fromUtf8("groupBox_3"));
        verticalLayout = new QVBoxLayout(groupBox_3);
        verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
        m_set_connection_limits = new QCheckBox(groupBox_3);
        m_set_connection_limits->setObjectName(QString::fromUtf8("m_set_connection_limits"));

        verticalLayout->addWidget(m_set_connection_limits);

        gridLayout1 = new QGridLayout();
        gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
        label_7 = new QLabel(groupBox_3);
        label_7->setObjectName(QString::fromUtf8("label_7"));

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

        m_max_conn_per_torrent = new QSpinBox(groupBox_3);
        m_max_conn_per_torrent->setObjectName(QString::fromUtf8("m_max_conn_per_torrent"));
        m_max_conn_per_torrent->setMaximum(99999);

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

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

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

        m_max_conn_global = new QSpinBox(groupBox_3);
        m_max_conn_global->setObjectName(QString::fromUtf8("m_max_conn_global"));
        m_max_conn_global->setMaximum(99999);
        m_max_conn_global->setValue(0);

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


        verticalLayout->addLayout(gridLayout1);

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

        verticalLayout->addItem(verticalSpacer);


        horizontalLayout_3->addWidget(groupBox_3);


        verticalLayout_3->addLayout(horizontalLayout_3);

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

        verticalLayout_3->addWidget(line);


        retranslateUi(EditItemDlg);
        QObject::connect(m_set_connection_limits, SIGNAL(toggled(bool)), m_max_conn_per_torrent, SLOT(setEnabled(bool)));
        QObject::connect(m_set_connection_limits, SIGNAL(toggled(bool)), m_max_conn_global, SLOT(setEnabled(bool)));

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

    void retranslateUi(QWidget *EditItemDlg)
    {
        EditItemDlg->setWindowTitle(tr2i18n("Edit an item", 0));
        groupBox_2->setTitle(tr2i18n("Duration", 0));
        label_3->setText(tr2i18n("From:", 0));
        m_from->setDisplayFormat(tr2i18n("hh:mm", 0));
        label_4->setText(tr2i18n("To:", 0));
        m_to->setDisplayFormat(tr2i18n("hh:mm", 0));
        label_5->setText(tr2i18n("From:", "starting day"));
        label_10->setText(tr2i18n("To:", "ending day"));
        groupBox->setTitle(tr2i18n("Limits", 0));
        m_suspended->setText(tr2i18n("Suspend all running torrents", 0));
        label->setText(tr2i18n("Download limit:", 0));
        m_download_limit->setSpecialValueText(tr2i18n("No limit", 0));
        m_download_limit->setSuffix(tr2i18n(" KiB/s", 0));
        label_2->setText(tr2i18n("Upload limit:", 0));
        m_upload_limit->setSpecialValueText(tr2i18n("No limit", 0));
        m_upload_limit->setSuffix(tr2i18n(" KiB/s", 0));
        m_screensaver_limits->setText(tr2i18n("When screensaver is activated:", 0));
        label_8->setText(tr2i18n("Download limit:", 0));
        m_ss_download_limit->setSpecialValueText(tr2i18n("No limit", 0));
        m_ss_download_limit->setSuffix(tr2i18n(" KiB/s", 0));
        label_9->setText(tr2i18n("Upload limit:", 0));
        m_ss_upload_limit->setSpecialValueText(tr2i18n("No limit", 0));
        m_ss_upload_limit->setSuffix(tr2i18n(" KiB/s", 0));
        groupBox_3->setTitle(tr2i18n("Connection Limits", 0));
        m_set_connection_limits->setText(tr2i18n("Set connection limits", 0));
        label_7->setText(tr2i18n("Maximum connections per torrent:", 0));
        m_max_conn_per_torrent->setSpecialValueText(tr2i18n("No limit", 0));
        label_6->setText(tr2i18n("Global connection limit:", 0));
        m_max_conn_global->setSpecialValueText(tr2i18n("No limit", 0));
    } // retranslateUi

};

namespace Ui {
    class EditItemDlg: public Ui_EditItemDlg {};
} // namespace Ui

QT_END_NAMESPACE

#endif // EDITITEMDLG_H

