#include <klocalizedstring.h>

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

#ifndef UI_OPENSAVECONFIGADVWIDGET_H
#define UI_OPENSAVECONFIGADVWIDGET_H

#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QFormLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
#include "klineedit.h"
#include "kurlrequester.h"

QT_BEGIN_NAMESPACE

class Ui_OpenSaveConfigAdvWidget
{
public:
    QVBoxLayout *verticalLayout;
    QGroupBox *gbBackup;
    QFormLayout *formLayout;
    QCheckBox *chkBackupLocalFiles;
    QCheckBox *chkBackupRemoteFiles;
    QLabel *label_5;
    KLineEdit *edtBackupPrefix;
    QLabel *label_6;
    KLineEdit *edtBackupSuffix;
    QGroupBox *gpSwapFileOptions;
    QFormLayout *formLayout_2;
    QLabel *lblSwapFileMode;
    QComboBox *cmbSwapFileMode;
    QLabel *lblSwapDirectory;
    KUrlRequester *kurlSwapDirectory;
    QLabel *lblSwapFileSync;
    QSpinBox *spbSwapFileSync;
    QLabel *label_2;
    QSpacerItem *spacerItem;

    void setupUi(QWidget *OpenSaveConfigAdvWidget)
    {
        if (OpenSaveConfigAdvWidget->objectName().isEmpty())
            OpenSaveConfigAdvWidget->setObjectName(QStringLiteral("OpenSaveConfigAdvWidget"));
        OpenSaveConfigAdvWidget->resize(383, 480);
        verticalLayout = new QVBoxLayout(OpenSaveConfigAdvWidget);
        verticalLayout->setContentsMargins(0, 0, 0, 0);
        verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
        gbBackup = new QGroupBox(OpenSaveConfigAdvWidget);
        gbBackup->setObjectName(QStringLiteral("gbBackup"));
        formLayout = new QFormLayout(gbBackup);
        formLayout->setObjectName(QStringLiteral("formLayout"));
        formLayout->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow);
        chkBackupLocalFiles = new QCheckBox(gbBackup);
        chkBackupLocalFiles->setObjectName(QStringLiteral("chkBackupLocalFiles"));

        formLayout->setWidget(0, QFormLayout::SpanningRole, chkBackupLocalFiles);

        chkBackupRemoteFiles = new QCheckBox(gbBackup);
        chkBackupRemoteFiles->setObjectName(QStringLiteral("chkBackupRemoteFiles"));

        formLayout->setWidget(1, QFormLayout::SpanningRole, chkBackupRemoteFiles);

        label_5 = new QLabel(gbBackup);
        label_5->setObjectName(QStringLiteral("label_5"));

        formLayout->setWidget(2, QFormLayout::LabelRole, label_5);

        edtBackupPrefix = new KLineEdit(gbBackup);
        edtBackupPrefix->setObjectName(QStringLiteral("edtBackupPrefix"));

        formLayout->setWidget(2, QFormLayout::FieldRole, edtBackupPrefix);

        label_6 = new QLabel(gbBackup);
        label_6->setObjectName(QStringLiteral("label_6"));

        formLayout->setWidget(3, QFormLayout::LabelRole, label_6);

        edtBackupSuffix = new KLineEdit(gbBackup);
        edtBackupSuffix->setObjectName(QStringLiteral("edtBackupSuffix"));

        formLayout->setWidget(3, QFormLayout::FieldRole, edtBackupSuffix);


        verticalLayout->addWidget(gbBackup);

        gpSwapFileOptions = new QGroupBox(OpenSaveConfigAdvWidget);
        gpSwapFileOptions->setObjectName(QStringLiteral("gpSwapFileOptions"));
        gpSwapFileOptions->setMinimumSize(QSize(0, 50));
        formLayout_2 = new QFormLayout(gpSwapFileOptions);
        formLayout_2->setObjectName(QStringLiteral("formLayout_2"));
        lblSwapFileMode = new QLabel(gpSwapFileOptions);
        lblSwapFileMode->setObjectName(QStringLiteral("lblSwapFileMode"));

        formLayout_2->setWidget(0, QFormLayout::LabelRole, lblSwapFileMode);

        cmbSwapFileMode = new QComboBox(gpSwapFileOptions);
        cmbSwapFileMode->setObjectName(QStringLiteral("cmbSwapFileMode"));

        formLayout_2->setWidget(0, QFormLayout::FieldRole, cmbSwapFileMode);

        lblSwapDirectory = new QLabel(gpSwapFileOptions);
        lblSwapDirectory->setObjectName(QStringLiteral("lblSwapDirectory"));

        formLayout_2->setWidget(1, QFormLayout::LabelRole, lblSwapDirectory);

        kurlSwapDirectory = new KUrlRequester(gpSwapFileOptions);
        kurlSwapDirectory->setObjectName(QStringLiteral("kurlSwapDirectory"));
        kurlSwapDirectory->setEnabled(false);
        kurlSwapDirectory->setMode(KFile::Directory|KFile::LocalOnly);

        formLayout_2->setWidget(1, QFormLayout::FieldRole, kurlSwapDirectory);

        lblSwapFileSync = new QLabel(gpSwapFileOptions);
        lblSwapFileSync->setObjectName(QStringLiteral("lblSwapFileSync"));

