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

/********************************************************************************
** Form generated from reading UI file 'kbaccountsettings.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_KBACCOUNTSETTINGS_H
#define UI_KBACCOUNTSETTINGS_H

#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QCheckBox>
#include <QtGui/QFrame>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QRadioButton>
#include <QtGui/QSpacerItem>
#include <QtGui/QVBoxLayout>
#include <QtGui/QWidget>
#include "kcombobox.h"
#include "keditlistbox.h"
#include "klineedit.h"
#include "ktabwidget.h"

QT_BEGIN_NAMESPACE

class Ui_KBAccountSettings
{
public:
    QVBoxLayout *verticalLayout_3;
    KTabWidget *tabWidget2;
    QWidget *payeeTab;
    QVBoxLayout *verticalLayout_2;
    QGroupBox *groupBox;
    QVBoxLayout *verticalLayout;
    QRadioButton *m_usePayeeAsIsButton;
    QRadioButton *m_extractPayeeButton;
    QFrame *m_memoFrame;
    QGridLayout *gridLayout;
    QLabel *textLabel1;
    QLabel *textLabel2;
    KLineEdit *m_memoRegExpEdit;
    KLineEdit *m_payeeRegExpEdit;
    KEditListBox *m_payeeExceptions;
    QLabel *textLabel3;
    QWidget *downloadTab;
    QVBoxLayout *vboxLayout;
    QCheckBox *m_transactionDownload;
    QGridLayout *gridLayout1;
    QLabel *textLabel1_2;
    KComboBox *m_preferredJobMethod;
    KComboBox *m_preferredStatementDate;
    QLabel *textLabel2_2;
    QSpacerItem *spacer2;
    QSpacerItem *spacer1;

    void setupUi(QWidget *KBAccountSettings)
    {
        if (KBAccountSettings->objectName().isEmpty())
            KBAccountSettings->setObjectName(QString::fromUtf8("KBAccountSettings"));
        KBAccountSettings->resize(561, 499);
        verticalLayout_3 = new QVBoxLayout(KBAccountSettings);
        verticalLayout_3->setSpacing(6);
        verticalLayout_3->setContentsMargins(11, 11, 11, 11);
        verticalLayout_3->setObjectName(QString::fromUtf8("verticalLayout_3"));
        tabWidget2 = new KTabWidget(KBAccountSettings);
        tabWidget2->setObjectName(QString::fromUtf8("tabWidget2"));
        payeeTab = new QWidget();
        payeeTab->setObjectName(QString::fromUtf8("payeeTab"));
        verticalLayout_2 = new QVBoxLayout(payeeTab);
        verticalLayout_2->setSpacing(6);
        verticalLayout_2->setContentsMargins(11, 11, 11, 11);
        verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
        groupBox = new QGroupBox(payeeTab);
        groupBox->setObjectName(QString::fromUtf8("groupBox"));
        verticalLayout = new QVBoxLayout(groupBox);
        verticalLayout->setSpacing(6);
        verticalLayout->setContentsMargins(11, 11, 11, 11);
        verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
        m_usePayeeAsIsButton = new QRadioButton(groupBox);
        m_usePayeeAsIsButton->setObjectName(QString::fromUtf8("m_usePayeeAsIsButton"));
        m_usePayeeAsIsButton->setChecked(false);

        verticalLayout->addWidget(m_usePayeeAsIsButton);

        m_extractPayeeButton = new QRadioButton(groupBox);
        m_extractPayeeButton->setObjectName(QString::fromUtf8("m_extractPayeeButton"));
        m_extractPayeeButton->setChecked(true);

        verticalLayout->addWidget(m_extractPayeeButton);


        verticalLayout_2->addWidget(groupBox);

        m_memoFrame = new QFrame(payeeTab);
        m_memoFrame->setObjectName(QString::fromUtf8("m_memoFrame"));
        m_memoFrame->setEnabled(true);
        m_memoFrame->setFrameShape(QFrame::NoFrame);
        m_memoFrame->setFrameShadow(QFrame::Sunken);
        gridLayout = new QGridLayout(m_memoFrame);
        gridLayout->setSpacing(6);
        gridLayout->setContentsMargins(11, 11, 11, 11);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        textLabel1 = new QLabel(m_memoFrame);
        textLabel1->setObjectName(QString::fromUtf8("textLabel1"));
        textLabel1->setWordWrap(false);

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

        textLabel2 = new QLabel(m_memoFrame);
        textLabel2->setObjectName(QString::fromUtf8("textLabel2"));
        textLabel2->setWordWrap(false);

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

        m_memoRegExpEdit = new KLineEdit(m_memoFrame);
        m_memoRegExpEdit->setObjectName(QString::fromUtf8("m_memoRegExpEdit"));

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

        m_payeeRegExpEdit = new KLineEdit(m_memoFrame);
        m_payeeRegExpEdit->setObjectName(QString::fromUtf8("m_payeeRegExpEdit"));

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

        m_payeeExceptions = new KEditListBox(m_memoFrame);
        m_payeeExceptions->setObjectName(QString::fromUtf8("m_payeeExceptions"));
        m_payeeExceptions->setEnabled(true);
        m_payeeExceptions->setButtons(KEditListBox::All);

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

        textLabel3 = new QLabel(m_memoFrame);
        textLabel3->setObjectName(QString::fromUtf8("textLabel3"));
        textLabel3->setWordWrap(false);

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


        verticalLayout_2->addWidget(m_memoFrame);

        tabWidget2->addTab(payeeTab, QString());
        downloadTab = new QWidget();
        downloadTab->setObjectName(QString::fromUtf8("downloadTab"));
        vboxLayout = new QVBoxLayout(downloadTab);
        vboxLayout->setSpacing(6);
        vboxLayout->setContentsMargins(11, 11, 11, 11);
        vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
        m_transactionDownload = new QCheckBox(downloadTab);
        m_transactionDownload->setObjectName(QString::fromUtf8("m_transactionDownload"));
        m_transactionDownload->setChecked(false);

        vboxLayout->addWidget(m_transactionDownload);

        gridLayout1 = new QGridLayout();
        gridLayout1->setSpacing(6);
        gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
        textLabel1_2 = new QLabel(downloadTab);
        textLabel1_2->setObjectName(QString::fromUtf8("textLabel1_2"));
        textLabel1_2->setWordWrap(false);

        gridLayout1->addWidget(textLabel1_2, 0, 0, 1, 1);

        m_preferredJobMethod = new KComboBox(downloadTab);
        m_preferredJobMethod->setObjectName(QString::fromUtf8("m_preferredJobMethod"));
        m_preferredJobMethod->setProperty("currentItem", QVariant(0));

        gridLayout1->addWidget(m_preferredJobMethod, 0, 1, 1, 1);

        m_preferredStatementDate = new KComboBox(downloadTab);
        m_preferredStatementDate->setObjectName(QString::fromUtf8("m_preferredStatementDate"));

        gridLayout1->addWidget(m_preferredStatementDate, 1, 1, 1, 1);

        textLabel2_2 = new QLabel(downloadTab);
        textLabel2_2->setObjectName(QString::fromUtf8("textLabel2_2"));
        textLabel2_2->setWordWrap(false);

        gridLayout1->addWidget(textLabel2_2, 1, 0, 1, 1);


        vboxLayout->addLayout(gridLayout1);

        spacer2 = new QSpacerItem(20, 160, QSizePolicy::Minimum, QSizePolicy::Expanding);

        vboxLayout->addItem(spacer2);

        tabWidget2->addTab(downloadTab, QString());

        verticalLayout_3->addWidget(tabWidget2);

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

        verticalLayout_3->addItem(spacer1);

        QWidget::setTabOrder(m_payeeRegExpEdit, m_memoRegExpEdit);

        retranslateUi(KBAccountSettings);
        QObject::connect(m_extractPayeeButton, SIGNAL(toggled(bool)), m_memoFrame, SLOT(setEnabled(bool)));

        tabWidget2->setCurrentIndex(0);


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

    void retranslateUi(QWidget *KBAccountSettings)
    {
        groupBox->setTitle(QString());
        m_usePayeeAsIsButton->setText(tr2i18n("Use payee field as provided by institution", 0));
        m_extractPayeeButton->setText(tr2i18n("Extract payee from memo field using regular expressions", 0));
        textLabel1->setText(tr2i18n("Payee", 0));
        textLabel2->setText(tr2i18n("Memo", 0));
        m_payeeExceptions->setTitle(tr2i18n("Exceptions", 0));
        textLabel3->setText(tr2i18n("Regular Expression for", 0));
        tabWidget2->setTabText(tabWidget2->indexOf(payeeTab), tr2i18n("Payee", 0));
#ifndef UI_QT_NO_WHATSTHIS
        m_transactionDownload->setWhatsThis(tr2i18n("The plugin usually downloads the account balance and transactions. In some circumstances, the download of transaction data is not supported for certain accounts. The following option allows to turn off the request for transaction data.", 0));
#endif // QT_NO_WHATSTHIS
        m_transactionDownload->setText(tr2i18n("Download transactions from institution", 0));
        textLabel1_2->setText(tr2i18n("Default method for jobs for this institution", 0));
        m_preferredJobMethod->clear();
        m_preferredJobMethod->insertItems(0, QStringList()
         << tr2i18n("Ask user", 0)
         << tr2i18n("Execute", 0)
         << tr2i18n("Queue", 0)
        );
        m_preferredStatementDate->clear();
        m_preferredStatementDate->insertItems(0, QStringList()
         << tr2i18n("Ask user", 0)
         << tr2i18n("No date", 0)
         << tr2i18n("Last download", 0)
         << tr2i18n("First possible", 0)
        );
        textLabel2_2->setText(tr2i18n("Default start date for statement download", 0));
        tabWidget2->setTabText(tabWidget2->indexOf(downloadTab), tr2i18n("Download", 0));
        Q_UNUSED(KBAccountSettings);
    } // retranslateUi

};

namespace Ui {
    class KBAccountSettings: public Ui_KBAccountSettings {};
} // namespace Ui

QT_END_NAMESPACE

#endif // KBACCOUNTSETTINGS_H

