Scribus
Open source desktop publishing at your fingertips
smcolorcombo.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 SMCOLORCOMBO_H
8 #define SMCOLORCOMBO_H
9 
10 #include "colorcombo.h"
11 
12 
13 class SMColorCombo : public ColorCombo
14 {
15  Q_OBJECT
16 public:
17  SMColorCombo(QWidget *parent);
18  SMColorCombo(bool rw, QWidget* parent);
19  ~SMColorCombo() {};
20 
21  void setCurrentItem(int i);
22  void setCurrentItem(int i, bool isParentValue);
23 
24  void setCurrentText(const QString &s);
25  void setCurrentText(const QString &s, bool isParentValue);
26 
27  void setParentItem(int i);
28  void setParentText(const QString &s);
29 
30  bool useParentValue();
31 
32 private:
33  bool m_hasParent;
34  bool m_useParentValue;
35  int m_pItem;
36  QString m_pText;
37  void setFont(bool wantBold);
38 
39 private slots:
40  void currentChanged();
41 };
42 
43 #endif
The ColorCombo widget is a combo box for displaying list of colors.
Definition: colorcombo.h:33
Definition: smcolorcombo.h:13