Scribus
Open source desktop publishing at your fingertips
smscrspinbox.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef SMSCRSPINBOX_H
8 #define SMSCRSPINBOX_H
9 
10 #include "scrspinbox.h"
11 
12 
13 class SMScrSpinBox : public ScrSpinBox
14 {
15  Q_OBJECT
16 public:
17  SMScrSpinBox(QWidget *pa, int s);
18  SMScrSpinBox(double minValue, double maxValue, QWidget *pa, int s);
19  SMScrSpinBox(QWidget *parent, const char * name = 0);
20  ~SMScrSpinBox() {};
21 
22  void setValue(double val);
23  void setValue(double val, bool isParentVal);
24 
25  void clear();
26 
27  void setParentValue(double val);
28 
29  bool useParentValue();
30 
31 protected:
32  void interpretText();
33 
34 private:
35  bool m_hasParent;
36  bool m_useParentValue;
37  double m_pValue;
38  void setFont(bool wantBold);
39 
40 private slots:
41  void slotValueChanged();
42 };
43 
44 #endif
Definition: smscrspinbox.h:13
ScrSpinBox is a Qt4 replacement for our old ScrSpinBox using Qt3.
Definition: scrspinbox.h:21