Scribus
Open source desktop publishing at your fingertips
smstyleselect.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 SMSTYLESELECT_H
8 #define SMSTYLESELECT_H
9 
10 #include "styleselect.h"
11 
12 
13 class SMStyleSelect : public StyleSelect
14 {
15  Q_OBJECT
16 public:
17  SMStyleSelect(QWidget *parent);
18  ~SMStyleSelect() {}
19 
20  void setStyle(int i);
21  void setStyle(int i, bool isParentValue);
22 
23  void setParentItem(int i);
24 
25  bool useParentValue();
26 
27  QToolButton *parentButton;
28 
29 private:
30  bool m_hasParent;
31  bool m_useParentStyle;
32  int m_pStyle;
33  void setFont(bool wantBold);
34 
35 private slots:
36  void styleChanged();
37  void pbPressed();
38 };
39 
40 #endif
Definition: smstyleselect.h:13
Definition: styleselect.h:103