#include <klocalizedstring.h>

/********************************************************************************
** Form generated from reading UI file 'cachepolicypage.ui'
**
** Created by: Qt User Interface Compiler version 5.9.4
**
** 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 <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QRadioButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QStackedWidget>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
#include "keditlistwidget.h"

QT_BEGIN_NAMESPACE

class Ui_CachePolicyPage
{
public:
    QVBoxLayout *verticalLayout_3;
    QCheckBox *inherit;
    QCheckBox *syncOnDemand;
    QHBoxLayout *horizontalLayout_3;
    QLabel *label_2;
    QSpinBox *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;
    QSpinBox *localCacheTimeout;
    QSpacerItem *verticalSpacer;

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

        verticalLayout_3->addWidget(inherit);

        syncOnDemand = new QCheckBox(CachePolicyPage);
        syncOnDemand->setObjectName(QStringLiteral("syncOnDemand"));

        verticalLayout_3->addWidget(syncOnDemand);

        horizontalLayout_3 = new QHBoxLayout();
        horizontalLayout_3->setObjectName(QStringLiteral("horizontalLayout_3"));
        label_2 = new QLabel(CachePolicyPage);
        label_2->setObjectName(QStringLiteral("label_2"));

        horizontalLayout_3->addWidget(label_2);

        checkInterval = new QSpinBox(CachePolicyPage);
        checkInterval->setObjectName(QStringLiteral("checkInterval"));
        checkInterval->setMinimum(0);
        checkInterval->setMaximum(9999);
        checkInterval->setValue(0);

        horizontalLayout_3->addWidget(checkInterval);


        verticalLayout_3->addLayout(horizontalLayout_3);

        stackedWidget = new QStackedWidget(CachePolicyPage);
        stackedWidget->setObjectName(QStringLiteral("stackedWidget"));
        rawPage = new QWidget();
        rawPage->setObjectName(QStringLiteral("rawPage"));
        horizontalLayout = new QHBoxLayout(rawPage);
        horizontalLayout->setObjectName(QStringLiteral("horizontalLayout"));
        horizontalLayout->setContentsMargins(0, 0, 0, 0);
        groupBox_2 = new QGroupBox(rawPage);
        groupBox_2->setObjectName(QStringLiteral("groupBox_2"));
        gridLayout = new QGridLayout(groupBox_2);
        gridLayout->setObjectName(QStringLiteral("gridLayout"));
        localParts = new KEditListWidget(groupBox_2);
        localParts->setObjectName(QStringLiteral("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(QStringLiteral("endUserPage"));
        verticalLayout_2 = new QVBoxLayout(endUserPage);
        verticalLayout_2->setObjectName(QStringLiteral("verticalLayout_2"));
        verticalLayout_2->setContentsMargins(0, 0, 0, 0);
        retrievalOptionsGroupBox = new QGroupBox(endUserPage);
        retrievalOptionsGroupBox->setObjectName(QStringLiteral("retrievalOptionsGroupBox"));
        verticalLayout = new QVBoxLayout(retrievalOptionsGroupBox);
        verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
        retrieveFullMessages = new QRadioButton(retrievalOptionsGroupBox);
        retrieveFullMessages->setObjectName(QStringLiteral("retrieveFullMessages"));
        retrieveFullMessages->setChecked(true);

        verticalLayout->addWidget(retrieveFullMessages);

        retrieveOnlyHeaders = new QRadioButton(retrievalOptionsGroupBox);
        retrieveOnlyHeaders->setObjectName(QStringLiteral("retrieveOnlyHeaders"));

        verticalLayout->addWidget(retrieveOnlyHeaders);

        horizontalLayout_2 = new QHBoxLayout();
        horizontalLayout_2->setObjectName(QStringLiteral("horizontalLayout_2"));
        label = new QLabel(retrievalOptionsGroupBox);
        label->setObjectName(QStringLiteral("label"));

        horizontalLayout_2->addWidget(label);

        localCacheTimeout = new QSpinBox(retrievalOptionsGroupBox);
        localCacheTimeout->setObjectName(QStringLiteral("localCacheTimeout"));
        localCacheTimeout->setMinimum(0);
        localCacheTimeout->setValue(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", Q_NULLPTR));
        syncOnDemand->setText(tr2i18n("Synchronize when selecting this folder", Q_NULLPTR));
        label_2->setText(tr2i18n("Automatically synchronize after:", Q_NULLPTR));
        checkInterval->setSpecialValueText(tr2i18n("Never", "never check the cache"));
        checkInterval->setSuffix(tr2i18n("minutes", Q_NULLPTR));
        groupBox_2->setTitle(tr2i18n("Locally Cached Parts", Q_NULLPTR));
        localParts->setProperty("title", QVariant(tr2i18n("Locally Cached Parts", Q_NULLPTR)));
        retrievalOptionsGroupBox->setTitle(tr2i18n("Retrieval Options", Q_NULLPTR));
        retrieveFullMessages->setText(tr2i18n("Always retrieve full &messages", Q_NULLPTR));
        retrieveOnlyHeaders->setText(tr2i18n("&Retrieve message bodies on demand", Q_NULLPTR));
        label->setText(tr2i18n("Keep message bodies locally for:", Q_NULLPTR));
        localCacheTimeout->setSpecialValueText(tr2i18n("Forever", "no cache timeout"));
        localCacheTimeout->setSuffix(tr2i18n("minutes", Q_NULLPTR));
        Q_UNUSED(CachePolicyPage);
    } // retranslateUi

};

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

QT_END_NAMESPACE

#endif // CACHEPOLICYPAGE_H

