1 /*************************************************************************** 2 loanattributeswizardpage - description 3 ------------------- 4 begin : Mon Dec 30 2013 5 copyright : (C) 2013 by Jeremy Whiting 6 email : jpwhiting@kde.org 7 ***************************************************************************/ 8 9 /*************************************************************************** 10 * * 11 * This program is free software; you can redistribute it and/or modify * 12 * it under the terms of the GNU General Public License as published by * 13 * the Free Software Foundation; either version 2 of the License, or * 14 * (at your option) any later version. * 15 * * 16 ***************************************************************************/ 17 18 #ifndef LOANATTRIBUTESWIZARDPAGE_H 19 #define LOANATTRIBUTESWIZARDPAGE_H 20 21 // ---------------------------------------------------------------------------- 22 // QT Includes 23 24 #include <QWizardPage> 25 26 // ---------------------------------------------------------------------------- 27 // KDE Includes 28 29 // ---------------------------------------------------------------------------- 30 // Project Includes 31 32 namespace Ui { class LoanAttributesWizardPage; } 33 34 /** 35 * This class implements the Loan Attributes page of the 36 * @ref KNewLoanWizard. 37 */ 38 39 class LoanAttributesWizardPage : public QWizardPage 40 { 41 Q_OBJECT 42 public: 43 explicit LoanAttributesWizardPage(QWidget *parent = nullptr); 44 ~LoanAttributesWizardPage(); 45 46 /** 47 * Overload the isComplete function to control the Next button 48 */ 49 bool isComplete() const final override; 50 51 /** 52 * Overload the initializePage function to set widgets based on 53 * the inputs from previous pages. 54 */ 55 void initializePage() final override; 56 57 /** 58 * Set the institution combobox to the name given 59 */ 60 void setInstitution(const QString &institutionName); 61 62 Ui::LoanAttributesWizardPage *ui; 63 64 protected Q_SLOTS: 65 void slotNewClicked(); 66 }; 67 68 #endif 69