moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kbruch / src / factorizedwidget.h
blob2626d4451cab3d08bd2546c26fdfac387df32b60
1 /***************************************************************************
2 factorizedwidget.h - paint a factorization
3 -------------------
4 begin : 2004/07/11
5 copyright : (C) 2004 by Sebastian Stein
6 email : seb.kde@hpfsc.de
7 ***************************************************************************/
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 ***************************************************************************/
18 #ifndef FACTORIZEDWIDGET_H
19 #define FACTORIZEDWIDGET_H
21 #ifdef DEBUG
22 #include <kdebug.h>
23 #endif
25 #include "fractionbasewidget.h"
27 #include <qwidget.h>
29 // a list containing uints
30 typedef QValueList<uint> uintList;
32 /*! class to paint the factorization of a number
34 * \author Sebastian Stein */
35 class FactorizedWidget : public FractionBaseWidget
37 Q_OBJECT
39 public:
40 /** constructor */
41 FactorizedWidget(QWidget * parent, const char * name, const uintList para_factors);
43 /** destructor */
44 ~FactorizedWidget();
46 /** set the task to be displayed */
47 void setFactors(const uintList para_factors);
49 private:
51 /** the prime factors of the number */
52 uintList m_factors;
54 /** overrideing the paint event of FractionBaseWidget */
55 void paintEvent(QPaintEvent*);
58 #endif