#include <klocalizedstring.h>

/********************************************************************************
** Form generated from reading UI file 'keditscheduledlg.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_KEDITSCHEDULEDLG_H
#define UI_KEDITSCHEDULEDLG_H

#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QFrame>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QVBoxLayout>
#include "kcombobox.h"
#include "klineedit.h"
#include "kmymoneydateinput.h"
#include "kmymoneygeneralcombo.h"
#include "kmymoneyoccurrenceperiodcombo.h"
#include "register.h"
#include "transactionform.h"

QT_BEGIN_NAMESPACE

class Ui_KEditScheduleDlg
{
public:
    QVBoxLayout *vboxLayout;
    QHBoxLayout *hboxLayout;
    QHBoxLayout *hboxLayout1;
    QLabel *textLabel1;
    KLineEdit *m_nameEdit;
    QHBoxLayout *hboxLayout2;
    QLabel *textLabel3;
    QSpinBox *m_frequencyNoEdit;
    KMyMoneyOccurrencePeriodCombo *m_frequencyEdit;
    QGroupBox *m_paymentInformation;
    QVBoxLayout *m_paymentInformationLayout;
    QHBoxLayout *hboxLayout3;
    QLabel *textLabel1_3;
    KMyMoneyGeneralCombo *m_paymentMethodEdit;
    QSpacerItem *spacer4;
    QFrame *line1;
    KMyMoneyRegister::Register *m_register;
    KMyMoneyTransactionForm::TransactionForm *m_form;
    QGroupBox *groupBox2;
    QVBoxLayout *vboxLayout1;
    QGridLayout *gridLayout;
    KComboBox *m_weekendOptionEdit;
    QLabel *textLabel1_2;
    QHBoxLayout *hboxLayout4;
    QCheckBox *m_estimateEdit;
    QSpinBox *m_variation;
    QSpacerItem *spacer5;
    QCheckBox *m_lastDayInMonthEdit;
    QCheckBox *m_autoEnterEdit;
    QCheckBox *m_endSeriesEdit;
    QFrame *m_endOptionsFrame;
    QHBoxLayout *hboxLayout5;
    QSpacerItem *Spacer3_2_2;
    QLabel *m_endLabel1;
    QSpinBox *m_RemainingEdit;
    QLabel *m_endLabel2;
    KMyMoneyDateInput *m_FinalPaymentEdit;
    QSpacerItem *spacer12;
    QDialogButtonBox *buttonBox;

    void setupUi(QDialog *KEditScheduleDlg)
    {
        if (KEditScheduleDlg->objectName().isEmpty())
            KEditScheduleDlg->setObjectName(QStringLiteral("KEditScheduleDlg"));
        KEditScheduleDlg->resize(798, 640);
        KEditScheduleDlg->setSizeGripEnabled(true);
        vboxLayout = new QVBoxLayout(KEditScheduleDlg);
        vboxLayout->setSpacing(6);
        vboxLayout->setContentsMargins(11, 11, 11, 11);
        vboxLayout->setObjectName(QStringLiteral("vboxLayout"));
        hboxLayout = new QHBoxLayout();
        hboxLayout->setSpacing(6);
        hboxLayout->setObjectName(QStringLiteral("hboxLayout"));
        hboxLayout1 = new QHBoxLayout();
        hboxLayout1->setSpacing(6);
        hboxLayout1->setObjectName(QStringLiteral("hboxLayout1"));
        textLabel1 = new QLabel(KEditScheduleDlg);
        textLabel1->setObjectName(QStringLiteral("textLabel1"));
        textLabel1->setWordWrap(false);

        hboxLayout1->addWidget(textLabel1);

        m_nameEdit = new KLineEdit(KEditScheduleDlg);
        m_nameEdit->setObjectName(QStringLiteral("m_nameEdit"));
        m_nameEdit->setFocusPolicy(Qt::StrongFocus);

        hboxLayout1->addWidget(m_nameEdit);


        hboxLayout->addLayout(hboxLayout1);

        hboxLayout2 = new QHBoxLayout();
        hboxLayout2->setSpacing(6);
        hboxLayout2->setObjectName(QStringLiteral("hboxLayout2"));
        textLabel3 = new QLabel(KEditScheduleDlg);
        textLabel3->setObjectName(QStringLiteral("textLabel3"));
        textLabel3->setWordWrap(false);

        hboxLayout2->addWidget(textLabel3);

        m_frequencyNoEdit = new QSpinBox(KEditScheduleDlg);
        m_frequencyNoEdit->setObjectName(QStringLiteral("m_frequencyNoEdit"));
        m_frequencyNoEdit->setFocusPolicy(Qt::StrongFocus);
        m_frequencyNoEdit->setMinimum(1);
        m_frequencyNoEdit->setMaximum(999);

        hboxLayout2->addWidget(m_frequencyNoEdit);

        m_frequencyEdit = new KMyMoneyOccurrencePeriodCombo(KEditScheduleDlg);
        m_frequencyEdit->setObjectName(QStringLiteral("m_frequencyEdit"));

        hboxLayout2->addWidget(m_frequencyEdit);


        hboxLayout->addLayout(hboxLayout2);


        vboxLayout->addLayout(hboxLayout);

        m_paymentInformation = new QGroupBox(KEditScheduleDlg);
        m_paymentInformation->setObjectName(QStringLiteral("m_paymentInformation"));
        m_paymentInformationLayout = new QVBoxLayout(m_paymentInformation);
        m_paymentInformationLayout->setSpacing(6);
        m_paymentInformationLayout->setContentsMargins(11, 11, 11, 11);
        m_paymentInformationLayout->setObjectName(QStringLiteral("m_paymentInformationLayout"));
        hboxLayout3 = new QHBoxLayout();
        hboxLayout3->setSpacing(6);
        hboxLayout3->setObjectName(QStringLiteral("hboxLayout3"));
        textLabel1_3 = new QLabel(m_paymentInformation);
        textLabel1_3->setObjectName(QStringLiteral("textLabel1_3"));
        textLabel1_3->setWordWrap(false);

        hboxLayout3->addWidget(textLabel1_3);

        m_paymentMethodEdit = new KMyMoneyGeneralCombo(m_paymentInformation);
        m_paymentMethodEdit->setObjectName(QStringLiteral("m_paymentMethodEdit"));
        QSizePolicy sizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(m_paymentMethodEdit->sizePolicy().hasHeightForWidth());
        m_paymentMethodEdit->setSizePolicy(sizePolicy);

        hboxLayout3->addWidget(m_paymentMethodEdit);

        spacer4 = new QSpacerItem(61, 21, QSizePolicy::Expanding, QSizePolicy::Minimum);

        hboxLayout3->addItem(spacer4);


        m_paymentInformationLayout->addLayout(hboxLayout3);

        line1 = new QFrame(m_paymentInformation);
        line1->setObjectName(QStringLiteral("line1"));
        line1->setFrameShape(QFrame::HLine);
        line1->setFrameShadow(QFrame::Sunken);

        m_paymentInformationLayout->addWidget(line1);

        m_register = new KMyMoneyRegister::Register(m_paymentInformation);
        m_register->setObjectName(QStringLiteral("m_register"));
        m_register->setProperty("rowCount", QVariant(0));
        m_register->setProperty("columnCount", QVariant(12));

        m_paymentInformationLayout->addWidget(m_register);

        m_form = new KMyMoneyTransactionForm::TransactionForm(m_paymentInformation);
        m_form->setObjectName(QStringLiteral("m_form"));
        m_form->setProperty("rowCount", QVariant(5));
        m_form->setProperty("columnCount", QVariant(1));

        m_paymentInformationLayout->addWidget(m_form);


        vboxLayout->addWidget(m_paymentInformation);

        groupBox2 = new QGroupBox(KEditScheduleDlg);
        groupBox2->setObjectName(QStringLiteral("groupBox2"));
        vboxLayout1 = new QVBoxLayout(groupBox2);
        vboxLayout1->setSpacing(6);
        vboxLayout1->setContentsMargins(11, 11, 11, 11);
        vboxLayout1->setObjectName(QStringLiteral("vboxLayout1"));
        gridLayout = new QGridLayout();
        gridLayout->setSpacing(6);
        gridLayout->setObjectName(QStringLiteral("gridLayout"));
        m_weekendOptionEdit = new KComboBox(groupBox2);
        m_weekendOptionEdit->setObjectName(QStringLiteral("m_weekendOptionEdit"));

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

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

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


        vboxLayout1->addLayout(gridLayout);

        hboxLayout4 = new QHBoxLayout();
        hboxLayout4->setSpacing(6);
        hboxLayout4->setObjectName(QStringLiteral("hboxLayout4"));
        m_estimateEdit = new QCheckBox(groupBox2);
        m_estimateEdit->setObjectName(QStringLiteral("m_estimateEdit"));

        hboxLayout4->addWidget(m_estimateEdit);

        m_variation = new QSpinBox(groupBox2);
        m_variation->setObjectName(QStringLiteral("m_variation"));
        m_variation->setEnabled(false);
        m_variation->setMaximum(32767);
        m_variation->setValue(10);

        hboxLayout4->addWidget(m_variation);

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

        hboxLayout4->addItem(spacer5);


        vboxLayout1->addLayout(hboxLayout4);

        m_lastDayInMonthEdit = new QCheckBox(groupBox2);
        m_lastDayInMonthEdit->setObjectName(QStringLiteral("m_lastDayInMonthEdit"));

        vboxLayout1->addWidget(m_lastDayInMonthEdit);

        m_autoEnterEdit = new QCheckBox(groupBox2);
        m_autoEnterEdit->setObjectName(QStringLiteral("m_autoEnterEdit"));

        vboxLayout1->addWidget(m_autoEnterEdit);

        m_endSeriesEdit = new QCheckBox(groupBox2);
        m_endSeriesEdit->setObjectName(QStringLiteral("m_endSeriesEdit"));

        vboxLayout1->addWidget(m_endSeriesEdit);

        m_endOptionsFrame = new QFrame(groupBox2);
        m_endOptionsFrame->setObjectName(QStringLiteral("m_endOptionsFrame"));
        m_endOptionsFrame->setFrameShape(QFrame::NoFrame);
        m_endOptionsFrame->setFrameShadow(QFrame::Raised);
        hboxLayout5 = new QHBoxLayout(m_endOptionsFrame);
        hboxLayout5->setSpacing(6);
        hboxLayout5->setContentsMargins(11, 11, 11, 11);
        hboxLayout5->setObjectName(QStringLiteral("hboxLayout5"));
        hboxLayout5->setContentsMargins(0, 0, 0, 0);
        Spacer3_2_2 = new QSpacerItem(20, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);

        hboxLayout5->addItem(Spacer3_2_2);

        m_endLabel1 = new QLabel(m_endOptionsFrame);
        m_endLabel1->setObjectName(QStringLiteral("m_endLabel1"));
        m_endLabel1->setWordWrap(false);

        hboxLayout5->addWidget(m_endLabel1);

        m_RemainingEdit = new QSpinBox(m_endOptionsFrame);
        m_RemainingEdit->setObjectName(QStringLiteral("m_RemainingEdit"));
        m_RemainingEdit->setMinimum(0);
        m_RemainingEdit->setMaximum(9999);

        hboxLayout5->addWidget(m_RemainingEdit);

        m_endLabel2 = new QLabel(m_endOptionsFrame);
        m_endLabel2->setObjectName(QStringLiteral("m_endLabel2"));
        m_endLabel2->setWordWrap(false);

        hboxLayout5->addWidget(m_endLabel2);

        m_FinalPaymentEdit = new KMyMoneyDateInput(m_endOptionsFrame);
        m_FinalPaymentEdit->setObjectName(QStringLiteral("m_FinalPaymentEdit"));
        m_FinalPaymentEdit->setFocusPolicy(Qt::StrongFocus);

        hboxLayout5->addWidget(m_FinalPaymentEdit);


        vboxLayout1->addWidget(m_endOptionsFrame);


        vboxLayout->addWidget(groupBox2);

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

        vboxLayout->addItem(spacer12);

        buttonBox = new QDialogButtonBox(KEditScheduleDlg);
        buttonBox->setObjectName(QStringLiteral("buttonBox"));
        buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Ok);

        vboxLayout->addWidget(buttonBox);


        retranslateUi(KEditScheduleDlg);
        QObject::connect(m_endSeriesEdit, SIGNAL(toggled(bool)), m_endOptionsFrame, SLOT(setEnabled(bool)));
        QObject::connect(m_estimateEdit, SIGNAL(toggled(bool)), m_variation, SLOT(setEnabled(bool)));
        QObject::connect(buttonBox, SIGNAL(accepted()), KEditScheduleDlg, SLOT(accept()));
        QObject::connect(buttonBox, SIGNAL(rejected()), KEditScheduleDlg, SLOT(reject()));

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

    void retranslateUi(QDialog *KEditScheduleDlg)
    {
        KEditScheduleDlg->setWindowTitle(tr2i18n("Edit Scheduled transaction", Q_NULLPTR));
        textLabel1->setText(tr2i18n("Schedule name:", Q_NULLPTR));
        textLabel3->setText(tr2i18n("Frequency:", Q_NULLPTR));
#ifndef UI_QT_NO_TOOLTIP
        m_frequencyNoEdit->setToolTip(tr2i18n("Number of selected periods between entries", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
        m_paymentInformation->setTitle(tr2i18n("Payment information", Q_NULLPTR));
        textLabel1_3->setText(tr2i18n("Payment method", Q_NULLPTR));
        groupBox2->setTitle(tr2i18n("Options", Q_NULLPTR));
        m_weekendOptionEdit->clear();
        m_weekendOptionEdit->insertItems(0, QStringList()
         << tr2i18n("Do not change the date", Q_NULLPTR)
         << tr2i18n("Change the date to the previous processing day", Q_NULLPTR)
         << tr2i18n("Change the date to the next processing day", Q_NULLPTR)
        );
        textLabel1_2->setText(tr2i18n("If this schedule occurs on a non-processing day:", Q_NULLPTR));
        m_estimateEdit->setText(tr2i18n("The amount is an estimate because it varies for each payment", Q_NULLPTR));
        m_lastDayInMonthEdit->setText(tr2i18n("Process this schedule always at the last day of a month", Q_NULLPTR));
        m_autoEnterEdit->setText(tr2i18n("Enter this schedule into the register automatically when it is due", Q_NULLPTR));
        m_endSeriesEdit->setText(tr2i18n("This schedule will end at some time", Q_NULLPTR));
        m_endLabel1->setText(tr2i18n("Number of transactions remaining:", Q_NULLPTR));
        m_endLabel2->setText(tr2i18n("Date of final transaction:", Q_NULLPTR));
    } // retranslateUi

};

namespace Ui {
    class KEditScheduleDlg: public Ui_KEditScheduleDlg {};
} // namespace Ui

QT_END_NAMESPACE

#endif // KEDITSCHEDULEDLG_H

