File indexing completed on 2024-06-09 05:03:32
0001 /* 0002 SPDX-FileCopyrightText: 2010 Fernando Vilas <kmymoney-devel@kde.org> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #ifndef NAMEWIZARDPAGE_H 0007 #define NAMEWIZARDPAGE_H 0008 0009 // ---------------------------------------------------------------------------- 0010 // QT Includes 0011 0012 #include <QWizardPage> 0013 0014 // ---------------------------------------------------------------------------- 0015 // KDE Includes 0016 0017 // ---------------------------------------------------------------------------- 0018 // Project Includes 0019 0020 namespace Ui { 0021 class NameWizardPage; 0022 } 0023 0024 /** 0025 * This class implements the Name page of the 0026 * @ref KNewLoanWizard. 0027 */ 0028 0029 class NameWizardPage : public QWizardPage 0030 { 0031 Q_OBJECT 0032 public: 0033 explicit NameWizardPage(QWidget *parent = nullptr); 0034 ~NameWizardPage(); 0035 0036 /** 0037 * Some things on this page depend on previous pages for correct 0038 * initialization, so overload initializePage() 0039 */ 0040 void initializePage() final override; 0041 0042 /** 0043 * Overload the isComplete function to control the Next button 0044 */ 0045 bool isComplete() const final override; 0046 0047 Ui::NameWizardPage *ui; 0048 }; 0049 0050 #endif