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

/********************************************************************************
** Form generated from reading UI file 'ipblockingprefpage.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_IPBLOCKINGPREFPAGE_H
#define UI_IPBLOCKINGPREFPAGE_H

#include <Qt3Support/Q3GroupBox>
#include <Qt3Support/Q3MimeSourceFactory>
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QCheckBox>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QPushButton>
#include <QtGui/QSpacerItem>
#include <QtGui/QVBoxLayout>
#include <QtGui/QWidget>
#include "knuminput.h"
#include "kpushbutton.h"
#include "kurlrequester.h"

QT_BEGIN_NAMESPACE

class Ui_IPBlockingPrefPage
{
public:
    QVBoxLayout *verticalLayout_2;
    Q3GroupBox *groupBox1;
    QVBoxLayout *verticalLayout_3;
    QCheckBox *kcfg_useLevel1;
    QHBoxLayout *hboxLayout;
    QLabel *textLabel1_3;
    KUrlRequester *kcfg_filterURL;
    QHBoxLayout *hboxLayout1;
    QSpacerItem *spacerItem;
    QPushButton *m_download;
    QLabel *textLabel1_2;
    QLabel *m_status;
    QGroupBox *m_auto_update_group_box;
    QVBoxLayout *verticalLayout;
    QHBoxLayout *horizontalLayout;
    QCheckBox *kcfg_autoUpdate;
    KIntSpinBox *kcfg_autoUpdateInterval;
    QGridLayout *gridLayout;
    QLabel *label;
    QLabel *m_last_updated;
    QLabel *label_2;
    QLabel *m_next_update;
    QSpacerItem *spacerItem1;

    void setupUi(QWidget *IPBlockingPrefPage)
    {
        if (IPBlockingPrefPage->objectName().isEmpty())
            IPBlockingPrefPage->setObjectName(QString::fromUtf8("IPBlockingPrefPage"));
        IPBlockingPrefPage->resize(564, 444);
        verticalLayout_2 = new QVBoxLayout(IPBlockingPrefPage);
        verticalLayout_2->setSpacing(6);
        verticalLayout_2->setContentsMargins(11, 11, 11, 11);
        verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
        groupBox1 = new Q3GroupBox(IPBlockingPrefPage);
        groupBox1->setObjectName(QString::fromUtf8("groupBox1"));
        groupBox1->setEnabled(true);
        groupBox1->setColumnLayout(0, Qt::Vertical);
        groupBox1->layout()->setSpacing(6);
        groupBox1->layout()->setContentsMargins(11, 11, 11, 11);
        verticalLayout_3 = new QVBoxLayout();
        QBoxLayout *boxlayout = qobject_cast<QBoxLayout *>(groupBox1->layout());
        if (boxlayout)
            boxlayout->addLayout(verticalLayout_3);
        verticalLayout_3->setAlignment(Qt::AlignTop);
        verticalLayout_3->setObjectName(QString::fromUtf8("verticalLayout_3"));
        kcfg_useLevel1 = new QCheckBox(groupBox1);
        kcfg_useLevel1->setObjectName(QString::fromUtf8("kcfg_useLevel1"));

        verticalLayout_3->addWidget(kcfg_useLevel1);

        hboxLayout = new QHBoxLayout();
        hboxLayout->setSpacing(6);
        hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
        textLabel1_3 = new QLabel(groupBox1);
        textLabel1_3->setObjectName(QString::fromUtf8("textLabel1_3"));
        textLabel1_3->setWordWrap(false);

        hboxLayout->addWidget(textLabel1_3);

        kcfg_filterURL = new KUrlRequester(groupBox1);
        kcfg_filterURL->setObjectName(QString::fromUtf8("kcfg_filterURL"));

        hboxLayout->addWidget(kcfg_filterURL);


        verticalLayout_3->addLayout(hboxLayout);

        hboxLayout1 = new QHBoxLayout();
        hboxLayout1->setSpacing(6);
        hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
        spacerItem = new QSpacerItem(361, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);

        hboxLayout1->addItem(spacerItem);

        m_download = new QPushButton(groupBox1);
        m_download->setObjectName(QString::fromUtf8("m_download"));

        hboxLayout1->addWidget(m_download);


        verticalLayout_3->addLayout(hboxLayout1);

        textLabel1_2 = new QLabel(groupBox1);
        textLabel1_2->setObjectName(QString::fromUtf8("textLabel1_2"));
        textLabel1_2->setWordWrap(false);

        verticalLayout_3->addWidget(textLabel1_2);

        m_status = new QLabel(groupBox1);
        m_status->setObjectName(QString::fromUtf8("m_status"));
        m_status->setWordWrap(false);

        verticalLayout_3->addWidget(m_status);


        verticalLayout_2->addWidget(groupBox1);

        m_auto_update_group_box = new QGroupBox(IPBlockingPrefPage);
        m_auto_update_group_box->setObjectName(QString::fromUtf8("m_auto_update_group_box"));
        verticalLayout = new QVBoxLayout(m_auto_update_group_box);
        verticalLayout->setSpacing(6);
        verticalLayout->setContentsMargins(11, 11, 11, 11);
        verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
        horizontalLayout = new QHBoxLayout();
        horizontalLayout->setSpacing(6);
        horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
        kcfg_autoUpdate = new QCheckBox(m_auto_update_group_box);
        kcfg_autoUpdate->setObjectName(QString::fromUtf8("kcfg_autoUpdate"));

        horizontalLayout->addWidget(kcfg_autoUpdate);

        kcfg_autoUpdateInterval = new KIntSpinBox(m_auto_update_group_box);
        kcfg_autoUpdateInterval->setObjectName(QString::fromUtf8("kcfg_autoUpdateInterval"));
        QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(kcfg_autoUpdateInterval->sizePolicy().hasHeightForWidth());
        kcfg_autoUpdateInterval->setSizePolicy(sizePolicy);
        kcfg_autoUpdateInterval->setMinimumSize(QSize(12, 0));
        kcfg_autoUpdateInterval->setMinimum(1);
        kcfg_autoUpdateInterval->setMaximum(100000);
        kcfg_autoUpdateInterval->setValue(5);

        horizontalLayout->addWidget(kcfg_autoUpdateInterval);


        verticalLayout->addLayout(horizontalLayout);

        gridLayout = new QGridLayout();
        gridLayout->setSpacing(6);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        label = new QLabel(m_auto_update_group_box);
        label->setObjectName(QString::fromUtf8("label"));

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

        m_last_updated = new QLabel(m_auto_update_group_box);
        m_last_updated->setObjectName(QString::fromUtf8("m_last_updated"));
        QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Preferred);
        sizePolicy1.setHorizontalStretch(0);
        sizePolicy1.setVerticalStretch(0);
        sizePolicy1.setHeightForWidth(m_last_updated->sizePolicy().hasHeightForWidth());
        m_last_updated->setSizePolicy(sizePolicy1);

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

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

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

        m_next_update = new QLabel(m_auto_update_group_box);
        m_next_update->setObjectName(QString::fromUtf8("m_next_update"));
        sizePolicy1.setHeightForWidth(m_next_update->sizePolicy().hasHeightForWidth());
        m_next_update->setSizePolicy(sizePolicy1);

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


        verticalLayout->addLayout(gridLayout);


        verticalLayout_2->addWidget(m_auto_update_group_box);

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

        verticalLayout_2->addItem(spacerItem1);


        retranslateUi(IPBlockingPrefPage);
        QObject::connect(kcfg_autoUpdate, SIGNAL(toggled(bool)), kcfg_autoUpdateInterval, SLOT(setEnabled(bool)));
        QObject::connect(kcfg_useLevel1, SIGNAL(toggled(bool)), m_auto_update_group_box, SLOT(setEnabled(bool)));

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

    void retranslateUi(QWidget *IPBlockingPrefPage)
    {
        IPBlockingPrefPage->setWindowTitle(tr2i18n("IPBlocking Preferences", 0));
        groupBox1->setTitle(tr2i18n("PeerGuardian Filter File ", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_useLevel1->setToolTip(tr2i18n("Enable this if you want the IP filter plugin to work.", 0));
#endif // QT_NO_TOOLTIP
        kcfg_useLevel1->setText(tr2i18n("Use PeerGuardian filter", 0));
        kcfg_useLevel1->setShortcut(QString());
        textLabel1_3->setText(tr2i18n("IP filter file:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_filterURL->setToolTip(tr2i18n("Filter file to use, this can be a local file or a remote file.", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_TOOLTIP
        m_download->setToolTip(tr2i18n("Download and convert the IP filter file.", 0));
#endif // QT_NO_TOOLTIP
        m_download->setText(tr2i18n("Dow&nload/Convert", 0));
        textLabel1_2->setText(tr2i18n("Download PeerGuardian filter from bluetack.co.uk or blocklist.org.\n"
"NOTE: ZIP file from bluetack.co.uk is supported.", 0));
        m_status->setText(QString());
        m_auto_update_group_box->setTitle(tr2i18n("Automatic Update", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_autoUpdate->setToolTip(tr2i18n("Enable this if you want to automatically update the filter file.", 0));
#endif // QT_NO_TOOLTIP
        kcfg_autoUpdate->setText(tr2i18n("Update file every:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_autoUpdateInterval->setToolTip(tr2i18n("Update interval in days.", 0));
#endif // QT_NO_TOOLTIP
        label->setText(tr2i18n("Last updated:", 0));
        m_last_updated->setText(tr2i18n("TextLabel", "KDE::DoNotExtract"));
        label_2->setText(tr2i18n("Next update:", 0));
        m_next_update->setText(tr2i18n("TextLabel", "KDE::DoNotExtract"));
    } // retranslateUi

};

namespace Ui {
    class IPBlockingPrefPage: public Ui_IPBlockingPrefPage {};
} // namespace Ui

QT_END_NAMESPACE

#endif // IPBLOCKINGPREFPAGE_H

