/***************************************************************************
                         summaryeditwizardpage  -  description
                            -------------------
   begin                : Sun Jul 4 2010
   copyright            : (C) 2010 by Fernando Vilas
   email                : kmymoney-devel@kde.org
***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#include "summaryeditwizardpage.h"

// ----------------------------------------------------------------------------
// QT Includes


// ----------------------------------------------------------------------------
// KDE Includes


// ----------------------------------------------------------------------------
// Project Includes


SummaryEditWizardPage::SummaryEditWizardPage(QWidget *parent)
    : SummaryEditWizardPageDecl(parent)
{
  // Register the fields with the QWizard and connect the
  // appropriate signals to update the "Next" button correctly
  registerField("affectedPayments", m_affectedPayments, "text");
}

void SummaryEditWizardPage::initializePage()
{
  m_payment7->setText(field("payment6").toString());
  m_additionalFees7->setText(field("additionalCost").toString());
  m_totalPayment7->setText(field("periodicPayment").toString());
  m_interestRate7->setText(field("interestRate6").toString());
  m_startDateChanges->setText(KGlobal::locale()->formatDate(field("effectiveChangeDateEdit").toDate()));
}
