Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

hk_kdespinbox.h

00001 // ****************************************************************************
00002 // copyright (c) 2000-2004 Horst Knorr <hk_classes@knoda.org>  
00003 // This file is part of the hk_kdeclasses library.
00004 // This file may be distributed and/or modified under the terms of the
00005 // GNU Library Public License version 2 as published by the Free Software
00006 // Foundation and appearing in the file LGPL included in the
00007 // packaging of this file.
00008 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00009 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00010 // ****************************************************************************
00011 
00012 #ifndef HK_KDESPINBOX
00013 #define HK_KDESPINBOX
00014 #include <qspinbox.h>
00015 class hk_kdespinboxvalidator;
00016 class hk_kdespinbox : public QSpinBox
00017 {
00018     Q_OBJECT
00019 
00020         public:
00021         hk_kdespinbox(QWidget* parent=0, const char* name=0);
00022         hk_kdespinbox(int minValue, int maxValue, int step=1,QWidget* parent=0,const char* name=0);
00023         virtual ~hk_kdespinbox();
00024         QString mapValueToText(int value);
00025         int mapTextToValue(bool* ok);
00026         enum enum_displaytype{standard,percent,pixels,cm};
00027         void set_displaytype(enum_displaytype);
00028         enum_displaytype displaytype(void);
00029 
00030     protected:
00031 
00032     private:
00033         void init(void);
00034         enum_displaytype p_displaytype;
00035         hk_kdespinboxvalidator* p_validator;
00036 };
00037 #endif

Generated on Tue Mar 22 23:28:15 2005 for Databasehandlingdialogclasses by  doxygen 1.4.1