2
// Copyright 2007 Jim Bublitz <jbublitz@nwinternet.com>
3
// Earlier copyrights 1998 - 2006 Jim Bublitz also apply
7
// PyKDE4 module kdeui version KDE 3.92.0
10
// This file is part of PyKDE4.
12
// PyKDE4 is free software; you can redistribute it and/or modify
13
// it under the terms of the GNU Lesser General Public License as
14
// published by the Free Software Foundation; either version 2.1 of
15
// the License, or (at your option) any later version.
17
// PyKDE4 is distributed in the hope that it will be useful,
18
// but WITHOUT ANY WARRANTY; without even the implied warranty of
19
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
// GNU General Public License for more details.
22
// You should have received a copy of the GNU General Public License
23
// along with this program. If not, see <http://www.gnu.org/licenses/>.
26
class KIntValidator : QValidator
29
#include <knumvalidator.h>
34
KIntValidator (QWidget* /TransferThis/, int = 10);
35
KIntValidator (int, int, QWidget* /TransferThis/, int = 10);
36
virtual State validate (QString&, int& /In/) const;
37
virtual void fixup (QString&) const;
38
virtual void setRange (int, int);
39
virtual void setBase (int);
40
virtual int bottom () const;
41
virtual int top () const;
42
virtual int base () const;
44
}; // class KIntValidator
47
class KFloatValidator : QValidator
50
#include <knumvalidator.h>
55
KFloatValidator (QWidget* /TransferThis/);
56
KFloatValidator (double, double, QWidget* /TransferThis/);
57
KFloatValidator (double, double, bool, QWidget* /TransferThis/);
58
virtual State validate (QString&, int& /In/) const;
59
virtual void fixup (QString&) const;
60
virtual void setRange (double, double);
61
virtual double bottom () const;
62
virtual double top () const;
63
void setAcceptLocalizedNumbers (bool);
64
bool acceptLocalizedNumbers () const;
66
}; // class KFloatValidator
69
class KDoubleValidator : QDoubleValidator
72
#include <knumvalidator.h>
77
KDoubleValidator (QObject* /TransferThis/);
78
KDoubleValidator (double, double, int, QObject* /TransferThis/);
79
virtual QValidator::State validate (QString&, int& /In/) const;
80
bool acceptLocalizedNumbers () const;
81
void setAcceptLocalizedNumbers (bool);
83
}; // class KDoubleValidator