#include <klocalizedstring.h>

/********************************************************************************
** Form generated from reading UI file 'kgeneralloaninfopage.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_KGENERALLOANINFOPAGE_H
#define UI_KGENERALLOANINFOPAGE_H

#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
#include <kcombobox.h>
#include <kmymoneydateinput.h>
#include <kmymoneyedit.h>
#include "kmymoneyfrequencycombo.h"
#include "kmymoneypayeecombo.h"

QT_BEGIN_NAMESPACE

class Ui_KGeneralLoanInfoPage
{
public:
    QVBoxLayout *vboxLayout;
    QLabel *qLabel1;
    QHBoxLayout *hboxLayout;
    QGridLayout *gridLayout;
    QLabel *textLabel1;
    KComboBox *m_loanDirection;
    QLabel *textLabel2;
    KMyMoneyPayeeCombo *m_payee;
    QLabel *textLabel1_2;
    KComboBox *m_anyPayments;
    QLabel *textLabel3;
    KComboBox *m_recordings;
    QLabel *textLabel1_3;
    KMyMoneyEdit *m_openingBalance;
    QLabel *textLabel5;
    KMyMoneyFrequencyCombo *m_paymentFrequency;
    QLabel *textLabel1_4;
    KMyMoneyFrequencyCombo *m_compoundFrequency;
    QLabel *textLabel2_2;
    KMyMoneyDateInput *m_firstPaymentDate;
    QLabel *textLabel4;
    KComboBox *m_interestType;
    QLabel *textLabel3_2;
    QHBoxLayout *hboxLayout1;
    QSpinBox *m_interestFrequencyAmountEdit;
    KComboBox *m_interestFrequencyUnitEdit;
    QLabel *textLabel4_2;
    KMyMoneyDateInput *m_interestChangeDateEdit;
    QSpacerItem *spacer1;
    QSpacerItem *spacer2;

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

        vboxLayout->addWidget(qLabel1);

        hboxLayout = new QHBoxLayout();
        hboxLayout->setSpacing(6);
        hboxLayout->setObjectName(QStringLiteral("hboxLayout"));
        gridLayout = new QGridLayout();
        gridLayout->setSpacing(6);
        gridLayout->setObjectName(QStringLiteral("gridLayout"));
        textLabel1 = new QLabel(KGeneralLoanInfoPage);
        textLabel1->setObjectName(QStringLiteral("textLabel1"));
        textLabel1->setWordWrap(false);

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

        m_loanDirection = new KComboBox(KGeneralLoanInfoPage);
        m_loanDirection->setObjectName(QStringLiteral("m_loanDirection"));

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

        textLabel2 = new QLabel(KGeneralLoanInfoPage);
        textLabel2->setObjectName(QStringLiteral("textLabel2"));
        textLabel2->setWordWrap(false);

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

        m_payee = new KMyMoneyPayeeCombo(KGeneralLoanInfoPage);
        m_payee->setObjectName(QStringLiteral("m_payee"));

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

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

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

        m_anyPayments = new KComboBox(KGeneralLoanInfoPage);
        m_anyPayments->setObjectName(QStringLiteral("m_anyPayments"));

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

        textLabel3 = new QLabel(KGeneralLoanInfoPage);
        textLabel3->setObjectName(QStringLiteral("textLabel3"));
        textLabel3->setWordWrap(false);

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

        m_recordings = new KComboBox(KGeneralLoanInfoPage);
        m_recordings->setObjectName(QStringLiteral("m_recordings"));

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

        textLabel1_3 = new QLabel(KGeneralLoanInfoPage);
        textLabel1_3->setObjectName(QStringLiteral("textLabel1_3"));
        textLabel1_3->setWordWrap(false);

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

        m_openingBalance = new KMyMoneyEdit(KGeneralLoanInfoPage);
        m_openingBalance->setObjectName(QStringLiteral("m_openingBalance"));

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

        textLabel5 = new QLabel(KGeneralLoanInfoPage);
        textLabel5->setObjectName(QStringLiteral("textLabel5"));
        textLabel5->setWordWrap(false);

        gridLayout->addWidget(textLabel5, 5, 0, 1, 1);

        m_paymentFrequency = new KMyMoneyFrequencyCombo(KGeneralLoanInfoPage);
        m_paymentFrequency->setObjectName(QStringLiteral("m_paymentFrequency"));
        m_paymentFrequency->setFocusPolicy(Qt::TabFocus);

        gridLayout->addWidget(m_paymentFrequency, 5, 1, 1, 1);

        textLabel1_4 = new QLabel(KGeneralLoanInfoPage);
        textLabel1_4->setObjectName(QStringLiteral("textLabel1_4"));
        textLabel1_4->setWordWrap(false);

        gridLayout->addWidget(textLabel1_4, 6, 0, 1, 1);

        m_compoundFrequency = new KMyMoneyFrequencyCombo(KGeneralLoanInfoPage);
        m_compoundFrequency->setObjectName(QStringLiteral("m_compoundFrequency"));

        gridLayout->addWidget(m_compoundFrequency, 6, 1, 1, 1);

        textLabel2_2 = new QLabel(KGeneralLoanInfoPage);
        textLabel2_2->setObjectName(QStringLiteral("textLabel2_2"));
        textLabel2_2->setWordWrap(false);

        gridLayout->addWidget(textLabel2_2, 7, 0, 1, 1);

        m_firstPaymentDate = new KMyMoneyDateInput(KGeneralLoanInfoPage);
        m_firstPaymentDate->setObjectName(QStringLiteral("m_firstPaymentDate"));
        m_firstPaymentDate->setFocusPolicy(Qt::StrongFocus);

        gridLayout->addWidget(m_firstPaymentDate, 7, 1, 1, 1);

        textLabel4 = new QLabel(KGeneralLoanInfoPage);
        textLabel4->setObjectName(QStringLiteral("textLabel4"));
        textLabel4->setWordWrap(false);

        gridLayout->addWidget(textLabel4, 8, 0, 1, 1);

        m_interestType = new KComboBox(KGeneralLoanInfoPage);
        m_interestType->setObjectName(QStringLiteral("m_interestType"));

        gridLayout->addWidget(m_interestType, 8, 1, 1, 1);

        textLabel3_2 = new QLabel(KGeneralLoanInfoPage);
        textLabel3_2->setObjectName(QStringLiteral("textLabel3_2"));
        textLabel3_2->setWordWrap(false);

        gridLayout->addWidget(textLabel3_2, 9, 0, 1, 1);

        hboxLayout1 = new QHBoxLayout();
        hboxLayout1->setSpacing(6);
        hboxLayout1->setObjectName(QStringLiteral("hboxLayout1"));
        m_interestFrequencyAmountEdit = new QSpinBox(KGeneralLoanInfoPage);
        m_interestFrequencyAmountEdit->setObjectName(QStringLiteral("m_interestFrequencyAmountEdit"));
        m_interestFrequencyAmountEdit->setMinimum(1);
        m_interestFrequencyAmountEdit->setMaximum(999);

        hboxLayout1->addWidget(m_interestFrequencyAmountEdit);

        m_interestFrequencyUnitEdit = new KComboBox(KGeneralLoanInfoPage);
        m_interestFrequencyUnitEdit->setObjectName(QStringLiteral("m_interestFrequencyUnitEdit"));

        hboxLayout1->addWidget(m_interestFrequencyUnitEdit);


        gridLayout->addLayout(hboxLayout1, 9, 1, 1, 1);

        textLabel4_2 = new QLabel(KGeneralLoanInfoPage);
        textLabel4_2->setObjectName(QStringLiteral("textLabel4_2"));
        textLabel4_2->setWordWrap(false);

        gridLayout->addWidget(textLabel4_2, 10, 0, 1, 1);

        m_interestChangeDateEdit = new KMyMoneyDateInput(KGeneralLoanInfoPage);
        m_interestChangeDateEdit->setObjectName(QStringLiteral("m_interestChangeDateEdit"));
        m_interestChangeDateEdit->setFocusPolicy(Qt::StrongFocus);

        gridLayout->addWidget(m_interestChangeDateEdit, 10, 1, 1, 1);


        hboxLayout->addLayout(gridLayout);

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

        hboxLayout->addItem(spacer1);


        vboxLayout->addLayout(hboxLayout);

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

        vboxLayout->addItem(spacer2);


        retranslateUi(KGeneralLoanInfoPage);

        m_interestFrequencyUnitEdit->setCurrentIndex(3);


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

    void retranslateUi(QWidget *KGeneralLoanInfoPage)
    {
        qLabel1->setText(tr2i18n("Please select the required options. Please use the <b>What's this?</b> feature to see more information about the items.", Q_NULLPTR));
        textLabel1->setText(tr2i18n("What is the type of the loan?", Q_NULLPTR));
        m_loanDirection->clear();
        m_loanDirection->insertItems(0, QStringList()
         << tr2i18n("I am borrowing money", Q_NULLPTR)
         << tr2i18n("I am lending money", Q_NULLPTR)
        );
        textLabel2->setText(tr2i18n("Who is the payee/payer of the loan?", Q_NULLPTR));
#ifndef UI_QT_NO_WHATSTHIS
        m_payee->setProperty("whatsThis", QVariant(tr2i18n("Enter the name of the person or bank you owe money or who owes you money.\n"
"\n"
"If the name does not exist within KMyMoney's database, you are asked if you want to create it.", Q_NULLPTR)));
#endif // QT_NO_WHATSTHIS
        textLabel1_2->setText(tr2i18n("Did you make/receive any payments yet?", Q_NULLPTR));
        m_anyPayments->clear();
        m_anyPayments->insertItems(0, QStringList()
         << tr2i18n("No", "@item no payments were entered for a loan")
         << tr2i18n("Yes", "@item payments were entered for a loan")
        );
#ifndef UI_QT_NO_WHATSTHIS
        m_anyPayments->setProperty("whatsThis", QVariant(tr2i18n("Were there any payments for this loan whether they are entered into KMyMoney or not?\n"
"\n"
"Note: Payments made to obtain the loan (e.g. Disagio) are not considered as payments in this context.", Q_NULLPTR)));
#endif // QT_NO_WHATSTHIS
        textLabel3->setText(tr2i18n("Which payments do you want to record?", Q_NULLPTR));
        m_recordings->clear();
        m_recordings->insertItems(0, QStringList()
         << tr2i18n("All payments", Q_NULLPTR)
         << tr2i18n("Start with this year's payments", Q_NULLPTR)
        );
#ifndef UI_QT_NO_WHATSTHIS
        m_recordings->setProperty("whatsThis", QVariant(tr2i18n("<qt>Select which transactions should be recorded.\n"
"\n"
"<b>All payments</b> allows you to enter all payments made for this loan.\n"
"\n"
"The option to <b>start from the beginning of the current year</b> is meant for loans that have already been active for a longer period of time, and for which you do not want to enter all past transactions.\n"
"</qt>", Q_NULLPTR)));
#endif // QT_NO_WHATSTHIS
        textLabel1_3->setText(tr2i18n("Balance before start of recording", Q_NULLPTR));
#ifndef UI_QT_NO_WHATSTHIS
        textLabel1_3->setProperty("whatsThis", QVariant(tr2i18n("Enter the ending balance found on the statement that is the last one before you want to start recording this loan in KMyMoney.", Q_NULLPTR)));
#endif // QT_NO_WHATSTHIS
#ifndef UI_QT_NO_WHATSTHIS
        m_openingBalance->setProperty("whatsThis", QVariant(tr2i18n("You have selected to record only payments from the beginning of this year. Since prior transactions will not be recorded, you need to supply the balance of the loan on January 1st of this year.", Q_NULLPTR)));
#endif // QT_NO_WHATSTHIS
        textLabel5->setText(tr2i18n("Payment frequency", Q_NULLPTR));
        textLabel1_4->setText(tr2i18n("Interest Compounding frequency", Q_NULLPTR));
#ifndef UI_QT_NO_WHATSTHIS
        m_compoundFrequency->setProperty("whatsThis", QVariant(tr2i18n("Select the frequency with which the interest is compounded. If uncertain, select the same as the payment frequency. Consult your loan contract for details.", Q_NULLPTR)));
#endif // QT_NO_WHATSTHIS
        textLabel2_2->setText(tr2i18n("Due date of first payment to be recorded", Q_NULLPTR));
#ifndef UI_QT_NO_WHATSTHIS
        m_firstPaymentDate->setProperty("whatsThis", QVariant(tr2i18n("Depending on the answer to <b>What do you want to record?</b> this field means the following:<p>\n"
"\n"
"<b>All payments</b><br>\n"
"Enter the due date of the very first payment<p>\n"
"\n"
"<b>Start with this year's payments</b><br>\n"
"Enter the due date of the first payment in the current year", Q_NULLPTR)));
#endif // QT_NO_WHATSTHIS
        textLabel4->setText(tr2i18n("Type of interest rate", Q_NULLPTR));
        m_interestType->clear();
        m_interestType->insertItems(0, QStringList()
         << tr2i18n("Fixed", "@item type of interest")
         << tr2i18n("Variable", "@item type of interest")
        );
        textLabel3_2->setText(tr2i18n("Time between interest changes", Q_NULLPTR));
        m_interestFrequencyUnitEdit->clear();
        m_interestFrequencyUnitEdit->insertItems(0, QStringList()
         << tr2i18n("Days", "@item frequency of interest calculation")
         << tr2i18n("Weeks", "@item frequency of interest calculation")
         << tr2i18n("Months", "@item frequency of interest calculation")
         << tr2i18n("Years", "@item frequency of interest calculation")
        );
        textLabel4_2->setText(tr2i18n("Next interest change is due", Q_NULLPTR));
        Q_UNUSED(KGeneralLoanInfoPage);
    } // retranslateUi

};

namespace Ui {
    class KGeneralLoanInfoPage: public Ui_KGeneralLoanInfoPage {};
} // namespace Ui

QT_END_NAMESPACE

#endif // KGENERALLOANINFOPAGE_H

