moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kbruch / src / resultwidget.h
blob4570df1de42a2aa1bdee58ae852950f57239718a
1 /***************************************************************************
2 resultwidget.h - paint the result
3 -------------------
4 begin : 2004/05/30
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 RESULTWIDGET_H
19 #define RESULTWIDGET_H
21 #ifdef DEBUG
22 #include <kdebug.h>
23 #endif
25 #include "fractionbasewidget.h"
26 #include "ratio.h"
28 #include <qwidget.h>
30 /*! class to paint the result
32 * \author Sebastian Stein */
33 class ResultWidget : public FractionBaseWidget
35 Q_OBJECT
37 public:
38 /** constructor */
39 ResultWidget(QWidget * parent, const char * name, const ratio para_result);
41 /** destructor */
42 ~ResultWidget();
44 /** set the task to be displayed */
45 void setResult(const ratio para_result);
47 private:
49 /** the ratio to be displayed */
50 ratio m_result;
52 /** overrideing the paint event of FractionBaseWidget */
53 void paintEvent(QPaintEvent*);
56 #endif