#include <klocalizedstring.h>

/********************************************************************************
** Form generated from reading UI file 'kloanpayoutpage.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_KLOANPAYOUTPAGE_H
#define UI_KLOANPAYOUTPAGE_H

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

QT_BEGIN_NAMESPACE

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

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

        vboxLayout->addWidget(qLabel1);

        m_noPayoutTransaction = new QCheckBox(KLoanPayoutPage);
        m_noPayoutTransaction->setObjectName(QStringLiteral("m_noPayoutTransaction"));

        vboxLayout->addWidget(m_noPayoutTransaction);

        m_payoutDetailFrame = new QFrame(KLoanPayoutPage);
        m_payoutDetailFrame->setObjectName(QStringLiteral("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(QStringLiteral("gridLayout"));
        m_refinanceLoan = new QCheckBox(m_payoutDetailFrame);
        m_refinanceLoan->setObjectName(QStringLiteral("m_refinanceLoan"));

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

        textLabel1 = new QLabel(m_payoutDetailFrame);
        textLabel1->setObjectName(QStringLiteral("textLabel1"));
        textLabel1->setWordWrap(false);

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

        m_assetAccount = new KMyMoneyCategory(m_payoutDetailFrame);
        m_assetAccount->setObjectName(QStringLiteral("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 QPushButton(m_payoutDetailFrame);
        m_createAssetButton->setObjectName(QStringLiteral("m_createAssetButton"));

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

        textLabel1_2 = new QLabel(m_payoutDetailFrame);
        textLabel1_2->setObjectName(QStringLiteral("textLabel1_2"));
        textLabel1_2->setWordWrap(false);

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

        m_loanAccount = new KMyMoneyCategory(m_payoutDetailFrame);
        m_loanAccount->setObjectName(QStringLiteral("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(QStringLiteral("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(QStringLiteral("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(KLoanPayoutPage);
        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(KLoanPayoutPage);
    } // setupUi

    void retranslateUi(QWidget *KLoanPayoutPage)
    {
        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.", Q_NULLPTR));
        m_noPayoutTransaction->setText(tr2i18n("Do not create payout transaction", Q_NULLPTR));
        m_refinanceLoan->setText(tr2i18n("Refinance existing loan", Q_NULLPTR));
#ifndef UI_QT_NO_WHATSTHIS
        m_refinanceLoan->setProperty("whatsThis", QVariant(tr2i18n("Check this if you are refinancing a loan that already exists in KMyMoney", Q_NULLPTR)));
#endif // QT_NO_WHATSTHIS
        textLabel1->setText(tr2i18n("Asset Account", Q_NULLPTR));
        m_createAssetButton->setText(tr2i18n("Create", Q_NULLPTR));
        textLabel1_2->setText(tr2i18n("Loan account", Q_NULLPTR));
        textLabel2->setText(tr2i18n("Date of payment", Q_NULLPTR));
        Q_UNUSED(KLoanPayoutPage);
    } // retranslateUi

};

namespace Ui {
    class KLoanPayoutPage: public Ui_KLoanPayoutPage {};
} // namespace Ui

QT_END_NAMESPACE

#endif // KLOANPAYOUTPAGE_H

