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

/********************************************************************************
** Form generated from reading UI file 'kloanpayoutpagedecl.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_KLOANPAYOUTPAGEDECL_H
#define UI_KLOANPAYOUTPAGEDECL_H

#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QCheckBox>
#include <QtGui/QFrame>
#include <QtGui/QGridLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QSpacerItem>
#include <QtGui/QVBoxLayout>
#include <QtGui/QWidget>
#include <kmymoneycategory.h>
#include <kmymoneydateinput.h>
#include <kpushbutton.h>

QT_BEGIN_NAMESPACE

class Ui_KLoanPayoutPageDecl
{
public:
    QVBoxLayout *vboxLayout;
    QLabel *qLabel1;
    QCheckBox *m_noPayoutTransaction;
    QFrame *m_payoutDetailFrame;
    QGridLayout *gridLayout;
    QCheckBox *m_refinanceLoan;
    QLabel *textLabel1;
    KMyMoneyCategory *m_assetAccount;
    KPushButton *m_createAssetButton;
    QLabel *textLabel1_2;
    KMyMoneyCategory *m_loanAccount;
    QLabel *textLabel2;
    QSpacerItem *spacer88;
    kMyMoneyDateInput *m_payoutDate;
    QSpacerItem *spacer89;

    void setupUi(QWidget *KLoanPayoutPageDecl)
    {
        if (KLoanPayoutPageDecl->objectName().isEmpty())
            KLoanPayoutPageDecl->setObjectName(QString::fromUtf8("KLoanPayoutPageDecl"));
        KLoanPayoutPageDecl->resize(600, 384);
        vboxLayout = new QVBoxLayout(KLoanPayoutPageDecl);
        vboxLayout->setSpacing(6);
        vboxLayout->setContentsMargins(11, 11, 11, 11);
        vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
        qLabel1 = new QLabel(KLoanPayoutPageDecl);
        qLabel1->setObjectName(QString::fromUtf8("qLabel1"));
        qLabel1->setFocusPolicy(Qt::NoFocus);
        qLabel1->setWordWrap(true);

        vboxLayout->addWidget(qLabel1);

        m_noPayoutTransaction = new QCheckBox(KLoanPayoutPageDecl);
        m_noPayoutTransaction->setObjectName(QString::fromUtf8("m_noPayoutTransaction"));

        vboxLayout->addWidget(m_noPayoutTransaction);

        m_payoutDetailFrame = new QFrame(KLoanPayoutPageDecl);
        m_payoutDetailFrame->setObjectName(QString::fromUtf8("m_payoutDetailFrame"));
        m_payoutDetailFrame->setFrameShape(QFrame::NoFrame);
        m_payoutDetailFrame->setFrameShadow(QFrame::Raised);
        gridLayout = new QGridLayout(m_payoutDetailFrame);
        gridLayout->setSpacing(6);
        gridLayout->setContentsMargins(0, 0, 0, 0);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        m_refinanceLoan = new QCheckBox(m_payoutDetailFrame);
        m_refinanceLoan->setObjectName(QString::fromUtf8("m_refinanceLoan"));

        gridLayout->addWidget(m_refinanceLoan, 0, 0, 1, 4);

        textLabel1 = new QLabel(m_payoutDetailFrame);
        textLabel1->setObjectName(QString::fromUtf8("textLabel1"));
        textLabel1->setWordWrap(false);

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

        m_assetAccount = new KMyMoneyCategory(m_payoutDetailFrame);
        m_assetAccount->setObjectName(QString::fromUtf8("m_assetAccount"));
        QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(1), static_cast<QSizePolicy::Policy>(0));
        sizePolicy.setHorizontalStretch(1);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(m_assetAccount->sizePolicy().hasHeightForWidth());
        m_assetAccount->setSizePolicy(sizePolicy);

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

        m_createAssetButton = new KPushButton(m_payoutDetailFrame);
        m_createAssetButton->setObjectName(QString::fromUtf8("m_createAssetButton"));

        gridLayout->addWidget(m_createAssetButton, 1, 3, 1, 1);

        textLabel1_2 = new QLabel(m_payoutDetailFrame);
        textLabel1_2->setObjectName(QString::fromUtf8("textLabel1_2"));
        textLabel1_2->setWordWrap(false);

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

        m_loanAccount = new KMyMoneyCategory(m_payoutDetailFrame);
        m_loanAccount->setObjectName(QString::fromUtf8("m_loanAccount"));
        m_loanAccount->setEnabled(false);
        sizePolicy.setHeightForWidth(m_loanAccount->sizePolicy().hasHeightForWidth());
        m_loanAccount->setSizePolicy(sizePolicy);

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

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

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

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

        gridLayout->addItem(spacer88, 3, 1, 1, 1);

        m_payoutDate = new kMyMoneyDateInput(m_payoutDetailFrame);
        m_payoutDate->setObjectName(QString::fromUtf8("m_payoutDate"));

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


        vboxLayout->addWidget(m_payoutDetailFrame);

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

        vboxLayout->addItem(spacer89);


        retranslateUi(KLoanPayoutPageDecl);
        QObject::connect(m_noPayoutTransaction, SIGNAL(toggled(bool)), m_payoutDetailFrame, SLOT(setDisabled(bool)));
        QObject::connect(m_refinanceLoan, SIGNAL(toggled(bool)), m_assetAccount, SLOT(setDisabled(bool)));
        QObject::connect(m_refinanceLoan, SIGNAL(toggled(bool)), m_loanAccount, SLOT(setEnabled(bool)));
        QObject::connect(m_refinanceLoan, SIGNAL(toggled(bool)), m_createAssetButton, SLOT(setDisabled(bool)));

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

    void retranslateUi(QWidget *KLoanPayoutPageDecl)
    {
        qLabel1->setText(tr2i18n("If this loan is for an asset, such as a car or a house, you can create the asset account now. An asset account represents the total value of an asset. The money from this loan will be transferred into the asset account you create or select.\n"
"If this loan is a 'consumer loan' (money to use however you want), you can use a checking account instead.", 0));
        m_noPayoutTransaction->setText(tr2i18n("Do not create payout transaction", 0));
        m_refinanceLoan->setText(tr2i18n("Refinance existing loan", 0));
#ifndef UI_QT_NO_WHATSTHIS
        m_refinanceLoan->setProperty("whatsThis", QVariant(tr2i18n("Check this if you are refinancing a loan that already exists in KMyMoney", 0)));
#endif // QT_NO_WHATSTHIS
        textLabel1->setText(tr2i18n("Asset Account", 0));
        m_createAssetButton->setText(tr2i18n("Create", 0));
        textLabel1_2->setText(tr2i18n("Loan account", 0));
        textLabel2->setText(tr2i18n("Date of payment", 0));
        Q_UNUSED(KLoanPayoutPageDecl);
    } // retranslateUi

};

namespace Ui {
    class KLoanPayoutPageDecl: public Ui_KLoanPayoutPageDecl {};
} // namespace Ui

QT_END_NAMESPACE

#endif // KLOANPAYOUTPAGEDECL_H

