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

/********************************************************************************
** Form generated from reading UI file 'cachepolicypage.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_CACHEPOLICYPAGE_H
#define UI_CACHEPOLICYPAGE_H

#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/QRadioButton>
#include <QtGui/QSpacerItem>
#include <QtGui/QStackedWidget>
#include <QtGui/QVBoxLayout>
#include <QtGui/QWidget>
#include "keditlistwidget.h"
#include "knuminput.h"

QT_BEGIN_NAMESPACE

class Ui_CachePolicyPage
{
public:
    QVBoxLayout *verticalLayout_3;
    QCheckBox *inherit;
    QCheckBox *syncOnDemand;
    QHBoxLayout *horizontalLayout_3;
    QLabel *label_2;
    KIntNumInput *checkInterval;
    QStackedWidget *stackedWidget;
    QWidget *rawPage;
    QHBoxLayout *horizontalLayout;
    QGroupBox *groupBox_2;
    QGridLayout *gridLayout;
    KEditListWidget *localParts;
    QWidget *endUserPage;
    QVBoxLayout *verticalLayout_2;
    QGroupBox *retrievalOptionsGroupBox;
    QVBoxLayout *verticalLayout;
    QRadioButton *retrieveFullMessages;
    QRadioButton *retrieveOnlyHeaders;
    QHBoxLayout *horizontalLayout_2;
    QLabel *label;
    KIntNumInput *localCacheTimeout;
    QSpacerItem *verticalSpacer;

    void setupUi(QWidget *CachePolicyPage)
    {
        if (CachePolicyPage->objectName().isEmpty())
            CachePolicyPage->setObjectName(QString::fromUtf8("CachePolicyPage"));
        CachePolicyPage->setEnabled(true);
        CachePolicyPage->resize(602, 461);
        verticalLayout_3 = new QVBoxLayout(CachePolicyPage);
        verticalLayout_3->setObjectName(QString::fromUtf8("verticalLayout_3"));
        inherit = new QCheckBox(CachePolicyPage);
        inherit->setObjectName(QString::fromUtf8("inherit"));
        inherit->setChecked(false);
        inherit->setTristate(false);

        verticalLayout_3->addWidget(inherit);

        syncOnDemand = new QCheckBox(CachePolicyPage);
        syncOnDemand->setObjectName(QString::fromUtf8("syncOnDemand"));

        verticalLayout_3->addWidget(syncOnDemand);

        horizontalLayout_3 = new QHBoxLayout();
        horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3"));
        label_2 = new QLabel(CachePolicyPage);
        label_2->setObjectName(QString::fromUtf8("label_2"));

        horizontalLayout_3->addWidget(label_2);

        checkInterval = new KIntNumInput(CachePolicyPage);
        checkInterval->setObjectName(QString::fromUtf8("checkInterval"));
        checkInterval->setProperty("value", QVariant(-1));
        checkInterval->setProperty("minimum", QVariant(0));

        horizontalLayout_3->addWidget(checkInterval);


        verticalLayout_3->addLayout(horizontalLayout_3);

        stackedWidget = new QStackedWidget(CachePolicyPage);
        stackedWidget->setObjectName(QString::fromUtf8("stackedWidget"));
        rawPage = new QWidget();
        rawPage->setObjectName(QString::fromUtf8("rawPage"));
        horizontalLayout = new QHBoxLayout(rawPage);
        horizontalLayout->setContentsMargins(0, 0, 0, 0);
        horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
        groupBox_2 = new QGroupBox(rawPage);
        groupBox_2->setObjectName(QString::fromUtf8("groupBox_2"));
        gridLayout = new QGridLayout(groupBox_2);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        localParts = new KEditListWidget(groupBox_2);
        localParts->setObjectName(QString::fromUtf8("localParts"));
        localParts->setEnabled(false);
        localParts->setButtons(KEditListWidget::Add|KEditListWidget::Remove);

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


        horizontalLayout->addWidget(groupBox_2);

        stackedWidget->addWidget(rawPage);
        endUserPage = new QWidget();
        endUserPage->setObjectName(QString::fromUtf8("endUserPage"));
        verticalLayout_2 = new QVBoxLayout(endUserPage);
        verticalLayout_2->setContentsMargins(0, 0, 0, 0);
        verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
        retrievalOptionsGroupBox = new QGroupBox(endUserPage);
        retrievalOptionsGroupBox->setObjectName(QString::fromUtf8("retrievalOptionsGroupBox"));
        verticalLayout = new QVBoxLayout(retrievalOptionsGroupBox);
        verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
        retrieveFullMessages = new QRadioButton(retrievalOptionsGroupBox);
        retrieveFullMessages->setObjectName(QString::fromUtf8("retrieveFullMessages"));
        retrieveFullMessages->setChecked(true);

        verticalLayout->addWidget(retrieveFullMessages);

        retrieveOnlyHeaders = new QRadioButton(retrievalOptionsGroupBox);
        retrieveOnlyHeaders->setObjectName(QString::fromUtf8("retrieveOnlyHeaders"));

        verticalLayout->addWidget(retrieveOnlyHeaders);

        horizontalLayout_2 = new QHBoxLayout();
        horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
        label = new QLabel(retrievalOptionsGroupBox);
        label->setObjectName(QString::fromUtf8("label"));

        horizontalLayout_2->addWidget(label);

        localCacheTimeout = new KIntNumInput(retrievalOptionsGroupBox);
        localCacheTimeout->setObjectName(QString::fromUtf8("localCacheTimeout"));
        localCacheTimeout->setProperty("value", QVariant(-1));
        localCacheTimeout->setProperty("minimum", QVariant(0));

        horizontalLayout_2->addWidget(localCacheTimeout);


        verticalLayout->addLayout(horizontalLayout_2);

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

        verticalLayout->addItem(verticalSpacer);


        verticalLayout_2->addWidget(retrievalOptionsGroupBox);

        stackedWidget->addWidget(endUserPage);

        verticalLayout_3->addWidget(stackedWidget);


        retranslateUi(CachePolicyPage);
        QObject::connect(inherit, SIGNAL(toggled(bool)), localParts, SLOT(setDisabled(bool)));
        QObject::connect(retrieveOnlyHeaders, SIGNAL(toggled(bool)), label, SLOT(setEnabled(bool)));
        QObject::connect(retrieveOnlyHeaders, SIGNAL(toggled(bool)), localCacheTimeout, SLOT(setEnabled(bool)));
        QObject::connect(inherit, SIGNAL(toggled(bool)), syncOnDemand, SLOT(setDisabled(bool)));
        QObject::connect(inherit, SIGNAL(toggled(bool)), label_2, SLOT(setDisabled(bool)));
        QObject::connect(inherit, SIGNAL(toggled(bool)), checkInterval, SLOT(setDisabled(bool)));

        stackedWidget->setCurrentIndex(1);


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

    void retranslateUi(QWidget *CachePolicyPage)
    {
        inherit->setText(tr2i18n("Use options from parent folder or account", 0));
        syncOnDemand->setText(tr2i18n("Synchronize when selecting this folder", 0));
        label_2->setText(tr2i18n("Automatically synchronize after:", 0));
        checkInterval->setProperty("suffix", QVariant(tr2i18n("minutes", 0)));
        checkInterval->setProperty("specialValueText", QVariant(tr2i18n("Never", "never check the cache")));
        groupBox_2->setTitle(tr2i18n("Locally Cached Parts", 0));
        localParts->setProperty("title", QVariant(tr2i18n("Locally Cached Parts", 0)));
        retrievalOptionsGroupBox->setTitle(tr2i18n("Retrieval Options", 0));
        retrieveFullMessages->setText(tr2i18n("Always retrieve full messages", 0));
        retrieveOnlyHeaders->setText(tr2i18n("Retrieve message bodies on demand", 0));
        label->setText(tr2i18n("Keep message bodies locally for:", 0));
        localCacheTimeout->setProperty("suffix", QVariant(tr2i18n("minutes", 0)));
        localCacheTimeout->setProperty("specialValueText", QVariant(tr2i18n("Forever", "no cache timeout")));
        Q_UNUSED(CachePolicyPage);
    } // retranslateUi

};

namespace Ui {
    class CachePolicyPage: public Ui_CachePolicyPage {};
} // namespace Ui

QT_END_NAMESPACE

#endif // CACHEPOLICYPAGE_H

