00001 /*************************************************************************** 00002 doublespinbox.h - double values spinbox 00003 ------------------- 00004 begin : Fri Apr 13 2001 00005 copyright : (C) 2001 by Claudiu Costin 00006 email : claudiuc@geocities.com 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef __DOUBLESPINBOX_H__ 00019 #define __DOUBLESPINBOX_H__ 00020 00021 #ifdef HAVE_CONFIG_H 00022 #include <config.h> 00023 #endif 00024 00025 #include <qspinbox.h> 00026 00027 class DoubleSpinBox : public QSpinBox { 00028 00029 public: 00030 DoubleSpinBox(QWidget *parent=0, const char *name=0); 00031 DoubleSpinBox(int minValue, int maxValue, int step=1, QWidget *parent=0, const char *name=0);; 00032 QString mapValueToText(int value); 00033 int mapTextToValue(bool *ok); 00034 }; 00035 00036 #endif