File indexing completed on 2024-04-21 03:41:51
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 CAPITALDIVISIONASKER_H 0012 #define CAPITALDIVISIONASKER_H 0013 0014 #include "boxasker.h" 0015 0016 0017 class capitalDivisionAsker : public boxAsker 0018 { 0019 public: 0020 capitalDivisionAsker(QWidget *parent, KGmap *m, QWidget *w, uint count); 0021 0022 protected: 0023 bool nextBoxAskerQuestionHook(const division *div, int i, bool isAnswer) override; 0024 void setAnswerHook(int userSays) override; 0025 QString getQuestionHook() const override; 0026 division::askMode askMode() const override { return division::eCapital; } 0027 0028 private: 0029 QString p_capital; 0030 }; 0031 0032 #endif