13 #ifndef MAGICSMOKE_CENTBOX_H
14 #define MAGICSMOKE_CENTBOX_H
16 #include <QAbstractSpinBox>
18 #include <QRegExpValidator>
26 MCentSpinBox(QWidget*parent=0,
int value=0,
int maxValue=2147483647);
28 virtual int value()
const;
29 virtual void setValue(
int);
31 virtual void setRange(
int,
int);
33 virtual int minimumValue()
const;
34 virtual int maximumValue()
const;
38 virtual QValidator::State validate(QString &input,
int &pos)
const;
39 virtual StepEnabled stepEnabled ()
const;
41 void valueChanged(
int);
46 QRegExpValidator mvalid;
53 MCentDialog(QWidget*parent=0,QString title=QString(),QString label=QString(),
int value=0,
int maxValue=2147483647);
55 virtual int value()
const;
57 static int getCents(QWidget*parent=0,QString title=QString(),QString label=QString(),
int value=0,
int maxValue=2147483647,
bool *ok=0);
#define MAGICSMOKE_COMMON_EXPORT
Definition: commonexport.h:7