moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kbruch / src / ratiowidget.h
blobf2422043a98246f606398623852eabbf6e2303ec
1 /***************************************************************************
2 ratiowidget.h - paint a ratio
3 -------------------
4 begin : 2004/06/03
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 RATIOWIDGET_H
19 #define RATIOWIDGET_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 ratio
32 * \author Sebastian Stein */
33 class RatioWidget : public FractionBaseWidget
35 Q_OBJECT
37 public:
38 /** constructor */
39 RatioWidget(QWidget * parent, const char * name, const ratio para_ratio);
41 /** destructor */
42 ~RatioWidget();
44 /** set the task to be displayed */
45 void setRatio(const ratio para_ratio);
47 private:
49 /** the ratio to be displayed */
50 ratio m_ratio;
52 /** overrideing the paint event of FractionBaseWidget */
53 void paintEvent(QPaintEvent*);
56 #endif