Scribus
Open source desktop publishing at your fingertips
smshadebutton.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 SMSHADEBUTTON_H
8 #define SMSHADEBUTTON_H
9 
10 #include "shadebutton.h"
11 
12 
13 class SMShadeButton : public ShadeButton
14 {
15  Q_OBJECT
16 public:
17  SMShadeButton(QWidget *parent);
18  ~SMShadeButton() {};
19 
20  void setValue(int i);
21  void setValue(int i, bool isParentValue);
22 
23  void setParentValue(int i);
24 
25  bool useParentValue();
26 
27 private:
28  bool m_hasParent;
29  bool m_useParentValue;
30  int m_pValue;
31 
32  QString useParentValueText();
33  void setFont(bool wantBold);
34 
35 private slots:
36  void currentChanged();
37  void slotUseParent();
38 };
39 
40 #endif
Definition: smshadebutton.h:13
Definition: shadebutton.h:14