moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kvoctrain / kvoctrain / entry-dialogs / MySpinBox.h
blob3b200dc5ce9203cea29defd7ac6470f84a743cba
1 /***************************************************************************
3 display special spinbox
5 -----------------------------------------------------------------------
7 begin : Sat Oct 21 18:02:16 1999
9 copyright : (C) 1999-2001 Ewald Arnold <kvoctrain@ewald-arnold.de>
10 (C) 2001 The KDE-EDU team
11 (C) 2005 Peter Hedlund <peter@peterandlinda.com>
13 -----------------------------------------------------------------------
15 ***************************************************************************/
17 /***************************************************************************
18 * *
19 * This program is free software; you can redistribute it and/or modify *
20 * it under the terms of the GNU General Public License as published by *
21 * the Free Software Foundation; either version 2 of the License, or *
22 * (at your option) any later version. *
23 * *
24 ***************************************************************************/
26 #ifndef MySpinbox_included
27 #define MySpinbox_included
29 #include <qspinbox.h>
31 class QStringlist;
33 class MySpinBox : public QSpinBox
35 public:
36 MySpinBox (QWidget* parent = 0, const char* name = 0);
38 void setSpecial(const QString &str);
39 void setData (QStringList *names, int minValue, int maxValue);
40 virtual QString mapValueToText( int value );
41 virtual int mapTextToValue( bool* ok );
43 protected:
44 QStringList *spin_names;
45 QString special_str;
48 #endif // MySpinbox_included