Scribus
Open source desktop publishing at your fingertips
ScrSpinBox Class Reference

ScrSpinBox is a Qt4 replacement for our old ScrSpinBox using Qt3. More...

#include <scrspinbox.h>

Inheritance diagram for ScrSpinBox:
Collaboration diagram for ScrSpinBox:

Public Slots

void setValues (double min, double max, int deci, double val)
 
void getValues (double *min, double *max, int *deci, double *val)
 
void setValue (int val)
 
void setValue (double val)
 

Public Member Functions

 ScrSpinBox (QWidget *parent, int unitIndex=0)
 
 ScrSpinBox (double minValue, double maxValue, QWidget *pa, int unitIndex=0)
 
double valueFromText (const QString &text) const
 
QString textFromValue (double value) const
 
QValidator::State validate (QString &input, int &pos) const
 
void fixup (QString &input) const
 
void showValue (double val)
 
void init (int unitIndex)
 
void setConstants (const QMap< QString, double > *constants)
 
void setNewUnit (int unitIndex)
 
double getValue (int unitIndex=0)
 
void setTabAdvance (bool enable)
 
uint unitIndex () const
 
double unitRatio () const
 

Protected Slots

void textChanged ()
 

Protected Member Functions

void setParameters (int s)
 
bool eventFilter (QObject *watched, QEvent *event)
 

Protected Attributes

uint m_unitIndex
 
bool m_tabAdvance
 
const QMap< QString, double > * m_constants
 

Detailed Description

ScrSpinBox is a Qt4 replacement for our old ScrSpinBox using Qt3.


The documentation for this class was generated from the following files: