home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / smscrspinbox.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-08-13  |  947 b   |  45 lines

  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   hasParent_;
  36.     bool   useParentValue_;
  37.     double pValue_;
  38.     void setFont(bool wantBold);
  39.  
  40. private slots:
  41.     void slotValueChanged();
  42. };
  43.  
  44. #endif
  45.