/***************************************************************************
                         recordpaymentwizardpage  -  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 "recordpaymentwizardpage.h"

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


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


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


RecordPaymentWizardPage::RecordPaymentWizardPage(QWidget *parent)
    : RecordPaymentWizardPageDecl(parent)
{
  ButtonGroup4->setId(m_allPaymentsButton, 0);
  ButtonGroup4->setId(m_thisYearPaymentButton, 1);

  // Register the fields with the QWizard and connect the
  // appropriate signals to update the "Next" button correctly
  registerField("allPaymentsButton", m_allPaymentsButton);
  registerField("thisYearPaymentButton", m_thisYearPaymentButton);

  m_allPaymentsButton->animateClick();
}

void RecordPaymentWizardPage::initializePage()
{
  if (field("noPreviousPaymentButton").toBool())
    m_allPaymentsButton->animateClick();
}

#include "recordpaymentwizardpage.moc"

