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

/********************************************************************************
** Form generated from reading UI file 'skgfilepluginwidget_pref.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_SKGFILEPLUGINWIDGET_PREF_H
#define UI_SKGFILEPLUGINWIDGET_PREF_H

#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QCheckBox>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QSpacerItem>
#include <QtGui/QWidget>
#include "kcombobox.h"
#include "skgcombobox.h"

QT_BEGIN_NAMESPACE

class Ui_skgfileplugin_pref
{
public:
    QGridLayout *gridLayout_2;
    QCheckBox *kcfg_openlastfile;
    QCheckBox *kcfg_saveonclose;
    QCheckBox *kcfg_storeInKdeWallet;
    QGroupBox *groupBox;
    QGridLayout *gridLayout;
    QCheckBox *kcfg_backup_enabled;
    QLabel *label;
    SKGComboBox *kcfg_prefix;
    QLabel *label_2;
    SKGComboBox *kcfg_suffix;
    QSpacerItem *horizontalSpacer;
    QLabel *label_3;
    QSpacerItem *verticalSpacer;
    SKGComboBox *kcfg_selectedWallet;
    QSpacerItem *horizontalSpacer_2;

    void setupUi(QWidget *skgfileplugin_pref)
    {
        if (skgfileplugin_pref->objectName().isEmpty())
            skgfileplugin_pref->setObjectName(QString::fromUtf8("skgfileplugin_pref"));
        skgfileplugin_pref->resize(520, 435);
        gridLayout_2 = new QGridLayout(skgfileplugin_pref);
        gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
        kcfg_openlastfile = new QCheckBox(skgfileplugin_pref);
        kcfg_openlastfile->setObjectName(QString::fromUtf8("kcfg_openlastfile"));
        kcfg_openlastfile->setChecked(true);

        gridLayout_2->addWidget(kcfg_openlastfile, 0, 0, 1, 1);

        kcfg_saveonclose = new QCheckBox(skgfileplugin_pref);
        kcfg_saveonclose->setObjectName(QString::fromUtf8("kcfg_saveonclose"));

        gridLayout_2->addWidget(kcfg_saveonclose, 1, 0, 1, 1);

        kcfg_storeInKdeWallet = new QCheckBox(skgfileplugin_pref);
        kcfg_storeInKdeWallet->setObjectName(QString::fromUtf8("kcfg_storeInKdeWallet"));

        gridLayout_2->addWidget(kcfg_storeInKdeWallet, 2, 0, 1, 1);

        groupBox = new QGroupBox(skgfileplugin_pref);
        groupBox->setObjectName(QString::fromUtf8("groupBox"));
        gridLayout = new QGridLayout(groupBox);
        gridLayout->setSpacing(2);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        kcfg_backup_enabled = new QCheckBox(groupBox);
        kcfg_backup_enabled->setObjectName(QString::fromUtf8("kcfg_backup_enabled"));
        kcfg_backup_enabled->setChecked(true);

        gridLayout->addWidget(kcfg_backup_enabled, 0, 0, 1, 2);

        label = new QLabel(groupBox);
        label->setObjectName(QString::fromUtf8("label"));
        QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(label->sizePolicy().hasHeightForWidth());
        label->setSizePolicy(sizePolicy);
        label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

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

        kcfg_prefix = new SKGComboBox(groupBox);
        kcfg_prefix->setObjectName(QString::fromUtf8("kcfg_prefix"));
        kcfg_prefix->setEditable(true);

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

        label_2 = new QLabel(groupBox);
        label_2->setObjectName(QString::fromUtf8("label_2"));
        sizePolicy.setHeightForWidth(label_2->sizePolicy().hasHeightForWidth());
        label_2->setSizePolicy(sizePolicy);
        label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

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

        kcfg_suffix = new SKGComboBox(groupBox);
        kcfg_suffix->setObjectName(QString::fromUtf8("kcfg_suffix"));
        kcfg_suffix->setEditable(true);

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

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

        gridLayout->addItem(horizontalSpacer, 1, 2, 1, 1);

        label_3 = new QLabel(groupBox);
        label_3->setObjectName(QString::fromUtf8("label_3"));

        gridLayout->addWidget(label_3, 3, 0, 1, 3);


        gridLayout_2->addWidget(groupBox, 3, 0, 1, 3);

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

        gridLayout_2->addItem(verticalSpacer, 4, 0, 1, 1);

        kcfg_selectedWallet = new SKGComboBox(skgfileplugin_pref);
        kcfg_selectedWallet->setObjectName(QString::fromUtf8("kcfg_selectedWallet"));

        gridLayout_2->addWidget(kcfg_selectedWallet, 2, 1, 1, 1);

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

        gridLayout_2->addItem(horizontalSpacer_2, 2, 2, 1, 1);

#ifndef UI_QT_NO_SHORTCUT
        label->setBuddy(kcfg_prefix);
        label_2->setBuddy(kcfg_suffix);
#endif // QT_NO_SHORTCUT

        retranslateUi(skgfileplugin_pref);
        QObject::connect(kcfg_backup_enabled, SIGNAL(toggled(bool)), kcfg_prefix, SLOT(setEnabled(bool)));
        QObject::connect(kcfg_backup_enabled, SIGNAL(toggled(bool)), kcfg_suffix, SLOT(setEnabled(bool)));
        QObject::connect(kcfg_storeInKdeWallet, SIGNAL(toggled(bool)), kcfg_selectedWallet, SLOT(setEnabled(bool)));

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

    void retranslateUi(QWidget *skgfileplugin_pref)
    {
        kcfg_openlastfile->setText(tr2i18n("Open last file on startup", 0));
        kcfg_saveonclose->setText(tr2i18n("Save on close", 0));
        kcfg_storeInKdeWallet->setText(tr2i18n("Store passwords in KDE Wallet:", 0));
        groupBox->setTitle(tr2i18n("Backup on save", 0));
        kcfg_backup_enabled->setText(tr2i18n("Enable backup", 0));
        label->setText(tr2i18n("Prefix:", 0));
        label_2->setText(tr2i18n("Suffix:", 0));
        label_3->setText(tr2i18n("<html><head/><body><p>The following key words can be used in prefix and suffix:<br/>&lt;DATE&gt;: to add the current date in the backuped file<br/>&lt;TIME&gt;: to add the current time in the backuped file</p><p>By default, the backup is stored in the same directory than the saved file.<br/>But, you can force the backup directory by setting an absolute path in the prefix.<br/>(example: /backup/)</p></body></html>", 0));
        Q_UNUSED(skgfileplugin_pref);
    } // retranslateUi

};

namespace Ui {
    class skgfileplugin_pref: public Ui_skgfileplugin_pref {};
} // namespace Ui

QT_END_NAMESPACE

#endif // SKGFILEPLUGINWIDGET_PREF_H