        formLayout_2->setWidget(2, QFormLayout::LabelRole, lblSwapFileSync);

        spbSwapFileSync = new QSpinBox(gpSwapFileOptions);
        spbSwapFileSync->setObjectName(QStringLiteral("spbSwapFileSync"));
        spbSwapFileSync->setMinimum(0);
        spbSwapFileSync->setMaximum(600);
        spbSwapFileSync->setSingleStep(10);
        spbSwapFileSync->setValue(15);

        formLayout_2->setWidget(2, QFormLayout::FieldRole, spbSwapFileSync);

        label_2 = new QLabel(gpSwapFileOptions);
        label_2->setObjectName(QStringLiteral("label_2"));
        label_2->setTextFormat(Qt::AutoText);
        label_2->setWordWrap(true);

        formLayout_2->setWidget(3, QFormLayout::SpanningRole, label_2);


        verticalLayout->addWidget(gpSwapFileOptions);

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

        verticalLayout->addItem(spacerItem);

#ifndef UI_QT_NO_SHORTCUT
        label_5->setBuddy(edtBackupPrefix);
        label_6->setBuddy(edtBackupSuffix);
        lblSwapFileMode->setBuddy(cmbSwapFileMode);
        lblSwapDirectory->setBuddy(kurlSwapDirectory);
        lblSwapFileSync->setBuddy(spbSwapFileSync);
#endif // QT_NO_SHORTCUT
        QWidget::setTabOrder(chkBackupLocalFiles, chkBackupRemoteFiles);
        QWidget::setTabOrder(chkBackupRemoteFiles, edtBackupPrefix);
        QWidget::setTabOrder(edtBackupPrefix, edtBackupSuffix);

        retranslateUi(OpenSaveConfigAdvWidget);

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

    void retranslateUi(QWidget *OpenSaveConfigAdvWidget)
    {
#ifndef UI_QT_NO_WHATSTHIS
        gbBackup->setWhatsThis(tr2i18n("<p>Backing up on save will cause Kate to copy the disk file to '&lt;prefix&gt;&lt;filename&gt;&lt;suffix&gt;' before saving changes.<p>The suffix defaults to <strong>~</strong> and prefix is empty by default.", Q_NULLPTR));
#endif // QT_NO_WHATSTHIS
        gbBackup->setTitle(tr2i18n("Backup on Save", Q_NULLPTR));
#ifndef UI_QT_NO_WHATSTHIS
        chkBackupLocalFiles->setWhatsThis(tr2i18n("If this option is enabled, backups for local files will be created when saving.", Q_NULLPTR));
#endif // QT_NO_WHATSTHIS
        chkBackupLocalFiles->setText(tr2i18n("&Local files", Q_NULLPTR));
#ifndef UI_QT_NO_WHATSTHIS
        chkBackupRemoteFiles->setWhatsThis(tr2i18n("If this option is enabled, backups for remote files will be created when saving.", Q_NULLPTR));
#endif // QT_NO_WHATSTHIS
        chkBackupRemoteFiles->setText(tr2i18n("&Remote files", Q_NULLPTR));
        label_5->setText(tr2i18n("&Prefix:", Q_NULLPTR));
#ifndef UI_QT_NO_WHATSTHIS
        edtBackupPrefix->setWhatsThis(tr2i18n("Enter the prefix to prepend to the backup file names.", Q_NULLPTR));
#endif // QT_NO_WHATSTHIS
        label_6->setText(tr2i18n("&Suffix:", Q_NULLPTR));
#ifndef UI_QT_NO_WHATSTHIS
        edtBackupSuffix->setWhatsThis(tr2i18n("Enter the suffix to append to the backup file names.", Q_NULLPTR));
#endif // QT_NO_WHATSTHIS
        gpSwapFileOptions->setTitle(tr2i18n("Swap File Options", Q_NULLPTR));
        lblSwapFileMode->setText(tr2i18n("Swap file:", Q_NULLPTR));
        cmbSwapFileMode->clear();
        cmbSwapFileMode->insertItems(0, QStringList()
         << tr2i18n("Disable", Q_NULLPTR)
         << tr2i18n("Enable", Q_NULLPTR)
         << tr2i18n("Alternative Directory", Q_NULLPTR)
        );
        lblSwapDirectory->setText(tr2i18n("Directory:", Q_NULLPTR));
        kurlSwapDirectory->setPlaceholderText(tr2i18n("Directory for swp files", Q_NULLPTR));
        lblSwapFileSync->setText(tr2i18n("Sync every:", Q_NULLPTR));
        spbSwapFileSync->setSpecialValueText(tr2i18n("Disabled", Q_NULLPTR));
        spbSwapFileSync->setSuffix(tr2i18n("s", Q_NULLPTR));
        label_2->setText(tr2i18n("Be aware, that disabling the swap file synchronization may lead to data loss in case of a system crash.", Q_NULLPTR));
        Q_UNUSED(OpenSaveConfigAdvWidget);
    } // retranslateUi

};

namespace Ui {
    class OpenSaveConfigAdvWidget: public Ui_OpenSaveConfigAdvWidget {};
} // namespace Ui

QT_END_NAMESPACE

#endif // OPENSAVECONFIGADVWIDGET_H

