Scribus
Open source desktop publishing at your fingertips
smfontcomboh.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 
8 #ifndef SMFONTCOMBOH_H
9 #define SMFONTCOMBOH_H
10 
11 #include "fontcombo.h"
12 
13 
14 class SMFontComboH : public FontComboH
15 {
16  Q_OBJECT
17 public:
18  SMFontComboH(QWidget *parent);
19  ~SMFontComboH() {};
20 
21  void setCurrentFont(const QString &s);
22  void setCurrentFont(const QString &s, bool isParentValue);
23 
24  void setParentFont(const QString &s);
25 
26  bool useParentFont();
27 
28 private:
29  bool hasParent_;
30  bool useParentValue_;
31  QString pFont_;
32  QString usePFont_;
33  void setFont(bool wantBold);
34 
35 private slots:
36  void currentChanged();
37  void checkStyle();
38 };
39 
40 #endif
Definition: smfontcomboh.h:14
Definition: fontcombo.h:60