File indexing completed on 2024-04-14 03:40:30

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 FLAGDIVISIONASKER_H
0012 #define FLAGDIVISIONASKER_H
0013 
0014 #include "boxasker.h"
0015 
0016 class flagWidget;
0017 
0018 class flagDivisionAsker : public boxAsker
0019 {
0020     public:
0021         flagDivisionAsker(QWidget *parent, KGmap *m, QWidget *w, uint count);
0022     
0023     protected:
0024         bool nextBoxAskerQuestionHook(const division *div, int i, bool isAnswer) override;
0025         void setAnswerHook(int userSays) override;
0026         QString getQuestionHook() const override;
0027         division::askMode askMode() const override { return division::eFlag; }
0028 
0029     private:
0030         flagWidget *p_flag;
0031 };
0032 
0033 #endif