14 #include <QDoubleSpinBox>
18 #include "scribusapi.h"
26 ScrSpinBox(
double minValue,
double maxValue, QWidget *pa,
int unitIndex=0);
30 double valueFromText (
const QString & text )
const;
31 QString textFromValue (
double value )
const;
32 QValidator::State validate ( QString & input,
int & pos )
const;
33 void fixup ( QString & input )
const;
36 void showValue(
double val);
39 void init(
int unitIndex);
40 void setConstants(
const QMap<QString, double>* constants);
41 void setNewUnit(
int unitIndex);
42 double getValue(
int unitIndex=0);
43 void setTabAdvance(
bool enable);
45 uint unitIndex()
const {
return m_unitIndex; }
46 double unitRatio()
const;
49 void setValues(
double min,
double max,
int deci,
double val);
50 void getValues(
double *min,
double *max,
int *deci,
double *val);
51 void setValue(
int val);
52 void setValue(
double val);
55 void setParameters(
int s );
58 const QMap<QString, double>* m_constants;
59 bool eventFilter ( QObject * watched, QEvent * event );
ScrSpinBox is a Qt4 replacement for our old ScrSpinBox using Qt3.
Definition: scrspinbox.h:21