#include <klocalizedstring.h>

/********************************************************************************
** Form generated from reading UI file 'cache.ui'
**
** Created by: Qt User Interface Compiler version 5.9.1
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/

#ifndef UI_CACHE_H
#define UI_CACHE_H

#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QRadioButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>

QT_BEGIN_NAMESPACE

class Ui_CacheConfigUI
{
public:
    QGridLayout *gridLayout;
    QCheckBox *cbUseCache;
    QSpacerItem *spacerItem;
    QGroupBox *bgCachePolicy;
    QVBoxLayout *vboxLayout;
    QRadioButton *rbVerifyCache;
    QRadioButton *rbCacheIfPossible;
    QRadioButton *rbOfflineMode;
    QLabel *lbMaxCacheSize;
    QSpinBox *sbMaxCacheSize;
    QPushButton *clearCacheButton;
    QSpacerItem *spacerItem1;
    QSpacerItem *spacerItem2;

    void setupUi(QWidget *CacheConfigUI)
    {
        if (CacheConfigUI->objectName().isEmpty())
            CacheConfigUI->setObjectName(QStringLiteral("CacheConfigUI"));
        CacheConfigUI->resize(349, 234);
        gridLayout = new QGridLayout(CacheConfigUI);
        gridLayout->setObjectName(QStringLiteral("gridLayout"));
        cbUseCache = new QCheckBox(CacheConfigUI);
        cbUseCache->setObjectName(QStringLiteral("cbUseCache"));

        gridLayout->addWidget(cbUseCache, 0, 0, 1, 5);

        spacerItem = new QSpacerItem(16, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);

        gridLayout->addItem(spacerItem, 1, 0, 1, 1);

        bgCachePolicy = new QGroupBox(CacheConfigUI);
        bgCachePolicy->setObjectName(QStringLiteral("bgCachePolicy"));
        bgCachePolicy->setEnabled(false);
        vboxLayout = new QVBoxLayout(bgCachePolicy);
        vboxLayout->setObjectName(QStringLiteral("vboxLayout"));
        rbVerifyCache = new QRadioButton(bgCachePolicy);
        rbVerifyCache->setObjectName(QStringLiteral("rbVerifyCache"));

        vboxLayout->addWidget(rbVerifyCache);

        rbCacheIfPossible = new QRadioButton(bgCachePolicy);
        rbCacheIfPossible->setObjectName(QStringLiteral("rbCacheIfPossible"));

        vboxLayout->addWidget(rbCacheIfPossible);

        rbOfflineMode = new QRadioButton(bgCachePolicy);
        rbOfflineMode->setObjectName(QStringLiteral("rbOfflineMode"));

        vboxLayout->addWidget(rbOfflineMode);


        gridLayout->addWidget(bgCachePolicy, 1, 1, 1, 4);

        lbMaxCacheSize = new QLabel(CacheConfigUI);
        lbMaxCacheSize->setObjectName(QStringLiteral("lbMaxCacheSize"));
        lbMaxCacheSize->setEnabled(false);

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

        sbMaxCacheSize = new QSpinBox(CacheConfigUI);
        sbMaxCacheSize->setObjectName(QStringLiteral("sbMaxCacheSize"));
        sbMaxCacheSize->setEnabled(false);
        sbMaxCacheSize->setMaximum(999999);

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

        clearCacheButton = new QPushButton(CacheConfigUI);
        clearCacheButton->setObjectName(QStringLiteral("clearCacheButton"));
        clearCacheButton->setEnabled(false);

        gridLayout->addWidget(clearCacheButton, 2, 3, 1, 1);

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

        gridLayout->addItem(spacerItem1, 2, 4, 1, 1);

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

        gridLayout->addItem(spacerItem2, 3, 0, 1, 5);

#ifndef UI_QT_NO_SHORTCUT
        lbMaxCacheSize->setBuddy(sbMaxCacheSize);
#endif // QT_NO_SHORTCUT

        retranslateUi(CacheConfigUI);
        QObject::connect(cbUseCache, SIGNAL(toggled(bool)), bgCachePolicy, SLOT(setEnabled(bool)));
        QObject::connect(cbUseCache, SIGNAL(toggled(bool)), lbMaxCacheSize, SLOT(setEnabled(bool)));
        QObject::connect(cbUseCache, SIGNAL(toggled(bool)), sbMaxCacheSize, SLOT(setEnabled(bool)));
        QObject::connect(cbUseCache, SIGNAL(toggled(bool)), clearCacheButton, SLOT(setEnabled(bool)));

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

    void retranslateUi(QWidget *CacheConfigUI)
    {
#ifndef UI_QT_NO_WHATSTHIS
        cbUseCache->setWhatsThis(tr2i18n("Check this box if you want the web pages you visit to be stored on your hard disk for quicker access. The stored pages will only be updated as needed instead of on every visit to that site. This is especially useful if you have a slow connection to the Internet.", Q_NULLPTR));
#endif // QT_NO_WHATSTHIS
        cbUseCache->setText(tr2i18n("&Use cache", Q_NULLPTR));
        bgCachePolicy->setTitle(tr2i18n("Policy", Q_NULLPTR));
#ifndef UI_QT_NO_WHATSTHIS
        rbVerifyCache->setWhatsThis(tr2i18n("Verify whether the cached web page is valid before attempting to fetch the web page again.", Q_NULLPTR));
#endif // QT_NO_WHATSTHIS
        rbVerifyCache->setText(tr2i18n("&Keep cache in sync", Q_NULLPTR));
#ifndef UI_QT_NO_WHATSTHIS
        rbCacheIfPossible->setWhatsThis(tr2i18n("Always use documents from the cache when available. You can still use the reload button to synchronize the cache with the remote host.", Q_NULLPTR));
#endif // QT_NO_WHATSTHIS
        rbCacheIfPossible->setText(tr2i18n("Use cache whenever &possible", Q_NULLPTR));
#ifndef UI_QT_NO_WHATSTHIS
        rbOfflineMode->setWhatsThis(tr2i18n("Do not fetch web pages that are not already stored in the cache. Offline mode prevents you from viewing pages that you have not previously visited.", Q_NULLPTR));
#endif // QT_NO_WHATSTHIS
        rbOfflineMode->setText(tr2i18n("O&ffline browsing mode", Q_NULLPTR));
        lbMaxCacheSize->setText(tr2i18n("Disk cache &size:", Q_NULLPTR));
        sbMaxCacheSize->setSuffix(tr2i18n(" KiB", Q_NULLPTR));
        clearCacheButton->setText(tr2i18n("C&lear Cache", Q_NULLPTR));
        Q_UNUSED(CacheConfigUI);
    } // retranslateUi

};

namespace Ui {
    class CacheConfigUI: public Ui_CacheConfigUI {};
} // namespace Ui

QT_END_NAMESPACE

#endif // CACHE_H

