File indexing completed on 2024-04-21 07:27:49

0001 /***************************************************************************
0002  *   Copyright (C) 2004-2007 by Albert Astals Cid                          *
0003  *   aacid@kde.org                                                         *
0004  *                                                                         *
0005  *   This program is free software; you can redistribute it and/or modify  *
0006  *   it under the terms of the GNU General Public License as published by  *
0007  *   the Free Software Foundation; either version 2 of the License, or     *
0008  *   (at your option) any later version.                                   *
0009  ***************************************************************************/
0010 
0011 #ifndef DIVISIONCAPITALASKER_H
0012 #define DIVISIONCAPITALASKER_H
0013 
0014 #include "boxasker.h"
0015 
0016 class divisionCapitalAsker : public boxAsker
0017 {
0018     public:
0019         divisionCapitalAsker(QWidget *parent, KGmap *m, QWidget *w, uint count);
0020 
0021     protected:
0022         bool nextBoxAskerQuestionHook(const division *div, int i, bool isAnswer) override;
0023         void setAnswerHook(int userSays) override;
0024         QString getQuestionHook() const override;
0025         division::askMode askMode() const override { return division::eCapital; }
0026     
0027     private:
0028         QString p_capital;
0029 };
0030 
0031 #endif